Most of menu is back in its original state before the plugin experiment.
This commit is contained in:
parent
b0fa02455c
commit
e2fa613a49
2 changed files with 237 additions and 101 deletions
|
|
@ -16,6 +16,7 @@ namespace Pgsql {
|
|||
class MasterController;
|
||||
class QCloseEvent;
|
||||
class OpenDatabase;
|
||||
class QueryTool;
|
||||
class PgClass;
|
||||
|
||||
class QAction;
|
||||
|
|
@ -44,6 +45,8 @@ public:
|
|||
void addPage(QWidget* page, QString caption);
|
||||
|
||||
void newCodeGenPage(QString query, std::shared_ptr<const Pgsql::Result> dbres);
|
||||
|
||||
QueryTool *GetActiveQueryTool();
|
||||
private:
|
||||
QTabWidget *m_tabWidget = nullptr;
|
||||
QToolBar *m_mainToolBar = nullptr;
|
||||
|
|
@ -59,15 +62,25 @@ private:
|
|||
// Standard actions
|
||||
QAction *actionAbout = nullptr;
|
||||
QAction *actionClose = nullptr;
|
||||
QAction *actionCopy = nullptr;
|
||||
QAction *actionCopyAsCString = nullptr;
|
||||
QAction *actionCopyAsRawCppString = nullptr;
|
||||
QAction *actionExportData = nullptr;
|
||||
QAction *actionGenerateCode = nullptr;
|
||||
QAction *actionInspectInformationSchema = nullptr; ///< Create or switch to pgcatalog tab
|
||||
QAction *actionInspectPgCatalog = nullptr; ///< Create or switch to pgcatalog tab
|
||||
QAction *actionInspectUserSchemas = nullptr; ///< Create or switch to pgcatalog tab
|
||||
QAction *actionNewSql = nullptr;
|
||||
QAction *actionOpenSql = nullptr;
|
||||
QAction *actionSaveSql = nullptr;
|
||||
QAction *actionSaveSqlAs = nullptr;
|
||||
QAction *actionSaveCopyOfSqlAs = nullptr;
|
||||
QAction *actionShowConnectionManager = nullptr;
|
||||
|
||||
|
||||
QMenu *menuEdit = nullptr;
|
||||
QMenu *menuFile = nullptr;
|
||||
QMenu *menuHelp = nullptr;
|
||||
QMenu *menuWindow = nullptr;
|
||||
|
||||
|
||||
class LoadCatalog: public ControllableTask<OpenDatabase::OpenDatabaseSPtr> {
|
||||
|
|
@ -92,20 +105,28 @@ private:
|
|||
void createActions();
|
||||
void initMenus();
|
||||
|
||||
QAction* seperator();
|
||||
private slots:
|
||||
void catalogLoaded();
|
||||
// void tabWidget_tabCloseRequested(int index);
|
||||
// void tabWidget_currentChanged(int index);
|
||||
|
||||
void on_actionAbout_triggered();
|
||||
void on_actionClose_triggered();
|
||||
void on_actionNewSql_triggered();
|
||||
void on_actionCopy_triggered();
|
||||
void on_actionCopyAsCString_triggered();
|
||||
void on_actionCopyAsRawCppString_triggered();
|
||||
void on_actionExportData_triggered();
|
||||
void on_actionGenerateCode_triggered();
|
||||
void on_actionInspectInformationSchema_triggered();
|
||||
void on_actionInspectPgCatalog_triggered();
|
||||
void on_actionInspectUserSchemas_triggered();
|
||||
void on_actionNewSql_triggered();
|
||||
void on_actionOpenSql_triggered();
|
||||
void on_actionAbout_triggered();
|
||||
void on_actionShow_connection_manager_triggered();
|
||||
void on_actionCopy_triggered();
|
||||
void on_actionSaveSql_triggered();
|
||||
void on_actionSaveSqlAs_triggered();
|
||||
void on_actionSaveCopyOfSqlAs_triggered();
|
||||
void on_actionShowConnectionManager_triggered();
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue