Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
6ba30042
Commit
6ba30042
authored
Feb 25, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Simple_Prefs, adding hotkeys/shortcuts configuration.
parent
201859a0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
7 deletions
+87
-7
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+2
-0
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+6
-5
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-1
modules/gui/qt4/pixmaps/hotkeys_50x50.xpm
modules/gui/qt4/pixmaps/hotkeys_50x50.xpm
+1
-1
modules/gui/qt4/ui/sprefs_hotkeys.ui
modules/gui/qt4/ui/sprefs_hotkeys.ui
+77
-0
No files found.
modules/gui/qt4/Modules.am
View file @
6ba30042
...
@@ -25,6 +25,7 @@ TOUI = \
...
@@ -25,6 +25,7 @@ TOUI = \
ui/sprefs_playlist
\
ui/sprefs_playlist
\
ui/sprefs_subtitles
\
ui/sprefs_subtitles
\
ui/sprefs_video
\
ui/sprefs_video
\
ui/sprefs_hotkeys
\
ui/streampanel
\
ui/streampanel
\
ui/sout
ui/sout
...
@@ -179,6 +180,7 @@ EXTRA_DIST += \
...
@@ -179,6 +180,7 @@ EXTRA_DIST += \
ui/sprefs_input.ui
\
ui/sprefs_input.ui
\
ui/sprefs_interface.ui
\
ui/sprefs_interface.ui
\
ui/sprefs_playlist.ui
\
ui/sprefs_playlist.ui
\
ui/sprefs_hotkeys.ui
\
ui/sprefs_subtitles.ui
\
ui/sprefs_subtitles.ui
\
ui/sprefs_video.ui
\
ui/sprefs_video.ui
\
ui/streampanel.ui
\
ui/streampanel.ui
\
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
6ba30042
...
@@ -34,8 +34,7 @@
...
@@ -34,8 +34,7 @@
#include <vlc_config_cat.h>
#include <vlc_config_cat.h>
#include <assert.h>
#include <assert.h>
//TODO Rename all advanced to hotkeys since they will be no advanced section
#include "pixmaps/hotkeys_50x50.xpm"
#include "pixmaps/advanced_50x50.xpm"
#include "pixmaps/audio_50x50.xpm"
#include "pixmaps/audio_50x50.xpm"
#include "pixmaps/input_and_codecs_50x50.xpm"
#include "pixmaps/input_and_codecs_50x50.xpm"
#include "pixmaps/interface_50x50.xpm"
#include "pixmaps/interface_50x50.xpm"
...
@@ -47,6 +46,7 @@
...
@@ -47,6 +46,7 @@
#include "ui/sprefs_input.h"
#include "ui/sprefs_input.h"
#include "ui/sprefs_video.h"
#include "ui/sprefs_video.h"
#include "ui/sprefs_subtitles.h"
#include "ui/sprefs_subtitles.h"
#include "ui/sprefs_hotkeys.h"
//#include "ui/sprefs_playlist.h"
//#include "ui/sprefs_playlist.h"
#include "ui/sprefs_interface.h"
#include "ui/sprefs_interface.h"
...
@@ -73,7 +73,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
...
@@ -73,7 +73,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
// ADD_CATEGORY( SPrefsPlaylist, qtr("Playlist"), playlist_50x50_xpm );
// ADD_CATEGORY( SPrefsPlaylist, qtr("Playlist"), playlist_50x50_xpm );
ADD_CATEGORY
(
SPrefsInterface
,
qtr
(
"Interface"
),
interface_50x50_xpm
);
ADD_CATEGORY
(
SPrefsInterface
,
qtr
(
"Interface"
),
interface_50x50_xpm
);
ADD_CATEGORY
(
SPrefsSubtitles
,
qtr
(
"Subtitles"
),
subtitles_50x50_xpm
);
ADD_CATEGORY
(
SPrefsSubtitles
,
qtr
(
"Subtitles"
),
subtitles_50x50_xpm
);
ADD_CATEGORY
(
SPrefs
Advanced
,
qtr
(
"Hotkeys"
),
advanced
_50x50_xpm
);
ADD_CATEGORY
(
SPrefs
Hotkeys
,
qtr
(
"Hotkeys"
),
hotkeys
_50x50_xpm
);
setCurrentRow
(
SPrefsInterface
);
setCurrentRow
(
SPrefsInterface
);
}
}
...
@@ -162,7 +162,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -162,7 +162,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
END_SPREFS_CAT
;
END_SPREFS_CAT
;
case
SPrefsAdvanced
:
break
;
START_SPREFS_CAT
(
Hotkeys
);
END_SPREFS_CAT
;
}
}
}
}
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
6ba30042
...
@@ -35,7 +35,7 @@ enum {
...
@@ -35,7 +35,7 @@ enum {
// SPrefsPlaylist,
// SPrefsPlaylist,
SPrefsInterface
,
SPrefsInterface
,
SPrefsSubtitles
,
SPrefsSubtitles
,
SPrefs
Advanced
,
SPrefs
Hotkeys
,
SPrefsMax
SPrefsMax
};
};
#define SPrefsDefaultCat SPrefsInterface
#define SPrefsDefaultCat SPrefsInterface
...
...
modules/gui/qt4/pixmaps/
advanced
_50x50.xpm
→
modules/gui/qt4/pixmaps/
hotkeys
_50x50.xpm
View file @
6ba30042
/* XPM */
/* XPM */
static char *
advanced
_50x50_xpm[] = {
static char *
hotkeys
_50x50_xpm[] = {
"50 50 2 1",
"50 50 2 1",
" c #FFFFFF",
" c #FFFFFF",
". c #000000",
". c #000000",
...
...
modules/gui/qt4/ui/sprefs_hotkeys.ui
0 → 100644
View file @
6ba30042
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment