Mercurial > hg > octave-lyh
diff gui/src/SettingsDialog.ui @ 13531:bb3676025b36
User can set a custom file editor instead of the built-in one.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 24 Jul 2011 20:52:48 +0200 |
parents | 86d6c3b90ad7 |
children | 869c62c15e95 |
line wrap: on
line diff
--- a/gui/src/SettingsDialog.ui +++ b/gui/src/SettingsDialog.ui @@ -10,26 +10,26 @@ <x>0</x> <y>0</y> <width>500</width> - <height>270</height> + <height>300</height> </rect> </property> <property name="minimumSize"> <size> <width>500</width> - <height>270</height> + <height>300</height> </size> </property> <property name="maximumSize"> <size> <width>500</width> - <height>270</height> + <height>300</height> </size> </property> <property name="windowTitle"> <string>Settings</string> </property> - <layout class="QGridLayout" name="gridLayout"> - <item row="1" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> <widget class="QTabWidget" name="tabWidget"> <property name="currentIndex"> <number>0</number> @@ -106,6 +106,9 @@ </item> <item> <widget class="QLineEdit" name="nickServPassword"> + <property name="enabled"> + <bool>false</bool> + </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> @@ -117,10 +120,122 @@ </item> </layout> </widget> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Editor</string> + </attribute> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QCheckBox" name="useCustomFileEditor"> + <property name="text"> + <string>Use custom file editor:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="customFileEditor"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>emacs</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="0"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>158</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> </widget> </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <widget class="QPushButton" name="resetButton"> + <property name="text"> + <string>Reset to defaults</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="exportButton"> + <property name="text"> + <string>Export</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="importButton"> + <property name="text"> + <string>Import</string> + </property> + </widget> + </item> + </layout> + </item> </layout> </widget> <resources/> - <connections/> + <connections> + <connection> + <sender>useCustomFileEditor</sender> + <signal>toggled(bool)</signal> + <receiver>customFileEditor</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>111</x> + <y>62</y> + </hint> + <hint type="destinationlabel"> + <x>343</x> + <y>63</y> + </hint> + </hints> + </connection> + <connection> + <sender>autoIdentification</sender> + <signal>toggled(bool)</signal> + <receiver>nickServPassword</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>144</y> + </hint> + <hint type="destinationlabel"> + <x>384</x> + <y>229</y> + </hint> + </hints> + </connection> + </connections> </ui>