atomes 1.1.14
atomes: an atomic scale modeling tool box
|
Functions to create the 'atomic labels' tab of the atom(s) / clone(s) advanced configuration window
Functions to create the measure labels window of the 'Measures' window.
More...
Go to the source code of this file.
Macros | |
#define | LABEL_FORMATS 4 |
Functions | |
G_MODULE_EXPORT void | set_measure_style (GtkComboBox *box, gpointer data) |
change measure style | |
G_MODULE_EXPORT void | set_labels_format (GtkComboBox *box, gpointer data) |
change label(s) format | |
G_MODULE_EXPORT void | set_labels_render (GtkComboBox *box, gpointer data) |
change label(s) rendering mode | |
void | init_labels_colors (image *img, int sp, int id) |
initialize atomic labels colors | |
G_MODULE_EXPORT void | use_atom_default_colors (GtkToggleButton *but, gpointer data) |
use default atom colors - toggle callback GTK3 | |
G_MODULE_EXPORT void | set_labels_font (GtkFontButton *fontb, gpointer data) |
change label(s) font | |
G_MODULE_EXPORT void | set_label_color (GtkColorChooser *colob, gpointer data) |
change label(s) color | |
G_MODULE_EXPORT void | set_labels_position (GtkComboBox *box, gpointer data) |
change label(s) position | |
void | label_shift_has_changed (gpointer data, double value) |
change label(s) shift | |
G_MODULE_EXPORT gboolean | scroll_set_label_shift (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data) |
change label(s) shift - scroll callback | |
G_MODULE_EXPORT void | set_label_shift (GtkRange *range, gpointer data) |
change label(s) shift - range callback | |
G_MODULE_EXPORT void | set_labels_scale (GtkToggleButton *but, gpointer data) |
change label(s) scale - toggle callback GTK3 | |
G_MODULE_EXPORT void | set_labels_tilt (GtkComboBox *box, gpointer data) |
change label(s) tilt | |
void | mesure_factor_has_changed (gpointer data, double value) |
change measure scale factor | |
G_MODULE_EXPORT gboolean | scroll_set_measure_factor (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data) |
change measure scall factor - scroll callback | |
G_MODULE_EXPORT void | set_measure_factor (GtkRange *range, gpointer data) |
change measure scall factor - range callback | |
void | measure_width_has_changed (gpointer data, double value) |
change measure width | |
G_MODULE_EXPORT gboolean | scroll_set_measure_width (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data) |
change measure width - scroll callback | |
G_MODULE_EXPORT void | set_measure_width (GtkRange *range, gpointer data) |
change measure width - range callback | |
G_MODULE_EXPORT void | enable_lines (GtkToggleButton *but, gpointer data) |
toggle enable measure lines callback GTK3 | |
GtkWidget * | labels_tab (glwin *view, int lid) |
create atomic label(s) tab for the atom(s) / clone(s) window | |
Variables | |
gchar * | lab_formats [LABEL_FORMATS] = {"Element name", "Atomic symbol", "Atomic symbol + ID number", "ID number"} |
GtkWidget * | atom_color_box |
GtkWidget ** | color_title |
GtkWidget * | tilt |
GtkWidget * | line_box |
GtkWidget * | lstyle |
Functions to create the 'atomic labels' tab of the atom(s) / clone(s) advanced configuration window
Functions to create the measure labels window of the 'Measures' window.
Definition in file w_labels.c.
#define LABEL_FORMATS 4 |
Definition at line 70 of file w_labels.c.
G_MODULE_EXPORT void enable_lines | ( | GtkToggleButton * | but, |
gpointer | data ) |
toggle enable measure lines callback GTK3
but | the GtkToggleButton sending the signal |
data | the associated data pointer |
Definition at line 504 of file w_labels.c.
void init_labels_colors | ( | image * | img, |
int | sp, | ||
int | id ) |
initialize atomic labels colors
img | the target image |
sp | the total number of chemical species |
id | atom(s) 0 or clone(s) 1 |
Definition at line 159 of file w_labels.c.
void label_shift_has_changed | ( | gpointer | data, |
double | value ) |
change label(s) shift
data | the associated data pointer |
value | the new label(s) shift |
Definition at line 297 of file w_labels.c.
GtkWidget * labels_tab | ( | glwin * | view, |
int | lid ) |
create atomic label(s) tab for the atom(s) / clone(s) window
view | the target glwin |
lid | label type (0 = atoms, 1 = clones, 3 = analysis measures, 4 = edition mode measures) |
Definition at line 537 of file w_labels.c.
void measure_width_has_changed | ( | gpointer | data, |
double | value ) |
change measure width
data | the associated data pointer |
value | the new width value |
Definition at line 444 of file w_labels.c.
void mesure_factor_has_changed | ( | gpointer | data, |
double | value ) |
change measure scale factor
data | the associated data pointer |
value | the new scale factor |
Definition at line 398 of file w_labels.c.
G_MODULE_EXPORT gboolean scroll_set_label_shift | ( | GtkRange * | range, |
GtkScrollType | scroll, | ||
gdouble | value, | ||
gpointer | data ) |
change label(s) shift - scroll callback
range | the GtkRange sending the signal |
scroll | the associated scroll type |
value | the range value |
data | the associated data pointer |
Definition at line 318 of file w_labels.c.
G_MODULE_EXPORT gboolean scroll_set_measure_factor | ( | GtkRange * | range, |
GtkScrollType | scroll, | ||
gdouble | value, | ||
gpointer | data ) |
change measure scall factor - scroll callback
range | the GtkRange sending the signal |
scroll | the associated scroll type |
value | the range value |
data | the associated data pointer |
Definition at line 417 of file w_labels.c.
G_MODULE_EXPORT gboolean scroll_set_measure_width | ( | GtkRange * | range, |
GtkScrollType | scroll, | ||
gdouble | value, | ||
gpointer | data ) |
change measure width - scroll callback
range | the GtkRange sending the signal |
scroll | the associated scroll type |
value | the range value |
data | the associated data pointer |
Definition at line 463 of file w_labels.c.
G_MODULE_EXPORT void set_label_color | ( | GtkColorChooser * | colob, |
gpointer | data ) |
change label(s) color
colob | the GtkColorChooser sending the signal |
data | the associated data pointer |
Definition at line 261 of file w_labels.c.
G_MODULE_EXPORT void set_label_shift | ( | GtkRange * | range, |
gpointer | data ) |
change label(s) shift - range callback
range | the GtkRange sending the signal |
data | the associated data pointer |
Definition at line 332 of file w_labels.c.
G_MODULE_EXPORT void set_labels_font | ( | GtkFontButton * | fontb, |
gpointer | data ) |
change label(s) font
fontb | the GtkFontButton sending the signal |
data | the associated data pointer |
Definition at line 232 of file w_labels.c.
G_MODULE_EXPORT void set_labels_format | ( | GtkComboBox * | box, |
gpointer | data ) |
change label(s) format
box | the GtkComboBox sending the signal |
data | the associated data pointer |
Definition at line 103 of file w_labels.c.
G_MODULE_EXPORT void set_labels_position | ( | GtkComboBox * | box, |
gpointer | data ) |
change label(s) position
box | the GtkComboBox sending the signal |
data | the associated data pointer |
Definition at line 279 of file w_labels.c.
G_MODULE_EXPORT void set_labels_render | ( | GtkComboBox * | box, |
gpointer | data ) |
change label(s) rendering mode
box | the GtkComboBox sending the signal |
data | the associated data pointer |
Definition at line 125 of file w_labels.c.
G_MODULE_EXPORT void set_labels_scale | ( | GtkToggleButton * | but, |
gpointer | data ) |
change label(s) scale - toggle callback GTK3
but | the GtkToggleButton sending the signal |
data | the associated data pointer |
Definition at line 356 of file w_labels.c.
G_MODULE_EXPORT void set_labels_tilt | ( | GtkComboBox * | box, |
gpointer | data ) |
change label(s) tilt
box | the GtkComboBox sending the signal |
data | the associated data pointer |
Definition at line 380 of file w_labels.c.
G_MODULE_EXPORT void set_measure_factor | ( | GtkRange * | range, |
gpointer | data ) |
change measure scall factor - range callback
range | the GtkRange sending the signal |
data | the associated data pointer |
Definition at line 431 of file w_labels.c.
G_MODULE_EXPORT void set_measure_style | ( | GtkComboBox * | box, |
gpointer | data ) |
change measure style
box | the GtkComboBox sending the signal |
data | the associated data pointer |
Definition at line 86 of file w_labels.c.
G_MODULE_EXPORT void set_measure_width | ( | GtkRange * | range, |
gpointer | data ) |
change measure width - range callback
range | the GtkRange sending the signal |
data | the associated data pointer |
Definition at line 477 of file w_labels.c.
G_MODULE_EXPORT void use_atom_default_colors | ( | GtkToggleButton * | but, |
gpointer | data ) |
use default atom colors - toggle callback GTK3
but | the GtkToggleButton sending the signal |
data | the associated data pointer |
Definition at line 192 of file w_labels.c.
GtkWidget* atom_color_box |
Definition at line 74 of file w_labels.c.
GtkWidget** color_title |
Definition at line 75 of file w_labels.c.
gchar* lab_formats[LABEL_FORMATS] = {"Element name", "Atomic symbol", "Atomic symbol + ID number", "ID number"} |
Definition at line 72 of file w_labels.c.
GtkWidget* line_box |
Definition at line 482 of file w_labels.c.
GtkWidget* lstyle |
Definition at line 483 of file w_labels.c.
GtkWidget* tilt |
Definition at line 76 of file w_labels.c.