]> git.sesse.net Git - vlc/commitdiff
Qt4: Simple_Prefs, adding hotkeys/shortcuts configuration.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Feb 2007 17:17:44 +0000 (17:17 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Feb 2007 17:17:44 +0000 (17:17 +0000)
modules/gui/qt4/Modules.am
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/pixmaps/hotkeys_50x50.xpm [moved from modules/gui/qt4/pixmaps/advanced_50x50.xpm with 98% similarity]
modules/gui/qt4/ui/sprefs_hotkeys.ui [new file with mode: 0644]

index 7718931c2a89bea31124a92971a8142c05457e96..cdc5e63bef11c1a940134a0424a9a5b586a19626 100644 (file)
@@ -25,6 +25,7 @@ TOUI =        \
        ui/sprefs_playlist \
        ui/sprefs_subtitles \
        ui/sprefs_video \
+       ui/sprefs_hotkeys \
        ui/streampanel \
        ui/sout
 
@@ -179,6 +180,7 @@ EXTRA_DIST += \
        ui/sprefs_input.ui \
        ui/sprefs_interface.ui \
        ui/sprefs_playlist.ui \
+       ui/sprefs_hotkeys.ui \
        ui/sprefs_subtitles.ui \
        ui/sprefs_video.ui \
        ui/streampanel.ui \
index ca1a4a365525ab1ac98840e31060557bfdb66215..320d1f089d3e471166ac52dde2963a833336407d 100644 (file)
@@ -34,8 +34,7 @@
 #include <vlc_config_cat.h>
 #include <assert.h>
 
-//TODO Rename all advanced to hotkeys since they will be no advanced section
-#include "pixmaps/advanced_50x50.xpm"
+#include "pixmaps/hotkeys_50x50.xpm"
 #include "pixmaps/audio_50x50.xpm"
 #include "pixmaps/input_and_codecs_50x50.xpm"
 #include "pixmaps/interface_50x50.xpm"
@@ -47,6 +46,7 @@
 #include "ui/sprefs_input.h"
 #include "ui/sprefs_video.h"
 #include "ui/sprefs_subtitles.h"
+#include "ui/sprefs_hotkeys.h"
 //#include "ui/sprefs_playlist.h"
 #include "ui/sprefs_interface.h"
 
@@ -73,7 +73,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
 //    ADD_CATEGORY( SPrefsPlaylist, qtr("Playlist"), playlist_50x50_xpm );
     ADD_CATEGORY( SPrefsInterface, qtr("Interface"), interface_50x50_xpm );
     ADD_CATEGORY( SPrefsSubtitles, qtr("Subtitles"), subtitles_50x50_xpm );
-    ADD_CATEGORY( SPrefsAdvanced, qtr("Hotkeys"), advanced_50x50_xpm );
+    ADD_CATEGORY( SPrefsHotkeys, qtr("Hotkeys"), hotkeys_50x50_xpm );
 
     setCurrentRow( SPrefsInterface );
 }
@@ -162,8 +162,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 
         END_SPREFS_CAT;
 
-        case SPrefsAdvanced: break;
-    }
+        START_SPREFS_CAT( Hotkeys );
+        END_SPREFS_CAT;
+        }
 }
 
 void SPrefsPanel::apply()
index 4f0358fd496a2c276eee865bea327b2085ed6b00..977c706313ba3f68b04f6ded804ce52d8c332e95 100644 (file)
@@ -35,7 +35,7 @@ enum {
 //    SPrefsPlaylist,
     SPrefsInterface,
     SPrefsSubtitles,
-    SPrefsAdvanced,
+    SPrefsHotkeys,
     SPrefsMax
 };
 #define SPrefsDefaultCat SPrefsInterface
similarity index 98%
rename from modules/gui/qt4/pixmaps/advanced_50x50.xpm
rename to modules/gui/qt4/pixmaps/hotkeys_50x50.xpm
index 86c4dc36ba6784d790c6118816036b081b90e2d8..97f37ded7ab91d36f3321f580a9709afc65494ff 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * advanced_50x50_xpm[] = {
+static char * hotkeys_50x50_xpm[] = {
 "50 50 2 1",
 "      c #FFFFFF",
 ".     c #000000",
diff --git a/modules/gui/qt4/ui/sprefs_hotkeys.ui b/modules/gui/qt4/ui/sprefs_hotkeys.ui
new file mode 100644 (file)
index 0000000..99f3a03
--- /dev/null
@@ -0,0 +1,77 @@
+<ui version="4.0" >
+ <author>Jean-Baptiste Kempf</author>
+ <class>SPrefsHotkeys</class>
+ <widget class="QWidget" name="SPrefsVideo" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>426</width>
+    <height>474</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" >
+   <property name="margin" >
+    <number>9</number>
+   </property>
+   <property name="spacing" >
+    <number>6</number>
+   </property>
+   <item row="2" column="1" >
+    <widget class="QLineEdit" name="shortcutValue" >
+     <property name="inputMask" >
+      <string/>
+     </property>
+     <property name="text" >
+      <string>Customize here</string>
+     </property>
+     <property name="echoMode" >
+      <enum>QLineEdit::Normal</enum>
+     </property>
+     <property name="readOnly" >
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="0" >
+    <widget class="QPushButton" name="customizeShortcut" >
+     <property name="text" >
+      <string>Customize</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0" colspan="2" >
+    <widget class="QTreeWidget" name="shortcutsTree" >
+     <property name="columnCount" >
+      <number>2</number>
+     </property>
+     <column>
+      <property name="text" >
+       <string>Action</string>
+      </property>
+     </column>
+     <column>
+      <property name="text" >
+       <string>Shortcut</string>
+      </property>
+     </column>
+   </widget>
+   </item>
+   <item row="0" column="0" >
+    <widget class="QLabel" name="label" >
+     <property name="text" >
+      <string>Search</string>
+     </property>
+    </widget>
+   </item>
+   <item row="0" column="1" >
+    <widget class="QLineEdit" name="actionSearch" />
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>