summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqtfrm.ui
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-09-08 20:34:36 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-09-08 20:34:36 +0200
commit328ff6d979c028ecba9c57d12c1e75637be20396 (patch)
tree1373b766c7a1b0a6551816f105ee7447c0f602ae /rbutil/rbutilqt/rbutilqtfrm.ui
parent4f99dd4264f9aaaccbf3da6bba37d5b2c7eb6f32 (diff)
downloadrockbox-328ff6d979c028ecba9c57d12c1e75637be20396.tar.gz
rockbox-328ff6d979c028ecba9c57d12c1e75637be20396.tar.bz2
rockbox-328ff6d979c028ecba9c57d12c1e75637be20396.zip
Add "Eject" button to main window.
Since especially Windows puts the eject functionality behind an icon in the systray which is usually hidden and doesn't complain if a USB drive is unplugged without ejecting it first ejecting such a device might not be obvious to everyone. Add a button to the main window allowing to eject the selected player. Currently only implemented for Windows. Change-Id: I785ac1482cda03a1379cf6d0fd0d9a0ff8130092
Diffstat (limited to 'rbutil/rbutilqt/rbutilqtfrm.ui')
-rw-r--r--rbutil/rbutilqt/rbutilqtfrm.ui77
1 files changed, 50 insertions, 27 deletions
diff --git a/rbutil/rbutilqt/rbutilqtfrm.ui b/rbutil/rbutilqt/rbutilqtfrm.ui
index 85da42ed01..65348dabfb 100644
--- a/rbutil/rbutilqt/rbutilqtfrm.ui
+++ b/rbutil/rbutilqt/rbutilqtfrm.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>650</width>
- <height>550</height>
+ <height>399</height>
</rect>
</property>
<property name="windowTitle">
@@ -31,24 +31,25 @@
<string>Device</string>
</property>
<layout class="QGridLayout" name="gridLayout">
- <item row="1" column="2">
- <widget class="QLabel" name="labelMountpoint">
- <property name="text">
- <string>mountpoint unknown or invalid</string>
+ <item row="0" column="0" rowspan="3">
+ <widget class="QLabel" name="labelPlayerPic">
+ <property name="lineWidth">
+ <number>1</number>
</property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QLabel" name="labelMountpointTitle">
<property name="text">
- <string>Mountpoint:</string>
+ <string/>
</property>
- </widget>
- </item>
- <item row="0" column="2">
- <widget class="QLabel" name="labelDevice">
- <property name="text">
- <string>device unknown or invalid</string>
+ <property name="pixmap">
+ <pixmap resource="rbutilqt.qrc">:/icons/rockbox-32.png</pixmap>
+ </property>
+ <property name="scaledContents">
+ <bool>false</bool>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ <property name="margin">
+ <number>3</number>
</property>
</widget>
</item>
@@ -65,6 +66,13 @@
</property>
</widget>
</item>
+ <item row="0" column="2">
+ <widget class="QLabel" name="labelDevice">
+ <property name="text">
+ <string>device unknown or invalid</string>
+ </property>
+ </widget>
+ </item>
<item row="0" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
@@ -78,24 +86,39 @@
</property>
</spacer>
</item>
- <item row="0" column="0" rowspan="2">
- <widget class="QLabel" name="labelPlayerPic">
+ <item row="0" column="4">
+ <widget class="QPushButton" name="buttonChangeDevice">
<property name="text">
- <string/>
+ <string>&amp;Change</string>
</property>
- <property name="scaledContents">
- <bool>true</bool>
+ <property name="icon">
+ <iconset resource="rbutilqt.qrc">
+ <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
</property>
</widget>
</item>
- <item row="0" column="4" rowspan="2">
- <widget class="QPushButton" name="buttonChangeDevice">
+ <item row="1" column="4" rowspan="2">
+ <widget class="QPushButton" name="buttonEject">
<property name="text">
- <string>&amp;Change</string>
+ <string>&amp;Eject</string>
</property>
<property name="icon">
<iconset resource="rbutilqt.qrc">
- <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
+ <normaloff>:/icons/media-eject.png</normaloff>:/icons/media-eject.png</iconset>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="labelMountpointTitle">
+ <property name="text">
+ <string>Mountpoint:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2">
+ <widget class="QLabel" name="labelMountpoint">
+ <property name="text">
+ <string>mountpoint unknown or invalid</string>
</property>
</widget>
</item>
@@ -130,7 +153,7 @@
<item row="1" column="0" colspan="2">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
- <number>7</number>
+ <number>0</number>
</property>
<widget class="QWidget" name="selective">
<attribute name="title">
@@ -388,7 +411,7 @@
<x>0</x>
<y>0</y>
<width>650</width>
- <height>23</height>
+ <height>21</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">