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_build_process_menu (GtkAccelGroup *accel_group
);
Constructs the application
menu.The menu is created from data processing functions registered by modules, therefore module registration has to be performed first for this function to make sense.
void
gwy_app_process_menu_add_run_last (GtkWidget *menu
);
Adds
and items to application data processmenu.
This function is essentially useful only for toolbox construction.
GwyRunType
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
,GwyRunType run
);
Runs a data processing function on current data in specified mode.
GtkWidget *
gwy_app_build_graph_menu (GtkAccelGroup *accel_group
);
Constructs the application
menu.The menu is created from graph functions registered by modules, therefore module registration has to be performed first for this function to make sense.
void
gwy_app_run_graph_func (const gchar *name
);
Runs a graph function on the current graph.
GtkWidget *
gwy_app_build_volume_menu (GtkAccelGroup *accel_group
);
Constructs the application
menu.The menu is created from volume data processing functions registered by modules, therefore module registration has to be performed first for this function to make sense.
Since: 2.32
GwyRunType
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.
Since: 2.32
void gwy_app_run_volume_func_in_mode (const gchar *name
,GwyRunType run
);
Runs a volume data processing function on current data in specified mode.
Since: 2.32
GtkWidget *
gwy_app_build_xyz_menu (GtkAccelGroup *accel_group
);
Constructs the application
menu.The menu is created from XYZ data processing functions registered by modules, therefore module registration has to be performed first for this function to make sense.
Since: 2.45
GwyRunType
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.
Since: 2.45
void gwy_app_run_xyz_func_in_mode (const gchar *name
,GwyRunType run
);
Runs a XYZ data processing function on current data in specified mode.
Since: 2.45
void
gwy_app_menu_recent_files_update (GList *recent_files
);
Updates recent file menu.
If the list of files is longer than the maximum number of recent file menu items, only the maximum number is shown.
GtkWidget *
gwy_app_menu_recent_files_get (void
);
Gets the application recent files menu.
The menu is initially empty and can be updated
with gwy_app_menu_recent_files_update()
. This function is essentially
useful only for toolbox construction.
GtkTooltips *
gwy_app_get_tooltips (void
);
Gets the application-wide tooltips instance.
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).
Global application sensitivity flags.
They represent various application states that may be preconditions for widgets to become sensitive.
There is at least a one data window present. |
||
There is something to undo (for current data window). |
||
There is something to redo (for current data window). |
||
There is at least a one graph window present. |
||
There is a last-run data processing function to rerun. |
||
There is a last-run graph function to rerun. |
||
There is a mask on the data. |
||
There is a presentation on the data. |
||
A 3D view is present. |
||
A file is open, with any type of data (Since 2.5). |
||
There is at least one volume data window present (Since 2.32). |
||
There is at least one XYZ surface data window present (Since 2.45). |
||
All the bits combined. |