toolbar

toolbar

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── VikToolbar

Description

Functions

vik_toolbar_new ()

VikToolbar *
vik_toolbar_new (void);

vik_toolbar_finalize ()

void
vik_toolbar_finalize (VikToolbar *vtb);

Memory cleanups upon toolbar destruction


toolbar_get_widget_by_name ()

GtkWidget *
toolbar_get_widget_by_name (VikToolbar *vtb,
                            const gchar *name);

toolbar_get_action_by_name ()

GtkAction *
toolbar_get_action_by_name (VikToolbar *vtb,
                            const gchar *name);

Find an action in the specified toolbar via the action name


toolbar_action_tool_entry_register ()

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)


toolbar_action_mode_entry_register ()

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)


toolbar_action_toggle_entry_register ()

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!)


toolbar_action_entry_register ()

void
toolbar_action_entry_register (VikToolbar *vtb,
                               GtkActionEntry *action);

Register a standard action button in the specified toolbar


toolbar_action_set_sensitive ()

void
toolbar_action_set_sensitive (VikToolbar *vtb,
                              const gchar *name,
                              gboolean sensitive);

Set sensitivity of a particular action


toolbar_init ()

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


toolbar_apply_settings ()

void
toolbar_apply_settings (VikToolbar *vtb,
                        GtkWidget *vbox,
                        GtkWidget *hbox,
                        gboolean reset);

Updates the specified toolbar with current setting values

Parameters

vbox

Potential vertical container for the specified toolbar

 

hbox

Potential horizontal container for the specified toolbar

 

Reset

Specify if the toolbar should be reparented (when called externally this should always be TRUE)

 

toolbar_get_widget ()

GtkWidget *
toolbar_get_widget (VikToolbar *vtb);

a_toolbar_init ()

void
a_toolbar_init (void);

Initialize stuff for the toolbar.


a_toolbar_uninit ()

void
a_toolbar_uninit (void);

Uninitialize toolbar related stuff.

Types and Values

VIK_TOOLBAR_TYPE

#define VIK_TOOLBAR_TYPE             (vik_toolbar_get_type ())