#ifndef TABLESPAGE_H #define TABLESPAGE_H #include #include #include namespace Ui { class TablesPage; } class TablesTableModel; class ColumnTableModel; class ConstraintModel; class PgDatabaseCatalog; class NamespaceFilterWidget; class IndexModel; class TablesPage : public QWidget { Q_OBJECT public: explicit TablesPage(QWidget *parent = 0); ~TablesPage(); void setCatalog(std::shared_ptr cat); private: Ui::TablesPage *ui; std::shared_ptr m_catalog; TablesTableModel* m_tablesModel = nullptr; ColumnTableModel* m_columnsModel = nullptr; ConstraintModel* m_constraintModel = nullptr; IndexModel* m_indexModel = nullptr; NamespaceFilterWidget* m_namespaceFilterWidget; private slots: void tableListTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous); void constraintsTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous); void constraintsTable_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); }; #endif // TABLESPAGE_H