Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
b9ea8dc5
Commit
b9ea8dc5
authored
Sep 05, 2003
by
Cyril Deguet
Browse files
* new event VLC_NET to open the network dialog ( "net" keyword in the
xml file)
parent
3cfe6592
Changes
6
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins/src/banks.cpp
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* banks.cpp: Bitmap bank, Event bank, Font bank and OffSet bank
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: banks.cpp,v 1.
8
2003/0
7/23 17:31:24 ipkiss
Exp $
* $Id: banks.cpp,v 1.
9
2003/0
9/05 15:55:30 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -180,6 +180,7 @@ EventBank::EventBank( intf_thread_t *_p_intf )
Add
(
"quit"
,
"VLC_HIDE(VLC_QUIT)"
,
"CTRL+C"
);
Add
(
"open"
,
"VLC_OPEN"
,
"CTRL+O"
);
Add
(
"net"
,
"VLC_NET"
,
"CTRL+N"
);
Add
(
"add_file"
,
"VLC_PLAYLIST_ADD_FILE"
,
"CTRL+A"
);
Add
(
"load_skin"
,
"VLC_LOAD_SKIN"
,
"CTRL+S"
);
}
...
...
modules/gui/skins/src/dialogs.cpp
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* dialogs.cpp: Handles all the different dialog boxes we provide.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.cpp,v 1.1
3
2003/0
8/28
15:5
9:04 gbazin
Exp $
* $Id: dialogs.cpp,v 1.1
4
2003/0
9/05
15:5
5:30 asmax
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -103,6 +103,13 @@ void Dialogs::ShowOpen( bool b_play )
(
int
)
b_play
,
0
);
}
void
Dialogs
::
ShowNet
()
{
if
(
p_provider
&&
p_provider
->
pf_show_dialog
)
p_provider
->
pf_show_dialog
(
p_provider
,
INTF_DIALOG_NET
,
0
,
0
);
}
static
void
ShowOpenSkinCallback
(
intf_dialog_args_t
*
p_arg
)
{
if
(
p_arg
->
i_results
)
...
...
modules/gui/skins/src/dialogs.h
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* dialogs.h: Dialogs class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.h,v 1.
9
2003/0
8/28
15:5
9:04 gbazin
Exp $
* $Id: dialogs.h,v 1.
10
2003/0
9/05
15:5
5:30 asmax
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -46,6 +46,7 @@ class Dialogs
virtual
~
Dialogs
();
void
ShowOpen
(
bool
b_play
);
void
ShowNet
();
void
ShowOpenSkin
(
bool
b_block
);
void
ShowMessages
();
void
ShowPrefs
();
...
...
modules/gui/skins/src/event.cpp
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.2
0
2003/0
7/20 20:42:23 ipkiss
Exp $
* $Id: event.cpp,v 1.2
1
2003/0
9/05 15:55:30 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -112,6 +112,8 @@ unsigned int Event::GetMessageType( string Desc )
return
VLC_HIDE
;
else
if
(
Desc
==
"VLC_OPEN"
)
return
VLC_OPEN
;
else
if
(
Desc
==
"VLC_NET"
)
return
VLC_NET
;
else
if
(
Desc
==
"VLC_LOAD_SKIN"
)
return
VLC_LOAD_SKIN
;
else
if
(
Desc
==
"VLC_CHANGE_TRAY"
)
...
...
modules/gui/skins/src/event.h
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.h,v 1.1
3
2003/0
7/20 20:42:23 ipkiss
Exp $
* $Id: event.h,v 1.1
4
2003/0
9/05 15:55:30 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -59,6 +59,7 @@ using namespace std;
#define VLC_OPEN (VLC_MESSAGE + 5)
#define VLC_LOAD_SKIN (VLC_MESSAGE + 6)
#define VLC_DROP (VLC_MESSAGE + 7)
#define VLC_NET (VLC_MESSAGE + 8)
#define VLC_LOG_SHOW (VLC_MESSAGE + 20)
#define VLC_PREFS_SHOW (VLC_MESSAGE + 23)
...
...
modules/gui/skins/src/vlcproc.cpp
View file @
b9ea8dc5
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.4
3
2003/0
7/23 01:13:47 gbazin
Exp $
* $Id: vlcproc.cpp,v 1.4
4
2003/0
9/05 15:55:30 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -117,6 +117,11 @@ bool VlcProc::EventProc( Event *evt )
InterfaceRefresh
();
return
true
;
case
VLC_NET
:
p_intf
->
p_sys
->
p_dialogs
->
ShowNet
();
InterfaceRefresh
();
return
true
;
case
VLC_LOAD_SKIN
:
LoadSkin
();
return
true
;
...
...
Write
Preview
Supports
Markdown
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