extern int disable_widgets(xtk_widget_t *xw, void *p) { widget_data_t *wd = xtk_widget_get_data(xw); if(wd) { show_widgets(wd->skin, wd->action_data, 0); return 0; } return -1; }
extern int enable_widgets(xtk_widget_t *xw, void *p) { widget_data_t *wd = xtk_widget_get_data(xw); if(wd) { show_widgets(wd->skin, strdup(wd->action_data), 1); return 0; } return -1; }
/* This function refers to other Vis5D UI components that don't exist when running v5dimport as a standalone program, so be sure to only call it when running the importer as part of Vis5D, not when running the standalone v5dimport program! */ static void regenerate_window_after_import_add( int yo ) { int cur; int Kurrant, rows, cols, yo2; get_display_matrix( &rows, &cols); for (yo2 = 0; yo2 < rows*cols; yo2++){ vis5d_create_display_context(yo2); make_another_gui(yo2, 0); } unmap_all_windows(); map_all_windows(0); if (yo > 0 ){ init_some_colortables( 0, yo); } get_current_display( &Kurrant ); hide_widgets( Kurrant ); show_widgets( Kurrant ); }