2017-12-10 14:20:45 +01:00
|
|
|
|
#ifndef TABLESPAGE_H
|
2017-12-10 08:17:07 +01:00
|
|
|
|
#define TABLESPAGE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2017-12-10 14:20:45 +01:00
|
|
|
|
#include <memory>
|
2019-02-09 20:37:34 +01:00
|
|
|
|
#include "NamespaceFilter.h"
|
2017-12-10 08:17:07 +01:00
|
|
|
|
|
2019-02-09 09:49:27 +01:00
|
|
|
|
class CatalogFunctionsPage;
|
|
|
|
|
|
class CatalogSequencesPage;
|
|
|
|
|
|
class CatalogTablesPage;
|
2019-11-20 19:09:22 +01:00
|
|
|
|
class CatalogNamespacePage;
|
2021-04-01 14:58:42 +02:00
|
|
|
|
class CatalogTypesPage;
|
2019-08-15 16:38:01 +02:00
|
|
|
|
class OpenDatabase;
|
2019-02-09 20:37:34 +01:00
|
|
|
|
class PgDatabaseCatalog;
|
2019-02-09 09:49:27 +01:00
|
|
|
|
class QTabWidget;
|
2017-12-10 08:17:07 +01:00
|
|
|
|
|
2019-08-15 16:38:01 +02:00
|
|
|
|
class CatalogInspector : public QWidget {
|
2017-12-10 08:17:07 +01:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
2019-08-15 16:38:01 +02:00
|
|
|
|
explicit CatalogInspector(std::shared_ptr<OpenDatabase> open_database, QWidget *parent = nullptr);
|
2019-01-06 10:11:48 +01:00
|
|
|
|
~CatalogInspector();
|
2017-12-10 08:17:07 +01:00
|
|
|
|
|
2017-12-10 14:20:45 +01:00
|
|
|
|
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
|
2019-02-09 20:37:34 +01:00
|
|
|
|
void setNamespaceFilter(NamespaceFilter filter);
|
2019-08-16 10:49:38 +02:00
|
|
|
|
|
|
|
|
|
|
CatalogTablesPage *tablesPage();
|
2017-12-10 08:17:07 +01:00
|
|
|
|
private:
|
2019-02-09 09:49:27 +01:00
|
|
|
|
QTabWidget *m_tabWidget = nullptr;
|
2019-11-20 19:09:22 +01:00
|
|
|
|
CatalogNamespacePage *m_namespacePage = nullptr;
|
2019-02-09 09:49:27 +01:00
|
|
|
|
CatalogTablesPage *m_tablesPage = nullptr;
|
|
|
|
|
|
CatalogFunctionsPage *m_functionsPage = nullptr;
|
|
|
|
|
|
CatalogSequencesPage *m_sequencesPage = nullptr;
|
2021-04-01 14:58:42 +02:00
|
|
|
|
CatalogTypesPage *m_typesPage = nullptr;
|
2017-12-10 14:20:45 +01:00
|
|
|
|
std::shared_ptr<PgDatabaseCatalog> m_catalog;
|
2017-12-12 20:13:53 +01:00
|
|
|
|
|
2018-10-07 19:40:06 +02:00
|
|
|
|
void retranslateUi(bool all = true);
|
2018-10-21 13:47:38 +02:00
|
|
|
|
|
2017-12-12 20:13:53 +01:00
|
|
|
|
private slots:
|
2017-12-10 08:17:07 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TABLESPAGE_H
|