menus.cpp File Reference

Include dependency graph for menus.cpp:


Data Structures

class  wxMenuItemExt
class  Menu

Defines

#define PUSH_VAR(var)
#define PUSH_VAR(var)
#define PUSH_SEPARATOR
#define POPUP_BOILERPLATE
#define CREATE_POPUP
#define POPUP_STATIC_ENTRIES

Enumerations

enum  {
  MenuDummy_Event = wxID_HIGHEST + 1000, OpenFileSimple_Event = wxID_HIGHEST + 1100, OpenFile_Event, OpenDirectory_Event,
  OpenDisc_Event, OpenNet_Event, OpenCapture_Event, MediaInfo_Event,
  Messages_Event, Preferences_Event, Play_Event, Pause_Event,
  Previous_Event, Next_Event, Stop_Event, FirstAutoGenerated_Event = wxID_HIGHEST + 1999,
  SettingsMenu_Events = wxID_HIGHEST + 5000, AudioMenu_Events = wxID_HIGHEST + 2000, VideoMenu_Events = wxID_HIGHEST + 3000, NavigMenu_Events = wxID_HIGHEST + 4000,
  PopupMenu_Events = wxID_HIGHEST + 6000, Hotkeys_Events = wxID_HIGHEST + 7000
}

Functions

 WX_DEFINE_ARRAY (int, ArrayOfInts)
 WX_DEFINE_ARRAY_PTR (const char *, ArrayOfStrings)
 BEGIN_EVENT_TABLE (Menu, wxMenu) END_EVENT_TABLE() BEGIN_EVENT_TABLE(MenuEvtHandler
wxEvtHandler EVT_MENU (OpenFileSimple_Event, MenuEvtHandler::OnShowDialog) EVT_MENU(OpenFile_Event
wxEvtHandler MenuEvtHandler::OnShowDialog EVT_MENU (OpenDirectory_Event, MenuEvtHandler::OnShowDialog) EVT_MENU(OpenDisc_Event
wxEvtHandler MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog 
EVT_MENU (OpenNet_Event, MenuEvtHandler::OnShowDialog) EVT_MENU(OpenCapture_Event
wxEvtHandler MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog 
EVT_MENU (MediaInfo_Event, MenuEvtHandler::OnShowDialog) EVT_MENU(Messages_Event
wxEvtHandler MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog 
EVT_MENU (Preferences_Event, MenuEvtHandler::OnShowDialog) EVT_MENU(-1
wxEvtHandler MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnShowDialog
MenuEvtHandler::OnMenuEvent 
END_EVENT_TABLE () wxMenu *OpenStreamMenu(intf_thread_t *p_intf)
wxMenu * MiscMenu (intf_thread_t *p_intf)
int InputAutoMenuBuilder (vlc_object_t *p_object, ArrayOfInts &ri_objects, ArrayOfStrings &rs_varnames)
int VideoAutoMenuBuilder (vlc_object_t *p_object, ArrayOfInts &ri_objects, ArrayOfStrings &rs_varnames)
int AudioAutoMenuBuilder (vlc_object_t *p_object, ArrayOfInts &ri_objects, ArrayOfStrings &rs_varnames)
int IntfAutoMenuBuilder (intf_thread_t *p_intf, ArrayOfInts &ri_objects, ArrayOfStrings &rs_varnames, bool is_popup)
void VideoPopupMenu (intf_thread_t *p_intf, wxWindow *p_parent, const wxPoint &pos)
void AudioPopupMenu (intf_thread_t *p_intf, wxWindow *p_parent, const wxPoint &pos)
void MiscPopupMenu (intf_thread_t *p_intf, wxWindow *p_parent, const wxPoint &pos)
void PopupMenu (intf_thread_t *p_intf, wxWindow *p_parent, const wxPoint &pos)
wxMenu * AudioMenu (intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu)
wxMenu * VideoMenu (intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu)
wxMenu * NavigMenu (intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu)
wxMenu * SettingsMenu (intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu)
static void RecursiveDestroy (wxMenu *menu)
static bool IsMenuEmpty (const char *psz_var, vlc_object_t *p_object, bool b_root=TRUE)

Define Documentation

#define CREATE_POPUP

Value:

Menu popupmenu( p_intf, PopupMenu_Events ); \
    popupmenu.Populate( as_varnames, ai_objects ); \
    p_intf->p_sys->p_popup_menu = &popupmenu; \
    p_parent->PopupMenu( &popupmenu, pos.x, pos.y ); \
    p_intf->p_sys->p_popup_menu = NULL; \
    i_last_separator = 0

#define POPUP_BOILERPLATE

Value:

unsigned int i_last_separator = 0; \
    ArrayOfInts ai_objects; \
    ArrayOfStrings as_varnames; \
    playlist_t *p_playlist = pl_Yield( p_intf ); \
    if( !p_playlist ) \
        return; \
    input_thread_t *p_input = p_playlist->p_input

#define POPUP_STATIC_ENTRIES

#define PUSH_SEPARATOR

Value:

if( ai_objects.GetCount() != i_last_separator ) { \
                            ai_objects.Add( 0 ); \
                            as_varnames.Add( "" ); \
                            i_last_separator = ai_objects.GetCount(); }

#define PUSH_VAR ( var   ) 

Value:

as_varnames.Add( var ); \
                        ai_objects.Add( p_object->i_object_id )

#define PUSH_VAR ( var   ) 

Value:

rs_varnames.Add( var ); \
                        ri_objects.Add( p_object->i_object_id )


Enumeration Type Documentation

anonymous enum

Enumerator:
MenuDummy_Event 
OpenFileSimple_Event 
OpenFile_Event 
OpenDirectory_Event 
OpenDisc_Event 
OpenNet_Event 
OpenCapture_Event 
MediaInfo_Event 
Messages_Event 
Preferences_Event 
Play_Event 
Pause_Event 
Previous_Event 
Next_Event 
Stop_Event 
FirstAutoGenerated_Event 
SettingsMenu_Events 
AudioMenu_Events 
VideoMenu_Events 
NavigMenu_Events 
PopupMenu_Events 
Hotkeys_Events 


Function Documentation

int AudioAutoMenuBuilder ( vlc_object_t p_object,
ArrayOfInts &  ri_objects,
ArrayOfStrings &  rs_varnames 
)

wxMenu* AudioMenu ( intf_thread_t _p_intf,
wxWindow *  p_parent,
wxMenu *  p_menu 
)

void AudioPopupMenu ( intf_thread_t p_intf,
wxWindow *  p_parent,
const wxPoint &  pos 
)

BEGIN_EVENT_TABLE ( Menu  ,
wxMenu   
)

wxEvtHandler MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnMenuEvent END_EVENT_TABLE (  ) 

wxEvtHandler MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog EVT_MENU ( Preferences_Event  ,
MenuEvtHandler::OnShowDialog   
)

wxEvtHandler MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog EVT_MENU ( MediaInfo_Event  ,
MenuEvtHandler::OnShowDialog   
)

wxEvtHandler MenuEvtHandler::OnShowDialog MenuEvtHandler::OnShowDialog EVT_MENU ( OpenNet_Event  ,
MenuEvtHandler::OnShowDialog   
)

wxEvtHandler MenuEvtHandler::OnShowDialog EVT_MENU ( OpenDirectory_Event  ,
MenuEvtHandler::OnShowDialog   
)

wxEvtHandler EVT_MENU ( OpenFileSimple_Event  ,
MenuEvtHandler::OnShowDialog   
)

int InputAutoMenuBuilder ( vlc_object_t p_object,
ArrayOfInts &  ri_objects,
ArrayOfStrings &  rs_varnames 
)

int IntfAutoMenuBuilder ( intf_thread_t p_intf,
ArrayOfInts &  ri_objects,
ArrayOfStrings &  rs_varnames,
bool  is_popup 
)

static bool IsMenuEmpty ( const char *  psz_var,
vlc_object_t p_object,
bool  b_root = TRUE 
) [static]

wxMenu* MiscMenu ( intf_thread_t p_intf  ) 

void MiscPopupMenu ( intf_thread_t p_intf,
wxWindow *  p_parent,
const wxPoint &  pos 
)

wxMenu* NavigMenu ( intf_thread_t _p_intf,
wxWindow *  p_parent,
wxMenu *  p_menu 
)

void PopupMenu ( intf_thread_t p_intf,
wxWindow *  p_parent,
const wxPoint &  pos 
)

static void RecursiveDestroy ( wxMenu *  menu  )  [static]

wxMenu* SettingsMenu ( intf_thread_t _p_intf,
wxWindow *  p_parent,
wxMenu *  p_menu 
)

int VideoAutoMenuBuilder ( vlc_object_t p_object,
ArrayOfInts &  ri_objects,
ArrayOfStrings &  rs_varnames 
)

wxMenu* VideoMenu ( intf_thread_t _p_intf,
wxWindow *  p_parent,
wxMenu *  p_menu 
)

void VideoPopupMenu ( intf_thread_t p_intf,
wxWindow *  p_parent,
const wxPoint &  pos 
)

WX_DEFINE_ARRAY ( int  ,
ArrayOfInts   
)

WX_DEFINE_ARRAY_PTR ( const char *  ,
ArrayOfStrings   
)


Generated on Wed Aug 13 08:03:55 2008 for VLC by  doxygen 1.5.1