babel_ui

babel_ui

Functions

Description

Functions

a_babel_ui_file_type_selector_new ()

GtkWidget *
a_babel_ui_file_type_selector_new (BabelMode mode);

Create a file type selector.

This widget relies on a combo box listing labels of file formats. We store in the "data" of the GtkWidget a list with the BabelFile entries, in order to retrieve the selected file format.

Parameters

mode

the mode to filter the file types

 

Returns

a GtkWidget


a_babel_ui_file_type_selector_destroy ()

void
a_babel_ui_file_type_selector_destroy (GtkWidget *selector);

Destroy the selector and any related data.

Parameters

selector

the selector to destroy

 

a_babel_ui_file_type_selector_get ()

BabelFile *
a_babel_ui_file_type_selector_get (GtkWidget *selector);

Retrieve the selected file type.

Parameters

selector

the selector

 

Returns

the selected BabelFile or NULL


a_babel_ui_type_selector_dialog_sensitivity_cb ()

void
a_babel_ui_type_selector_dialog_sensitivity_cb
                               (GtkComboBox *widget,
                                gpointer user_data);

a_babel_ui_modes_new ()

GtkWidget *
a_babel_ui_modes_new (gboolean tracks,
                      gboolean routes,
                      gboolean waypoints);

Creates a selector for babel modes. This selector is based on 3 checkboxes.

Returns

a GtkWidget packing all checkboxes.


a_babel_ui_modes_get ()

void
a_babel_ui_modes_get (GtkWidget *container,
                      gboolean *tracks,
                      gboolean *routes,
                      gboolean *waypoints);

Retrieve state of checkboxes.

Parameters

tracks

return value

 

routes

return value

 

waypoints

return value