diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-18 10:56:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-18 10:56:29 +0100 |
commit | 07199e3b0545f27ed0701c20748f082fb145f2a4 (patch) | |
tree | 15e9a4cc205c11ff7cb32db5e1d2bc2ef3a264d2 /src/frontend/gui/ui/sisyphus.ui | |
parent | 17e31142c0021821319cd3effc5e9ba4cccf5d82 (diff) |
qt frontend : move the progress output do a dedicated window && ui tweaks
* buffer the progress messages when the progress window is hidden
* replay the buffer when the progress window is shown
* display real-time output when the progress window is shown
Diffstat (limited to 'src/frontend/gui/ui/sisyphus.ui')
-rw-r--r-- | src/frontend/gui/ui/sisyphus.ui | 433 |
1 files changed, 206 insertions, 227 deletions
diff --git a/src/frontend/gui/ui/sisyphus.ui b/src/frontend/gui/ui/sisyphus.ui index f2d5a06..b9cfb59 100644 --- a/src/frontend/gui/ui/sisyphus.ui +++ b/src/frontend/gui/ui/sisyphus.ui @@ -9,8 +9,8 @@ <rect> <x>0</x> <y>0</y> - <width>1024</width> - <height>576</height> + <width>1366</width> + <height>768</height> </rect> </property> <property name="sizePolicy"> @@ -21,8 +21,8 @@ </property> <property name="minimumSize"> <size> - <width>1024</width> - <height>576</height> + <width>1366</width> + <height>768</height> </size> </property> <property name="windowTitle"> @@ -49,6 +49,16 @@ <property name="spacing"> <number>15</number> </property> + <item row="3" column="0"> + <widget class="QProgressBar" name="progressBar"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>25</height> + </size> + </property> + </widget> + </item> <item row="1" column="0"> <widget class="QTableView" name="databaseTable"> <property name="frameShape"> @@ -101,242 +111,186 @@ </attribute> </widget> </item> - <item row="4" column="0"> - <widget class="QProgressBar" name="progressBar"> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>25</height> - </size> - </property> - </widget> - </item> <item row="2" column="0"> - <widget class="QPlainTextEdit" name="progressBox"> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Sunken</enum> - </property> - <property name="verticalScrollBarPolicy"> - <enum>Qt::ScrollBarAlwaysOn</enum> - </property> - <property name="textInteractionFlags"> - <set>Qt::TextSelectableByMouse</set> - </property> - <property name="placeholderText"> - <string>The progress output will be displayed here</string> - </property> - </widget> - </item> - <item row="0" column="0"> - <widget class="QWidget" name="inputLayout" native="true"> - <layout class="QHBoxLayout" name="inputGrid"> - <property name="spacing"> - <number>25</number> - </property> - <property name="leftMargin"> - <number>25</number> - </property> - <property name="rightMargin"> - <number>25</number> - </property> + <widget class="QWidget" name="actionLayout" native="true"> + <layout class="QHBoxLayout" name="actionGrid"> <item> - <widget class="QLabel" name="label1"> + <widget class="QToolButton" name="installButton"> <property name="minimumSize"> <size> - <width>0</width> - <height>30</height> + <width>125</width> + <height>48</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>30</height> + <width>175</width> + <height>64</height> </size> </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> + <property name="text"> + <string>Install Selected Package(s)</string> </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <property name="icon"> + <iconset> + <normaloff>../icon/install.png</normaloff>../icon/install.png</iconset> </property> - <property name="text"> - <string>Search by</string> + <property name="iconSize"> + <size> + <width>30</width> + <height>30</height> + </size> </property> - <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> </property> - <property name="scaledContents"> + <property name="autoRaise"> <bool>true</bool> </property> - <property name="textInteractionFlags"> - <set>Qt::NoTextInteraction</set> - </property> - <property name="buddy"> - <cstring>inputLayout</cstring> + <property name="arrowType"> + <enum>Qt::NoArrow</enum> </property> </widget> </item> <item> - <widget class="QComboBox" name="applicationFilter"> + <widget class="QToolButton" name="uninstallButton"> <property name="minimumSize"> <size> - <width>0</width> - <height>30</height> + <width>125</width> + <height>48</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>30</height> + <width>175</width> + <height>64</height> </size> </property> - <property name="frame"> - <bool>false</bool> + <property name="text"> + <string>Uninstall Selected Package(s)</string> </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label2"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> + <property name="icon"> + <iconset> + <normaloff>../icon/uninstall.png</normaloff>../icon/uninstall.png</iconset> </property> - <property name="maximumSize"> + <property name="iconSize"> <size> - <width>16777215</width> + <width>30</width> <height>30</height> </size> </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="mouseTracking"> - <bool>true</bool> - </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="text"> - <string>in</string> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> </property> - <property name="scaledContents"> + <property name="autoRaise"> <bool>true</bool> </property> - <property name="textInteractionFlags"> - <set>Qt::NoTextInteraction</set> + <property name="arrowType"> + <enum>Qt::NoArrow</enum> </property> </widget> </item> <item> - <widget class="QComboBox" name="databaseFilter"> + <widget class="QToolButton" name="upgradeButton"> <property name="minimumSize"> <size> - <width>0</width> - <height>30</height> + <width>125</width> + <height>48</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>30</height> + <width>175</width> + <height>64</height> </size> </property> - <property name="frame"> - <bool>false</bool> + <property name="text"> + <string>System Upgrade</string> </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="inputBox"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>30</height> - </size> + <property name="icon"> + <iconset> + <normaloff>../icon/upgrade.png</normaloff>../icon/upgrade.png</iconset> </property> - <property name="maximumSize"> + <property name="iconSize"> <size> - <width>16777215</width> + <width>30</width> <height>30</height> </size> </property> - <property name="placeholderText"> - <string>Type in the search term</string> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> </property> - <property name="clearButtonEnabled"> + <property name="autoRaise"> <bool>true</bool> </property> </widget> </item> <item> - <widget class="QPushButton" name="licenseButton"> + <widget class="QToolButton" name="autoremoveButton"> <property name="minimumSize"> <size> - <width>0</width> - <height>30</height> + <width>125</width> + <height>48</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>30</height> + <width>175</width> + <height>64</height> </size> </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">License Information</p></body></html></string> + <property name="text"> + <string>Purge Orphaned Package(s)</string> </property> <property name="icon"> <iconset> - <normaloff>../icon/license.png</normaloff>../icon/license.png</iconset> + <normaloff>../icon/orphans.png</normaloff>../icon/orphans.png</iconset> </property> <property name="iconSize"> <size> - <width>16</width> - <height>16</height> + <width>30</width> + <height>30</height> </size> </property> - <property name="flat"> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> + </property> + <property name="autoRaise"> <bool>true</bool> </property> </widget> </item> <item> - <widget class="QPushButton" name="settingsButton"> + <widget class="QToolButton" name="exitButton"> <property name="minimumSize"> <size> - <width>0</width> - <height>30</height> + <width>125</width> + <height>48</height> </size> </property> <property name="maximumSize"> <size> - <width>16777215</width> - <height>30</height> + <width>175</width> + <height>64</height> </size> </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Mirror Configuration</p></body></html></string> + <property name="text"> + <string>Exit Application</string> </property> <property name="icon"> <iconset> - <normaloff>../icon/settings.png</normaloff>../icon/settings.png</iconset> + <normaloff>../icon/exit.png</normaloff>../icon/exit.png</iconset> </property> <property name="iconSize"> <size> - <width>16</width> - <height>16</height> + <width>30</width> + <height>30</height> </size> </property> - <property name="flat"> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> + </property> + <property name="autoRaise"> <bool>true</bool> </property> </widget> @@ -344,186 +298,213 @@ </layout> </widget> </item> - <item row="3" column="0"> - <widget class="QWidget" name="actionLayout" native="true"> - <layout class="QHBoxLayout" name="actionGrid"> + <item row="0" column="0"> + <widget class="QWidget" name="inputLayout" native="true"> + <layout class="QHBoxLayout" name="inputGrid"> + <property name="spacing"> + <number>25</number> + </property> + <property name="leftMargin"> + <number>25</number> + </property> + <property name="rightMargin"> + <number>25</number> + </property> <item> - <widget class="QToolButton" name="installButton"> + <widget class="QLabel" name="label1"> <property name="minimumSize"> <size> - <width>125</width> - <height>48</height> + <width>0</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>175</width> - <height>64</height> + <width>16777215</width> + <height>30</height> </size> </property> - <property name="text"> - <string>Install Selected Package(s)</string> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> </property> - <property name="icon"> - <iconset> - <normaloff>../icon/install.png</normaloff>../icon/install.png</iconset> + <property name="frameShape"> + <enum>QFrame::StyledPanel</enum> </property> - <property name="iconSize"> - <size> - <width>30</width> - <height>30</height> - </size> + <property name="text"> + <string>Search by</string> </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextUnderIcon</enum> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> </property> - <property name="autoRaise"> + <property name="scaledContents"> <bool>true</bool> </property> - <property name="arrowType"> - <enum>Qt::NoArrow</enum> + <property name="textInteractionFlags"> + <set>Qt::NoTextInteraction</set> + </property> + <property name="buddy"> + <cstring>inputLayout</cstring> </property> </widget> </item> <item> - <widget class="QToolButton" name="uninstallButton"> + <widget class="QComboBox" name="applicationFilter"> <property name="minimumSize"> <size> - <width>125</width> - <height>48</height> + <width>0</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>175</width> - <height>64</height> + <width>16777215</width> + <height>30</height> </size> </property> - <property name="text"> - <string>Uninstall Selected Package(s)</string> + <property name="frame"> + <bool>false</bool> </property> - <property name="icon"> - <iconset> - <normaloff>../icon/uninstall.png</normaloff>../icon/uninstall.png</iconset> + </widget> + </item> + <item> + <widget class="QLabel" name="label2"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> </property> - <property name="iconSize"> + <property name="maximumSize"> <size> - <width>30</width> + <width>16777215</width> <height>30</height> </size> </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextUnderIcon</enum> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> </property> - <property name="autoRaise"> + <property name="mouseTracking"> <bool>true</bool> </property> - <property name="arrowType"> - <enum>Qt::NoArrow</enum> + <property name="frameShape"> + <enum>QFrame::StyledPanel</enum> + </property> + <property name="text"> + <string>in</string> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + <property name="textInteractionFlags"> + <set>Qt::NoTextInteraction</set> </property> </widget> </item> <item> - <widget class="QToolButton" name="upgradeButton"> + <widget class="QComboBox" name="databaseFilter"> <property name="minimumSize"> <size> - <width>125</width> - <height>48</height> + <width>0</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>175</width> - <height>64</height> + <width>16777215</width> + <height>30</height> </size> </property> - <property name="text"> - <string>System Upgrade</string> + <property name="frame"> + <bool>false</bool> </property> - <property name="icon"> - <iconset> - <normaloff>../icon/upgrade.png</normaloff>../icon/upgrade.png</iconset> + </widget> + </item> + <item> + <widget class="QLineEdit" name="inputBox"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>30</height> + </size> </property> - <property name="iconSize"> + <property name="maximumSize"> <size> - <width>30</width> + <width>16777215</width> <height>30</height> </size> </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextUnderIcon</enum> + <property name="placeholderText"> + <string>Type in the search term</string> </property> - <property name="autoRaise"> + <property name="clearButtonEnabled"> <bool>true</bool> </property> </widget> </item> <item> - <widget class="QToolButton" name="autoremoveButton"> + <widget class="QPushButton" name="progressButton"> <property name="minimumSize"> <size> - <width>125</width> - <height>48</height> + <width>60</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>175</width> - <height>64</height> + <width>16777215</width> + <height>30</height> </size> </property> - <property name="text"> - <string>Purge Orphaned Package(s)</string> + <property name="toolTip"> + <string><html><head/><body><p align="center">Show Progress</p></body></html></string> </property> <property name="icon"> <iconset> - <normaloff>../icon/orphans.png</normaloff>../icon/orphans.png</iconset> + <normaloff>../icon/progress.png</normaloff>../icon/progress.png</iconset> </property> <property name="iconSize"> <size> - <width>30</width> - <height>30</height> + <width>24</width> + <height>24</height> </size> </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextUnderIcon</enum> - </property> - <property name="autoRaise"> + <property name="flat"> <bool>true</bool> </property> </widget> </item> <item> - <widget class="QToolButton" name="exitButton"> + <widget class="QPushButton" name="settingsButton"> <property name="minimumSize"> <size> - <width>125</width> - <height>48</height> + <width>60</width> + <height>30</height> </size> </property> <property name="maximumSize"> <size> - <width>175</width> - <height>64</height> + <width>16777215</width> + <height>30</height> </size> </property> - <property name="text"> - <string>Exit Application</string> + <property name="toolTip"> + <string><html><head/><body><p align="center">Settings</p></body></html></string> </property> <property name="icon"> <iconset> - <normaloff>../icon/exit.png</normaloff>../icon/exit.png</iconset> + <normaloff>../icon/settings.png</normaloff>../icon/settings.png</iconset> </property> <property name="iconSize"> <size> - <width>30</width> - <height>30</height> + <width>24</width> + <height>24</height> </size> </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonTextUnderIcon</enum> - </property> - <property name="autoRaise"> + <property name="flat"> <bool>true</bool> </property> </widget> @@ -538,10 +519,8 @@ <tabstop>applicationFilter</tabstop> <tabstop>databaseFilter</tabstop> <tabstop>inputBox</tabstop> - <tabstop>licenseButton</tabstop> <tabstop>settingsButton</tabstop> <tabstop>databaseTable</tabstop> - <tabstop>progressBox</tabstop> <tabstop>installButton</tabstop> <tabstop>uninstallButton</tabstop> <tabstop>upgradeButton</tabstop> |