diff options
author | necoro <> | 2007-04-16 16:35:39 +0000 |
---|---|---|
committer | necoro <> | 2007-04-16 16:35:39 +0000 |
commit | 35d7c73cf74e891b6ead631444e4e470b3a7a941 (patch) | |
tree | 39bbab5669a1e2ab239fcd4698c23f9aeaa09e82 /portato/gui/qt/ui | |
parent | 19f9e0b5234693cf7e27a24c94f2136cd90be8c7 (diff) | |
download | portato-35d7c73cf74e891b6ead631444e4e470b3a7a941.tar.gz portato-35d7c73cf74e891b6ead631444e4e470b3a7a941.tar.bz2 portato-35d7c73cf74e891b6ead631444e4e470b3a7a941.zip |
added preferences for Qt-Frontend
Diffstat (limited to 'portato/gui/qt/ui')
-rw-r--r-- | portato/gui/qt/ui/MainWindow.ui | 18 | ||||
-rw-r--r-- | portato/gui/qt/ui/PreferenceWindow.ui | 273 |
2 files changed, 285 insertions, 6 deletions
diff --git a/portato/gui/qt/ui/MainWindow.ui b/portato/gui/qt/ui/MainWindow.ui index 2830291..14127c9 100644 --- a/portato/gui/qt/ui/MainWindow.ui +++ b/portato/gui/qt/ui/MainWindow.ui @@ -394,12 +394,6 @@ p, li { white-space: pre-wrap; } <height>31</height> </rect> </property> - <widget class="QMenu" name="menuFile" > - <property name="title" > - <string>&File</string> - </property> - <addaction name="quitAction" /> - </widget> <widget class="QMenu" name="menuHelp" > <property name="title" > <string>&?</string> @@ -415,6 +409,13 @@ p, li { white-space: pre-wrap; } <addaction name="updateAction" /> <addaction name="separator" /> </widget> + <widget class="QMenu" name="menuFile" > + <property name="title" > + <string>&File</string> + </property> + <addaction name="prefAction" /> + <addaction name="quitAction" /> + </widget> <addaction name="menuFile" /> <addaction name="menu_Emerge" /> <addaction name="menuHelp" /> @@ -455,6 +456,11 @@ p, li { white-space: pre-wrap; } <string>Update &World</string> </property> </action> + <action name="prefAction" > + <property name="text" > + <string>&Preferences</string> + </property> + </action> </widget> <customwidgets> <customwidget> diff --git a/portato/gui/qt/ui/PreferenceWindow.ui b/portato/gui/qt/ui/PreferenceWindow.ui new file mode 100644 index 0000000..f65c2fa --- /dev/null +++ b/portato/gui/qt/ui/PreferenceWindow.ui @@ -0,0 +1,273 @@ +<ui version="4.0" > + <class>PreferencesWindow</class> + <widget class="QDialog" name="PreferencesWindow" > + <property name="geometry" > + <rect> + <x>0</x> + <y>0</y> + <width>582</width> + <height>706</height> + </rect> + </property> + <property name="windowTitle" > + <string>Preferences</string> + </property> + <layout class="QVBoxLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item> + <widget class="QGroupBox" name="generalBox" > + <property name="title" > + <string>General Options</string> + </property> + <property name="alignment" > + <set>Qt::AlignLeading</set> + </property> + <layout class="QVBoxLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>0</number> + </property> + <item> + <widget class="QCheckBox" name="debugCheck" > + <property name="text" > + <string>Debug</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="syncBox" > + <property name="title" > + <string>Sync Options</string> + </property> + <layout class="QHBoxLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item> + <widget class="QLabel" name="label" > + <property name="text" > + <string>Sync command:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="syncCmdEdit" /> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="updateBox" > + <property name="title" > + <string>Update World Options</string> + </property> + <layout class="QVBoxLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>0</number> + </property> + <item> + <widget class="QCheckBox" name="deepCheck" > + <property name="text" > + <string>--deep</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="newUseCheck" > + <property name="text" > + <string>--newuse</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="flagBox" > + <property name="title" > + <string>Use Flag and Keyword Options</string> + </property> + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="7" column="0" > + <widget class="QLabel" name="label_7" > + <property name="text" > + <string><u><i>Masking Keywords</u></i></string> + </property> + </widget> + </item> + <item row="1" column="0" > + <widget class="QLabel" name="label_3" > + <property name="text" > + <string><i><u>Use Flags</u></i></string> + </property> + </widget> + </item> + <item row="9" column="1" > + <widget class="QLineEdit" name="maskEdit" > + <property name="text" > + <string>portato</string> + </property> + </widget> + </item> + <item row="5" column="0" > + <widget class="QCheckBox" name="testingCheck" > + <property name="text" > + <string>Add only exact version to package.keywords</string> + </property> + </widget> + </item> + <item row="6" column="0" > + <widget class="QLabel" name="label_6" > + <property name="text" > + <string>File name to use, if package.keywords is a directory</string> + </property> + </widget> + </item> + <item row="9" column="0" > + <widget class="QLabel" name="label_8" > + <property name="text" > + <string>File name to use if package.mask/.unmask is a directory</string> + </property> + </widget> + </item> + <item row="2" column="0" > + <widget class="QCheckBox" name="useCheck" > + <property name="text" > + <string>Add only exact version to package.use</string> + </property> + </widget> + </item> + <item row="3" column="1" > + <widget class="QLineEdit" name="useEdit" > + <property name="text" > + <string>portato</string> + </property> + </widget> + </item> + <item row="4" column="0" > + <widget class="QLabel" name="label_5" > + <property name="text" > + <string><i><u>Testing Keywords</u></i></string> + </property> + </widget> + </item> + <item row="3" column="0" > + <widget class="QLabel" name="label_4" > + <property name="text" > + <string>File name to use, if package.use is a directory</string> + </property> + </widget> + </item> + <item row="8" column="0" > + <widget class="QCheckBox" name="maskCheck" > + <property name="text" > + <string>Add only exact version to package.mask/.unmask</string> + </property> + </widget> + </item> + <item row="6" column="1" > + <widget class="QLineEdit" name="testingEdit" > + <property name="text" > + <string>portato</string> + </property> + </widget> + </item> + <item row="0" column="0" colspan="2" > + <widget class="QLabel" name="hintLabel" > + <property name="autoFillBackground" > + <bool>true</bool> + </property> + <property name="frameShape" > + <enum>QFrame::StyledPanel</enum> + </property> + <property name="frameShadow" > + <enum>QFrame::Raised</enum> + </property> + <property name="text" > + <string><html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:11pt; font-weight:400; font-style:normal; text-decoration:none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">You may use the following placeholders:</span> </p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">$(cat)</span>: category</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">$(pkg)</span>: package name</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">$(cat-1)/$(cat-2)</span>: first/second part of the category</p></body></html></string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QDialogButtonBox" name="buttonBox" > + <property name="orientation" > + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons" > + <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> + </property> + <property name="centerButtons" > + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>PreferencesWindow</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel" > + <x>227</x> + <y>676</y> + </hint> + <hint type="destinationlabel" > + <x>157</x> + <y>274</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>PreferencesWindow</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel" > + <x>295</x> + <y>682</y> + </hint> + <hint type="destinationlabel" > + <x>286</x> + <y>274</y> + </hint> + </hints> + </connection> + </connections> +</ui> |