
Data Structures | |
| struct | VlcMenuItemClass |
| struct | VlcMenuItem |
Defines | |
| #define | SIZE_LIST 20 |
| #define | PUSH_VAR(var) |
| #define | PUSH_INPUTVAR(var) |
| #define | ADD_MENU_ITEM(label, callback) |
| #define | ADD_SEPARATOR() |
| #define | CURVAL val_list.p_list->p_values[i] |
| #define | CURTEXT text_list.p_list->p_values[i].psz_string |
Enumerations | |
| enum | { ITEM_NORMAL, ITEM_CHECK, ITEM_RADIO } |
Functions | |
| static GtkMenu * | Populate (intf_thread_t *p_intf, GtkMenu *menu, const char **varnames, vlc_object_t **objects, unsigned int elements) |
| static input_thread_t * | get_input (intf_thread_t *p_intf) |
| static vlc_object_t * | get_vout (intf_thread_t *p_intf) |
| static vlc_object_t * | get_aout (intf_thread_t *p_intf) |
| static gint | quit_event (GtkWidget *widget, gpointer data) |
| static GtkMenu * | create_video_menu (intf_thread_t *p_intf) |
| static GtkMenu * | create_audio_menu (intf_thread_t *p_intf) |
| static GtkMenu * | create_input_menu (intf_thread_t *p_intf) |
| static void | toplevel_menu_callback (GtkMenuItem *menuitem, gpointer data) |
| GtkWidget * | create_menu (intf_thread_t *p_intf) |
| static void | vlc_menu_item_destroy (GtkObject *object) |
| static void | vlc_menu_item_class_init (VlcMenuItemClass *klass) |
| static void | vlc_menu_item_init (VlcMenuItem *menuitem) |
| static GtkType | vlc_menu_item_get_type (void) |
| static GtkType | vlc_check_menu_item_get_type (void) |
| static GtkType | vlc_radio_menu_item_get_type (void) |
| static GtkWidget * | vlc_menu_item_new (vlc_object_t *p_obj, int i_type, vlc_value_t val, const char *var) |
| static int | CreateChoicesMenu (intf_thread_t *p_intf, GtkMenu *submenu, const char *psz_var, vlc_object_t *p_object, bool b_root) |
| static void | menu_callback (GtkMenuItem *menuitem, gpointer user_data) |
| static void | CreateAndConnect (intf_thread_t *p_intf, GtkMenu *menu, const char *psz_var, const char *text, const char *help, int i_item_type, vlc_object_t *p_obj, vlc_value_t val, int i_val_type, bool checked) |
| static bool | IsMenuEmpty (const char *psz_var, vlc_object_t *p_object, bool b_root) |
| static void | UpdateItem (intf_thread_t *p_intf, GtkMenu *menu, const char *psz_var, vlc_object_t *p_object, bool b_submenu) |
| static bool | CheckTitle (vlc_object_t *p_object, const char *psz_var) |
| HACK for the navigation submenu: "title %2i" variables take the value 0 if not set. | |
| #define ADD_MENU_ITEM | ( | label, | |||
| callback | ) |
Value:
item = gtk_menu_item_new_with_label( label ); \ gtk_menu_append( main_menu, item ); \ g_signal_connect( GTK_OBJECT( item ), "activate", G_CALLBACK( callback ), \ p_intf );
Referenced by create_menu().
| #define ADD_SEPARATOR | ( | ) |
Value:
Referenced by create_menu().
| #define CURTEXT text_list.p_list->p_values[i].psz_string |
Referenced by CreateChoicesMenu().
| #define CURVAL val_list.p_list->p_values[i] |
Referenced by CreateChoicesMenu().
| #define PUSH_INPUTVAR | ( | var | ) |
Value:
ppsz_varnames[index] = var; \ p_objects[index] = VLC_OBJECT(p_input); \ if(index < SIZE_LIST - 1) index++; \ ppsz_varnames[index] = 0; p_objects[index] = 0;
Referenced by AudioAutoMenuBuilder(), create_audio_menu(), create_video_menu(), and VideoAutoMenuBuilder().
| #define PUSH_VAR | ( | var | ) |
Value:
ppsz_varnames[index] = var; \ p_objects[index] = VLC_OBJECT(p_object); \ if(index < SIZE_LIST - 1) index++; \ ppsz_varnames[index] = 0; p_objects[index] = 0;
Referenced by AudioAutoMenuBuilder(), create_audio_menu(), create_input_menu(), create_video_menu(), InputAutoMenuBuilder(), and VideoAutoMenuBuilder().
| #define SIZE_LIST 20 |
Referenced by create_audio_menu(), create_input_menu(), and create_video_menu().
| static bool CheckTitle | ( | vlc_object_t * | p_object, | |
| const char * | psz_var | |||
| ) | [static] |
HACK for the navigation submenu: "title %2i" variables take the value 0 if not set.
References var_GetInteger.
Referenced by CreateChoicesMenu().
| static GtkMenu* create_audio_menu | ( | intf_thread_t * | p_intf | ) | [static] |
References get_aout(), get_input(), index, Populate(), PUSH_INPUTVAR, PUSH_VAR, and SIZE_LIST.
Referenced by toplevel_menu_callback().
| static GtkMenu* create_input_menu | ( | intf_thread_t * | p_intf | ) | [static] |
References get_input(), index, Populate(), PUSH_VAR, and SIZE_LIST.
Referenced by toplevel_menu_callback().
| GtkWidget* create_menu | ( | intf_thread_t * | p_intf | ) |
References ADD_MENU_ITEM, ADD_SEPARATOR, intf_sys_t::menu_audio, intf_sys_t::menu_input, intf_sys_t::menu_video, open_address_cb(), open_cb(), open_webcam_cb(), intf_thread_t::p_sys, p_sys, quit_event(), and toplevel_menu_callback().
Referenced by Thread().
| static GtkMenu* create_video_menu | ( | intf_thread_t * | p_intf | ) | [static] |
References get_input(), get_vout(), index, Populate(), PUSH_INPUTVAR, PUSH_VAR, and SIZE_LIST.
Referenced by toplevel_menu_callback().
| static void CreateAndConnect | ( | intf_thread_t * | p_intf, | |
| GtkMenu * | menu, | |||
| const char * | psz_var, | |||
| const char * | text, | |||
| const char * | help, | |||
| int | i_item_type, | |||
| vlc_object_t * | p_obj, | |||
| vlc_value_t | val, | |||
| int | i_val_type, | |||
| bool | checked | |||
| ) | [static] |
References ITEM_CHECK, ITEM_RADIO, menu_callback(), and vlc_menu_item_new().
Referenced by CreateChoicesMenu(), QVLCMenu::PopupMenu(), and UpdateItem().
| static int CreateChoicesMenu | ( | intf_thread_t * | p_intf, | |
| GtkMenu * | submenu, | |||
| const char * | psz_var, | |||
| vlc_object_t * | p_object, | |||
| bool | b_root | |||
| ) | [static] |
References CheckTitle(), CreateAndConnect(), CURTEXT, CURVAL, vlc_value_t::f_float, i, vlc_list_t::i_count, vlc_value_t::i_int, i_type, IsMenuEmpty(), ITEM_RADIO, vlc_value_t::p_list, vlc_value_t::psz_string, strdup(), var_Change, var_FreeList(), var_Get, var_Type, VLC_EGENERIC, VLC_SUCCESS, VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_GETLIST, VLC_VAR_INTEGER, VLC_VAR_STRING, VLC_VAR_TYPE, VLC_VAR_VARIABLE, and VLC_VAR_VOID.
Referenced by UpdateItem().
| static vlc_object_t* get_aout | ( | intf_thread_t * | p_intf | ) | [static] |
References input_GetAout(), intf_sys_t::p_input, and intf_thread_t::p_sys.
Referenced by create_audio_menu().
| static input_thread_t* get_input | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::p_input, and intf_thread_t::p_sys.
Referenced by create_audio_menu(), create_input_menu(), and create_video_menu().
| static vlc_object_t* get_vout | ( | intf_thread_t * | p_intf | ) | [static] |
References input_GetVout(), intf_sys_t::p_input, and intf_thread_t::p_sys.
Referenced by create_video_menu(), and UpdateItem().
| static bool IsMenuEmpty | ( | const char * | psz_var, | |
| vlc_object_t * | p_object, | |||
| bool | b_root | |||
| ) | [static] |
References i, vlc_list_t::i_count, vlc_value_t::i_int, i_type, vlc_value_t::p_list, vlc_list_t::p_values, vlc_value_t::psz_string, var_Change, var_FreeList(), var_Type, VLC_VAR_CHOICESCOUNT, VLC_VAR_GETLIST, VLC_VAR_HASCHOICE, VLC_VAR_TYPE, and VLC_VAR_VARIABLE.
Referenced by CreateChoicesMenu(), IsMenuEmpty(), and UpdateItem().
| static void menu_callback | ( | GtkMenuItem * | menuitem, | |
| gpointer | user_data | |||
| ) | [static] |
References VlcMenuItem::p_obj, VlcMenuItem::psz_var, VlcMenuItem::val, and var_Set.
Referenced by CreateAndConnect().
| static GtkMenu * Populate | ( | intf_thread_t * | p_intf, | |
| GtkMenu * | menu, | |||
| const char ** | varnames, | |||
| vlc_object_t ** | objects, | |||
| unsigned int | elements | |||
| ) | [static] |
References i, and UpdateItem().
Referenced by create_audio_menu(), create_input_menu(), create_video_menu(), QVLCMenu::MiscPopupMenu(), and QVLCMenu::PopupMenu().
| static gint quit_event | ( | GtkWidget * | widget, | |
| gpointer | data | |||
| ) | [static] |
References libvlc_Quit(), and intf_thread_t::p_libvlc.
| static void toplevel_menu_callback | ( | GtkMenuItem * | menuitem, | |
| gpointer | data | |||
| ) | [static] |
References create_audio_menu(), create_input_menu(), create_video_menu(), intf_sys_t::menu_audio, intf_sys_t::menu_input, intf_sys_t::menu_video, and intf_thread_t::p_sys.
Referenced by create_menu().
| static void UpdateItem | ( | intf_thread_t * | p_intf, | |
| GtkMenu * | menu, | |||
| const char * | psz_var, | |||
| vlc_object_t * | p_object, | |||
| bool | b_submenu | |||
| ) | [static] |
References vlc_value_t::b_bool, CreateAndConnect(), CreateChoicesMenu(), FREENULL, get_vout(), i_type, IsMenuEmpty(), ITEM_CHECK, ITEM_NORMAL, vlc_value_t::psz_string, text, var_Change, var_Get, var_Type, vlc_object_release, VLC_SUCCESS, VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_GETTEXT, VLC_VAR_HASCHOICE, VLC_VAR_INTEGER, VLC_VAR_STRING, VLC_VAR_TYPE, VLC_VAR_VARIABLE, and VLC_VAR_VOID.
Referenced by Populate().
| static GtkType vlc_check_menu_item_get_type | ( | void | ) | [static] |
| static void vlc_menu_item_class_init | ( | VlcMenuItemClass * | klass | ) | [static] |
References vlc_menu_item_destroy().
Referenced by vlc_check_menu_item_get_type(), vlc_menu_item_get_type(), and vlc_radio_menu_item_get_type().
| static void vlc_menu_item_destroy | ( | GtkObject * | object | ) | [static] |
References VlcMenuItem::i_type, vlc_value_t::psz_string, VlcMenuItem::val, and VLC_VAR_STRING.
Referenced by vlc_menu_item_class_init().
| static GtkType vlc_menu_item_get_type | ( | void | ) | [static] |
| static void vlc_menu_item_init | ( | VlcMenuItem * | menuitem | ) | [static] |
Referenced by vlc_check_menu_item_get_type(), vlc_menu_item_get_type(), and vlc_radio_menu_item_get_type().
| static GtkWidget* vlc_menu_item_new | ( | vlc_object_t * | p_obj, | |
| int | i_type, | |||
| vlc_value_t | val, | |||
| const char * | var | |||
| ) | [static] |
| static GtkType vlc_radio_menu_item_get_type | ( | void | ) | [static] |
1.5.6