TablesPage is now CatalogInspector and is now a module.
This commit is contained in:
parent
d3c85722c7
commit
3e4917428d
7 changed files with 101 additions and 45 deletions
|
|
@ -9,7 +9,6 @@
|
|||
#include <QTableView>
|
||||
|
||||
// Pages that should become modules
|
||||
#include "TablesPage.h"
|
||||
#include "EditTableWidget.h"
|
||||
#include "CodeGenerator.h"
|
||||
#include "FunctionsPage.h"
|
||||
|
|
@ -71,19 +70,10 @@ void DatabaseWindow::catalogLoaded()
|
|||
auto ctx = context();
|
||||
ctx->registerObject(m_database);
|
||||
|
||||
auto tt = new TablesPage(ctx, this);
|
||||
tt->setCatalog(m_database->catalog());
|
||||
m_tabWidget->addTab(tt, "Tables");
|
||||
|
||||
auto pg_cat_tables = new TablesPage(ctx, this);
|
||||
pg_cat_tables->setNamespaceFilter(TablesTableModel::PgCatalog);
|
||||
pg_cat_tables->setCatalog(m_database->catalog());
|
||||
m_tabWidget->addTab(pg_cat_tables, "pg_catalog");
|
||||
|
||||
auto info_schema_tables = new TablesPage(ctx, this);
|
||||
info_schema_tables->setNamespaceFilter(TablesTableModel::InformationSchema);
|
||||
info_schema_tables->setCatalog(m_database->catalog());
|
||||
m_tabWidget->addTab(info_schema_tables, "information_schema");
|
||||
for (auto f : { "user", "pg_catalog", "information_schema" })
|
||||
ctx->moduleAction("pglab.catalog-inspector", "open", {
|
||||
{ "namespace-filter", f }
|
||||
});
|
||||
|
||||
auto functions_page = new FunctionsPage(this);
|
||||
functions_page->setCatalog(m_database->catalog());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue