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.
270 lines
7.6 KiB
XML
270 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ConnectionManagerWindow</class>
|
|
<widget class="QMainWindow" name="ConnectionManagerWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>pglab - Connection Manager</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QSplitter" name="splitter">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<widget class="QListView" name="listView">
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="uniformItemSizes">
|
|
<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_6">
|
|
<property name="text">
|
|
<string>Password</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QLineEdit" name="edtPassword">
|
|
<property name="echoMode">
|
|
<enum>QLineEdit::Password</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>Database</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QLineEdit" name="edtDbname"/>
|
|
</item>
|
|
<item row="6" 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_7">
|
|
<property name="text">
|
|
<string>SSL</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="0">
|
|
<widget class="QLabel" name="label_8">
|
|
<property name="text">
|
|
<string>Certificate</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="1">
|
|
<widget class="QLineEdit" name="edtCert"/>
|
|
</item>
|
|
<item row="8" column="0">
|
|
<widget class="QLabel" name="label_9">
|
|
<property name="text">
|
|
<string>Key</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="1">
|
|
<widget class="QLineEdit" name="edtKey"/>
|
|
</item>
|
|
<item row="9" column="0">
|
|
<widget class="QLabel" name="label_10">
|
|
<property name="text">
|
|
<string>Root cert.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="1">
|
|
<widget class="QLineEdit" name="edtRootCert"/>
|
|
</item>
|
|
<item row="10" column="0">
|
|
<widget class="QLabel" name="label_11">
|
|
<property name="text">
|
|
<string>Revocation list</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="1">
|
|
<widget class="QLineEdit" name="edtCrl"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>25</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuFile">
|
|
<property name="title">
|
|
<string>File</string>
|
|
</property>
|
|
<addaction name="actionQuit_application"/>
|
|
</widget>
|
|
<addaction name="menuFile"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
<widget class="QToolBar" name="toolBar">
|
|
<property name="windowTitle">
|
|
<string>toolBar</string>
|
|
</property>
|
|
<property name="movable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="floatable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<attribute name="toolBarArea">
|
|
<enum>TopToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<addaction name="actionConnect"/>
|
|
<addaction name="actionAdd_Connection"/>
|
|
<addaction name="actionDelete_connection"/>
|
|
</widget>
|
|
<action name="actionAdd_Connection">
|
|
<property name="icon">
|
|
<iconset resource="resources.qrc">
|
|
<normaloff>:/icons/server_add.png</normaloff>:/icons/server_add.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Add Connection</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionDelete_connection">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normalon>:/icons/server_delete.png</normalon>
|
|
</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Delete connection</string>
|
|
</property>
|
|
<property name="iconText">
|
|
<string>Delete</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionConnect">
|
|
<property name="icon">
|
|
<iconset resource="resources.qrc">
|
|
<normaloff>:/icons/server_go.png</normaloff>:/icons/server_go.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Connect</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionQuit_application">
|
|
<property name="text">
|
|
<string>Quit application</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources>
|
|
<include location="resources.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|