List of databases and roles moved to a "Server tab" within the database window.
Opened by selecting "Inspect Server" from the menu.
This commit is contained in:
parent
50cd865b1a
commit
f0e5488ce0
12 changed files with 271 additions and 2 deletions
29
pglab/serverinspector/ServerInspector.h
Normal file
29
pglab/serverinspector/ServerInspector.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <memory>
|
||||
|
||||
class DatabasesPage;
|
||||
class OpenDatabase;
|
||||
class PgDatabaseCatalog;
|
||||
class QTabWidget;
|
||||
class RolesPage;
|
||||
|
||||
|
||||
class ServerInspector : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ServerInspector(std::shared_ptr<OpenDatabase> open_database, QWidget *parent = nullptr);
|
||||
|
||||
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
|
||||
private:
|
||||
QTabWidget *m_tabWidget = nullptr;
|
||||
|
||||
DatabasesPage *m_databasesPage = nullptr;
|
||||
RolesPage *m_rolesPage = nullptr;
|
||||
|
||||
std::shared_ptr<PgDatabaseCatalog> m_catalog;
|
||||
|
||||
void retranslateUi(bool all = true);
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue