viklayer_defaults

viklayer_defaults

Functions

Description

Functions

a_layer_defaults_init ()

void
a_layer_defaults_init ();

Call this function at startup


a_layer_defaults_uninit ()

void
a_layer_defaults_uninit ();

Call this function on program exit


a_layer_defaults_register ()

void
a_layer_defaults_register (VikLayerParam *vlp,
                           VikLayerParamData defaultval,
                           const gchar *layername);

Call this function on to set the default value for the particular parameter

Parameters

vlp

The parameter

 

defaultval

The default value

 

layername

The layer in which the parameter resides

 

a_layer_defaults_show_window ()

gboolean
a_layer_defaults_show_window (GtkWindow *parent,
                              const gchar *layername);

This displays a Window showing the default parameter values for the selected layer It allows the parameters to be changed.

Parameters

parent

The Window

 

layername

The layer

 

Returns

TRUE if the window is displayed (because there are parameters to view)


a_layer_defaults_get ()

VikLayerParamData
a_layer_defaults_get (const gchar *layername,
                      const gchar *param_name,
                      VikLayerParamType param_type);

Call this function to get the default value for the parameter requested

Parameters

layername

String name of the layer

 

param_name

String name of the parameter

 

param_type

The parameter type

 

a_layer_defaults_save ()

gboolean
a_layer_defaults_save ();

Call this function to save the current layer defaults Normally should only be performed if any layer defaults have been changed via direct manipulation of the layer rather than the user changing the preferences via the dialog window above

This must only be performed once all layer parameters have been initialized

Returns

TRUE if saving was successful