Query window has now buttons with icons made in the designer for better looks. Depending on received responses from the database the tabcontrol with the message, data and explain tab now switches to the appropriate tab.
40 lines
874 B
C++
40 lines
874 B
C++
#ifndef CONNECTIONMANAGERWINDOW_H
|
|
#define CONNECTIONMANAGERWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
namespace Ui {
|
|
class ConnectionManagerWindow;
|
|
}
|
|
|
|
class ConnectionListModel;
|
|
class ConnectionConfig;
|
|
class QDataWidgetMapper;
|
|
class QStandardItemModel;
|
|
|
|
class ConnectionManagerWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConnectionManagerWindow(QWidget *parent = 0);
|
|
~ConnectionManagerWindow();
|
|
|
|
private slots:
|
|
void on_actionAdd_Connection_triggered();
|
|
void on_currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
|
void on_actionDelete_connection_triggered();
|
|
|
|
void on_actionConnect_triggered();
|
|
|
|
void on_actionQuit_application_triggered();
|
|
|
|
private:
|
|
Ui::ConnectionManagerWindow *ui;
|
|
ConnectionListModel *m_listModel = nullptr;
|
|
QDataWidgetMapper *m_mapper = nullptr;
|
|
|
|
void setupWidgetMappings();
|
|
};
|
|
|
|
#endif // CONNECTIONMANAGERWINDOW_H
|