pgLab/pglab/TablesPage.h

38 lines
756 B
C
Raw Normal View History

#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