29 lines
492 B
C++
29 lines
492 B
C++
#ifndef TABLESPAGE_H
|
|
#define TABLESPAGE_H
|
|
|
|
#include <QWidget>
|
|
#include <memory>
|
|
|
|
namespace Ui {
|
|
class TablesPage;
|
|
}
|
|
|
|
class TablesTableModel;
|
|
class PgDatabaseCatalog;
|
|
|
|
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;
|
|
};
|
|
|
|
#endif // TABLESPAGE_H
|