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
This commit is contained in:
eelke 2019-08-24 20:47:32 +02:00
parent 78247c7abe
commit b09e8a6d4b
20 changed files with 836 additions and 733 deletions

View file

@ -0,0 +1,60 @@
#ifndef CONNECTIONCONFIGURATIONWIDGET_H
#define CONNECTIONCONFIGURATIONWIDGET_H
#include <QWidget>
#include <QUuid>
class ConnectionController;
class ConnectionConfig;
class QFormLayout;
class QLabel;
class QLineEdit;
class QSpinBox;
class QComboBox;
class QDataWidgetMapper;
class ConnectionConfigurationWidget : public QWidget
{
Q_OBJECT
public:
static void editExistingInWindow(ConnectionController *ctrl, const ConnectionConfig &cfg);
explicit ConnectionConfigurationWidget(QWidget *parent = nullptr);
void retranslateUi();
void setData(const ConnectionConfig &cfg);
ConnectionConfig data() const;
signals:
private:
QUuid m_uuid;
QFormLayout *formLayout;
QLabel *lblName;
QLineEdit *edtName;
QLabel *lblHost;
QLineEdit *edtHost;
QLabel *lblPort;
QSpinBox *spinPort;
QLabel *lblUser;
QLineEdit *edtUser;
QLabel *lblDbName;
QLineEdit *edtDbname;
QLabel *lblSsl;
QComboBox *cmbbxSsl;
QLabel *lblCert;
QLineEdit *edtCert;
QLabel *lblKey;
QLineEdit *edtKey;
QLabel *lblRootCert;
QLineEdit *edtRootCert;
QLabel *lblCrl;
QLineEdit *edtCrl;
public slots:
};
#endif // CONNECTIONCONFIGURATIONWIDGET_H