pgLab/pglab/TablesPage.h
eelke b5254ac723 Have a working model for showing the namespaces in a tree with checkboxes.
The namespaces are currently spit into user and system. Later we might
add recognizing namespaces introduced by specific modules/extensions.
2017-12-29 08:39:08 +01:00

37 lines
756 B
C++

#ifndef TABLESPAGE_H
#define TABLESPAGE_H
#include <QWidget>
#include <memory>
namespace Ui {
class TablesPage;
}
class TablesTableModel;
class ColumnTableModel;
class PgDatabaseCatalog;
class NamespaceFilterWidget;
class TablesPage : public QWidget
{
Q_OBJECT
public:
explicit TablesPage(QWidget *parent = 0);
~TablesPage();
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
private:
Ui::TablesPage *ui;
std::shared_ptr<PgDatabaseCatalog> m_catalog;
TablesTableModel* m_tablesModel = nullptr;
ColumnTableModel* m_columnsModel = nullptr;
NamespaceFilterWidget* m_namespaceFilterWidget;
private slots:
void on_tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
};
#endif // TABLESPAGE_H