Top | ![]() |
![]() |
![]() |
![]() |
VikToolbar * | vik_toolbar_new () |
void | vik_toolbar_finalize () |
GtkWidget * | toolbar_get_widget_by_name () |
GtkAction * | toolbar_get_action_by_name () |
void | toolbar_action_tool_entry_register () |
void | toolbar_action_mode_entry_register () |
void | toolbar_action_toggle_entry_register () |
void | toolbar_action_entry_register () |
void | toolbar_action_set_sensitive () |
void | toolbar_init () |
void | toolbar_apply_settings () |
GtkWidget * | toolbar_get_widget () |
void | a_toolbar_init () |
void | a_toolbar_uninit () |
void
vik_toolbar_finalize (VikToolbar *vtb
);
Memory cleanups upon toolbar destruction
GtkWidget * toolbar_get_widget_by_name (VikToolbar *vtb
,const gchar *name
);
GtkAction * toolbar_get_action_by_name (VikToolbar *vtb
,const gchar *name
);
Find an action in the specified toolbar via the action name
void toolbar_action_tool_entry_register (VikToolbar *vtb
,GtkRadioActionEntry *action
);
Register a tool button in the specified toolbar Only one of these tools can be active at a time (hence it is a GtkRadioActionEntry)
void toolbar_action_mode_entry_register (VikToolbar *vtb
,GtkRadioActionEntry *action
);
Register a drawing projection mode button in the specified toolbar Only one of these modes can be active at a time (hence it is a GtkRadioActionEntry)
void toolbar_action_toggle_entry_register (VikToolbar *vtb
,GtkToggleActionEntry *action
,gpointer callback
);
Register a toggle button in the specified toolbar with the specified callback Used in preventing circluar callbacks of a toolbar toggle event calling the menu toggle event (that then calls toolbar callback and so on and so on...) The toggle action must be given a pointer to a function that is used on the callback for toolbar only (that must offer a way to have a finite call chain!)
void toolbar_action_entry_register (VikToolbar *vtb
,GtkActionEntry *action
);
Register a standard action button in the specified toolbar
void toolbar_action_set_sensitive (VikToolbar *vtb
,const gchar *name
,gboolean sensitive
);
Set sensitivity of a particular action
void toolbar_init (VikToolbar *vtb
,GtkWindow *parent
,GtkWidget *vbox
,GtkWidget *hbox
,ToolCB tool_cb
,ReloadCB reload_cb
,gpointer user_data
);
Initialize the specified toolbar using the given values
void toolbar_apply_settings (VikToolbar *vtb
,GtkWidget *vbox
,GtkWidget *hbox
,gboolean reset
);
Updates the specified toolbar with current setting values