| Top |
Menu and toolbox item sensitivity is updated by main application whenever its state changes. Possible states that may affect widget sesitivity are defined in GwyMenuSensFlags.
GtkWidget * gwy_app_image_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from data processing functions registered by modules, therefore module registration has to be done first for this function to make sense.
GtkWidget * gwy_app_graph_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from graph functions registered by modules, therefore module registration has to be done first for this function to make sense.
GtkWidget * gwy_app_xyz_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from XYZ data processing functions registered by modules, therefore module registration has to be done first for this function to make sense.
GtkWidget * gwy_app_cmap_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from curve map data processing functions registered by modules, therefore module registration has to be done first for this function to make sense.
GtkWidget * gwy_app_synth_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from curve map data processing functions registered by modules, therefore module registration has to be done first for this function to make sense.
GtkWidget * gwy_app_volume_menu (GtkAccelGroup *accel_group,GwySensitivityGroup *sens_group);
Constructs the application menu.
The menu is created from volume data processing functions registered by modules, therefore module registration has to be done first for this function to make sense.
GwyRunModeFlags
gwy_app_run_process_func (const gchar *name);
Runs a data processing function on the current data.
From the run modes function name
supports, the most interactive one is
selected.
void gwy_app_run_process_func_in_mode (const gchar *name,GwyRunModeFlags run);
Runs a data processing function on current data in specified mode.
void
gwy_app_run_graph_func (const gchar *name);
Runs a graph function on the current graph.
GwyRunModeFlags
gwy_app_run_volume_func (const gchar *name);
Runs a volume data processing function on the current data.
From the run modes function name
supports, the most interactive one is selected.
void gwy_app_run_volume_func_in_mode (const gchar *name,GwyRunModeFlags run);
Runs a volume data processing function on current data in specified mode.
GwyRunModeFlags
gwy_app_run_xyz_func (const gchar *name);
Runs a XYZ data processing function on the current data.
From the run modes function name
supports, the most interactive one is selected.
void gwy_app_run_xyz_func_in_mode (const gchar *name,GwyRunModeFlags run);
Runs a XYZ data processing function on current data in specified mode.
GwyRunModeFlags
gwy_app_run_cmap_func (const gchar *name);
Runs a curve map processing function on the current data.
From the run modes function name
supports, the most interactive one is selected.
void gwy_app_run_cmap_func_in_mode (const gchar *name,GwyRunModeFlags run);
Runs a curve map processing function on current data in specified mode.
GwyRunModeFlags
gwy_app_run_synth_func (const gchar *name);
Runs a synthetic data function on the current data.
From the run modes function name
supports, the most interactive one is selected.
void gwy_app_run_synth_func_in_mode (const gchar *name,GwyRunModeFlags run);
Runs a synthetic data function on current data in specified mode.
GtkWidget * gwy_app_create_recent_func_menu (GwyDataKind data_kind,GtkWindow *window,GwySensitivityGroup *sens_group);
Creates a recent function menu for given kind of data.
The menu content is updated automatically when function such as gwy_app_run_volume_func() is used.
GwySensitivityGroup *
gwy_app_sensitivity_get_group (void);
Gets the application-wide widget sensitvity group.
The flags to be used with this sensitvity group are defined in GwyMenuSensFlags.
void gwy_app_sensitivity_add_widget (GtkWidget *widget,GwyMenuSensFlags mask);
Adds a widget to the application-wide widget sensitvity group.
The semantics of this function is the same as gwy_sensitivity_group_add_widget() (in fact, it's a simple wrapper
around it).
void gwy_app_sensitivity_set_state (GwyMenuSensFlags affected_mask,GwyMenuSensFlags state);
Sets the state of application-wide widget sensitvity group.
The semantics of this function is the same as gwy_sensitivity_group_set_state() (in fact, it's a simple wrapper
around it).
Sensitivity flags indicating the availability of various data kinds.
They represent various application states that may be preconditions for widgets to become sensitive.
|
A file is open, with any type of data. |
||
|
There is something to undo (for the current window). |
||
|
There is something to redo (for the current window). |
||
|
An image window is active on which image functions can be used. |
||
|
There is a presentation on the image. |
||
|
There is a mask on the image. |
||
|
An OpenGL 3D view is present. |
||
|
A graph window is active on which graph functions can be used. |
||
|
There current graph window contains at least one curve. This ensures a graph function will not be run on an empty graph. |
||
|
A spectra graph window is active on which spectra functions can be used. |
||
|
A volume image window is active on which volume data functions can be used. |
||
|
An XYZ image window is active on which XYZ data functions can be used. |
||
|
A curve map image window is active on which curve map functions can be used. |