From e8868d63c39db975c8627c7fc87dfdd4f2308bf6 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Tue, 24 Apr 2007 15:34:07 +0000 Subject: moved *.glade and *.ui to one directory to omit the change of the config.py each time --- portato/constants.py | 4 +- portato/gui/templates/portato.glade | 1340 ++++++++++++++++++++++++++ portato/gui/templates/ui/AboutDialog.ui | 144 +++ portato/gui/templates/ui/EbuildDialog.ui | 88 ++ portato/gui/templates/ui/MainWindow.ui | 601 ++++++++++++ portato/gui/templates/ui/PreferenceWindow.ui | 280 ++++++ portato/gui/templates/ui/SearchDialog.ui | 78 ++ 7 files changed, 2533 insertions(+), 2 deletions(-) create mode 100644 portato/gui/templates/portato.glade create mode 100644 portato/gui/templates/ui/AboutDialog.ui create mode 100644 portato/gui/templates/ui/EbuildDialog.ui create mode 100644 portato/gui/templates/ui/MainWindow.ui create mode 100644 portato/gui/templates/ui/PreferenceWindow.ui create mode 100644 portato/gui/templates/ui/SearchDialog.ui (limited to 'portato') diff --git a/portato/constants.py b/portato/constants.py index 85fde6e..9b01eb8 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -13,9 +13,9 @@ CONFIG_DIR = "/etc/portato/" CONFIG_LOCATION = CONFIG_DIR+"portato.cfg" -DATA_DIR = "portato/gui/gtk/glade/" +DATA_DIR = "portato/gui/templates/" PLUGIN_DIR = "plugins/" VERSION = 9999 -FRONTENDS = ["gtk"] +FRONTENDS = ["gtk" ,"qt"] STD_FRONTEND = "gtk" diff --git a/portato/gui/templates/portato.glade b/portato/gui/templates/portato.glade new file mode 100644 index 0000000..2443bd1 --- /dev/null +++ b/portato/gui/templates/portato.glade @@ -0,0 +1,1340 @@ + + + + + + 2 + GTK_WIN_POS_CENTER + + + + + True + + + True + + + True + _File + True + + + True + + + True + _Preferences + True + + + + + True + 0 + 0 + gtk-preferences + 1 + + + + + + + True + Re_load Portage + True + + + + True + 0 + 0 + gtk-refresh + 1 + + + + + + + True + + + + + True + _Close + True + + + + True + 0 + 0 + gtk-quit + 1 + + + + + + + + + + + True + _Emerge + True + + + True + + + True + E_merge + True + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK + gtk-go-forward + + + + + + + True + _Unmerge + True + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK + gtk-go-back + + + + + + + True + Update _World + True + + + + + + True + + + + + True + _Sync + True + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK + gtk-refresh + + + + + + + True + Save _Flags + True + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK + gtk-save + + + + + + + True + + + + + True + _Kill Emerge + True + + + + + True + 0 + 0 + gtk-stop + 1 + + + + + + + + + + + False + True + _Queue + True + + + True + + + True + Oneshot + + + + + + + + + + False + True + _Console + True + + + True + + + True + _Copy + True + + + + True + 0 + 0 + gtk-copy + 1 + + + + + + + True + _Kill Emerge + True + + + + True + 0 + 0 + gtk-stop + 1 + + + + + + + + + + + True + _Plugins + True + + + True + + + + + + + True + _? + True + + + True + + + True + _About + True + + + + True + 0 + 0 + gtk-about + 1 + + + + + + + + + + + False + + + + + True + 3 + + + True + + + + 5 + + + + + True + _Search + True + + + + False + 1 + + + + + False + False + 1 + + + + + True + 300 + + + True + 0 + 0 + GTK_SHADOW_IN + + + True + 5 + True + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + 0 + + + + + + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + 0 + + + + + + 1 + + + + + + + + label_item + + + + + False + + + + + True + + + True + 4 + 2 + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + + + + + 2 + 2 + 3 + 5 + 5 + + + + + True + + + + + + 1 + 2 + GTK_FILL + 5 + + + + + True + GTK_JUSTIFY_CENTER + True + + + 2 + GTK_FILL + + 10 + + + + + True + True + <span foreground='red'><b>MISSING KEYWORD</b></span> + True + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + True + <b>Installed, but not in portage anymore</b> + True + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + True + 5 + GTK_BUTTONBOX_SPREAD + + + True + _Emerge + True + + + + + + True + _Unmerge + True + + + + 1 + + + + + True + Re_vert + True + + + + 2 + + + + + True + E_build + True + + + + 3 + + + + + 2 + 3 + 4 + + + + + + True + 1 + True + + + True + True + Installed + True + + + + False + + + + + True + True + Masked + True + + + + False + 1 + + + + + True + True + Testing + True + + + + False + 2 + + + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + False + False + + + + + True + Package + + + tab + False + False + + + + + True + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + False + False + + + + + + + + + True + 5 + True + GTK_BUTTONBOX_SPREAD + + + True + E_merge + True + + + + + + True + _Unmerge + True + + + + 1 + + + + + True + Update _World + True + + + + 2 + + + + + True + _Remove + True + + + + 3 + + + + + False + False + 1 + + + + + 1 + False + + + + + True + Queue + True + + + tab + 1 + False + False + + + + + True + + + + + + + + + 2 + False + + + + + True + Console + True + + + tab + 2 + False + False + + + + + + + 2 + + + + + True + 5 + + + True + 0 + 0 + Portato - A Portage GUI + True + + + + + False + False + 3 + + + + + + + About + False + True + GTK_WIN_POS_CENTER_ON_PARENT + 1 + 1 + True + True + + + True + + + True + + + True + True + GTK_JUSTIFY_CENTER + True + + + False + + + + + True + About + + + tab + False + False + + + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + True + True + False + + + + + 1 + False + + + + + True + Plugins + + + tab + 1 + False + False + + + + + + + True + _OK + True + + + + False + False + 1 + + + + + + + Search + False + True + GTK_WIN_POS_CENTER_ON_PARENT + 1 + 1 + True + True + + + + + + 5 + Preferences + True + GTK_WIN_POS_CENTER_ON_PARENT + True + True + + + True + 5 + + + True + 0 + + + True + 12 + + + True + + + True + Debug + True + + + + + True + Turn Use-Tips on + True + + + 1 + + + + + + + + + True + <b>General Options</b> + True + + + label_item + + + + + + + False + True + 0 + + + True + 12 + + + True + + + True + Portage + True + True + + + + + True + False + pkgCore + True + portageRadio + + + 1 + + + + + True + False + Paludis + True + portageRadio + + + 2 + + + + + + + + + True + <b>System Options</b> + True + + + label_item + + + + + 1 + + + + + True + 0 + + + True + 5 + 12 + 5 + + + True + + + True + Sync command: + + + False + + + + + True + + + 1 + + + + + + + + + True + <b>Sync Options</b> + True + + + label_item + + + + + 2 + + + + + True + 0 + + + True + 12 + + + True + + + True + --deep + True + + + False + + + + + True + --newuse + True + + + False + 1 + + + + + + + + + True + <b>Update World Options</b> + True + + + label_item + + + + + 3 + + + + + True + 0 + + + True + 5 + 12 + 5 + + + True + 10 + 2 + + + + + + + + + + + + True + 0 + 5 + <u><i>Masking Keywords</i></u> + True + True + + + 7 + 8 + 5 + + + + + True + 0 + 5 + <u><i>Testing Keywords</i></u> + True + True + + + 4 + 5 + 5 + + + + + True + 0 + 5 + <u><i>Use-Flags</i></u> + True + True + + + 1 + 2 + 6 + + + + + True + + + True + 0 + GTK_SHADOW_OUT + + + True + 0 + <u>You may use the following placeholders:</u> + +<i>$(cat)</i>: category +<i>$(pkg)</i>: package name +<i>$(cat-1)/$(cat-2)</i>: first/second part of the category + True + + + + + + label_item + + + + + + + 2 + + + + + True + Add only exact version to package.mask/package.unmask + True + + + 2 + 8 + 9 + + + + + True + 0 + File name to use, if package.mask/package.unmask is a directory: + True + + + 9 + 10 + + + + + True + + + 1 + 2 + 9 + 10 + + + + + True + + + 1 + 2 + 6 + 7 + + + + + True + 0 + File name to use, if package.keywords is a directory: + True + + + 6 + 7 + + + + + True + Add only exact version to package.keywords + True + + + 2 + 5 + 6 + + + + + True + Add only exact version to package.use + True + + + 2 + 2 + 3 + + + + + True + 0 + File name to use, if package.use is a directory: + True + + + 3 + 4 + + + + + True + + + 1 + 2 + 3 + 4 + + + + + + + + + True + <b>Use Flag and Keyword Options</b> + True + + + label_item + + + + + 4 + + + + + True + True + GTK_BUTTONBOX_SPREAD + + + True + _OK + True + + + + + + True + _Cancel + True + + + + 1 + + + + + 5 + + + + + + + True + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + + + + + + + diff --git a/portato/gui/templates/ui/AboutDialog.ui b/portato/gui/templates/ui/AboutDialog.ui new file mode 100644 index 0000000..1424270 --- /dev/null +++ b/portato/gui/templates/ui/AboutDialog.ui @@ -0,0 +1,144 @@ + + AboutDialog + + + Qt::ApplicationModal + + + + 0 + 0 + 369 + 270 + + + + About Portato + + + + 9 + + + 6 + + + + + 0 + + + + About + + + + 9 + + + 6 + + + + + TextLabel + + + Qt::AlignCenter + + + true + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + Plugins + + + + 9 + + + 6 + + + + + QAbstractItemView::NoEditTriggers + + + false + + + false + + + 2 + + + + 1 + + + + + 1 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Ok + + + true + + + + + + + + + buttonBox + accepted() + AboutDialog + accept() + + + 174 + 252 + + + 176 + 197 + + + + + diff --git a/portato/gui/templates/ui/EbuildDialog.ui b/portato/gui/templates/ui/EbuildDialog.ui new file mode 100644 index 0000000..831a93b --- /dev/null +++ b/portato/gui/templates/ui/EbuildDialog.ui @@ -0,0 +1,88 @@ + + EbuildDialog + + + + 0 + 0 + 481 + 603 + + + + Dialog + + + + 9 + + + 6 + + + + + false + + + true + + + false + + + 0 + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Ok + + + true + + + + + + + + + buttonBox + accepted() + EbuildDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + EbuildDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/portato/gui/templates/ui/MainWindow.ui b/portato/gui/templates/ui/MainWindow.ui new file mode 100644 index 0000000..5b8d0d9 --- /dev/null +++ b/portato/gui/templates/ui/MainWindow.ui @@ -0,0 +1,601 @@ + + MainWindow + + + + 0 + 0 + 466 + 695 + + + + Portato + + + + + + + + 9 + + + 6 + + + + + 0 + + + 6 + + + + + + + + &Search + + + + + + + + + Qt::Vertical + + + + + 0 + + + 6 + + + + + false + + + QFrame::Sunken + + + QAbstractItemView::NoEditTriggers + + + + + + + QAbstractItemView::NoEditTriggers + + + false + + + true + + + + + + + + 1 + + + + Package + + + + 9 + + + 6 + + + + + TextLabel + + + Qt::AlignCenter + + + + + + + TextLabel + + + Qt::AlignCenter + + + + + + + 0 + + + 6 + + + + + + 3 + 0 + 0 + 0 + + + + + + + + + 13 + 5 + 0 + 0 + + + + <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:9pt; 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=" font-weight:600; color:#ff0000;">MISSING KEYWORD</span></p></body></html> + + + + + + + + 13 + 5 + 0 + 0 + + + + <b>Installed, but not in portage anymore</b> + + + + + + + + 3 + 5 + 0 + 0 + + + + Installed + + + + + + + + 3 + 0 + 0 + 0 + + + + Masked + + + + + + + true + + + + 3 + 0 + 0 + 0 + + + + Testing + + + + + + + + + Qt::ScrollBarAsNeeded + + + QAbstractItemView::NoEditTriggers + + + Qt::ElideNone + + + true + + + false + + + false + + + 3 + + + + 1 + + + + + 1 + + + + + 2 + + + + + + + + 0 + + + 6 + + + + + &Emerge + + + + + + + &Unmerge + + + + + + + Re&vert + + + + + + + E&build + + + + + + + + + + Queue + + + + 0 + + + 6 + + + + + Qt::ActionsContextMenu + + + QAbstractItemView::NoEditTriggers + + + 2 + + + + 1 + + + + + 1 + + + + + + + + 2 + + + 6 + + + + + + 1 + 0 + 0 + 0 + + + + E&merge + + + + + + + &Unmerge + + + + + + + Update &World + + + + + + + &Remove + + + + + + + + + + Console + + + + + + + + + + + 0 + 0 + 466 + 27 + + + + + &File + + + + + + + + + &? + + + + + + &Emerge + + + + + + + + + + + + + + + + + true + + + + + + + + &Quit + + + QAction::QuitRole + + + + + &About + + + QAction::AboutRole + + + + + &Emerge + + + + + &Unmerge + + + + + Update &World + + + + + &Preferences + + + QAction::PreferencesRole + + + + + S&ync + + + + + Save &Flage + + + + + Ki&ll Emerge + + + + + &Reload Portage + + + + + &Oneshot + + + + + + UncheckBox + QCheckBox +
portato/gui/qt/uncheckbox.h
+
+
+ + + + quitAction + triggered() + MainWindow + close() + + + -1 + -1 + + + 361 + 299 + + + + + searchEdit + returnPressed() + searchBtn + click() + + + 287 + 49 + + + 400 + 55 + + + + + emergeAction + triggered() + emergeBtn + click() + + + -1 + -1 + + + 66 + 642 + + + + + unmergeAction + triggered() + unmergeBtn + click() + + + -1 + -1 + + + 177 + 642 + + + + + updateAction + triggered() + updateBtn + click() + + + -1 + -1 + + + 288 + 642 + + + + +
diff --git a/portato/gui/templates/ui/PreferenceWindow.ui b/portato/gui/templates/ui/PreferenceWindow.ui new file mode 100644 index 0000000..fd4ccfa --- /dev/null +++ b/portato/gui/templates/ui/PreferenceWindow.ui @@ -0,0 +1,280 @@ + + PreferencesWindow + + + + 0 + 0 + 570 + 729 + + + + Preferences + + + + 9 + + + 6 + + + + + General Options + + + Qt::AlignLeading + + + + 9 + + + 0 + + + + + Debug + + + + + + + Use icons in package list + + + + + + + + + + Sync Options + + + + 9 + + + 6 + + + + + Sync command: + + + + + + + + + + + + + Update World Options + + + + 9 + + + 0 + + + + + --deep + + + + + + + --newuse + + + + + + + + + + Use Flag and Keyword Options + + + + 9 + + + 6 + + + + + <u><i>Masking Keywords</u></i> + + + + + + + <i><u>Use Flags</u></i> + + + + + + + portato + + + + + + + Add only exact version to package.keywords + + + + + + + File name to use, if package.keywords is a directory + + + + + + + File name to use if package.mask/.unmask is a directory + + + + + + + Add only exact version to package.use + + + + + + + portato + + + + + + + <i><u>Testing Keywords</u></i> + + + + + + + File name to use, if package.use is a directory + + + + + + + Add only exact version to package.mask/.unmask + + + + + + + portato + + + + + + + true + + + QFrame::StyledPanel + + + QFrame::Raised + + + <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> + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + + + true + + + + + + + + + buttonBox + accepted() + PreferencesWindow + accept() + + + 227 + 676 + + + 157 + 274 + + + + + buttonBox + rejected() + PreferencesWindow + reject() + + + 295 + 682 + + + 286 + 274 + + + + + diff --git a/portato/gui/templates/ui/SearchDialog.ui b/portato/gui/templates/ui/SearchDialog.ui new file mode 100644 index 0000000..02c62ff --- /dev/null +++ b/portato/gui/templates/ui/SearchDialog.ui @@ -0,0 +1,78 @@ + + SearchDialog + + + Qt::ApplicationModal + + + + 0 + 0 + 246 + 97 + + + + Search... + + + + 9 + + + 6 + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + + + true + + + + + + + + + buttonBox + accepted() + SearchDialog + accept() + + + 164 + 112 + + + 157 + 70 + + + + + buttonBox + rejected() + SearchDialog + reject() + + + 164 + 112 + + + 173 + 70 + + + + + -- cgit v1.2.3-54-g00ecf