gui_menus.c File Reference
#include <stdlib.h>
#include "stage_internal.h"
#include "gui.h"
Defines | |
#define | TOGGLE_PATH "/Main/View" |
Functions | |
GtkWidget * | create_prefsdialog (void) |
void | export_window (gui_window_t *win) |
gboolean | frame_callback (gpointer data) |
void | gui_action_about (GtkAction *action, gpointer user_data) |
void | gui_action_disable_polygons (GtkToggleAction *action, void *userdata) |
void | gui_action_disable_polygons (GtkToggleAction *action, gpointer userdata) |
void | gui_action_exit (GtkAction *action, void *userdata) |
void | gui_action_exit (GtkAction *action, gpointer userdata) |
void | gui_action_export_format (GtkRadioAction *action, GtkRadioAction *current, gpointer userdata) |
void | gui_action_export_interval (GtkRadioAction *action, GtkRadioAction *current, gpointer userdata) |
void | gui_action_exportframe (GtkAction *action, void *userdata) |
void | gui_action_exportframe (GtkAction *action, gpointer userdata) |
void | gui_action_exportsequence (GtkToggleAction *action, void *userdata) |
void | gui_action_exportsequence (GtkToggleAction *action, gpointer userdata) |
void | gui_action_geom (GtkToggleAction *action, gpointer userdata) |
void | gui_action_grid (GtkToggleAction *action, void *userdata) |
void | gui_action_grid (GtkToggleAction *action, gpointer userdata) |
void | gui_action_matrixdelta (GtkToggleAction *action, gpointer userdata) |
void | gui_action_matrixocc (GtkToggleAction *action, gpointer userdata) |
void | gui_action_matrixtree (GtkToggleAction *action, gpointer userdata) |
void | gui_action_pause (GtkToggleAction *action, void *userdata) |
void | gui_action_pause (GtkToggleAction *action, gpointer userdata) |
void | gui_action_polygons (GtkToggleAction *action, void *userdata) |
void | gui_action_polygons (GtkToggleAction *action, gpointer userdata) |
void | gui_action_prefs (GtkAction *action, gpointer user_data) |
void | gui_action_raytrace (GtkToggleAction *action, gpointer userdata) |
void | gui_action_reset (GtkAction *action, gpointer userdata) |
void | gui_action_save (GtkAction *action, gpointer user_data) |
void | gui_action_trails (GtkToggleAction *action, void *userdata) |
void | gui_action_trails (GtkToggleAction *action, gpointer userdata) |
void | gui_add_tree_item (stg_model_t *mod) |
void | gui_window_menus_create (gui_window_t *win) |
void | model_render_polygons_cb (gpointer key, gpointer data, gpointer user) |
void | stg_model_add_property_toggles (stg_model_t *mod, void *member, stg_model_callback_t callback_on, void *arg_on, stg_model_callback_t callback_off, void *arg_off, const char *name, const char *label, gboolean enabled) |
void | test (GtkMenuItem *item, void *userdata) |
void | toggle_property_callback (GtkToggleAction *action, void *userdata) |
Variables | |
int | _render_matrix_deltas |
int | _stg_disable_gui |
int | _stg_quit |
stg_rtk_fig_t * | fig_debug_geom |
stg_rtk_fig_t * | fig_debug_matrix |
stg_rtk_fig_t * | fig_debug_rays |
stg_rtk_fig_t * | fig_trails |
Define Documentation
#define TOGGLE_PATH "/Main/View" |
Referenced by stg_model_add_property_toggles().
Function Documentation
GtkWidget* create_prefsdialog | ( | void | ) |
References _, FALSE, GLADE_HOOKUP_OBJECT, GLADE_HOOKUP_OBJECT_NO_REF, and TRUE.
Referenced by gui_action_prefs().
void export_window | ( | gui_window_t * | win | ) |
save a frame as a jpeg, with incremental index numbers. if series is greater than 0, its value is incorporated into the filename
References gui_window_t::canvas, gui_window_t::frame_format, gui_window_t::frame_index, gui_window_t::frame_series, stg_rtk_canvas_export_image(), STK_IMAGE_FORMAT_JPEG, and STK_IMAGE_FORMAT_PNG.
Referenced by frame_callback(), and gui_action_exportframe().
gboolean frame_callback | ( | gpointer | data | ) |
void gui_action_about | ( | GtkAction * | action, | |
gpointer | user_data | |||
) |
void gui_action_disable_polygons | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References PRINT_DEBUG, STG_LAYER_BODY, and stg_rtk_canvas_layer_show().
void gui_action_disable_polygons | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_exit | ( | GtkAction * | action, | |
void * | userdata | |||
) |
References PRINT_MSG, quit_dialog(), and stg_quit_request().
void gui_action_exit | ( | GtkAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_export_format | ( | GtkRadioAction * | action, | |
GtkRadioAction * | current, | |||
gpointer | userdata | |||
) |
Referenced by gui_window_menus_create().
void gui_action_export_interval | ( | GtkRadioAction * | action, | |
GtkRadioAction * | current, | |||
gpointer | userdata | |||
) |
Referenced by gui_window_menus_create().
void gui_action_exportframe | ( | GtkAction * | action, | |
void * | userdata | |||
) |
References export_window().
void gui_action_exportframe | ( | GtkAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_exportsequence | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
void gui_action_exportsequence | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_geom | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
References PRINT_DEBUG, STG_LAYER_GEOM, stg_rtk_fig_color_rgb32(), stg_rtk_fig_create(), and stg_rtk_fig_destroy().
void gui_action_grid | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References PRINT_DEBUG, STG_LAYER_GRID, and stg_rtk_canvas_layer_show().
void gui_action_grid | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_matrixdelta | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
References _render_matrix_deltas, FALSE, PRINT_DEBUG, stg_cell_unrender_tree(), STG_LAYER_MATRIX_TREE, stg_rtk_fig_create(), and TRUE.
void gui_action_matrixocc | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
References PRINT_DEBUG, STG_LAYER_MATRIX, stg_rtk_fig_color_rgb32(), stg_rtk_fig_create(), and stg_rtk_fig_destroy().
void gui_action_matrixtree | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_pause | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References PRINT_DEBUG.
void gui_action_pause | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_polygons | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References model_render_polygons_cb(), and PRINT_DEBUG.
void gui_action_polygons | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_prefs | ( | GtkAction * | action, | |
gpointer | user_data | |||
) |
References create_prefsdialog().
void gui_action_raytrace | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void gui_action_reset | ( | GtkAction * | action, | |
gpointer | userdata | |||
) |
References stg_world_reload().
void gui_action_save | ( | GtkAction * | action, | |
gpointer | user_data | |||
) |
References stg_world_save().
void gui_action_trails | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References PRINT_DEBUG, STG_LAYER_BODY, stg_rtk_fig_and_descendents_destroy(), and stg_rtk_fig_create().
void gui_action_trails | ( | GtkToggleAction * | action, | |
gpointer | userdata | |||
) |
void model_render_polygons_cb | ( | gpointer | key, | |
gpointer | data, | |||
gpointer | user | |||
) |
void test | ( | GtkMenuItem * | item, | |
void * | userdata | |||
) |
void toggle_property_callback | ( | GtkToggleAction * | action, | |
void * | userdata | |||
) |
References stg_property_toggle_args_t::arg_off, stg_property_toggle_args_t::arg_on, stg_property_toggle_args_t::callback_off, stg_property_toggle_args_t::callback_on, stg_property_toggle_args_t::member, stg_property_toggle_args_t::mod, model_change(), stg_model_add_callback(), and stg_model_remove_callback().
Referenced by stg_model_add_property_toggles().
Variable Documentation
int _stg_disable_gui |
int _stg_quit |
Referenced by stg_print_err(), stg_quit_cancel(), stg_quit_request(), stg_quit_test(), and stg_world_update().
Generated on Wed Jun 3 23:12:29 2009 for Stage by
