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:
parent
b6d986051b
commit
6370050204
36 changed files with 769 additions and 71 deletions
|
|
@ -7,8 +7,8 @@ namespace Ui {
|
|||
class ConnectionManagerWindow;
|
||||
}
|
||||
|
||||
class ConnectionListModel;
|
||||
class ConnectionConfig;
|
||||
class MasterController;
|
||||
class QDataWidgetMapper;
|
||||
class QStandardItemModel;
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ class ConnectionManagerWindow : public QMainWindow
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ConnectionManagerWindow(QWidget *parent = 0);
|
||||
explicit ConnectionManagerWindow(MasterController *master, QWidget *parent = 0);
|
||||
~ConnectionManagerWindow();
|
||||
|
||||
private slots:
|
||||
|
|
@ -29,10 +29,12 @@ private slots:
|
|||
|
||||
void on_actionQuit_application_triggered();
|
||||
|
||||
void on_actionBackup_database_triggered();
|
||||
|
||||
private:
|
||||
Ui::ConnectionManagerWindow *ui;
|
||||
ConnectionListModel *m_listModel = nullptr;
|
||||
QDataWidgetMapper *m_mapper = nullptr;
|
||||
MasterController *m_masterController;
|
||||
|
||||
int prevSelection = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue