799 gboolean build_win = TRUE;
816 view = (
glwin *)data;
817 if (view -> axis_win)
819 if (view -> axis_win -> win && GTK_IS_WIDGET(view -> axis_win -> win))
827 view -> axis_win = g_malloc0(
sizeof*view -> axis_win);
828 the_axis = view -> axis_win;
829 axis_type = view -> anim -> last ->
img -> xyz ->
axis;
830 axis_line = view -> anim -> last ->
img -> xyz -> line;
831 axis_rad = view -> anim -> last ->
img -> xyz -> rad;
832 axis_tpos = view -> anim -> last ->
img -> xyz -> t_pos;
833 axis_length = view -> anim -> last ->
img -> xyz -> length;
834 axis_labels = view -> anim -> last ->
img -> xyz ->
labels;
835 axis_color = view -> anim -> last ->
img -> xyz ->
color;
836 axis_cpos = view -> anim -> last ->
img -> xyz -> c_pos;
837 axis_label = & view -> anim -> last ->
img ->
labels[2];
846 adv_box (the_axis -> win,
"<b>Axis settings</b>", 10, 120, 0.0);
855 the_axis -> win =
create_win (str, view -> win, FALSE, FALSE);
861 if (axis_type !=
NONE)
877 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, pos_box, FALSE, FALSE, 5);
886 gchar * axis_template[
AXIS_TEMPLATES] = {
"Top Right Corner <sup>*</sup>",
"Top Left Corner <sup>*</sup>",
"Bottom Right Corner <sup>*</sup>",
"Bottom Left Corner <sup>*</sup>",
"Center <sup>**</sup>"};
887 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, pos_box,
check_button (
"Use template positions", 120, 30, ac, G_CALLBACK(
use_axis_default_positions), data), FALSE, FALSE, 0);
895 gtk_widget_set_size_request (the_axis -> templates, 150, -1);
896 g_signal_connect (G_OBJECT (the_axis -> templates),
"changed", G_CALLBACK(
set_axis_template), data);
897 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, pos_box, the_axis -> templates, FALSE, FALSE, 10);
902 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, the_axis -> axis_position_box, FALSE, FALSE, 0);
903 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_position_box,
markup_label(
"Please choose axis position:", -1, -1, 0.0, 0.5), FALSE, TRUE, 5);
910 gtk_widget_set_size_request (ax_name, 20, -1);
918 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_position_box, chbox, FALSE, TRUE, 5);
919 ax_name = gtk_label_new (
al[i]);
925 box =
abox (the_axis -> axis_data,
"Length [Å] ", 0);
930 box =
abox (the_axis -> axis_data,
"Style ", 0);
940 gtk_widget_set_size_request (the_axis ->
styles, 150, -1);
944 the_axis -> width_box =
abox (the_axis -> axis_data,
"Line width [pts] ", 0);
946 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, the_axis -> width_box, the_axis -> width, FALSE, FALSE, 0);
948 the_axis -> radius_box =
abox (the_axis -> axis_data,
"Cylinder radius [Å] ", 0);
950 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, the_axis -> radius_box, the_axis -> radius, FALSE, FALSE, 0);
955 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, lab_box, FALSE, FALSE, 0);
956 add_box_child_start (GTK_ORIENTATION_VERTICAL, lab_box,
check_button (
"Label axis", 100, 40, axis_labels, G_CALLBACK(
set_axis_labels), data), FALSE, FALSE, 0);
959 add_box_child_start (GTK_ORIENTATION_VERTICAL, lab_box, the_axis -> axis_label_box[0], FALSE, FALSE, 0);
960 box =
abox (the_axis -> axis_label_box[0],
"Rendering ", 0);
965 gtk_widget_set_size_request (config, 150, -1);
968 box =
abox (the_axis -> axis_label_box[0],
"Font", 0);
973 box =
abox (the_axis -> axis_label_box[0],
"Size", 0);
981 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, lab_h_box, the_axis -> axis_label_box[1], FALSE, FALSE, 0);
982 box =
abox (the_axis -> axis_label_box[1],
"Legends", 0);
983 GtkWidget * ax_title[3];
990 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_label_box[1], chbox, FALSE, FALSE, 2);
1000 add_box_child_start (GTK_ORIENTATION_HORIZONTAL,
box,
check_button (
"Use base colors", -1, -1, ac, G_CALLBACK(
use_axis_default_colors), data), FALSE, FALSE, 10);
1002 if (axis_color == NULL)
1013 if (axis_color != NULL)
1026 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, chbox, the_axis -> axis_color_title[i], FALSE, FALSE, 40);
1031 append_comments (the_axis -> axis_data,
"<sup>*</sup>",
"In front of the atomic model");
1032 append_comments (the_axis -> axis_data,
"<sup>**</sup>",
"Inside the atomic model");