Skip to content

Commit

Permalink
Updated settings dialog UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugnius committed Jun 12, 2018
1 parent d893c58 commit 647986e
Showing 1 changed file with 126 additions and 11 deletions.
137 changes: 126 additions & 11 deletions src/dialogs/settingsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,149 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>480</width>
<height>310</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>Settings</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<widget class="QDialogButtonBox" name="settingsButtonBox">
<property name="geometry">
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
<x>10</x>
<y>270</y>
<width>460</width>
<height>30</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QGroupBox" name="apiGroupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>460</width>
<height>190</height>
</rect>
</property>
<property name="title">
<string>APIs Settings</string>
</property>
<widget class="QListWidget" name="apisList">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>120</width>
<height>150</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="apiKeyLabel">
<property name="geometry">
<rect>
<x>140</x>
<y>30</y>
<width>51</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>API key</string>
</property>
</widget>
<widget class="QLineEdit" name="apiKeyLineEdit">
<property name="geometry">
<rect>
<x>140</x>
<y>50</y>
<width>310</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="defaultSourceLanguageLabel">
<property name="geometry">
<rect>
<x>140</x>
<y>80</y>
<width>121</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Default source language</string>
</property>
</widget>
<widget class="QLineEdit" name="defaultSourceLanguageLineEdit">
<property name="geometry">
<rect>
<x>140</x>
<y>100</y>
<width>310</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="defaultTargetLanguageLabel">
<property name="geometry">
<rect>
<x>140</x>
<y>130</y>
<width>121</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Default target language</string>
</property>
</widget>
<widget class="QLineEdit" name="defaultTargetLanguageLineEdit">
<property name="geometry">
<rect>
<x>140</x>
<y>150</y>
<width>310</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<widget class="QLabel" name="defaultApiLabel">
<property name="geometry">
<rect>
<x>10</x>
<y>210</y>
<width>61</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Defaiult API</string>
</property>
</widget>
<widget class="QComboBox" name="defaultApiComboBox">
<property name="geometry">
<rect>
<x>10</x>
<y>230</y>
<width>460</width>
<height>21</height>
</rect>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<sender>settingsButtonBox</sender>
<signal>accepted()</signal>
<receiver>SettingsDialog</receiver>
<slot>accept()</slot>
Expand All @@ -49,7 +164,7 @@
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<sender>settingsButtonBox</sender>
<signal>rejected()</signal>
<receiver>SettingsDialog</receiver>
<slot>reject()</slot>
Expand Down

0 comments on commit 647986e

Please sign in to comment.