796 gboolean build_win = TRUE;
813 view = (
glwin *)data;
814 if (view -> axis_win)
816 if (view -> axis_win -> win && GTK_IS_WIDGET(view -> axis_win -> win))
824 view -> axis_win = g_malloc0(
sizeof*view -> axis_win);
825 the_axis = view -> axis_win;
826 axis_type = view -> anim -> last ->
img -> xyz ->
axis;
827 axis_line = view -> anim -> last ->
img -> xyz -> line;
828 axis_rad = view -> anim -> last ->
img -> xyz -> rad;
829 axis_tpos = view -> anim -> last ->
img -> xyz -> t_pos;
830 axis_length = view -> anim -> last ->
img -> xyz -> length;
831 axis_labels = view -> anim -> last ->
img -> xyz ->
labels;
832 axis_color = view -> anim -> last ->
img -> xyz ->
color;
833 axis_cpos = view -> anim -> last ->
img -> xyz -> c_pos;
834 axis_label = & view -> anim -> last ->
img ->
labels[2];
843 adv_box (the_axis -> win, _(
"<b>Axis settings</b>"), 10, 120, 0.0);
852 the_axis -> win =
create_win (str, view -> win, FALSE, FALSE);
858 if (axis_type !=
NONE)
874 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, pos_box, FALSE, FALSE, 5);
884 i18n(
"Top Left Corner <sup>*</sup>"),
885 i18n(
"Bottom Right Corner <sup>*</sup>"),
886 i18n(
"Bottom Left Corner <sup>*</sup>"),
887 i18n(
"Center <sup>**</sup>")};
888 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);
896 gtk_widget_set_size_request (the_axis -> templates, 150, -1);
897 g_signal_connect (G_OBJECT (the_axis -> templates),
"changed", G_CALLBACK(
set_axis_template), data);
898 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, pos_box, the_axis -> templates, FALSE, FALSE, 10);
903 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, the_axis -> axis_position_box, FALSE, FALSE, 0);
904 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);
907 gchar * al[3] = {
i18n(
"% of the window width"),
i18n(
"% of the window height"),
i18n(
"% of the window depth")};
908 gchar * axis_symbols[3] = {
"X",
"Y",
"Z"};
912 ax_name = gtk_label_new (axis_symbols[i]);
913 gtk_widget_set_size_request (ax_name, 20, -1);
921 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_position_box, chbox, FALSE, TRUE, 5);
922 ax_name = gtk_label_new (_(al[i]));
928 box =
abox (the_axis -> axis_data, _(
"Length [Å] "), 0);
933 box =
abox (the_axis -> axis_data, _(
"Style "), 0);
941 gtk_widget_set_size_request (the_axis ->
styles, 150, -1);
945 the_axis -> width_box =
abox (the_axis -> axis_data, _(
"Line width [pts] "), 0);
947 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, the_axis -> width_box, the_axis -> width, FALSE, FALSE, 0);
949 the_axis -> radius_box =
abox (the_axis -> axis_data, _(
"Cylinder radius [Å] "), 0);
951 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, the_axis -> radius_box, the_axis -> radius, FALSE, FALSE, 0);
956 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_data, lab_box, FALSE, FALSE, 0);
957 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);
960 add_box_child_start (GTK_ORIENTATION_VERTICAL, lab_box, the_axis -> axis_label_box[0], FALSE, FALSE, 0);
961 box =
abox (the_axis -> axis_label_box[0], _(
"Rendering "), 0);
966 gtk_widget_set_size_request (config, 150, -1);
969 box =
abox (the_axis -> axis_label_box[0], _(
"Font"), 0);
974 box =
abox (the_axis -> axis_label_box[0], _(
"Size"), 0);
982 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, lab_h_box, the_axis -> axis_label_box[1], FALSE, FALSE, 0);
983 box =
abox (the_axis -> axis_label_box[1], _(
"Legends"), 0);
984 GtkWidget * ax_title[3];
991 add_box_child_start (GTK_ORIENTATION_VERTICAL, the_axis -> axis_label_box[1], chbox, FALSE, FALSE, 2);
1001 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);
1003 if (axis_color == NULL)
1014 if (axis_color != NULL)
1027 add_box_child_start (GTK_ORIENTATION_HORIZONTAL, chbox, the_axis -> axis_color_title[i], FALSE, FALSE, 40);
1032 append_comments (the_axis -> axis_data,
"<sup>*</sup>", _(
"In front of the atomic model"));
1033 append_comments (the_axis -> axis_data,
"<sup>**</sup>", _(
"Inside the atomic model"));