|
atomes 1.2.1
atomes: an atomic scale modeling tool box
|
Functions to create the 'User preferences' window. More...
#include "global.h"#include "callbacks.h"#include "interface.h"#include "project.h"#include "workspace.h"#include "glview.h"#include "glwin.h"#include "bind.h"#include "preferences.h"#include <libxml/encoding.h>#include <libxml/xmlwriter.h>#include <libxml/xmlreader.h>#include <libxml/parser.h>#include <unistd.h>#include <sys/types.h>#include <pwd.h>
Include dependency graph for preferences.c:Go to the source code of this file.
Functions | |
| void | apply_default_parameters_to_project (project *this_proj) |
| apply new default parameters to project | |
| xmlNodePtr | findnode (xmlNodePtr startnode, char *nname) |
| find XML node | |
| void | edit_bonds (GtkWidget *vbox) |
| creation of the edit bond cutoff widgets | |
| void | calc_rings (GtkWidget *vbox) |
| creation of the rings statistics calculation widgets | |
| gchar * | substitute_string (gchar *init, gchar *o_motif, gchar *n_motif) |
| substitute all patterns in string | |
| G_MODULE_EXPORT gboolean | scroll_scale_quality (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data) |
| update OpenGL quality - scroll callback | |
| GtkWidget * | materials_tab (glwin *view, opengl_edition *ogl_edit, Material *the_mat) |
| OpenGL material parameters tab. | |
| GtkWidget * | lights_tab (glwin *view, opengl_edition *ogl_edit, Lightning *the_light) |
| OpenGL light(s) parameters tab. | |
| GtkWidget * | fog_tab (glwin *view, opengl_edition *ogl_edit, Fog *the_fog) |
| OpenGL fog parameters tab. | |
| GtkWidget * | labels_tab (glwin *view, int lid) |
| create atomic label(s) tab for the atom(s) / clone(s) window | |
| void | update_light_data (int li, opengl_edition *ogl_win) |
| update light data | |
| void | setup_fog_dialogs (opengl_edition *ogl_edit, int fid) |
| update OpenGL fog tab based of fog type | |
| G_MODULE_EXPORT void | box_advanced (GtkWidget *widg, gpointer data) |
| create the box edition window | |
| G_MODULE_EXPORT void | axis_advanced (GtkWidget *widg, gpointer data) |
| create the axis advanced parameters window | |
| G_MODULE_EXPORT void | representation_advanced (GtkWidget *widg, gpointer data) |
| open advanced representation dialog | |
| void | update_gradient_widgets (gradient_edition *gradient_win, background *back) |
| update the widgets of the gradient window | |
| G_MODULE_EXPORT void | gradient_advanced (GtkWidget *widg, gpointer data) |
| Background configuration window. | |
| G_MODULE_EXPORT void | scale_quality (GtkRange *range, gpointer data) |
| update OpenGL quality - range callback | |
| void | duplicate_fog (Fog *new_fog, Fog *old_fog) |
| duplicate fog data | |
| void | duplicate_material (Material *new_mat, Material *old_mat) |
| duplicate material data | |
| void | duplicate_screen_label (screen_label *new_lab, screen_label *old_lab) |
| copy screen_label data structure | |
| Light | init_light_source (int type, float val, float vbl) |
| initialize a light source | |
| Light * | copy_light_sources (int dima, int dimb, Light *old_sp) |
| create a copy of a list of light sources | |
| GtkWidget * | lightning_fix (glwin *view, Material *this_material) |
| GtkWidget * | adv_box (GtkWidget *box, char *lab, int vspace, int size, float xalign) |
| create a box with markup label | |
| int | xml_save_color_to_file (xmlTextWriterPtr writer, int did, gchar *legend, gchar *key, ColRGBA col) |
| save color data (red, green, blue, alpha) to XML file | |
| int | xml_save_xyz_to_file (xmlTextWriterPtr writer, int did, gchar *legend, gchar *key, vec3_t data) |
| save vector data (x,y,z) to XML file | |
| int | xml_save_parameter_to_file (xmlTextWriterPtr writer, gchar *xml_leg, gchar *xml_key, gboolean doid, int xml_id, gchar *value) |
| save single parameter to XML file | |
| int | save_preferences_to_xml_file () |
| save software preferences to XML file | |
| double | xml_string_to_double (gchar *content) |
| convert XML string to double | |
| void | set_parameter (gchar *content, gchar *key, int vid, dint *bond, vec3_t *vect, float start, float end, ColRGBA *col) |
| set default parameter | |
| void | read_parameter (xmlNodePtr parameter_node) |
| read preferences from XML configuration | |
| void | read_light (xmlNodePtr light_node) |
| read light preferences from XML configuration | |
| void | read_preferences (xmlNodePtr preference_node) |
| read preferences from XML configuration | |
| void | read_style_from_xml_file (xmlNodePtr style_node, int style) |
| read style preferences from XML file | |
| void | read_preferences_from_xml_file () |
| read software preferences from XML file | |
| void | set_atomes_defaults () |
| set atomes default parameters | |
| void | set_atomes_preferences () |
| set software default parameters | |
| GtkWidget * | pref_list (gchar *mess[2], int nelem, gchar *mlist[nelem][2], gchar *end) |
| print information message with item list of elements | |
| G_MODULE_EXPORT void | set_measures (GtkComboBox *box, gpointer data) |
| change measure type | |
| G_MODULE_EXPORT void | set_selection_color (GtkColorChooser *colob, gpointer data) |
| change selection color | |
| GtkWidget * | view_preferences () |
| view preferences | |
| G_MODULE_EXPORT void | toggled_default_stuff (GtkToggleButton *but, gpointer data) |
| toggle set / unset default callback GTK3 | |
| G_MODULE_EXPORT void | set_default_stuff (GtkEntry *res, gpointer data) |
| update default number of delta preferences | |
| element_radius * | duplicate_element_radius (element_radius *old_list) |
| duplicate an element radius data structure | |
| float | get_radius (int object, int col, int z, element_radius *rad_list) |
| retrieve the radius/width of a species depending on style | |
| element_color * | duplicate_element_color (element_color *old_list) |
| duplicate an element color data structure | |
| ColRGBA | get_spec_color (int z, element_color *clist) |
| retrieve the color of a chemical species | |
| G_MODULE_EXPORT void | edit_pref (GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer user_data) |
| edit cell in the preferences tree model | |
| G_MODULE_EXPORT void | edit_chem_preferences (GtkDialog *edit_chem, gint response_id, gpointer data) |
| edit chem preferences - running the dialog | |
| void | color_set_color (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
| set background color | |
| void | radius_set_color_and_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
| set text font and color | |
| gboolean | are_identical_colors (ColRGBA col_a, ColRGBA col_b) |
| test if two colors are identicals | |
| G_MODULE_EXPORT void | run_ac_color (GtkDialog *win, gint response_id, gpointer data) |
| window color chooser - running the dialog | |
| void | color_button_event (GtkWidget *widget, double event_x, double event_y, guint event_button, gpointer data) |
| species color selection mouse button event | |
| G_MODULE_EXPORT gboolean | pref_color_button_event (GtkWidget *widget, GdkEvent *event, gpointer data) |
| G_MODULE_EXPORT void | set_stuff_color (GtkColorChooser *colob, gpointer data) |
| change stuff color | |
| G_MODULE_EXPORT void | edit_species_parameters (GtkButton *but, gpointer data) |
| edit atoms and bonds species related parameters | |
| GtkWidget * | over_param (int object, int style) |
| create override check button and entry | |
| GtkWidget * | style_tab (int style) |
| create preferences tab for a style | |
| GtkWidget * | model_preferences () |
| model preferences | |
| G_MODULE_EXPORT void | set_default_style (GtkComboBox *box, gpointer data) |
| change default atom(s) and bond(s) style | |
| GtkTreeModel * | style_combo_tree () |
| create opengl style combo model | |
| G_MODULE_EXPORT void | set_default_map (GtkComboBox *box, gpointer data) |
| change default atom(s) or polyhedra color map | |
| GtkWidget * | combo_map (int obj) |
| create color map combo | |
| GtkWidget * | opengl_preferences () |
| OpenGL preferences. | |
| G_MODULE_EXPORT void | set_default_num_delta (GtkEntry *res, gpointer data) |
| update default number of delta preferences | |
| G_MODULE_EXPORT void | tunit_changed (GtkComboBox *box, gpointer data) |
| change default time units | |
| G_MODULE_EXPORT void | totcut_changed (GtkComboBox *box, gpointer data) |
| change method to evaluate the total cutoff | |
| G_MODULE_EXPORT void | edit_pc_value (GtkEntry *res, gpointer data) |
| update partial cutoff value | |
| G_MODULE_EXPORT void | toggled_use_cutoff (GtkToggleButton *but, gpointer data) |
| void | add_cut_box () |
| update partial cutoffs widgets | |
| gboolean | not_in_cutoffs (int z_a, int z_b) |
| look in bond cutoff between species a and b is already defined | |
| G_MODULE_EXPORT void | cut_spec_changed (GtkComboBox *box, gpointer data) |
| partial cutoff chemical species | |
| bond_cutoff * | duplicate_cutoffs (bond_cutoff *old_cutoff) |
| duplicate bond cutoff data structure | |
| G_MODULE_EXPORT void | edit_cutoffs (GtkDialog *edit_cuts, gint response_id, gpointer data) |
| edit partial cutoffs - running the dialog | |
| G_MODULE_EXPORT void | set_cutoffs_default (GtkButton *but, gpointer data) |
| set default cutoff radii | |
| GtkWidget * | calc_preferences () |
| analysis preferences | |
| void | clean_all_tmp () |
| free all temporary buffers | |
| void | duplicate_rep_data (rep_data *new_rep, rep_data *old_rep) |
| duplicate rep_data data structure | |
| void | duplicate_background_data (background *new_back, background *old_back) |
| duplicate background data structure | |
| void | duplicate_box_data (box *new_box, box *old_box) |
| duplicate box_data data structure | |
| void | duplicate_axis_data (axis *new_axis, axis *old_axis) |
| duplicate axis_data data structure | |
| void | prepare_tmp_default () |
| prepare temporary parameters | |
| G_MODULE_EXPORT void | update_projects (GtkDialog *proj_sel, gint response_id, gpointer data) |
| update projects in the workspace using new preferences | |
| G_MODULE_EXPORT void | toggled_select_project (GtkToggleButton *but, gpointer data) |
| toggle select / unselect project to update callback GTK3 | |
| void | save_preferences () |
| save user preferences | |
| void | adjust_preferences_window () |
| adjust the widgets of the preferences window | |
| G_MODULE_EXPORT void | restore_defaults_parameters (GtkButton *but, gpointer data) |
| G_MODULE_EXPORT void | edit_preferences (GtkDialog *edit_prefs, gint response_id, gpointer data) |
| edit preferences - running the dialog | |
| void | create_user_preferences_dialog () |
| G_MODULE_EXPORT void | set_default_options (GtkButton *but, gpointer data) |
| set options as default options | |
| void | add_global_option (GtkWidget *vbox, tint *oid) |
| add a button to update global user preferences | |
Functions to create the 'User preferences' window.
Definition in file preferences.c.
| void add_cut_box | ( | ) |
update partial cutoffs widgets
Definition at line 3904 of file preferences.c.
| void add_global_option | ( | GtkWidget * | vbox, |
| tint * | oid ) |
add a button to update global user preferences
| the | widget to insert the button in |
| oid | the option id pointer |
Definition at line 4932 of file preferences.c.
| void adjust_preferences_window | ( | ) |
adjust the widgets of the preferences window
Definition at line 4687 of file preferences.c.
|
extern |
create a box with markup label
| box | the box to insert the widget in |
| lab | label |
| vspace | vertical space |
| size | size |
| xalign | x alignement |
Definition at line 151 of file w_advance.c.
|
extern |
test if two colors are identicals
| col_a | first color to test |
| col_b | second color to test |
Definition at line 2977 of file preferences.c.
|
extern |
|
extern |
| GtkWidget * calc_preferences | ( | ) |
analysis preferences
Definition at line 4131 of file preferences.c.
|
extern |
creation of the rings statistics calculation widgets
| vbox | GtkWidget that will receive the data |
Definition at line 516 of file calc_menu.c.
| void clean_all_tmp | ( | ) |
free all temporary buffers
Definition at line 4241 of file preferences.c.
| void color_button_event | ( | GtkWidget * | widget, |
| double | event_x, | ||
| double | event_y, | ||
| guint | event_button, | ||
| gpointer | data ) |
species color selection mouse button event
| widget | the GtkWidget sending the signal |
| event_x | x position |
| event_y | y position |
| event_button | event buttton |
| data | the associated data pointer |
Definition at line 3090 of file preferences.c.
| void color_set_color | ( | GtkTreeViewColumn * | col, |
| GtkCellRenderer * | renderer, | ||
| GtkTreeModel * | mod, | ||
| GtkTreeIter * | iter, | ||
| gpointer | data ) |
set background color
| col | the tree view column |
| renderer | the column renderer |
| mod | the tree model |
| iter | the tree iter |
| data | the associated data pointer |
Definition at line 2892 of file preferences.c.
| GtkWidget * combo_map | ( | int | obj | ) |
create color map combo
| obj | 0 = atom(s), 1 = polyhedra |
Definition at line 3693 of file preferences.c.
create a copy of a list of light sources
| dima | new list size |
| dimb | old list size to duplicate |
| old_sp | old light sources |
Definition at line 402 of file w_advance.c.
| void create_user_preferences_dialog | ( | ) |
Definition at line 4802 of file preferences.c.
| G_MODULE_EXPORT void cut_spec_changed | ( | GtkComboBox * | box, |
| gpointer | data ) |
partial cutoff chemical species
| box | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 3977 of file preferences.c.
duplicate axis_data data structure
| new_axis | the new axis_data structure |
| old_axis | the axis_data structure to copy |
Definition at line 4415 of file preferences.c.
| void duplicate_background_data | ( | background * | new_back, |
| background * | old_back ) |
duplicate background data structure
| new_back | the new background structure |
| old_back | the background structure to copy |
Definition at line 4378 of file preferences.c.
duplicate box_data data structure
| new_box | the new box structure |
| old_box | the box structure to copy |
Definition at line 4399 of file preferences.c.
| bond_cutoff * duplicate_cutoffs | ( | bond_cutoff * | old_cutoff | ) |
duplicate bond cutoff data structure
| old_cutoff | the cutoff data structure to duplicate |
Definition at line 4021 of file preferences.c.
| element_color * duplicate_element_color | ( | element_color * | old_list | ) |
duplicate an element color data structure
| old_list | the data structure to duplicate |
Definition at line 2626 of file preferences.c.
| element_radius * duplicate_element_radius | ( | element_radius * | old_list | ) |
duplicate an element radius data structure
| old_list | the data structure to duplicate |
Definition at line 2532 of file preferences.c.
duplicate fog data
| new_fog | the new fog data |
| old_fog | the old fog data to be copied |
Definition at line 203 of file ogl_draw.c.
duplicate material data
| new_mat | the new material data |
| old_mat | the old material data to be copied |
Definition at line 186 of file ogl_draw.c.
duplicate rep_data data structure
Definition at line 4356 of file preferences.c.
|
extern |
copy screen_label data structure
| new_lab | the new screen_label structure |
| old_lab | the old screen_label structure to be copied |
Definition at line 239 of file ogl_draw.c.
|
extern |
creation of the edit bond cutoff widgets
| vbox | the GtkWidget to store the data |
Definition at line 699 of file edit_menu.c.
| G_MODULE_EXPORT void edit_chem_preferences | ( | GtkDialog * | edit_chem, |
| gint | response_id, | ||
| gpointer | data ) |
edit chem preferences - running the dialog
| edit_prefs | the GtkDialog sending the signal |
| response_id | the response id |
| data | the associated data pointer |
Definition at line 2805 of file preferences.c.
| G_MODULE_EXPORT void edit_cutoffs | ( | GtkDialog * | edit_cuts, |
| gint | response_id, | ||
| gpointer | data ) |
edit partial cutoffs - running the dialog
| edit_cuts | the GtkDialog sending the signal |
| response_id | the response id |
| data | the associated data pointer |
Definition at line 4060 of file preferences.c.
| G_MODULE_EXPORT void edit_pc_value | ( | GtkEntry * | res, |
| gpointer | data ) |
update partial cutoff value
| res | the GtkEntry the signal is coming from |
| data | the associated data pointer |
Definition at line 3861 of file preferences.c.
| G_MODULE_EXPORT void edit_pref | ( | GtkCellRendererText * | cell, |
| gchar * | path_string, | ||
| gchar * | new_text, | ||
| gpointer | user_data ) |
edit cell in the preferences tree model
| cell | the GtkCellRendererText sending the signal |
| path_string | the path in the tree model |
| new_text | the string describing the new value |
| user_data | the associated data pointer |
Definition at line 2681 of file preferences.c.
| G_MODULE_EXPORT void edit_preferences | ( | GtkDialog * | edit_prefs, |
| gint | response_id, | ||
| gpointer | data ) |
edit preferences - running the dialog
| edit_prefs | the GtkDialog sending the signal |
| response_id | the response id |
| data | the associated data pointer |
Definition at line 4757 of file preferences.c.
| G_MODULE_EXPORT void edit_species_parameters | ( | GtkButton * | but, |
| gpointer | data ) |
edit atoms and bonds species related parameters
| but | the GtkButton sending the signal |
| data | the associated data pointer |
Definition at line 3188 of file preferences.c.
|
extern |
find XML node
| startnode | Starting node |
| nname | Node name to find |
Definition at line 546 of file read_isaacs.c.
|
extern |
OpenGL fog parameters tab.
| view | the target glwin |
| ogl_edit | the target OpenGL edition window |
| the_fog | the target fog data structure |
Definition at line 1566 of file w_advance.c.
| float get_radius | ( | int | object, |
| int | col, | ||
| int | z, | ||
| element_radius * | rad_list ) |
retrieve the radius/width of a species depending on style
| object | the object to look at |
| col | modifier for tabulated radii |
| z | atomic number |
| rad_list | pre allocated data, if any |
Definition at line 2564 of file preferences.c.
| ColRGBA get_spec_color | ( | int | z, |
| element_color * | clist ) |
retrieve the color of a chemical species
| z | atomic number |
| clist | the target color list, if any |
Definition at line 2656 of file preferences.c.
|
extern |
Background configuration window.
| widg | the widget sending the signal, if any |
| the | associated data pointer |
Definition at line 434 of file w_colors.c.
|
extern |
initialize a light source
| type | the type of light |
| size | depth or max (a,b,c) |
| depth | field depth |
| intens |
Definition at line 337 of file w_advance.c.
|
extern |
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 624 of file w_labels.c.
Definition at line 1296 of file w_advance.c.
|
extern |
OpenGL light(s) parameters tab.
| view | the target glwin |
| ogl_edit | the target OpenGL edition window |
| ogl_lightning | the target lightning data structure |
Definition at line 938 of file w_advance.c.
|
extern |
OpenGL material parameters tab.
| view | the target glwin |
| ogl_edit | the target OpenGL edition window |
| the_mat | the target material data structure |
Definition at line 1323 of file w_advance.c.
| GtkWidget * model_preferences | ( | ) |
model preferences
Definition at line 3547 of file preferences.c.
| gboolean not_in_cutoffs | ( | int | z_a, |
| int | z_b ) |
look in bond cutoff between species a and b is already defined
Definition at line 3958 of file preferences.c.
| GtkWidget * opengl_preferences | ( | ) |
OpenGL preferences.
Definition at line 3709 of file preferences.c.
| GtkWidget * over_param | ( | int | object, |
| int | style ) |
create override check button and entry
| object | 0 = atoms, 1 = bonds |
| style | style id number |
Definition at line 3422 of file preferences.c.
| G_MODULE_EXPORT gboolean pref_color_button_event | ( | GtkWidget * | widget, |
| GdkEvent * | event, | ||
| gpointer | data ) |
Definition at line 3156 of file preferences.c.
| GtkWidget * pref_list | ( | gchar * | mess[2], |
| int | nelem, | ||
| gchar * | mlist[nelem][2], | ||
| gchar * | end ) |
print information message with item list of elements
| mess | main information message |
| nelem | number of elements in the list |
| mlsit | item list |
| end | end message, if any |
Definition at line 2275 of file preferences.c.
| void prepare_tmp_default | ( | ) |
prepare temporary parameters
Definition at line 4441 of file preferences.c.
| void radius_set_color_and_markup | ( | GtkTreeViewColumn * | col, |
| GtkCellRenderer * | renderer, | ||
| GtkTreeModel * | mod, | ||
| GtkTreeIter * | iter, | ||
| gpointer | data ) |
set text font and color
| col | the tree view column |
| renderer | the column renderer |
| mod | the tree model |
| iter | the tree iter |
| data | the associated data pointer |
Definition at line 2912 of file preferences.c.
| void read_light | ( | xmlNodePtr | light_node | ) |
read light preferences from XML configuration
| light_node |
Definition at line 1724 of file preferences.c.
| void read_parameter | ( | xmlNodePtr | parameter_node | ) |
read preferences from XML configuration
| parameter_node | node the XML node that point to parameter |
Definition at line 1609 of file preferences.c.
| void read_preferences | ( | xmlNodePtr | preference_node | ) |
read preferences from XML configuration
| preference_node | node the XML node that point to preferences |
Definition at line 1805 of file preferences.c.
| void read_preferences_from_xml_file | ( | ) |
read software preferences from XML file
Definition at line 1862 of file preferences.c.
| void read_style_from_xml_file | ( | xmlNodePtr | style_node, |
| int | style ) |
read style preferences from XML file
| style_node | the XML node that point to style data |
| style | the target style |
Definition at line 1820 of file preferences.c.
|
extern |
| G_MODULE_EXPORT void restore_defaults_parameters | ( | GtkButton * | but, |
| gpointer | data ) |
Definition at line 4726 of file preferences.c.
| G_MODULE_EXPORT void run_ac_color | ( | GtkDialog * | win, |
| gint | response_id, | ||
| gpointer | data ) |
window color chooser - running the dialog
| win | the GtkDialog sending the signal |
| response_id | the response id |
| data | the associated data pointer |
Definition at line 2995 of file preferences.c.
| void save_preferences | ( | ) |
save user preferences
Definition at line 4559 of file preferences.c.
| int save_preferences_to_xml_file | ( | ) |
save software preferences to XML file
Definition at line 414 of file preferences.c.
|
extern |
update OpenGL quality - range callback
| range | the GtkRange sending the signal |
| data | the associated data pointer |
Definition at line 1280 of file w_advance.c.
|
extern |
update OpenGL quality - 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 1263 of file w_advance.c.
| void set_atomes_defaults | ( | ) |
set atomes default parameters
Definition at line 2050 of file preferences.c.
| void set_atomes_preferences | ( | ) |
set software default parameters
Definition at line 2248 of file preferences.c.
| G_MODULE_EXPORT void set_cutoffs_default | ( | GtkButton * | but, |
| gpointer | data ) |
set default cutoff radii
| but | the GtkButton sending the signal |
| data | the associated data pointer |
Definition at line 4092 of file preferences.c.
| G_MODULE_EXPORT void set_default_map | ( | GtkComboBox * | box, |
| gpointer | data ) |
change default atom(s) or polyhedra color map
| box | the GtkComboBox sending the signal |
| data | the associated data pointer |
Definition at line 3678 of file preferences.c.
| G_MODULE_EXPORT void set_default_num_delta | ( | GtkEntry * | res, |
| gpointer | data ) |
update default number of delta preferences
| res | the GtkEntry the signal is coming from |
| data | the associated data pointer |
Definition at line 3784 of file preferences.c.
| G_MODULE_EXPORT void set_default_options | ( | GtkButton * | but, |
| gpointer | data ) |
set options as default options
| but | the GtkButton sending the signal |
| data | the associated data pointer |
Definition at line 4861 of file preferences.c.
| G_MODULE_EXPORT void set_default_stuff | ( | GtkEntry * | res, |
| gpointer | data ) |
update default number of delta preferences
| res | the GtkEntry the signal is coming from |
| data | the associated data pointer |
Definition at line 2508 of file preferences.c.
| G_MODULE_EXPORT void set_default_style | ( | GtkComboBox * | box, |
| gpointer | data ) |
change default atom(s) and bond(s) style
| box | the GtkComboBox sending the signal |
| data | the associated data pointer |
Definition at line 3629 of file preferences.c.
| G_MODULE_EXPORT void set_measures | ( | GtkComboBox * | box, |
| gpointer | data ) |
change measure type
| box | the GtkComboBox sending the signal |
| data | the associated data pointer |
Definition at line 2311 of file preferences.c.
| void set_parameter | ( | gchar * | content, |
| gchar * | key, | ||
| int | vid, | ||
| dint * | bond, | ||
| vec3_t * | vect, | ||
| float | start, | ||
| float | end, | ||
| ColRGBA * | col ) |
set default parameter
| content | the string content |
| key | the name of variable to set |
| vid | the id number to set |
| bond | atoms, if any |
| vect | vector to set, if any |
| start | initial value, if any, -1.0 otherwise |
| end | final value, if any, -1.0 otherwise |
| col | color to set, if any |
Definition at line 1215 of file preferences.c.
| G_MODULE_EXPORT void set_selection_color | ( | GtkColorChooser * | colob, |
| gpointer | data ) |
change selection color
| colob | the GtkColorChooser sending the signal |
| data | the associated data pointer |
Definition at line 2336 of file preferences.c.
| G_MODULE_EXPORT void set_stuff_color | ( | GtkColorChooser * | colob, |
| gpointer | data ) |
change stuff color
| colob | the GtkColorChooser sending the signal |
| data | the associated data pointer |
Definition at line 3175 of file preferences.c.
|
extern |
update OpenGL fog tab based of fog type
| ogl_edit | the target opengl_edition |
| fid | the fog mode |
Definition at line 1509 of file w_advance.c.
| GtkTreeModel * style_combo_tree | ( | ) |
create opengl style combo model
Definition at line 3646 of file preferences.c.
| GtkWidget * style_tab | ( | int | style | ) |
create preferences tab for a style
| style | the style for this tab |
Definition at line 3474 of file preferences.c.
|
extern |
substitute all patterns in string
| init | the initial string |
| o_motif | the pattern to replace |
| n_motif | the new pattern |
Definition at line 372 of file w_library.c.
| G_MODULE_EXPORT void toggled_default_stuff | ( | GtkToggleButton * | but, |
| gpointer | data ) |
toggle set / unset default callback GTK3
| but | the GtkToggleButton sending the signal |
| data | the associated data pointer |
Definition at line 2452 of file preferences.c.
| G_MODULE_EXPORT void toggled_select_project | ( | GtkToggleButton * | but, |
| gpointer | data ) |
toggle select / unselect project to update callback GTK3
| but | the GtkToggleButton sending the signal |
| data | the associated data pointer |
Definition at line 4548 of file preferences.c.
| G_MODULE_EXPORT void toggled_use_cutoff | ( | GtkToggleButton * | but, |
| gpointer | data ) |
Definition at line 3892 of file preferences.c.
| G_MODULE_EXPORT void totcut_changed | ( | GtkComboBox * | box, |
| gpointer | data ) |
change method to evaluate the total cutoff
| box | the GtkComboBox sending the signal |
| data | the associated data pointer |
Definition at line 3838 of file preferences.c.
| G_MODULE_EXPORT void tunit_changed | ( | GtkComboBox * | box, |
| gpointer | data ) |
change default time units
| box | the GtkComboBox sending the signal |
| data | the associated data pointer |
Definition at line 3817 of file preferences.c.
|
extern |
update the widgets of the gradient window
| gradient_win | the target gradient edition |
| back | the target background information |
Definition at line 84 of file w_colors.c.
|
extern |
update light data
| li | the light id |
| ogl_win | the target OpenGL edition window |
Definition at line 474 of file w_advance.c.
| G_MODULE_EXPORT void update_projects | ( | GtkDialog * | proj_sel, |
| gint | response_id, | ||
| gpointer | data ) |
update projects in the workspace using new preferences
| proj_sel | the GtkDialog sending the signal |
| response_id | the response id |
| data | the associated data pointer |
Definition at line 4509 of file preferences.c.
| GtkWidget * view_preferences | ( | ) |
view preferences
Definition at line 2347 of file preferences.c.
| int xml_save_color_to_file | ( | xmlTextWriterPtr | writer, |
| int | did, | ||
| gchar * | legend, | ||
| gchar * | key, | ||
| ColRGBA | col ) |
save color data (red, green, blue, alpha) to XML file
| writer | the XML writer to update |
| did | id, if any |
| legend | the corresponding legend |
| data | the data to save |
Definition at line 291 of file preferences.c.
| int xml_save_parameter_to_file | ( | xmlTextWriterPtr | writer, |
| gchar * | xml_leg, | ||
| gchar * | xml_key, | ||
| gboolean | doid, | ||
| int | xml_id, | ||
| gchar * | value ) |
save single parameter to XML file
| writer | the XML writer to update |
| xml_leg | information |
| xml_key | key |
| doid | add id attribute to parameter (1/0) |
| xml_id | value for id |
| value | parameter to write |
Definition at line 385 of file preferences.c.
| int xml_save_xyz_to_file | ( | xmlTextWriterPtr | writer, |
| int | did, | ||
| gchar * | legend, | ||
| gchar * | key, | ||
| vec3_t | data ) |
save vector data (x,y,z) to XML file
| writer | the XML writer to update |
| did | id, if any |
| legend | the corresponding legend |
| data | the data to save |
Definition at line 339 of file preferences.c.
| double xml_string_to_double | ( | gchar * | content | ) |
convert XML string to double
| content | the string to convert |
Definition at line 1196 of file preferences.c.
| GtkWidget* all_cut_box |
Definition at line 3822 of file preferences.c.
| GtkWidget* atom_entry_over[8] |
Definition at line 169 of file preferences.c.
| GtkWidget* bond_entry_over[6] |
Definition at line 170 of file preferences.c.
| element_color* color_list |
Definition at line 2426 of file preferences.c.
| GtkWidget* cut_combo[2] |
Definition at line 3823 of file preferences.c.
| GtkWidget* cut_comments |
Definition at line 3827 of file preferences.c.
| bond_cutoff* cut_list |
Definition at line 3828 of file preferences.c.
| int default_acl_format[2] |
Definition at line 244 of file preferences.c.
| double* default_at_rs |
Definition at line 235 of file preferences.c.
| element_color* default_atom_color[2] |
Definition at line 212 of file preferences.c.
| element_radius* default_atomic_rad[16] |
Definition at line 206 of file preferences.c.
| axis default_axis |
Definition at line 264 of file preferences.c.
| background default_background |
Definition at line 258 of file preferences.c.
| double* default_bd_rw |
Definition at line 239 of file preferences.c.
| bond_cutoff* default_bond_cutoff |
Definition at line 179 of file preferences.c.
| element_radius* default_bond_rad[6] |
Definition at line 209 of file preferences.c.
| box default_box |
Definition at line 261 of file preferences.c.
| gboolean default_cell |
Definition at line 231 of file preferences.c.
| gboolean default_clones |
Definition at line 229 of file preferences.c.
| int* default_csparam = NULL |
Chain statistics parameters:
0 = Initial node(s) for the search: selected chemical species or all atoms,
1 = Maximum size for a chain Cmax,
2 = Maximum number of chain(s) per MD step CNUMA,
3 = Search only for AAAA chains or not,
4 = Search only for ABAB chains or not,
5 = Include Homopolar bond(s) in the analysis or not,
6 = Search only for 1-(2)n-1 chains
Definition at line 195 of file preferences.c.
| double* default_delta_t = NULL |
0 = time step,
1 = time unit , in: fs, ps, ns, µs, ms
Definition at line 183 of file preferences.c.
| Fog default_fog |
Definition at line 225 of file preferences.c.
| screen_label default_label[5] |
Definition at line 242 of file preferences.c.
| element_color* default_label_color[2] |
Definition at line 214 of file preferences.c.
| Lightning default_lightning |
Definition at line 223 of file preferences.c.
| Material default_material |
Definition at line 221 of file preferences.c.
| int default_mfactor[2] |
Definition at line 250 of file preferences.c.
| int default_mpattern[2] |
Definition at line 248 of file preferences.c.
| gboolean default_mtilt[2] |
Definition at line 246 of file preferences.c.
| double default_mwidth[2] |
Definition at line 252 of file preferences.c.
| int* default_num_delta = NULL |
Number of x points:
0 = gr,
1 = sq,
2 = sk,
3 = gftt,
4 = bd,
5 = an,
6 = sp
7 = msd
Definition at line 181 of file preferences.c.
| gboolean* default_o_at_rs |
Definition at line 233 of file preferences.c.
| gboolean* default_o_bd_rw |
Definition at line 237 of file preferences.c.
| int* default_opengl = NULL |
Definition at line 219 of file preferences.c.
| rep_data default_rep |
Definition at line 255 of file preferences.c.
| int* default_rsparam = NULL |
Ring statistics parameters:
0 = Default search,
1 = Initial node(s) for the search: selected chemical species or all atoms,
2 = Maximum size of ring for the search Rmax,
3 = Maximum number of ring(s) per MD step NUMA,
4 = Search only for ABAB rings or not,
5 = Include Homopolar bond(s) in the analysis or not,
6 = Include homopolar bond(s) when calculating the distance matrix
Definition at line 186 of file preferences.c.
| ColRGBA default_sel_color[2] |
Definition at line 267 of file preferences.c.
| double default_totcut |
Definition at line 177 of file preferences.c.
| GtkWidget* edit_colob |
Definition at line 2430 of file preferences.c.
| element_radius** edit_list |
Definition at line 2425 of file preferences.c.
| GtkWidget* edit_scrol |
Definition at line 2429 of file preferences.c.
| int label_id |
Definition at line 1187 of file preferences.c.
|
extern |
Definition at line 113 of file w_advance.c.
| GtkWidget* meas_box[2] |
Definition at line 172 of file preferences.c.
| GtkWidget* meas_combo |
Definition at line 171 of file preferences.c.
|
extern |
Definition at line 119 of file w_advance.c.
| GtkWidget* pcut_box[2] |
Definition at line 3824 of file preferences.c.
| axis_edition* pref_axis_win = NULL |
Definition at line 266 of file preferences.c.
| box_edition* pref_box_win = NULL |
Definition at line 263 of file preferences.c.
| gchar* pref_error = NULL |
Definition at line 272 of file preferences.c.
| gradient_edition* pref_gradient_win = NULL |
Definition at line 260 of file preferences.c.
| opengl_edition* pref_ogl_edit = NULL |
Definition at line 271 of file preferences.c.
| tint* pref_pointer = NULL |
Definition at line 274 of file preferences.c.
| rep_edition* pref_rep_win = NULL |
Definition at line 257 of file preferences.c.
| GtkWidget* pref_tree |
Definition at line 2427 of file preferences.c.
| GtkWidget* preference_notebook = NULL |
Definition at line 175 of file preferences.c.
| gboolean preferences = FALSE |
Definition at line 270 of file preferences.c.
| int radius_id |
Definition at line 217 of file preferences.c.
|
extern |
Definition at line 92 of file calc_menu.c.
| GtkWidget* sel_box[2] |
Definition at line 174 of file preferences.c.
| GtkWidget* sel_combo |
Definition at line 173 of file preferences.c.
| GtkWidget* tcut_box |
Definition at line 3826 of file preferences.c.
| GtkWidget* tcut_entry |
Definition at line 3825 of file preferences.c.
| int the_object |
Definition at line 2424 of file preferences.c.
| int tmp_acl_format[2] |
Definition at line 245 of file preferences.c.
| double* tmp_at_rs |
Definition at line 236 of file preferences.c.
| element_color* tmp_atom_color[2] |
Definition at line 213 of file preferences.c.
| element_radius* tmp_atomic_rad[16] |
Definition at line 207 of file preferences.c.
| axis* tmp_axis = NULL |
Definition at line 265 of file preferences.c.
| background* tmp_background = NULL |
Definition at line 259 of file preferences.c.
| double* tmp_bd_rw |
Definition at line 240 of file preferences.c.
| bond_cutoff* tmp_bond_cutoff |
Definition at line 180 of file preferences.c.
| element_radius* tmp_bond_rad[6] |
Definition at line 210 of file preferences.c.
| box* tmp_box = NULL |
Definition at line 262 of file preferences.c.
| gboolean tmp_cell |
Definition at line 232 of file preferences.c.
| gboolean tmp_clones |
Definition at line 230 of file preferences.c.
| ColRGBA* tmp_color |
Definition at line 2431 of file preferences.c.
| int* tmp_csparam = NULL |
Definition at line 203 of file preferences.c.
| double* tmp_delta_t = NULL |
Definition at line 184 of file preferences.c.
| Fog tmp_fog |
Definition at line 226 of file preferences.c.
| screen_label* tmp_label[5] |
Definition at line 243 of file preferences.c.
| element_color* tmp_label_color[2] |
Definition at line 215 of file preferences.c.
| Lightning tmp_lightning |
Definition at line 224 of file preferences.c.
| Material tmp_material |
Definition at line 222 of file preferences.c.
| int tmp_mfactor[2] |
Definition at line 251 of file preferences.c.
| int tmp_mpattern[2] |
Definition at line 249 of file preferences.c.
| gboolean tmp_mtilt[2] |
Definition at line 247 of file preferences.c.
| double tmp_mwidth[2] |
Definition at line 253 of file preferences.c.
| int* tmp_num_delta = NULL |
Definition at line 182 of file preferences.c.
| gboolean* tmp_o_at_rs |
Definition at line 234 of file preferences.c.
| gboolean* tmp_o_bd_rw |
Definition at line 238 of file preferences.c.
| int* tmp_opengl = NULL |
Definition at line 220 of file preferences.c.
| rep_data* tmp_rep = NULL |
Definition at line 256 of file preferences.c.
| int* tmp_rsparam = NULL |
Definition at line 194 of file preferences.c.
| ColRGBA tmp_sel_color[2] |
Definition at line 268 of file preferences.c.
| double tmp_totcut |
Definition at line 178 of file preferences.c.
| gboolean* up_project |
Definition at line 4498 of file preferences.c.
| gboolean user_defined |
Definition at line 2428 of file preferences.c.
| gchar* xml_atom_leg[3] = {"atoms_radius", "dot_size", "sphere_radius"} |
Definition at line 278 of file preferences.c.
| gchar* xml_bond_leg[3] = {"bond_radius", "wireframe_width", "cylinder_radius"} |
Definition at line 279 of file preferences.c.
| gchar* xml_filled_leg[4] = {"covalent", "ionic", "van-der-waals", "crystal"} |
Definition at line 277 of file preferences.c.
| gchar* xml_style_leg[6] = {"ball_and_stick", "wireframes", "spacefilled", "spheres", "cylinders", "dots"} |
Definition at line 276 of file preferences.c.