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
10
main.cpp
10
main.cpp
|
|
@ -1,8 +1,7 @@
|
|||
//#include "mainwindow.h"
|
||||
//#include "databasewindow.h"
|
||||
#include "connectionmanagerwindow.h"
|
||||
#include "MasterController.h"
|
||||
#include <QApplication>
|
||||
#include <winsock2.h>
|
||||
#include <memory>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
|
@ -24,8 +23,9 @@ int main(int argc, char *argv[])
|
|||
QCoreApplication::setOrganizationDomain("eelkeklein.nl");
|
||||
QCoreApplication::setApplicationName("pglab");
|
||||
|
||||
ConnectionManagerWindow w;
|
||||
w.show();
|
||||
auto master_controller = std::make_unique<MasterController>();
|
||||
master_controller->init();
|
||||
|
||||
|
||||
int result = a.exec();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue