Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
40946d1a
Commit
40946d1a
authored
Mar 14, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* wxwindows/preferences_widgets.*: do not duplicate hot keys list in
the wxwindows plugin
parent
9e041752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
78 deletions
+25
-78
modules/gui/wxwindows/preferences_widgets.cpp
modules/gui/wxwindows/preferences_widgets.cpp
+21
-76
modules/gui/wxwindows/preferences_widgets.h
modules/gui/wxwindows/preferences_widgets.h
+4
-2
No files found.
modules/gui/wxwindows/preferences_widgets.cpp
View file @
40946d1a
...
@@ -158,84 +158,25 @@ void ConfigControl::OnUpdate( wxCommandEvent& WXUNUSED(event) )
...
@@ -158,84 +158,25 @@ void ConfigControl::OnUpdate( wxCommandEvent& WXUNUSED(event) )
/*****************************************************************************
/*****************************************************************************
* KeyConfigControl implementation
* KeyConfigControl implementation
*****************************************************************************/
*****************************************************************************/
static
wxString
KeysList
[]
=
wxString
*
KeyConfigControl
::
m_keysList
=
NULL
;
{
wxT
(
"Unset"
),
wxT
(
"Left"
),
wxT
(
"Right"
),
wxT
(
"Up"
),
wxT
(
"Down"
),
wxT
(
"Space"
),
wxT
(
"Enter"
),
wxT
(
"F1"
),
wxT
(
"F2"
),
wxT
(
"F3"
),
wxT
(
"F4"
),
wxT
(
"F5"
),
wxT
(
"F6"
),
wxT
(
"F7"
),
wxT
(
"F8"
),
wxT
(
"F9"
),
wxT
(
"F10"
),
wxT
(
"F11"
),
wxT
(
"F12"
),
wxT
(
"Home"
),
wxT
(
"End"
),
wxT
(
"Menu"
),
wxT
(
"Esc"
),
wxT
(
"Page Up"
),
wxT
(
"Page Down"
),
wxT
(
"Tab"
),
wxT
(
"Backspace"
),
wxT
(
"Mouse Wheel Up"
),
wxT
(
"Mouse Wheel Down"
),
wxT
(
"a"
),
wxT
(
"b"
),
wxT
(
"c"
),
wxT
(
"d"
),
wxT
(
"e"
),
wxT
(
"f"
),
wxT
(
"g"
),
wxT
(
"h"
),
wxT
(
"i"
),
wxT
(
"j"
),
wxT
(
"k"
),
wxT
(
"l"
),
wxT
(
"m"
),
wxT
(
"n"
),
wxT
(
"o"
),
wxT
(
"p"
),
wxT
(
"q"
),
wxT
(
"r"
),
wxT
(
"s"
),
wxT
(
"t"
),
wxT
(
"u"
),
wxT
(
"v"
),
wxT
(
"w"
),
wxT
(
"x"
),
wxT
(
"y"
),
wxT
(
"z"
),
wxT
(
"+"
),
wxT
(
"="
),
wxT
(
"-"
),
wxT
(
","
),
wxT
(
"."
),
wxT
(
"<"
),
wxT
(
">"
),
wxT
(
"`"
),
wxT
(
"/"
),
wxT
(
";"
),
wxT
(
"'"
),
wxT
(
"
\\
"
),
wxT
(
"["
),
wxT
(
"]"
),
wxT
(
"*"
)
};
KeyConfigControl
::
KeyConfigControl
(
vlc_object_t
*
p_this
,
KeyConfigControl
::
KeyConfigControl
(
vlc_object_t
*
p_this
,
module_config_t
*
p_item
,
wxWindow
*
parent
)
module_config_t
*
p_item
,
wxWindow
*
parent
)
:
ConfigControl
(
p_this
,
p_item
,
parent
)
:
ConfigControl
(
p_this
,
p_item
,
parent
)
{
{
// Number of keys descriptions
unsigned
int
i_keys
=
sizeof
(
vlc_keys
)
/
sizeof
(
key_descriptor_t
);
// Init the keys decriptions array
if
(
m_keysList
==
NULL
)
{
m_keysList
=
new
wxString
[
i_keys
];
for
(
unsigned
int
i
=
0
;
i
<
i_keys
;
i
++
)
{
m_keysList
[
i
]
=
wxT
(
vlc_keys
[
i
].
psz_key_string
);
}
}
label
=
new
wxStaticText
(
this
,
-
1
,
wxU
(
p_item
->
psz_text
));
label
=
new
wxStaticText
(
this
,
-
1
,
wxU
(
p_item
->
psz_text
));
alt
=
new
wxCheckBox
(
this
,
-
1
,
wxU
(
_
(
"Alt"
))
);
alt
=
new
wxCheckBox
(
this
,
-
1
,
wxU
(
_
(
"Alt"
))
);
alt
->
SetValue
(
p_item
->
i_value
&
KEY_MODIFIER_ALT
);
alt
->
SetValue
(
p_item
->
i_value
&
KEY_MODIFIER_ALT
);
...
@@ -244,9 +185,9 @@ KeyConfigControl::KeyConfigControl( vlc_object_t *p_this,
...
@@ -244,9 +185,9 @@ KeyConfigControl::KeyConfigControl( vlc_object_t *p_this,
shift
=
new
wxCheckBox
(
this
,
-
1
,
wxU
(
_
(
"Shift"
))
);
shift
=
new
wxCheckBox
(
this
,
-
1
,
wxU
(
_
(
"Shift"
))
);
shift
->
SetValue
(
p_item
->
i_value
&
KEY_MODIFIER_SHIFT
);
shift
->
SetValue
(
p_item
->
i_value
&
KEY_MODIFIER_SHIFT
);
combo
=
new
wxComboBox
(
this
,
-
1
,
wxT
(
""
),
wxDefaultPosition
,
combo
=
new
wxComboBox
(
this
,
-
1
,
wxT
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
WXSIZEOF
(
KeysList
),
K
eysList
,
wxDefaultSize
,
i_keys
,
m_k
eysList
,
wxCB_READONLY
);
wxCB_READONLY
);
for
(
unsigned
int
i
=
0
;
i
<
WXSIZEOF
(
KeysList
)
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
i_keys
;
i
++
)
{
{
combo
->
SetClientData
(
i
,
(
void
*
)
vlc_keys
[
i
].
i_key_code
);
combo
->
SetClientData
(
i
,
(
void
*
)
vlc_keys
[
i
].
i_key_code
);
if
(
(
unsigned
int
)
vlc_keys
[
i
].
i_key_code
==
if
(
(
unsigned
int
)
vlc_keys
[
i
].
i_key_code
==
...
@@ -268,7 +209,11 @@ KeyConfigControl::KeyConfigControl( vlc_object_t *p_this,
...
@@ -268,7 +209,11 @@ KeyConfigControl::KeyConfigControl( vlc_object_t *p_this,
KeyConfigControl
::~
KeyConfigControl
()
KeyConfigControl
::~
KeyConfigControl
()
{
{
;
if
(
m_keysList
)
{
delete
[]
m_keysList
;
m_keysList
=
NULL
;
}
}
}
int
KeyConfigControl
::
GetIntValue
()
int
KeyConfigControl
::
GetIntValue
()
...
...
modules/gui/wxwindows/preferences_widgets.h
View file @
40946d1a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* preferences_widgets.h : wxWindows plugin for vlc
* preferences_widgets.h : wxWindows plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2003 VideoLAN
* Copyright (C) 2000-2003 VideoLAN
* $Id
: preferences_widgets.h,v 1.8 2004/01/29 17:04:01 gbazin Exp
$
* $Id$
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
...
@@ -68,6 +68,8 @@ private:
...
@@ -68,6 +68,8 @@ private:
wxCheckBox
*
ctrl
;
wxCheckBox
*
ctrl
;
wxCheckBox
*
shift
;
wxCheckBox
*
shift
;
wxComboBox
*
combo
;
wxComboBox
*
combo
;
// Array of key descriptions, for the ComboBox
static
wxString
*
m_keysList
;
};
};
class
ModuleConfigControl
:
public
ConfigControl
class
ModuleConfigControl
:
public
ConfigControl
...
@@ -79,7 +81,7 @@ public:
...
@@ -79,7 +81,7 @@ public:
private:
private:
wxComboBox
*
combo
;
wxComboBox
*
combo
;
};
};
class
StringConfigControl
:
public
ConfigControl
class
StringConfigControl
:
public
ConfigControl
{
{
public:
public:
...
...
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