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
58e54052
Commit
58e54052
authored
Apr 18, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dialogs.audioPopup, dialogs.videoPopup and dialogs.miscPopup commands
parent
a31e6840
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
15 deletions
+45
-15
modules/gui/skins2/commands/cmd_dialogs.hpp
modules/gui/skins2/commands/cmd_dialogs.hpp
+35
-9
modules/gui/skins2/parser/interpreter.cpp
modules/gui/skins2/parser/interpreter.cpp
+5
-0
modules/gui/skins2/src/dialogs.cpp
modules/gui/skins2/src/dialogs.cpp
+3
-4
modules/gui/skins2/src/dialogs.hpp
modules/gui/skins2/src/dialogs.hpp
+2
-2
No files found.
modules/gui/skins2/commands/cmd_dialogs.hpp
View file @
58e54052
...
...
@@ -42,8 +42,7 @@ typedef CmdDialogs<5> CmdDlgNet;
typedef
CmdDialogs
<
6
>
CmdDlgMessages
;
typedef
CmdDialogs
<
7
>
CmdDlgPrefs
;
typedef
CmdDialogs
<
8
>
CmdDlgFileInfo
;
typedef
CmdDialogs
<
9
>
CmdDlgShowPopupMenu
;
typedef
CmdDialogs
<
10
>
CmdDlgHidePopupMenu
;
typedef
CmdDialogs
<
11
>
CmdDlgAdd
;
typedef
CmdDialogs
<
12
>
CmdDlgPlaylistLoad
;
typedef
CmdDialogs
<
13
>
CmdDlgPlaylistSave
;
...
...
@@ -53,6 +52,15 @@ typedef CmdDialogs<16> CmdDlgPlaytreeLoad;
typedef
CmdDialogs
<
17
>
CmdDlgPlaytreeSave
;
typedef
CmdDialogs
<
18
>
CmdDlgPlaylist
;
typedef
CmdDialogs
<
30
>
CmdDlgShowPopupMenu
;
typedef
CmdDialogs
<
31
>
CmdDlgHidePopupMenu
;
typedef
CmdDialogs
<
32
>
CmdDlgShowAudioPopupMenu
;
typedef
CmdDialogs
<
33
>
CmdDlgHideAudioPopupMenu
;
typedef
CmdDialogs
<
34
>
CmdDlgShowVideoPopupMenu
;
typedef
CmdDialogs
<
35
>
CmdDlgHideVideoPopupMenu
;
typedef
CmdDialogs
<
36
>
CmdDlgShowMiscPopupMenu
;
typedef
CmdDialogs
<
37
>
CmdDlgHideMiscPopupMenu
;
/// Generic "Open dialog" command
template
<
int
TYPE
>
...
...
@@ -98,13 +106,7 @@ class CmdDialogs: public CmdGeneric
case
8
:
pDialogs
->
showFileInfo
();
break
;
case
9
:
pDialogs
->
showPopupMenu
(
true
);
break
;
case
10
:
pDialogs
->
showPopupMenu
(
false
);
break
;
case
11
:
case
11
:
pDialogs
->
showFile
(
false
);
break
;
case
12
:
...
...
@@ -122,6 +124,30 @@ class CmdDialogs: public CmdGeneric
case
18
:
pDialogs
->
showPlaylist
();
break
;
case
30
:
pDialogs
->
showPopupMenu
(
true
,
INTF_DIALOG_POPUPMENU
);
break
;
case
31
:
pDialogs
->
showPopupMenu
(
false
,
INTF_DIALOG_POPUPMENU
);
break
;
case
32
:
pDialogs
->
showPopupMenu
(
true
,
INTF_DIALOG_AUDIOPOPUPMENU
);
break
;
case
33
:
pDialogs
->
showPopupMenu
(
false
,
INTF_DIALOG_AUDIOPOPUPMENU
);
break
;
case
34
:
pDialogs
->
showPopupMenu
(
true
,
INTF_DIALOG_VIDEOPOPUPMENU
);
break
;
case
35
:
pDialogs
->
showPopupMenu
(
false
,
INTF_DIALOG_VIDEOPOPUPMENU
);
break
;
case
36
:
pDialogs
->
showPopupMenu
(
true
,
INTF_DIALOG_MISCPOPUPMENU
);
break
;
case
37
:
pDialogs
->
showPopupMenu
(
false
,
INTF_DIALOG_MISCPOPUPMENU
);
break
;
default:
msg_Warn
(
getIntf
(),
"unknown dialog type"
);
break
;
...
...
modules/gui/skins2/parser/interpreter.cpp
View file @
58e54052
...
...
@@ -60,7 +60,12 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
REGISTER_CMD
(
"dialogs.prefs()"
,
CmdDlgPrefs
)
REGISTER_CMD
(
"dialogs.fileInfo()"
,
CmdDlgFileInfo
)
REGISTER_CMD
(
"dialogs.streamingWizard()"
,
CmdDlgStreamingWizard
)
REGISTER_CMD
(
"dialogs.popup()"
,
CmdDlgShowPopupMenu
)
REGISTER_CMD
(
"dialogs.audioPopup()"
,
CmdDlgShowAudioPopupMenu
)
REGISTER_CMD
(
"dialogs.videoPopup()"
,
CmdDlgShowVideoPopupMenu
)
REGISTER_CMD
(
"dialogs.miscPopup()"
,
CmdDlgShowMiscPopupMenu
)
REGISTER_CMD
(
"dvd.nextTitle()"
,
CmdDvdNextTitle
)
REGISTER_CMD
(
"dvd.previousTitle()"
,
CmdDvdPreviousTitle
)
REGISTER_CMD
(
"dvd.nextChapter()"
,
CmdDvdNextChapter
)
...
...
modules/gui/skins2/src/dialogs.cpp
View file @
58e54052
...
...
@@ -57,7 +57,6 @@ void Dialogs::showChangeSkinCB( intf_dialog_args_t *pArg )
}
}
void
Dialogs
::
showPlaylistLoadCB
(
intf_dialog_args_t
*
pArg
)
{
intf_thread_t
*
pIntf
=
(
intf_thread_t
*
)
pArg
->
p_arg
;
...
...
@@ -97,7 +96,7 @@ static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
)
{
Dialogs
*
p_dialogs
=
(
Dialogs
*
)
param
;
p_dialogs
->
showPopupMenu
(
new_val
.
b_bool
!=
0
);
p_dialogs
->
showPopupMenu
(
new_val
.
b_bool
!=
0
,
INTF_DIALOG_POPUPMENU
);
return
VLC_SUCCESS
;
}
...
...
@@ -337,11 +336,11 @@ void Dialogs::showStreamingWizard()
}
void
Dialogs
::
showPopupMenu
(
bool
bShow
)
void
Dialogs
::
showPopupMenu
(
bool
bShow
,
int
popupType
=
INTF_DIALOG_POPUPMENU
)
{
if
(
m_pProvider
&&
m_pProvider
->
pf_show_dialog
)
{
m_pProvider
->
pf_show_dialog
(
m_pProvider
,
INTF_DIALOG_POPUPMENU
,
m_pProvider
->
pf_show_dialog
(
m_pProvider
,
popupType
,
(
int
)
bShow
,
0
);
}
}
...
...
modules/gui/skins2/src/dialogs.hpp
View file @
58e54052
...
...
@@ -89,8 +89,8 @@ class Dialogs: public SkinObject
/// Show the Playlist
void
showPlaylist
();
/// Show
the
popup menu
void
showPopupMenu
(
bool
bShow
);
/// Show
a
popup menu
void
showPopupMenu
(
bool
bShow
,
int
popupType
);
/// Show an interaction dialog
void
showInteraction
(
interaction_dialog_t
*
);
...
...
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