CatalogInspector is normal QWidget now
added actions to open the inspector
This commit is contained in:
parent
edb789ca4a
commit
09ef4cdf6b
4 changed files with 62 additions and 57 deletions
|
|
@ -4,20 +4,18 @@
|
|||
#include <QWidget>
|
||||
#include <memory>
|
||||
#include "NamespaceFilter.h"
|
||||
#include "plugin_support/PluginContentWidget.h"
|
||||
#include "plugin_support/PluginModule.h"
|
||||
|
||||
class CatalogFunctionsPage;
|
||||
class CatalogSequencesPage;
|
||||
class CatalogTablesPage;
|
||||
class OpenDatabase;
|
||||
class PgDatabaseCatalog;
|
||||
class QTabWidget;
|
||||
|
||||
class CatalogInspector : public PluginContentWidget {
|
||||
class CatalogInspector : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CatalogInspector(IPluginContentWidgetContext *context, PluginModule *module,
|
||||
QWidget *parent = nullptr);
|
||||
explicit CatalogInspector(std::shared_ptr<OpenDatabase> open_database, QWidget *parent = nullptr);
|
||||
~CatalogInspector();
|
||||
|
||||
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
|
||||
|
|
@ -34,17 +32,4 @@ private:
|
|||
private slots:
|
||||
};
|
||||
|
||||
class CatalogInspectorModule: public PluginModule {
|
||||
Q_OBJECT
|
||||
public:
|
||||
using PluginModule::PluginModule;
|
||||
|
||||
void init();
|
||||
private slots:
|
||||
|
||||
private:
|
||||
void moduleAction_open(IPluginContentWidgetContext* context, const ModuleActionParameters ¶ms);
|
||||
};
|
||||
|
||||
|
||||
#endif // TABLESPAGE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue