67 int i = gtk_combo_box_get_active (GTK_COMBO_BOX(widg));
81 gtk_check_menu_item_set_active ((GtkCheckMenuItem *)
opengl_project -> modelgl -> ogl_box_axis[0][2], TRUE);
90 gtk_check_menu_item_set_active ((GtkCheckMenuItem *)
opengl_project -> modelgl -> ogl_box_axis[0][1], TRUE);
119 val = gtk_check_button_get_active (but);
121 val = gtk_toggle_button_get_active (but);
127 gtk_check_menu_item_set_active ((GtkCheckMenuItem *)
opengl_project -> modelgl -> ogl_box_axis[0][0], TRUE);
135 gtk_check_menu_item_set_active ((GtkCheckMenuItem *)
opengl_project -> modelgl -> ogl_box_axis[0][0], FALSE);
137 gtk_combo_box_set_active (GTK_COMBO_BOX(
styles),
NONE);
167G_MODULE_EXPORT
void box_advanced (GSimpleAction *
action, GVariant * parameter, gpointer data)
184 GtkWidget * win =
dialogmodal (
"Advanced box settings", GTK_WINDOW(view -> win));
189 if (view -> anim -> last ->
img -> box_axis[
BOX] !=
NONE)
212 if (view -> anim -> last ->
img -> box_axis[
BOX] ==
NONE) i =
NONE;
215 gtk_combo_box_set_active (GTK_COMBO_BOX(
styles), i);
216 gtk_widget_set_size_request (
styles, 100, -1);
247 update_menu_bar (view);
GMainLoop * Event_loop[5]
Global variable declarations Global convenience function declarations Global data structure defin...
GtkWidget * create_entry(GCallback handler, int dim, int cdim, gboolean key_release, gpointer data)
Create a GtkEntry.
void update_entry_double(GtkEntry *entry, double doubleval)
update the content of a GtkEntry as double
GtkWidget * dialogmodal(gchar *str, GtkWindow *parent)
Create a new dialog modal window.
gboolean is_the_widget_visible(GtkWidget *widg)
test if a GtkWidget exist, then return if it is visible or not
void opengl_project_changed(int id)
change the OpenGL project
GtkWidget * check_button(gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
create a check button
GtkWidget * create_combo()
create a GtkCombox widget, note deprecated in GTK4
GtkWidget * dialog_get_content_area(GtkWidget *widg)
prepare GtkWidget to insert content in a GtkDialog window
void add_box_child_start(int orientation, GtkWidget *widg, GtkWidget *child, gboolean expand, gboolean fill, int padding)
Add a GtkWidget in a GtkBox at the initial position.
ColRGBA get_button_color(GtkColorChooser *colob)
get the ColRGBA color from a GtkColorChooser button
void widget_set_sensitive(GtkWidget *widg, gboolean sensitive)
Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
void combo_text_append(GtkWidget *combo, gchar *text)
append text in GtkComboBox widget
G_MODULE_EXPORT void run_destroy_dialog(GtkDialog *dialog, gint response_id, gpointer data)
to destroy a GtkDialog when the dialog emit the closing signal
GtkWidget * color_button(ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data)
create a color selection button
void hide_the_widgets(GtkWidget *widg)
hide GtkWidget
GtkWidget * create_vbox(int spacing)
create a GtkBox with vertical orientation
GtkWidget * abox(GtkWidget *box, char *lab, int vspace)
box creating routine, to help design faster elements for the GUI
void show_the_widgets(GtkWidget *widg)
show GtkWidget
void update(glwin *view)
update the rendering of the OpenGL window
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Function declarations for the creation of the OpenGL window.
Messaging function declarations.
G_MODULE_EXPORT void set_show_box_toggle(GtkToggleButton *but, gpointer data)
toggle show / hide box callback GTK3
G_MODULE_EXPORT void set_box_combo_style(GtkWidget *widg, gpointer data)
set box style callback
G_MODULE_EXPORT void update_bond_parameter(GtkEntry *res, gpointer data)
update bond parameter callback
G_MODULE_EXPORT void set_color_box(GtkColorChooser *colob, gpointer data)
set box color callback
gchar * box_style[BOX_STYLES]
G_MODULE_EXPORT void box_advanced(GtkWidget *widg, gpointer data)
create the box edition window callback GTK3