Introduced the MasterController as part of working on loading catalogue information.

Need a central piece to manage the catalogue data per database to prevent loading
this multiple times. MasterController is now also used to enable reopening the
connection manager from a query window after the connection manager has been closed.
This commit is contained in:
Eelke Klein 2017-02-01 18:01:02 +01:00
parent b6d986051b
commit 6370050204
36 changed files with 769 additions and 71 deletions

View file

@ -27,14 +27,14 @@ namespace Pgsql {
}
class QueryTab;
class MasterController;
class QCloseEvent;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
explicit MainWindow(MasterController *master, QWidget *parent);
~MainWindow();
void setConfig(const ConnectionConfig &config);
@ -51,6 +51,8 @@ private:
TSQueue m_taskQueue;
ConnectionConfig m_config;
MasterController *m_masterController;
QueryTab *GetActiveQueryTab();
@ -75,6 +77,7 @@ private slots:
void on_actionNew_SQL_triggered();
void on_tabWidget_tabCloseRequested(int index);
void on_actionExplain_triggered();
void on_actionShow_connection_manager_triggered();
};
#endif // MAINWINDOW_H