pgLab/pglab/serverinspector/RolesPage.h
eelke f0e5488ce0 List of databases and roles moved to a "Server tab" within the database window.
Opened by selecting "Inspect Server" from the menu.
2021-04-10 14:27:04 +02:00

26 lines
507 B
C++

#pragma once
#include <QSplitter>
#include <QWidget>
#include "PgLabTableViewHelper.h"
class RolesTableModel;
class PgDatabaseCatalog;
class PgLabTableView;
class QSortFilterProxyModel;
class RolesPage: public QSplitter {
public:
RolesPage(QWidget * parent = nullptr);
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
private:
PgLabTableViewHelper<RolesTableModel> m_rolesTableView;
QTabWidget *m_detailsTabs = nullptr;
std::shared_ptr<PgDatabaseCatalog> m_catalog;
};