Commit b9ea8dc5 authored by Cyril Deguet's avatar Cyril Deguet

* new event VLC_NET to open the network dialog ( "net" keyword in the

 xml file)
parent 3cfe6592
......@@ -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/07/23 17:31:24 ipkiss Exp $
* $Id: banks.cpp,v 1.9 2003/09/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" );
}
......
......@@ -2,7 +2,7 @@
* dialogs.cpp: Handles all the different dialog boxes we provide.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.cpp,v 1.13 2003/08/28 15:59:04 gbazin Exp $
* $Id: dialogs.cpp,v 1.14 2003/09/05 15:55: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 )
......
......@@ -2,7 +2,7 @@
* dialogs.h: Dialogs class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dialogs.h,v 1.9 2003/08/28 15:59:04 gbazin Exp $
* $Id: dialogs.h,v 1.10 2003/09/05 15:55: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();
......
......@@ -2,7 +2,7 @@
* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.20 2003/07/20 20:42:23 ipkiss Exp $
* $Id: event.cpp,v 1.21 2003/09/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" )
......
......@@ -2,7 +2,7 @@
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.h,v 1.13 2003/07/20 20:42:23 ipkiss Exp $
* $Id: event.h,v 1.14 2003/09/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)
......
......@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.43 2003/07/23 01:13:47 gbazin Exp $
* $Id: vlcproc.cpp,v 1.44 2003/09/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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment