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

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>413</width>
<height>600</height>
</rect>
</property>
@ -28,148 +28,6 @@
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Name</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="edtName"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Host</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="edtHost"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Port</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spinPort">
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Username</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="edtUser"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Database</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="edtDbname"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>SSL</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="cmbbxSsl">
<property name="currentIndex">
<number>2</number>
</property>
<item>
<property name="text">
<string>reject</string>
</property>
</item>
<item>
<property name="text">
<string>allow</string>
</property>
</item>
<item>
<property name="text">
<string>prefer</string>
</property>
</item>
<item>
<property name="text">
<string>require</string>
</property>
</item>
<item>
<property name="text">
<string>verify-ca</string>
</property>
</item>
<item>
<property name="text">
<string>verify-full</string>
</property>
</item>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Certificate</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLineEdit" name="edtCert"/>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Key</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="edtKey"/>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Root cert.</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="edtRootCert"/>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Revocation list</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QLineEdit" name="edtCrl"/>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
@ -179,7 +37,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>413</width>
<height>20</height>
</rect>
</property>
@ -224,6 +82,7 @@ QToolButton {
<addaction name="actionManage_server"/>
<addaction name="separator"/>
<addaction name="actionAdd_Connection"/>
<addaction name="actionConfigure_connection"/>
<addaction name="actionDelete_connection"/>
<addaction name="separator"/>
<addaction name="actionBackup_database"/>
@ -285,6 +144,16 @@ QToolButton {
<string>Manage server</string>
</property>
</action>
<action name="actionConfigure_connection">
<property name="icon">
<iconset>
<normalon>:/icons/server_configuration.png</normalon>
</iconset>
</property>
<property name="text">
<string>Configure connection</string>
</property>
</action>
</widget>
<resources>
<include location="resources.qrc"/>