pgLab/pglab/ConnectionManagerWindow.h
eelke b09e8a6d4b ConnectionManager overhaul
- connection settings are now changed by seperate component currently called in a seperate window
- old settings pane on the right of the connections had been removed
- new edit config button added between new connection and remove connection
2019-08-24 20:47:32 +02:00

43 lines
1.1 KiB
C++

#ifndef CONNECTIONMANAGERWINDOW_H
#define CONNECTIONMANAGERWINDOW_H
#include <QMainWindow>
#include <optional>
namespace Ui {
class ConnectionManagerWindow;
}
class ConnectionConfig;
class ConnectionController;
class MasterController;
class QStandardItemModel;
/** \brief Class that holds glue code for the ConnectionManager UI.
*
*/
class ConnectionManagerWindow : public QMainWindow {
Q_OBJECT
public:
explicit ConnectionManagerWindow(MasterController *master, QWidget *parent = nullptr);
~ConnectionManagerWindow();
private slots:
void on_actionAdd_Connection_triggered();
void on_actionDelete_connection_triggered();
void on_actionConnect_triggered();
void on_actionQuit_application_triggered();
void on_actionBackup_database_triggered();
void on_actionManage_server_triggered();
void on_listView_activated(const QModelIndex &index);
void on_actionConfigure_connection_triggered();
private:
Ui::ConnectionManagerWindow *ui;
MasterController *m_masterController;
ConnectionController *m_connectionController;
};
#endif // CONNECTIONMANAGERWINDOW_H