diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-10-12 16:19:35 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-10-12 16:19:35 +0000 |
commit | 79d358bacab7d8818e9db1f7e532e7ad07939ed8 (patch) | |
tree | 1f7891a8d25481d494f13996c70ed11687187e52 /rbutil/rbutilqt | |
parent | 611f2bc77abfbe268caa7c5239256b0570401335 (diff) | |
download | rockbox-79d358bacab7d8818e9db1f7e532e7ad07939ed8.tar.gz rockbox-79d358bacab7d8818e9db1f7e532e7ad07939ed8.zip |
Add new "actions" menu which allows accessing the install / uninstall actions from the menu. Manual and Info tab are still missing from the menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15088 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 13 | ||||
-rw-r--r-- | rbutil/rbutilqt/rbutilqtfrm.ui | 160 |
2 files changed, 173 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 21ccf92d59..5c64466119 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp | |||
@@ -105,6 +105,19 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) | |||
105 | connect(ui.buttonSmall, SIGNAL(clicked()), this, SLOT(smallInstall())); | 105 | connect(ui.buttonSmall, SIGNAL(clicked()), this, SLOT(smallInstall())); |
106 | connect(ui.buttonComplete, SIGNAL(clicked()), this, SLOT(completeInstall())); | 106 | connect(ui.buttonComplete, SIGNAL(clicked()), this, SLOT(completeInstall())); |
107 | 107 | ||
108 | // actions accessible from the menu | ||
109 | connect(ui.actionComplete_Installation, SIGNAL(triggered()), this, SLOT(completeInstall())); | ||
110 | connect(ui.actionSmall_Installation, SIGNAL(triggered()), this, SLOT(smallInstall())); | ||
111 | connect(ui.actionInstall_Bootloader, SIGNAL(triggered()), this, SLOT(installBootloaderBtn())); | ||
112 | connect(ui.actionInstall_Rockbox, SIGNAL(triggered()), this, SLOT(installBtn())); | ||
113 | connect(ui.actionFonts_Package, SIGNAL(triggered()), this, SLOT(installFontsBtn())); | ||
114 | connect(ui.actionInstall_Themes, SIGNAL(triggered()), this, SLOT(installThemes())); | ||
115 | connect(ui.actionInstall_Game_Files, SIGNAL(triggered()), this, SLOT(installDoomBtn())); | ||
116 | connect(ui.actionInstall_Voice_File, SIGNAL(triggered()), this, SLOT(installVoice())); | ||
117 | connect(ui.actionCreate_Talk_Files, SIGNAL(triggered()), this, SLOT(createTalkFiles())); | ||
118 | connect(ui.actionRemove_bootloader, SIGNAL(triggered()), this, SLOT(uninstallBootloader())); | ||
119 | connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); | ||
120 | |||
108 | #if !defined(STATIC) | 121 | #if !defined(STATIC) |
109 | ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false); | 122 | ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false); |
110 | #else | 123 | #else |
diff --git a/rbutil/rbutilqt/rbutilqtfrm.ui b/rbutil/rbutilqt/rbutilqtfrm.ui index 5f1bfe885c..fe929db54d 100644 --- a/rbutil/rbutilqt/rbutilqtfrm.ui +++ b/rbutil/rbutilqt/rbutilqtfrm.ui | |||
@@ -822,7 +822,54 @@ p, li { white-space: pre-wrap; } | |||
822 | <addaction name="separator" /> | 822 | <addaction name="separator" /> |
823 | <addaction name="action_Help" /> | 823 | <addaction name="action_Help" /> |
824 | </widget> | 824 | </widget> |
825 | <widget class="QMenu" name="menuA_ctions" > | ||
826 | <property name="title" > | ||
827 | <string>Action&s</string> | ||
828 | </property> | ||
829 | <widget class="QMenu" name="menuInstallation" > | ||
830 | <property name="title" > | ||
831 | <string>Installation</string> | ||
832 | </property> | ||
833 | <addaction name="actionInstall_Bootloader" /> | ||
834 | <addaction name="actionInstall_Rockbox" /> | ||
835 | </widget> | ||
836 | <widget class="QMenu" name="menuQuick_Start" > | ||
837 | <property name="title" > | ||
838 | <string>Quick Start</string> | ||
839 | </property> | ||
840 | <addaction name="actionComplete_Installation" /> | ||
841 | <addaction name="actionSmall_Installation" /> | ||
842 | </widget> | ||
843 | <widget class="QMenu" name="menuExtras" > | ||
844 | <property name="title" > | ||
845 | <string>Extras</string> | ||
846 | </property> | ||
847 | <addaction name="actionFonts_Package" /> | ||
848 | <addaction name="actionInstall_Themes" /> | ||
849 | <addaction name="actionInstall_Game_Files" /> | ||
850 | </widget> | ||
851 | <widget class="QMenu" name="menuAccessibility" > | ||
852 | <property name="title" > | ||
853 | <string>Accessibility</string> | ||
854 | </property> | ||
855 | <addaction name="actionInstall_Voice_File" /> | ||
856 | <addaction name="actionCreate_Talk_Files" /> | ||
857 | </widget> | ||
858 | <widget class="QMenu" name="menuUninstallation" > | ||
859 | <property name="title" > | ||
860 | <string>Uninstallation</string> | ||
861 | </property> | ||
862 | <addaction name="actionRemove_bootloader" /> | ||
863 | <addaction name="actionUninstall_Rockbox" /> | ||
864 | </widget> | ||
865 | <addaction name="menuQuick_Start" /> | ||
866 | <addaction name="menuInstallation" /> | ||
867 | <addaction name="menuExtras" /> | ||
868 | <addaction name="menuAccessibility" /> | ||
869 | <addaction name="menuUninstallation" /> | ||
870 | </widget> | ||
825 | <addaction name="menu_File" /> | 871 | <addaction name="menu_File" /> |
872 | <addaction name="menuA_ctions" /> | ||
826 | <addaction name="menuAbout" /> | 873 | <addaction name="menuAbout" /> |
827 | </widget> | 874 | </widget> |
828 | <widget class="QStatusBar" name="statusbar" /> | 875 | <widget class="QStatusBar" name="statusbar" /> |
@@ -864,6 +911,119 @@ p, li { white-space: pre-wrap; } | |||
864 | <string>&Help</string> | 911 | <string>&Help</string> |
865 | </property> | 912 | </property> |
866 | </action> | 913 | </action> |
914 | <action name="actionInfo" > | ||
915 | <property name="text" > | ||
916 | <string>Info</string> | ||
917 | </property> | ||
918 | </action> | ||
919 | <action name="actionComplete_Installation" > | ||
920 | <property name="icon" > | ||
921 | <iconset resource="rbutilqt.qrc" >:/icons/icons/bootloader_btn.png</iconset> | ||
922 | </property> | ||
923 | <property name="text" > | ||
924 | <string>Complete Installation</string> | ||
925 | </property> | ||
926 | </action> | ||
927 | <action name="actionSmall_Installation" > | ||
928 | <property name="icon" > | ||
929 | <iconset resource="rbutilqt.qrc" >:/icons/icons/rbinstall_btn.png</iconset> | ||
930 | </property> | ||
931 | <property name="text" > | ||
932 | <string>Small Installation</string> | ||
933 | </property> | ||
934 | </action> | ||
935 | <action name="actionInstall_Bootloader" > | ||
936 | <property name="icon" > | ||
937 | <iconset resource="rbutilqt.qrc" >:/icons/icons/bootloader_btn.png</iconset> | ||
938 | </property> | ||
939 | <property name="text" > | ||
940 | <string>Install Bootloader</string> | ||
941 | </property> | ||
942 | </action> | ||
943 | <action name="actionInstall_Rockbox" > | ||
944 | <property name="icon" > | ||
945 | <iconset resource="rbutilqt.qrc" >:/icons/icons/rbinstall_btn.png</iconset> | ||
946 | </property> | ||
947 | <property name="text" > | ||
948 | <string>Install Rockbox</string> | ||
949 | </property> | ||
950 | </action> | ||
951 | <action name="actionFonts_Package" > | ||
952 | <property name="icon" > | ||
953 | <iconset resource="rbutilqt.qrc" >:/icons/icons/font_btn.png</iconset> | ||
954 | </property> | ||
955 | <property name="text" > | ||
956 | <string>Fonts Package</string> | ||
957 | </property> | ||
958 | </action> | ||
959 | <action name="actionInstall_Themes" > | ||
960 | <property name="icon" > | ||
961 | <iconset resource="rbutilqt.qrc" >:/icons/icons/themes_btn.png</iconset> | ||
962 | </property> | ||
963 | <property name="text" > | ||
964 | <string>Install Themes</string> | ||
965 | </property> | ||
966 | </action> | ||
967 | <action name="actionInstall_Game_Files" > | ||
968 | <property name="icon" > | ||
969 | <iconset resource="rbutilqt.qrc" >:/icons/icons/doom_btn.png</iconset> | ||
970 | </property> | ||
971 | <property name="text" > | ||
972 | <string>Install Game Files</string> | ||
973 | </property> | ||
974 | </action> | ||
975 | <action name="actionInstall_Voice_File" > | ||
976 | <property name="icon" > | ||
977 | <iconset resource="rbutilqt.qrc" >:/icons/icons/talkfile_btn.png</iconset> | ||
978 | </property> | ||
979 | <property name="text" > | ||
980 | <string>Install Voice File</string> | ||
981 | </property> | ||
982 | </action> | ||
983 | <action name="actionCreate_Talk_Files" > | ||
984 | <property name="icon" > | ||
985 | <iconset resource="rbutilqt.qrc" >:/icons/icons/talkfile_btn.png</iconset> | ||
986 | </property> | ||
987 | <property name="text" > | ||
988 | <string>Create Talk Files</string> | ||
989 | </property> | ||
990 | </action> | ||
991 | <action name="actionRemove_bootloader" > | ||
992 | <property name="icon" > | ||
993 | <iconset resource="rbutilqt.qrc" >:/icons/icons/rembootloader_btn.png</iconset> | ||
994 | </property> | ||
995 | <property name="text" > | ||
996 | <string>Remove bootloader</string> | ||
997 | </property> | ||
998 | </action> | ||
999 | <action name="actionUninstall_Rockbox" > | ||
1000 | <property name="icon" > | ||
1001 | <iconset resource="rbutilqt.qrc" >:/icons/icons/remrb_btn.png</iconset> | ||
1002 | </property> | ||
1003 | <property name="text" > | ||
1004 | <string>Uninstall Rockbox</string> | ||
1005 | </property> | ||
1006 | </action> | ||
1007 | <action name="actionRead_PDF_manual" > | ||
1008 | <property name="text" > | ||
1009 | <string>Read PDF manual</string> | ||
1010 | </property> | ||
1011 | </action> | ||
1012 | <action name="actionRead_HTML_manual" > | ||
1013 | <property name="text" > | ||
1014 | <string>Read HTML manual</string> | ||
1015 | </property> | ||
1016 | </action> | ||
1017 | <action name="actionDownload_PDF_manual" > | ||
1018 | <property name="text" > | ||
1019 | <string>Download PDF manual</string> | ||
1020 | </property> | ||
1021 | </action> | ||
1022 | <action name="actionDownload_HTML_manual_zip" > | ||
1023 | <property name="text" > | ||
1024 | <string>Download HTML manual (zip)</string> | ||
1025 | </property> | ||
1026 | </action> | ||
867 | </widget> | 1027 | </widget> |
868 | <tabstops> | 1028 | <tabstops> |
869 | <tabstop>tabWidget</tabstop> | 1029 | <tabstop>tabWidget</tabstop> |