atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
global.h
Go to the documentation of this file.
1/* This file is part of the 'atomes' software
2
3'atomes' is free software: you can redistribute it and/or modify it under the terms
4of the GNU Affero General Public License as published by the Free Software Foundation,
5either version 3 of the License, or (at your option) any later version.
6
7'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9See the GNU General Public License for more details.
10
11You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12If not, see <https://www.gnu.org/licenses/>
13
14Copyright (C) 2022-2024 by CNRS and University of Strasbourg */
15
24/*
25* This header file: 'global.h'
26*
27* Contains:
28
29 - Global variable declarations
30 - Global convenience function declarations
31 - Global data structure definitions
32
33*/
34
35#ifdef HAVE_CONFIG_H
36# include <config.h>
37#endif
38
39#define GDK_SYNCHRONIZE
40
41#ifndef GLOBAL_H_
42
43#define GLOBAL_H_
44
45#include <glib.h>
46#include <glib/gi18n.h>
47#include <locale.h>
48#ifdef OSX
49#include <xlocale.h>
50#endif
51#include <unistd.h>
52#include <string.h>
53#include <stdio.h>
54#include <stdlib.h>
55#include <sys/types.h>
56#include <sys/stat.h>
57#include <math.h>
58
59#include <gtk/gtk.h>
60#ifndef GTK4
61# include <gtk/gtkx.h>
62#endif
63#include <gdk/gdk.h>
64#include <gdk/gdkkeysyms.h>
65#include <gdk-pixbuf/gdk-pixbuf.h>
66
67#include <pango/pangoft2.h>
68
69#ifdef MAC_INTEGRATION
70# include <gtkosxapplication.h>
71#endif
72
73#ifdef G_OS_WIN32
74# include <windef.h>
75# include <windows.h>
76# define WIN32_LEAN_AND_MEAN 1
77# include <epoxy/gl.h>
78# include <GL/glu.h>
79#else
80# define max(a,b) (a>=b?a:b)
81# define min(a,b) (a<=b?a:b)
82# include <epoxy/gl.h>
83# include <GL/glu.h>
84# ifdef OSX
85# include <GL/glx.h>
86# else
87# include <epoxy/glx.h>
88# endif
89#endif
90
91#include "math_3d.h"
92
93// dint, tint and qint structures are used for pointer purposes.
94// dint, tint, qint, ColRGBA and coord_info structures must be defined before including 'glwin.h'
95typedef struct dint dint;
96struct dint
97{
98 int a;
99 int b;
100};
101
102typedef struct tint tint;
103struct tint
104{
105 int a;
106 int b;
107 int c;
108};
109
110typedef struct qint qint;
111struct qint
112{
113 int a;
114 int b;
115 int c;
116 int d;
117};
118
119typedef struct ColRGBA ColRGBA;
121{
122 float red;
123 float green;
124 float blue;
125 float alpha;
126};
127
132typedef struct shortcuts shortcuts;
134{
135 gchar * description;
136 gchar * subtitle;
137 gint key;
138 gchar * accelerator;
139};
140
147{
148 gchar * action_name;
149 gpointer action_data;
150};
151
156typedef struct coord_info coord_info;
158{
160 // 0 = tot
161 // 1 = partial
162 // 2 = fragments
163 // 3 = molecules
164 // > 3 = rings
165 // 9 = chains
166 int totcoord[10];
173 int * ntg[10];
174 int ** geolist[10];
175 int *** partial_geo;
176 int cmin;
177 int cmax;
178};
179
180#include "glwin.h"
181
182#define MEDIA_NEXT "media-skip-forward"
183#define MEDIA_PREV "media-skip-backward"
184#define MEDIA_LAST "go-last"
185#define MEDIA_FIRST "go-first"
186#define MEDIA_GOTO "go-jump"
187#define MEDIA_PLAY "media-playback-start"
188#define MEDIA_STOP "media-playback-stop"
189#define MEDIA_LOOP "view-refresh"
190#define MEDIA_ULOOP "edit-cut"
191#define MEDIA_SLOW "view-sort-ascending"
192#define MEDIA_FAST "view-sort-descending"
193#define GO_RIGHT "go-next"
194#define GO_LEFT "go-previous"
195#define GO_UP "go-up"
196#define GO_DOWN "go-down"
197#define PAGE_SETUP "document-page-setup"
198#define FULLSCREEN "view-fullscreen"
199#define FITBEST "zoom-fit-best"
200#define RECORD "media-record"
201#define YES "gtk-yes"
202#define EDITA "edit-find-replace"
203#define EDITC "edit-copy"
204#define EDITF "edit-find"
205#define ECUT "edit-cut"
206#define DPROPERTIES "document-properties"
207#define FNEW "document-new"
208#define FOPEN "document-open"
209#define FSAVE "document-save"
210#define FSAVEAS "document-save-as"
211#define FCLOSE "window-close"
212#define FEXIT "application-exit"
213#define LIST_ADD "list-add"
214#define LIST_REM "list-remove"
215#define CANCEL "process-stop"
216#define EXECUTE "system-run"
217#ifdef GTK4
218#define APPLY "emblem-default"
219#else
220#define APPLY "gtk-apply"
221#endif
222#define DELETEB "edit-delete"
223#define DIAL_ERROR "dialog-error"
224#define AFILE "text-x-generic"
225#define ABOUT "help-about"
226
227#ifdef GTK4
229enum ReliefStyle {
230 GTK_RELIEF_NORMAL = 0,
231 GTK_RELIEF_HALF = 1,
232 GTK_RELIEF_NONE = 2
233};
234
236enum ShadowStyle {
237 GTK_SHADOW_NONE = 0,
238 GTK_SHADOW_IN = 1,
239 GTK_SHADOW_OUT = 2,
240 GTK_SHADOW_ETCHED_IN = 3,
241 GTK_SHADOW_ETCHED_OUT = 4
242};
243#define BSEP 3
244#else
245#define BSEP 0
246#endif
247
257
266
267#define IODEBUG FALSE
268
272#define ATOM_LIMIT 100000
273
277#define STEP_LIMIT 10000
278
279#define OK 0
280#define ERROR_RW 1
281#define ERROR_PROJECT 2
282#define ERROR_CURVE 3
283#define ERROR_IMAGE 4
284#define ERROR_ATOM_A 5
285#define ERROR_ATOM_B 6
286#define ERROR_UPDATE 7
287#define ERROR_NO_WAY 8
288#define ERROR_COORD 9
289#define ERROR_RINGS 10
290#define ERROR_CHAINS 11
291#define ERROR_MOL 12
292
296#define CHEM_PARAMS 5
297#define CHEM_Z 0
298#define CHEM_M 1
299#define CHEM_R 2
300#define CHEM_N 3
301#define CHEM_X 4
302
303#define NDOTS 8
304
308#define NCALCS 12
309
313#define NGRAPHS 10
314
318#define NCFORMATS 12
319
320#define NITEMS 16
321#define OT 4
322#define GR 0
323#define SQ 1
324#define SK 2
325#define GK 3
326#define BD 4
327#define AN 5
328#define RI 6
329#define CH 7
330#define SP 8
331#define MS 9
332#define BV 10
333#define FF 12
334
335#define DEFAULT_FONT_SIZE 8
336#define DEFAULT_ALPHA 0.75
337#define MINCUT 1.85
338
339#ifdef G_OS_WIN32
340extern gchar * PACKAGE_PREFIX;
341extern gchar * PACKAGE_LIBEXEC;
342#endif
343extern gchar * PACKAGE_LIB_DIR;
344extern gchar * PACKAGE_IMP;
345extern gchar * PACKAGE_CON;
346extern gchar * PACKAGE_IMG;
347extern gchar * PACKAGE_PDF;
348extern gchar * PACKAGE_SVG;
349extern gchar * PACKAGE_EPS;
350extern gchar * PACKAGE_PNG;
351extern gchar * PACKAGE_JPG;
352extern gchar * PACKAGE_BMP;
353extern gchar * PACKAGE_TIFF;
354extern gchar * PACKAGE_VOID;
355extern gchar * PACKAGE_GR;
356extern gchar * PACKAGE_SQ;
357extern gchar * PACKAGE_BD;
358extern gchar * PACKAGE_AN;
359extern gchar * PACKAGE_RI;
360extern gchar * PACKAGE_CH;
361extern gchar * PACKAGE_SP;
362extern gchar * PACKAGE_MS;
363extern gchar * PACKAGE_TD;
364extern gchar * PACKAGE_MOL;
365extern gchar * PACKAGE_OGL;
366extern gchar * PACKAGE_OGLM;
367extern gchar * PACKAGE_OGLC;
368extern gchar * PACKAGE_PRO;
369extern gchar * PACKAGE_SET;
370extern gchar * PACKAGE_LOGO;
371extern gchar * PACKAGE_LAGPL;
372extern gchar * PACKAGE_LABOUT;
373extern gchar * PACKAGE_DOTA;
374extern gchar * PACKAGE_DOTB;
375extern gchar * PACKAGE_DOTC;
376extern gchar * PACKAGE_DOTD;
377extern gchar * PACKAGE_DOTE;
378extern gchar * PACKAGE_DOTF;
379extern gchar * PACKAGE_DOTG;
380extern gchar * PACKAGE_DOTH;
381extern gchar * PACKAGE_DFBD;
382extern gchar * PACKAGE_DFAN;
383extern gchar * PACKAGE_DFDI;
384extern gchar * PACKAGE_DFTD;
385extern gchar * PACKAGE_DFIN;
386extern gchar * PACKAGE_SGCP;
387extern gchar * PACKAGE_SGCI;
388extern gchar * PACKAGE_SGCF;
389extern gchar * PACKAGE_SGHP;
390extern gchar * PACKAGE_SGTR;
391extern gchar * PACKAGE_SGTI;
392extern gchar * PACKAGE_SGTP;
393extern gchar * PACKAGE_SGOP;
394extern gchar * PACKAGE_SGOI;
395extern gchar * PACKAGE_SGOC;
396extern gchar * PACKAGE_SGOF;
397extern gchar * PACKAGE_SGMP;
398extern gchar * PACKAGE_SGMI;
399extern gchar * PACKAGE_SGTC;
400extern gchar * ATOMES_CONFIG;
401extern gchar * ATOMES_URL;
402
403extern gchar * mode_name[2];
404extern gchar * graph_img[NGRAPHS];
405extern gchar * dots[NDOTS];
406extern gchar * bravais_img[14];
407extern gchar * ifield[8];
408extern gchar * projfile;
409extern char * ifbug;
410extern char * coord_files[NCFORMATS+1];
411extern char * coord_files_ext[NCFORMATS+1];
412extern char * calc_name[NCALCS-2];
413extern char * graph_name[NGRAPHS] ;
414extern char * rings_type[5];
415extern char * untime[6];
416extern gchar * workspacefile;
417
418extern int nprojects;
419extern int activep;
420extern int activev;
421extern int activef;
422extern int inactep;
423extern int activew;
424extern int statusval;
425extern int atomes_visual;
426extern int dialog_id;
427
428extern int bonds_update;
429extern int frag_update;
430extern int mol_update;
431
432extern int tmp_pixels[2];
433extern int * pasted_todo;
435
436extern GMainLoop * Event_loop[5];
437
438extern gboolean in_movie_encoding;
439extern gboolean newspace;
440extern gboolean reading_input;
441extern gboolean tmp_adv_bonding[2];
442extern gboolean column_label;
443extern gboolean check_label;
444extern gboolean object_motion;
445extern gboolean selected_status;
446extern gboolean silent_input;
447extern gboolean cif_use_symmetry_positions;
448
449extern struct timespec start_time;
450extern struct timespec stop_time;
451
452extern double opac;
453extern double pi;
454
455extern GtkWidget * MainWindow;
456extern GtkWidget * MainView;
457extern GtkWidget * MainFrame[2];
458extern GtkWidget * pop;
459extern GtkWidget * curvetoolbox;
460extern GtkWidget * progressbar;
461extern GtkWidget * MainScrol[2];
462extern GtkWidget * atomes_logo;
463extern GtkWidget * atomes_shortcuts;
464extern GtkWidget * calc_dialog;
465extern GtkWidget * register_button;
466
467extern GtkTextTag * tag;
468extern GtkStatusbar * statusbar;
469
470extern ColRGBA std[6];
471
472extern GdkPixbuf * THETD;
473extern GdkPixbuf * THEMO;
474extern GdkPixbuf * THEBD;
475extern GdkPixbuf * SETTING;
476extern GdkPixbuf * SETTINGS;
477extern GdkPixbuf * OGL;
478extern GdkPixbuf * OGLM;
479extern GdkPixbuf * OGLC;
480extern GdkPixbuf * RUN;
481
482extern tint cut_sel;
483extern tint cut_lab;
484
485// Data structures
486#define LINE_SIZE 160
487
489typedef struct line_node line_node;
491{
492 gchar * line;
493 struct line_node * next;
494 struct line_node * prev;
495};
496
501typedef struct coord_file coord_file;
503{
505 int steps;
506 int nspec;
507 double * z;
508 int * nsps;
509 double ** coord;
510 gboolean cartesian;
511 int * lot;
512 int ndummy;
513 gchar ** dummy;
515 int mid;
516 gchar * info;
517 gchar ** label;
518 // The following line is only used for DL_POLY history files:
519 int traj;
520 // The following lines are only used for CIF files:
522 gchar *** sym_pos;
524 int * wyckoff;
525 double * occupancy;
526 int ** occupied;
527 int * multi;
532};
533
538typedef struct MouseState MouseState;
540{
541 gint start_x;
542 gint start_y;
543 gint time;
544 gboolean MouseIsDown;
545};
546
551typedef struct CurveState CurveState;
557
562typedef struct DataLayout DataLayout;
564{
566 double thickness;
567 int dash;
568 int glyph;
569 double gsize;
570 int gfreq;
571 int aspect;
572 double hwidth;
573 double hopac;
574 int hpos;
575};
576
581typedef struct CurveExtra CurveExtra;
589
594typedef struct ExtraSets ExtraSets;
601
606typedef struct Curve Curve;
607struct Curve
608{
609 int cid;
610 int ndata;
611 double * data[2];
612 double * err;
613 double cmin[2];
614 double cmax[2];
615 GtkWidget * plot;
616 GtkWidget * button;
617 GtkWidget * curve_vbox;
618 GtkWidget * curve_hbox;
619 GtkWidget * window;
620 GtkWidget * pos;
621 GtkWidget * shortcuts;
622 int wsize[2];
623 GtkWidget * datatree;
626 int format;
627 char * name;
628// Axis
629 double axmin[2];
630 double axmax[2];
631 gboolean axis_defaut_title[2];
632 char * axis_title[2];
635 gchar * axis_title_font[2];
636 int scale[2];
637 gboolean autoscale[2];
638 gboolean show_grid[2];
639 gboolean show_axis[2];
640 double majt[2];
641 int mint[2];
642 int ticks_io[2];
643 int ticks_pos[2];
644 int majt_size[2];
645 int mint_size[2];
646 int labels_pos[2];
648 gchar * labels_font[2];
649 double labels_angle[2];
652 // Legend
653 gboolean show_legend;
654 double legend_pos[2];
655 gchar * legend_font;
661// Title
662 char * title;
663 gboolean show_title;
664 gboolean default_title;
665 double title_pos[2];
666 gchar * title_font;
668// Frame
669 gboolean show_frame;
674 double frame_pos[2][2];
678 cairo_surface_t * surface;
680 int bshift;
682 gboolean displayed;
683 char * cfile;
684 gchar * path;
687 GSimpleActionGroup * action_group;
688};
689
693#define MAXDATC 8
694
698#define MAXDATA 21
699
702{
703 gboolean prepare_file[2];
704 // Field and Config files
705 gboolean afp[MAXDATC+MAXDATA];
706 int type;
711 int nbody[5];
713 // Tersoff potential cross terms
714 double *** cross;
717
718 // Control file
719 double * sys_opts;
720 double * io_opts;
721 double * ana_opts;
722 double * elec_opts;
723 double * vdw_opts;
724 double * met_opts;
725 double * equi_opts;
728 double * thermo_opts;
729 double * md_opts;
730 double * out_opts;
731};
732
733typedef struct thermostat thermostat;
735{
736 int id;
737 // For CPMD: 0 = none, 2 = controlled, 3 = nose
738 // For CP2K: 0 = none, 2 = langevin, 3 = csvr, 4 = gle, 5 = nose
739 int type;
740 // For CPMD: 0 = global, 1 = local
741 // For CP2K: 0 = global, 1 = local, 2 = molecule
742 int sys;
744 double params[4];
746 int * list;
749};
750
751typedef struct dummy_atom dummy_atom;
753{
754 // 0 = type1, 1 = type2, ...
755 int id;
756 int type;
757 int pick[2];
759 double xyz[3];
760 int coord[4];
762 int * list;
763 int numv;
764 int * vois;
767};
768
769typedef struct cpmd cpmd;
787
788typedef struct cp2k cp2k;
789struct cp2k
790{
792 double opts[42];
793 double extra_opts[3][4];
796 int fixat[2];
797 int * fixlist[2];
798 int ** fixcoord[2];
799 gchar * files[5];
800 gchar *** spec_files;
801 int ** spec_data;
802 gchar * info;
803};
804
809typedef struct molecule molecule;
811{
812 int id;
813 int md;
815 int * fragments;
816 int natoms;
817 int nspec;
818 int * species;
819};
820
825typedef struct model model;
826struct model
827{
830};
831
838{
839 gchar * lab;
840 gchar * name;
841 int Z;
842 float M;
843};
844
851{
852 // 0 = Z, 1 = Mass, 2 = Radius, 3 = Neutrons, 4 = X-rays
853 double ** chem_prop;
859 int * nsps;
860 int * formula;
861 char ** label;
862 char ** element;
863 double ** cutoffs;
864 double grtotcutoff;
865};
866
873{
874 gchar * type;
875 gchar * object;
876 double Z;
877 int ats;
878};
879
884typedef struct atom atom;
885struct atom
886{
887 int id; // The id in the model
888 int sp; // The chemical species
889 // The coordinates
890 double x;
891 double y;
892 double z;
893 int numv; // The number of neighbors
894 int * vois; // The list of neighbors
895 // 0 = Total coordination
896 // 1 = Partial coordination
897 // 2 = Fragment
898 // 3 = Molecule
899 // 4 = Field object id
900 int coord[5];
906 // Coordination information
907 // 0 = All
908 // 1 = King's
909 // 2 = Guttman's
910 // 3 = Primitive
911 // 4 = Strong
912 int ** rings[5];
918 // Rings statistics information
919 int ** chain;
920 int fid;
921 int faid;
926 int style;
929};
930
935typedef struct project project;
937{
938 /*
939 General parameters
940 */
941 int id;
942 char * name;
943 char * projfile;
944 char * coordfile;
945 char * bondfile;
949 int tfile;
950 int nspec;
953 int steps;
954 int tunit;
959 /*
960 Analysis related parameters
961 */
965 int xcor;
967 // gr, sq, sk, gftt, bd, an, frag-mol, ch, sp, msd
971 double delta[NGRAPHS];
972 double min[NGRAPHS];
973 double max[NGRAPHS];
974 // 0 = Search type, 1 = NUMA
975 int rsearch[2];
976 // First col : search type (up to chains stat). Second col: search info
977 // 0 = Initnode, 1 = RMAX, 2 = ABAB, 3 = Homo, 4 = Homo in DMTX, 5 = Done + Rings
978 int rsparam[5][6];
985 double rsdata[5][5];
992 // 0 = Initnode, 1 = AAAA, 2 = ABAB, 3 = Homo, 4 = 1221, 5 = RMAX, 6 = Done + Chains
993 int csparam[7];
1001 double csdata[2];
1004 double fact[4];
1005 double sk_advanced[2];
1010 /*
1011 OpenGL related parameters
1012 */
1014 int tmp_pixels[2];
1016 /*
1017 Molecular dynamics related parameters
1018 */
1020 // MD input files
1025#ifdef DEBUG
1026 GtkWidget * pix_tab[3];
1027 GtkWidget * pix_box;
1028 int pix[3];
1029 int ** pixels;
1030 int actif_pix;
1031#endif
1032
1035};
1036
1041typedef struct workspace workspace;
1047
1050extern GSimpleAction * edition_actions[3];
1051extern GSimpleAction * analyze_actions[9];
1052extern void add_action (GSimpleAction * action);
1053extern void remove_action (gchar * action_name);
1054extern void remove_edition_actions ();
1056
1057extern GtkApplication * AtomesApp;
1058extern workspace workzone;
1059extern project * proj;
1060extern chemical_data * active_chem;
1061extern coord_info * active_coord;
1062extern cell_info * active_cell;
1063extern box_info * active_box;
1064extern image * active_image;
1065extern glwin * active_glwin;
1066extern project * active_project;
1067extern project * opengl_project;
1069
1070extern project * get_project_by_id (int p);
1071extern void opengl_project_changed (int id);
1072extern gboolean in_md_shaders (project * this_proj, int id);
1073extern void recreate_all_shaders (glwin * view);
1074extern gboolean is_atom_win_active (glwin * view);
1075
1076// extern gboolean run_distance_matrix (GtkWidget * widg, int calc, int up_ngb);
1077extern G_MODULE_EXPORT void on_calc_bonds_released (GtkWidget * widg, gpointer data);
1078extern void update_rings_menus (glwin * view);
1079extern void clean_rings_data (int rid, glwin * view);
1080extern void clean_chains_data (glwin * view);
1081extern void clean_volumes_data (glwin * view);
1082
1083extern void initcutoffs (chemical_data * chem, int species);
1084extern void cutoffsend ();
1085extern void update_entry_int (GtkEntry * entry, int intval);
1086extern void update_entry_double (GtkEntry * entry, double doubleval);
1087extern void update_entry_long_double (GtkEntry * entry, double doubleval);
1088extern void update_entry_text (GtkEntry * entry, gchar * text);
1089
1090extern double * xsk;
1091extern gboolean * allocbool (int val);
1092extern gboolean ** allocdbool (int xal, int yal);
1093extern gboolean *** alloctbool (int xal, int yal, int zal);
1094extern int * allocint (int val);
1095extern int ** allocdint (int xal, int yal);
1096extern int *** alloctint (int xal, int yal, int zal);
1097extern int **** allocqint (int wal, int xal, int yal, int zal);
1098extern float * allocfloat (int val);
1099extern float ** allocdfloat (int xal, int yal);
1100extern float *** alloctfloat (int xal, int yal, int zal);
1101extern double * allocdouble (int val);
1102extern double ** allocddouble (int xal, int yal);
1103extern double *** alloctdouble (int xal, int yal, int zal);
1104extern double **** allocqdouble (int wal, int xal, int yal, int zal);
1105
1106extern GLuint * allocgluint (int val);
1107extern GLuint ** allocdgluint (int xal, int yal);
1108extern GLfloat ** allocdGLfloat (int xal, int yal);
1109
1110extern gchar ** duplicate_strings (int num, gchar ** old_val);
1111extern int * duplicate_int (int num, int * old_val);
1112extern gboolean * duplicate_bool (int num, gboolean * old_val);
1113extern float * duplicate_float (int num, float * old_val);
1114extern double * duplicate_double (int num, double * old_val);
1115extern ColRGBA * duplicate_color (int num, ColRGBA * col);
1116
1117extern void combo_text_append (GtkWidget * combo, gchar * text);
1118extern void combo_text_prepend (GtkWidget * combo, gchar * text);
1119extern GtkWidget * create_combo ();
1120extern GtkTextBuffer * add_buffer (GCallback handler, gpointer data, gchar * text);
1121extern GtkWidget * create_text_view (int dimx, int dimy, int edit, int mono,
1122 GCallback handler, gpointer data, gchar * text);
1123
1124extern GdkPixbuf * convert_to_pixbuf (cairo_surface_t * surf);
1125
1126extern void text_view_set_monospace (GtkWidget * view);
1127extern void gtk_label_align (GtkWidget * lab, float ax, float ay);
1128
1129extern gchar * prepare_for_title (gchar * init);
1130
1131extern void show_the_widgets (GtkWidget * widg);
1132extern void hide_the_widgets (GtkWidget * widg);
1133extern gboolean is_the_widget_visible (GtkWidget * widg);
1134extern void widget_set_sensitive (GtkWidget * widg, gboolean sensitive);
1135
1136extern GtkWidget * new_gtk_window ();
1137extern GtkWidget * dialogmodal (gchar * str, GtkWindow * parent);
1138extern GtkWidget * message_dialogmodal (gchar * message, gchar * title, GtkMessageType mtype, GtkButtonsType buttons, GtkWidget * parent);
1139extern GtkWidget * dialog_cancel_apply (gchar * title, GtkWidget * parent, gboolean resiz);
1140extern void run_this_gtk_dialog (GtkWidget * dial, GCallback handler, gpointer data);
1141extern void resize_this_window (GtkWidget * window, int x, int y);
1142
1143extern GtkWidget * create_hscale (float min, float max, float delta,
1144 float val, int pos, int round, int size,
1145 GCallback handler, GCallback scroll_handler, gpointer data);
1146extern GtkWidget * create_vscale (float min, float max, float delta,
1147 float val, int pos, int round, int size,
1148 GCallback handler, GCallback scroll_handler, gpointer data);
1149
1150extern void add_container_child (int type, GtkWidget * widg, GtkWidget * child);
1151extern void add_box_child_end (GtkWidget * widg, GtkWidget * child, gboolean expand, gboolean fill, int padding);
1152extern void add_box_child_start (int orientation, GtkWidget * widg, GtkWidget * child, gboolean expand, gboolean fill, int padding);
1153extern GtkWidget * create_vbox (int spacing);
1154extern GtkWidget * create_hbox (int spacing);
1155extern GtkWidget * dialog_get_content_area (GtkWidget * widg);
1156extern void layout_add_widget (GtkWidget * layout, GtkWidget * child, int x_pos, int y_pos);
1157extern GtkWidget * add_vbox_to_layout (GtkWidget * layout, int size_x, int size_y);
1158extern GtkWidget * create_layout (int x, int y);
1159
1160#ifdef GTK4
1161extern void run_this_gtk_native_dialog (GtkNativeDialog * dial, GCallback handler, gpointer data);
1162extern G_MODULE_EXPORT void select_unselect_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1163extern G_MODULE_EXPORT void select_unselect_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1164extern G_MODULE_EXPORT void select_unselect_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1165
1166extern G_MODULE_EXPORT void label_unlabel_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1167extern G_MODULE_EXPORT void label_unlabel_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1168extern G_MODULE_EXPORT void label_unlabel_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1169
1170extern G_MODULE_EXPORT void show_hide_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1171extern G_MODULE_EXPORT void show_hide_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1172extern G_MODULE_EXPORT void show_hide_the_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1173extern G_MODULE_EXPORT void show_hide_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1174extern G_MODULE_EXPORT void show_hide_poly (GSimpleAction * action, GVariant * parameter, gpointer data);
1175extern G_MODULE_EXPORT void show_hide_labels (GSimpleAction * action, GVariant * parameter, gpointer data);
1176
1177extern G_MODULE_EXPORT void remove_the_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1178extern G_MODULE_EXPORT void replace_the_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1179extern G_MODULE_EXPORT void edit_in_new_project (GSimpleAction * action, GVariant * parameter, gpointer data);
1180extern void add_widget_gesture_and_key_action (GtkWidget * widget,
1181 gchar * cp_name, GCallback cp_handler, gpointer cp_data,
1182 gchar * cr_name, GCallback cr_handler, gpointer cr_data,
1183 gchar * kp_name, GCallback kp_handler, gpointer kp_data,
1184 gchar * mo_name, GCallback mo_handler, gpointer mo_data,
1185 gchar * sc_name, GCallback sc_handler, gpointer sc_data);
1186extern G_MODULE_EXPORT gboolean destroy_this_window (GtkWindow * win, gpointer data);
1187extern G_MODULE_EXPORT gboolean hide_this_window (GtkWindow * win, gpointer data);
1188extern GtkFileChooserNative * create_file_chooser (const gchar * title, GtkWindow * parent, GtkFileChooserAction act, const gchar * act_name);
1189extern void pop_menu_at_pointer (GtkWidget * pop, double x, double y);
1190GListModel * file_chooser_get_file_names (GtkFileChooser * chooser);
1191extern void update_menu_bar (glwin * view);
1192
1193#else
1194
1195extern void update_chains_menus (glwin * view);
1196
1197extern G_MODULE_EXPORT void select_unselect_this_atom (GtkWidget * widg, gpointer data);
1198extern G_MODULE_EXPORT void select_unselect_atoms (GtkWidget * widg, gpointer data);
1199extern G_MODULE_EXPORT void select_unselect_coord (GtkWidget * widg, gpointer data);
1200
1201extern G_MODULE_EXPORT void label_unlabel_this_atom (GtkWidget * widg, gpointer data);
1202extern G_MODULE_EXPORT void label_unlabel_atoms (GtkWidget * widg, gpointer data);
1203extern G_MODULE_EXPORT void label_unlabel_coord (GtkWidget * widg, gpointer data);
1204
1205extern G_MODULE_EXPORT void show_hide_this_atom (GtkWidget * widg, gpointer data);
1206extern G_MODULE_EXPORT void show_hide_atoms (GtkWidget * widg, gpointer data);
1207extern G_MODULE_EXPORT void show_hide_the_coord (GtkWidget * widg, gpointer data);
1208extern G_MODULE_EXPORT void show_hide_coord (GtkWidget * widg, gpointer data);
1209extern G_MODULE_EXPORT void show_hide_poly (GtkWidget * widg, gpointer data);
1210extern G_MODULE_EXPORT void show_hide_labels (GtkWidget * widg, gpointer data);
1211
1212extern G_MODULE_EXPORT void remove_the_atoms (GtkWidget * widg, gpointer data);
1213extern G_MODULE_EXPORT void replace_the_atoms (GtkWidget * widg, gpointer data);
1214extern G_MODULE_EXPORT void edit_in_new_project (GtkWidget * widg, gpointer data);
1215extern GtkWidget * create_menu_item (gboolean add_mnemo, gchar * action);
1216extern GtkWidget * create_menu_item_from_widget (GtkWidget * widg, gboolean check, gboolean radio, gboolean status);
1217extern GtkWidget * menu_item_new_with_submenu (gchar * name, gboolean active, GtkWidget * sub_menu);
1218extern void add_menu_separator (GtkWidget * menu);
1219extern G_MODULE_EXPORT gboolean destroy_this_window (GtkWidget * win, GdkEvent * event, gpointer data);
1220extern G_MODULE_EXPORT gboolean hide_this_window (GtkWidget * win, GdkEvent * event, gpointer data);
1221extern GtkWidget * create_file_chooser (const gchar * title, GtkWindow * parent, GtkFileChooserAction act, const gchar * act_name);
1222extern void pop_menu_at_pointer (GtkWidget * widg, GdkEvent * event);
1223GSList * file_chooser_get_file_names (GtkFileChooser * chooser);
1224#endif
1225
1226extern const gchar * entry_get_text (GtkEntry * entry);
1227extern GtkWidget * create_entry (GCallback handler, int dim, int cdim, gboolean key_release, gpointer data);
1228
1229
1230extern GtkWidget * stock_image (const gchar * stock_id);
1231extern void set_image_from_icon_name (GtkWidget * widg, gchar * icon);
1232extern GtkWidget * create_image_from_data (int format, gpointer item_image);
1233
1234extern GtkWidget * gtk3_menu_item (GtkWidget * menu, gchar * name,
1235 int icon_format, gpointer item_icon,
1236 GCallback handler, gpointer data,
1237 gboolean accel, guint key, GdkModifierType mod,
1238 gboolean check, gboolean radio, gboolean status);
1239
1240extern GtkWidget * add_advanced_item (GtkWidget * menu, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod);
1241
1242extern GtkWidget * markup_label (gchar * text, int dimx, int dimy, float ax, float ay);
1243extern GtkWidget * color_button (ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data);
1244extern GtkWidget * font_button (gchar * font, int dimx, int dimy, GCallback handler, gpointer data);
1245extern GtkWidget * spin_button (GCallback handler, double value, double start, double end, double step, int digits, int dim, gpointer data);
1246extern GtkWidget * check_button (gchar * text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data);
1247extern GtkWidget * radio_button (gchar * text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data);
1248extern GtkWidget * create_button (gchar * text, int image_format, gchar * image, int dimx, int dimy, int relief, GCallback handler, gpointer data);
1249
1250extern ColRGBA gdkrgba_to_rgba (GdkRGBA colgdk);
1251extern GdkRGBA colrgba_togtkrgba (ColRGBA col);
1252extern ColRGBA get_button_color (GtkColorChooser * colob);
1253extern ColRGBA get_window_color (GtkWidget * color_win);
1254extern void set_color_chooser_color (GtkWidget * color_win, ColRGBA col);
1255extern void set_renderer_color (int tocol, GtkCellRenderer * renderer, ColRGBA col);
1256
1257extern void button_set_image (GtkButton * but, gchar * text, int format, gpointer image);
1258
1259extern GtkWidget * abox (GtkWidget * box, char * lab, int vspace);
1260extern GtkWidget * bbox (GtkWidget * box, char * lab);
1261extern GtkWidget * cbox (GtkWidget * box, char * lab);
1262extern GtkWidget * fbox (GtkWidget * box, char * lab);
1263extern GtkWidget * create_scroll (GtkWidget * box, int dimx, int dimy, int shadow);
1264extern GtkWidget * create_expander (gchar * name, gchar * file_img);
1265
1266extern GtkWidget * create_win (gchar * str, GtkWidget * parent, gboolean modal, gboolean resiz);
1267
1268extern void widget_add_action (GSimpleActionGroup * action_group, const gchar * act, GCallback handler, gpointer data,
1269 gboolean check, gboolean status, gboolean radio, const gchar * stat);
1270extern void append_menu_item (GMenu * menu, const gchar * label, const gchar * action, const gchar * accel,
1271 const gchar * custom, int format, const gchar * icon,
1272 gboolean check, gboolean status, gboolean radio, const gchar * rstatus);
1273extern void append_submenu (GMenu * menu, const gchar * label, GMenu * submenu);
1274
1275extern GtkWidget * destroy_this_widget (GtkWidget * widg);
1276extern void destroy_this_dialog (GtkDialog * dialog);
1277extern void destroy_this_native_dialog (GtkNativeDialog * dialog);
1278extern G_MODULE_EXPORT void run_destroy_dialog (GtkDialog * dialog, gint response_id, gpointer data);
1279
1280extern void add_gtk_close_event (GtkWidget * widg, GCallback handler, gpointer data);
1281
1282extern gchar * file_chooser_get_file_name (GtkFileChooser * chooser);
1283extern gchar * file_chooser_get_current_folder (GtkFileChooser * chooser);
1284extern gboolean file_chooser_set_file_name (GtkFileChooser * chooser, gchar * filename);
1285extern void file_chooser_set_current_folder (GtkFileChooser * chooser);
1286
1287extern GtkWidget * get_top_level (GtkWidget * widg);
1288
1289extern void provide_gtk_css (gchar * css);
1290extern double string_to_double (gpointer string);
1291extern double get_calc_time (struct timespec start, struct timespec stop);
1292extern gchar * calculation_time (gboolean modelv, double ctime);
1293
1294extern int get_widget_width (GtkWidget * widg);
1295extern int get_widget_height (GtkWidget * widg);
1296
1297typedef struct {
1298 GCallback handler;
1299 gpointer data;
1300} focus_data;
1301
1302#endif // GLOBAL_H_
gchar * action_name[5]
Definition atom_edit.c:60
double ay
Definition curve.c:70
double ax
Definition curve.c:70
PangoLayout * layout
Definition curve.c:79
void label(cairo_t *cr, double val, int axe, int p, project *this_proj)
draw axis label
Definition labels.c:56
ColRGBA col
Definition d_measures.c:77
gchar * text
Definition datab.c:105
float val
Definition dlp_init.c:117
GtkWidget * dialog_cancel_apply(gchar *title, GtkWidget *parent, gboolean resiz)
create a dialog modal offering a choice to apply something or not
Definition gtk-misc.c:561
int ** allocdint(int xal, int yal)
allocate an int ** pointer
Definition global.c:330
GdkPixbuf * convert_to_pixbuf(cairo_surface_t *surf)
convert cairo surface to GdkPixbuf
Definition gtk-misc.c:1264
gchar * PACKAGE_BMP
Definition global.c:87
gchar * PACKAGE_SET
Definition global.c:104
void run_this_gtk_dialog(GtkWidget *dial, GCallback handler, gpointer data)
run a GTK (3 and 4) basic GtkDialog
Definition gtk-misc.c:492
void recreate_all_shaders(glwin *view)
re-initialize all OpenGL shaders
workspace workzone
Definition project.c:46
ImageFormats
Definition global.h:259
@ IMG_PIXBUF
Definition global.h:261
@ IMG_NONE
Definition global.h:260
@ IMG_STOCK
Definition global.h:264
@ IMG_SURFACE
Definition global.h:262
@ IMG_FILE
Definition global.h:263
void file_chooser_set_current_folder(GtkFileChooser *chooser)
set current folder in a GtkFilechooser
Definition gtk-misc.c:2188
gboolean reading_input
Definition global.c:182
double **** allocqdouble(int wal, int xal, int yal, int zal)
allocate a double **** pointer
Definition global.c:522
gchar * ATOMES_CONFIG
Definition global.c:135
GtkWidget * create_entry(GCallback handler, int dim, int cdim, gboolean key_release, gpointer data)
Create a GtkEntry.
Definition gtk-misc.c:1314
char * untime[6]
Definition global.c:149
float ** allocdfloat(int xal, int yal)
allocate a float ** pointer
Definition global.c:414
glwin * active_glwin
Definition project.c:53
void update_entry_double(GtkEntry *entry, double doubleval)
update the content of a GtkEntry as double
Definition gtk-misc.c:633
void set_renderer_color(int tocol, GtkCellRenderer *renderer, ColRGBA col)
set the color of a GtkCellRenderer
Definition gtk-misc.c:1653
gchar * PACKAGE_SGTP
Definition global.c:127
gchar * PACKAGE_SGMI
Definition global.c:133
G_MODULE_EXPORT void show_hide_labels(GtkWidget *widg, gpointer data)
GLfloat ** allocdGLfloat(int xal, int yal)
allocate a GLfloat ** pointer
Definition glview.c:161
gchar * PACKAGE_SGTI
Definition global.c:126
GtkWidget * create_menu_item_from_widget(GtkWidget *widg, gboolean check, gboolean radio, gboolean status)
ColRGBA gdkrgba_to_rgba(GdkRGBA colgdk)
convert GdkRGBA color to ColRGBA color
Definition gtk-misc.c:1617
GLuint ** allocdgluint(int xal, int yal)
allocate a GLuint ** pointer
Definition glview.c:139
GtkStatusbar * statusbar
Definition global.c:214
GtkWidget * register_button
Definition global.c:211
G_MODULE_EXPORT void show_hide_poly(GtkWidget *widg, gpointer data)
show / hide polyhedra callback - GTK3
Definition m_poly.c:79
int mol_update
Definition global.c:171
gchar * PACKAGE_AN
Definition global.c:93
gchar * workspacefile
Definition global.c:156
double * duplicate_double(int num, double *old_val)
copy a list of double
Definition global.c:608
int * duplicate_int(int num, int *old_val)
copy a list of int
Definition global.c:560
int *** alloctint(int xal, int yal, int zal)
allocate an int *** pointer
Definition global.c:353
GtkWidget * font_button(gchar *font, int dimx, int dimy, GCallback handler, gpointer data)
create a font selection button
Definition gtk-misc.c:1750
char * ifbug
Definition global.c:141
void update_chains_menus(glwin *view)
GtkWidget * create_text_view(int dimx, int dimy, int edit, int mono, GCallback handler, gpointer data, gchar *text)
create a GtkTextView and display some text
Definition gtk-misc.c:1199
gchar * PACKAGE_DOTG
Definition global.c:114
GtkTextBuffer * add_buffer(GCallback handler, gpointer data, gchar *text)
create a GtkTextBuffer
Definition gtk-misc.c:1171
gchar * PACKAGE_TIFF
Definition global.c:88
GtkWidget * create_scroll(GtkWidget *box, int dimx, int dimy, int shadow)
create a scroll window
Definition gtk-misc.c:1960
gchar * PACKAGE_LAGPL
Definition global.c:106
GtkWidget * dialogmodal(gchar *str, GtkWindow *parent)
Create a new dialog modal window.
Definition gtk-misc.c:510
void set_color_chooser_color(GtkWidget *color_win, ColRGBA col)
set the color of a color selection window
Definition gtk-misc.c:2265
gchar * PACKAGE_LOGO
Definition global.c:105
coord_info * active_coord
Definition project.c:49
tint cut_lab
Definition gui.c:145
gboolean is_the_widget_visible(GtkWidget *widg)
test if a GtkWidget exist, then return if it is visible or not
Definition gtk-misc.c:714
GtkWidget * gtk3_menu_item(GtkWidget *menu, gchar *name, int icon_format, gpointer item_icon, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod, gboolean check, gboolean radio, gboolean status)
gboolean is_atom_win_active(glwin *view)
is the model edition window visible ?
Definition atom_edit.c:71
double pi
Definition global.c:195
void resize_this_window(GtkWidget *window, int x, int y)
resize this GtkWindow
Definition gtk-misc.c:581
gboolean newspace
Definition global.c:181
gchar * PACKAGE_DOTC
Definition global.c:110
GtkWidget * create_win(gchar *str, GtkWidget *parent, gboolean modal, gboolean resiz)
create a new GtkWindow
Definition gtk-misc.c:445
gchar * PACKAGE_LIB_DIR
Definition global.c:78
gchar * PACKAGE_IMG
Definition global.c:81
cell_info * active_cell
Definition project.c:50
element_data periodic_table_info[]
Definition w_library.c:71
atomes_action edition_acts[]
Definition gui.c:108
gchar * PACKAGE_DFIN
Definition global.c:120
int dialog_id
Definition global.c:167
char * rings_type[5]
Definition global.c:143
ColRGBA get_window_color(GtkWidget *color_win)
get the ColRGBA color from a color selection window
Definition gtk-misc.c:2250
project * proj
GtkTextTag * tag
Definition global.c:213
void remove_edition_actions()
remove all edition actions
Definition gui.c:422
gchar * PACKAGE_SP
Definition global.c:96
GtkWidget * add_vbox_to_layout(GtkWidget *layout, int size_x, int size_y)
Insert a vertical GtkBox in a GtkLatout then send back the GtkBox.
Definition gtk-misc.c:864
int get_widget_height(GtkWidget *widg)
retrive GtkWidget height
Definition gtk-misc.c:2419
gchar * file_chooser_get_file_name(GtkFileChooser *chooser)
get a file name from a GtkFileChooser (single file selected)
Definition gtk-misc.c:2136
GtkWidget * MainScrol[2]
Definition global.c:207
G_MODULE_EXPORT void show_hide_coord(GtkWidget *widg, gpointer data)
show/hide coordination callback GTK3
Definition m_coord.c:106
struct timespec start_time
Definition global.c:191
int activep
Definition global.c:159
const gchar * entry_get_text(GtkEntry *entry)
get the text in a GtkEntry
Definition gtk-misc.c:597
gchar * PACKAGE_IMP
Definition global.c:79
chemical_data * active_chem
Definition project.c:48
GdkRGBA colrgba_togtkrgba(ColRGBA col)
convert ColRGBA color to GdkRGBA color
Definition gtk-misc.c:1634
void clean_rings_data(int rid, glwin *view)
clean a ring type data for a glview
Definition ringscall.c:374
GSimpleAction * edition_actions[3]
Definition global.c:197
int * pasted_todo
Definition global.c:174
gchar * PACKAGE_DOTE
Definition global.c:112
void opengl_project_changed(int id)
change the OpenGL project
Definition update_p.c:245
int inactep
Definition global.c:162
gboolean in_movie_encoding
Definition global.c:180
gchar * PACKAGE_DOTH
Definition global.c:115
gboolean * allocbool(int val)
allocate a gboolean * pointer
Definition global.c:254
double * xsk
Definition global.c:176
void update_entry_int(GtkEntry *entry, int intval)
update the content of a GtkEntry as int
Definition gtk-misc.c:614
G_MODULE_EXPORT gboolean hide_this_window(GtkWidget *win, GdkEvent *event, gpointer data)
hide a GtkWindow
Definition gtk-misc.c:2371
gchar * PACKAGE_SGMP
Definition global.c:132
gchar * graph_img[NGRAPHS]
Definition gui.c:106
void pop_menu_at_pointer(GtkWidget *widg, GdkEvent *event)
popup a menu at pointer location
Definition gtk-misc.c:2301
int activef
Definition global.c:161
gboolean file_chooser_set_file_name(GtkFileChooser *chooser, gchar *filename)
set file name in a GtkFilechooser
Definition gtk-misc.c:2169
void widget_add_action(GSimpleActionGroup *action_group, const gchar *act, GCallback handler, gpointer data, gboolean check, gboolean status, gboolean radio, const gchar *stat)
add an action to an action group
Definition gui.c:641
G_MODULE_EXPORT gboolean destroy_this_window(GtkWidget *win, GdkEvent *event, gpointer data)
destroy a GtkWindow
Definition gtk-misc.c:2344
G_MODULE_EXPORT void select_unselect_this_atom(GtkWidget *widg, gpointer data)
select / unselect this atom callback GTK3
Definition popup.c:1177
gboolean tmp_adv_bonding[2]
Definition global.c:183
GtkWidget * stock_image(const gchar *stock_id)
create a GtkImage for the Gtk database
Definition gtk-misc.c:1364
gchar * PACKAGE_DFAN
Definition global.c:117
gchar * PACKAGE_SGTR
Definition global.c:125
int get_widget_width(GtkWidget *widg)
retrive GtkWidget width
Definition gtk-misc.c:2403
void append_submenu(GMenu *menu, const gchar *label, GMenu *submenu)
append a GMenuItem with a subenu to a GMenu, and use markup for the GMenuItem
Definition gui.c:728
GdkPixbuf * OGLC
Definition global.c:223
void add_gtk_close_event(GtkWidget *widg, GCallback handler, gpointer data)
add a close event signal and callback to a GtkWidget
Definition gtk-misc.c:2387
GtkWidget * create_vscale(float min, float max, float delta, float val, int pos, int round, int size, GCallback handler, GCallback scroll_handler, gpointer data)
create an vertical scale GtkWidget
Definition gtk-misc.c:778
void layout_add_widget(GtkWidget *layout, GtkWidget *child, int x_pos, int y_pos)
Add a GtkWidget in a GtkLayout.
Definition gtk-misc.c:846
gchar * PACKAGE_DFDI
Definition global.c:118
atomes_action analyze_acts[]
Definition gui.c:112
GtkWidget * fbox(GtkWidget *box, char *lab)
Definition gtk-misc.c:1941
gchar * PACKAGE_DFTD
Definition global.c:119
#define NGRAPHS
GMainLoop * Event_loop[5]
Definition global.c:178
gchar * file_chooser_get_current_folder(GtkFileChooser *chooser)
get the current folder for a GtkFileChooser
Definition gtk-misc.c:2152
gboolean silent_input
Definition global.c:188
ColRGBA std[6]
Definition gui.c:147
gchar * PACKAGE_SGCF
Definition global.c:123
double ** allocddouble(int xal, int yal)
allocate a double ** pointer
Definition global.c:475
GtkWidget * radio_button(gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
create a radio button
Definition gtk-misc.c:1834
GtkWidget * spin_button(GCallback handler, double value, double start, double end, double step, int digits, int dim, gpointer data)
create a spin button
Definition gtk-misc.c:1772
int activew
Definition global.c:163
GtkApplication * AtomesApp
Definition global.c:200
#define NITEMS
Definition global.h:320
gchar * PACKAGE_DFBD
Definition global.c:116
gchar * PACKAGE_CON
Definition global.c:80
GtkWidget * check_button(gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
create a check button
Definition gtk-misc.c:1799
gchar * PACKAGE_BD
Definition global.c:92
G_MODULE_EXPORT void on_calc_bonds_released(GtkWidget *widg, gpointer data)
compute bonding properties
Definition bdcall.c:471
gchar * PACKAGE_SGHP
Definition global.c:124
GtkWidget * add_advanced_item(GtkWidget *menu, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod)
int nprojects
Definition global.c:158
box_info * active_box
Definition project.c:51
GtkWidget * MainFrame[2]
Definition global.c:203
gchar * PACKAGE_RI
Definition global.c:94
ContainerType
Definition global.h:249
@ CONTAINER_EXP
Definition global.h:255
@ CONTAINER_WIN
Definition global.h:250
@ CONTAINER_FRA
Definition global.h:254
@ CONTAINER_BUT
Definition global.h:253
@ CONTAINER_SCR
Definition global.h:251
@ CONTAINER_VIE
Definition global.h:252
GtkWidget * atomes_shortcuts
Definition global.c:209
int activev
Definition global.c:160
gboolean selected_status
Definition global.c:187
G_MODULE_EXPORT void label_unlabel_coord(GtkWidget *widg, gpointer data)
label / unlabel a type of coordination callback GTK3
Definition popup.c:1839
int frag_update
Definition global.c:170
double * allocdouble(int val)
allocate a double * pointer
Definition global.c:459
gchar * PACKAGE_OGL
Definition global.c:100
GtkWidget * MainWindow
Definition global.c:201
gchar * calculation_time(gboolean modelv, double ctime)
get calculation time, human readable
Definition global.c:656
gchar * PACKAGE_DOTF
Definition global.c:113
gchar * PACKAGE_GR
Definition global.c:90
GtkWidget * create_button(gchar *text, int image_format, gchar *image, int dimx, int dimy, int relief, GCallback handler, gpointer data)
create a simple button
Definition gtk-misc.c:1863
GdkPixbuf * OGLM
Definition global.c:222
G_MODULE_EXPORT void show_hide_this_atom(GtkWidget *widg, gpointer data)
show / hide this atom callback GTK3
Definition popup.c:1019
gchar * PACKAGE_EPS
Definition global.c:84
G_MODULE_EXPORT void label_unlabel_atoms(GtkWidget *widg, gpointer data)
label / unlabel a type of atom(s) callback GTK3
Definition popup.c:1503
GtkWidget * get_top_level(GtkWidget *widg)
get the top level container, window, of a widget
Definition gtk-misc.c:2315
#define NCFORMATS
Definition global.h:318
gchar * PACKAGE_DOTA
Definition global.c:108
GtkWidget * create_combo()
create a GtkCombox widget, note deprecated in GTK4
Definition gtk-misc.c:923
gchar * PACKAGE_OGLM
Definition global.c:101
void remove_edition_and_analyze_actions()
remove all edition and analysis action
Definition gui.c:433
gchar * PACKAGE_MS
Definition global.c:97
gchar * PACKAGE_SGOC
Definition global.c:130
GtkWidget * dialog_get_content_area(GtkWidget *widg)
prepare GtkWidget to insert content in a GtkDialog window
Definition gtk-misc.c:825
void button_set_image(GtkButton *but, gchar *text, int format, gpointer image)
Add an image to a GtkButton.
Definition gtk-misc.c:1677
gboolean column_label
Definition global.c:184
gchar * projfile
Definition global.c:140
gchar ** duplicate_strings(int num, gchar **old_val)
copy a list of strings
Definition global.c:544
gchar * PACKAGE_SGOF
Definition global.c:131
GtkWidget * markup_label(gchar *text, int dimx, int dimy, float ax, float ay)
Definition gtk-misc.c:1585
gchar * ATOMES_URL
Definition global.c:136
GtkWidget * cbox(GtkWidget *box, char *lab)
Definition gtk-misc.c:1931
void clean_chains_data(glwin *view)
cleaning the OpenGL data related to chain statistics
Definition chainscall.c:258
project * opengl_project
Definition project.c:54
gchar * PACKAGE_CH
Definition global.c:95
float * duplicate_float(int num, float *old_val)
copy a list of float
Definition global.c:592
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.
Definition gtk-misc.c:299
int bonds_update
Definition global.c:169
ColRGBA get_button_color(GtkColorChooser *colob)
get the ColRGBA color from a GtkColorChooser button
Definition gtk-misc.c:2236
void widget_set_sensitive(GtkWidget *widg, gboolean sensitive)
Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
Definition gtk-misc.c:206
gchar * PACKAGE_SGOP
Definition global.c:128
void destroy_this_dialog(GtkDialog *dialog)
destroy a GtkDialog
Definition gtk-misc.c:2065
void text_view_set_monospace(GtkWidget *view)
set the font of a GtkTextView as monospace
Definition gtk-misc.c:687
void add_action(GSimpleAction *action)
add action to the main window action map
Definition gui.c:400
GtkWidget * create_hbox(int spacing)
create a GtkBox with horizontal orientation
Definition gtk-misc.c:813
gboolean * duplicate_bool(int num, gboolean *old_val)
copy a list of gboolean
Definition global.c:576
GtkWidget * new_gtk_window()
create a new GtkWindow
Definition gtk-misc.c:348
GtkWidget * create_image_from_data(int format, gpointer item_image)
create Gtk image for data
Definition gtk-misc.c:1443
GdkPixbuf * SETTINGS
Definition global.c:220
gchar * PACKAGE_OGLC
Definition global.c:102
gboolean check_label
Definition global.c:185
double *** alloctdouble(int xal, int yal, int zal)
allocate a double *** pointer
Definition global.c:498
double opac
Definition global.c:194
int * allocint(int val)
allocate an int * pointer
Definition global.c:314
void gtk_label_align(GtkWidget *lab, float ax, float ay)
set text alignment in a GtkLabel
Definition gtk-misc.c:701
gchar * mode_name[2]
Definition global.c:137
char * coord_files_ext[NCFORMATS+1]
Definition callbacks.c:100
gchar * PACKAGE_TD
Definition global.c:98
G_MODULE_EXPORT void select_unselect_atoms(GtkWidget *widg, gpointer data)
select / unselect a type of atom(s) callback GTK3
Definition popup.c:1551
GdkPixbuf * THEBD
Definition global.c:218
gboolean object_motion
Definition global.c:186
void combo_text_append(GtkWidget *combo, gchar *text)
append text in GtkComboBox widget
Definition gtk-misc.c:900
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
Definition gtk-misc.c:2102
gchar * PACKAGE_SVG
Definition global.c:83
GtkWidget * create_layout(int x, int y)
create a GtkLayout / GtkFixed widget
Definition gtk-misc.c:880
GtkWidget * create_menu_item(gboolean add_mnemo, gchar *action)
gchar * PACKAGE_SGTC
Definition global.c:134
gchar * PACKAGE_SGCP
Definition global.c:121
GdkPixbuf * OGL
Definition global.c:221
gboolean *** alloctbool(int xal, int yal, int zal)
allocate a gboolean *** pointer
Definition global.c:293
GdkPixbuf * RUN
Definition global.c:224
GdkPixbuf * THETD
Definition global.c:216
gboolean ** allocdbool(int xal, int yal)
allocate a gboolean ** pointer
Definition global.c:270
GtkWidget * atomes_logo
Definition global.c:208
GtkWidget * destroy_this_widget(GtkWidget *widg)
destroy a GtkWidget
Definition gtk-misc.c:2034
gchar * PACKAGE_PRO
Definition global.c:103
GtkWidget * progressbar
Definition global.c:206
GLuint * allocgluint(int val)
allocate a GLuint * pointer
Definition glview.c:123
GtkWidget * color_button(ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data)
create a color selection button
Definition gtk-misc.c:1728
G_MODULE_EXPORT void select_unselect_coord(GtkWidget *widg, gpointer data)
select / unselect a type of coordination callback GTK3
Definition popup.c:1915
GtkWidget * create_hscale(float min, float max, float delta, float val, int pos, int round, int size, GCallback handler, GCallback scroll_handler, gpointer data)
create an horizontal scale GtkWidget
Definition gtk-misc.c:744
GtkWidget * bbox(GtkWidget *box, char *lab)
Definition gtk-misc.c:1921
void add_box_child_end(GtkWidget *widg, GtkWidget *child, gboolean expand, gboolean fill, int padding)
Add a GtkWidget in a GtkBox at the end position.
Definition gtk-misc.c:277
void update_entry_text(GtkEntry *entry, gchar *text)
update the content of a GtkEntry as string
Definition gtk-misc.c:671
void provide_gtk_css(gchar *css)
create a css provider based on the css data
Definition gtk-misc.c:2006
double get_calc_time(struct timespec start, struct timespec stop)
get calculation time in s
Definition global.c:643
gchar * PACKAGE_LABOUT
Definition global.c:107
#define min(a, b)
Definition global.h:81
tint cut_sel
Definition gui.c:144
GdkPixbuf * SETTING
Definition global.c:219
char * graph_name[NGRAPHS]
Definition gui.c:133
int atomes_visual
Definition global.c:165
int **** allocqint(int wal, int xal, int yal, int zal)
allocate an int **** pointer
Definition global.c:377
float * allocfloat(int val)
allocate a float * pointer
Definition global.c:398
gchar * prepare_for_title(gchar *init)
prepare a string for a window title, getting rid of all markup
Definition tools.c:71
void clean_volumes_data(glwin *view)
clean volume data
Definition w_volumes.c:83
G_MODULE_EXPORT void show_hide_the_coord(GtkWidget *widg, gpointer data)
show / hide a type of coordination callback GTK3
Definition popup.c:1788
struct timespec stop_time
Definition global.c:192
void cutoffsend()
send cutoffs to Fortran90
Definition bdcall.c:243
gboolean in_md_shaders(project *this_proj, int id)
is this shader MD dependent ?
gchar * bravais_img[14]
Definition global.c:138
gchar * PACKAGE_MOL
Definition global.c:99
G_MODULE_EXPORT void show_hide_atoms(GtkWidget *widg, gpointer data)
void add_container_child(int type, GtkWidget *widg, GtkWidget *child)
Add a GtkWidget into another GtkWidget.
Definition gtk-misc.c:226
void set_image_from_icon_name(GtkWidget *widg, gchar *icon)
set a image from a stock icon name
Definition gtk-misc.c:1894
#define MAXDATC
Number of tabs for the description of the classical calculation.
Definition global.h:693
char * coord_files[NCFORMATS+1]
Definition callbacks.c:86
int statusval
Definition global.c:164
GtkWidget * message_dialogmodal(gchar *message, gchar *title, GtkMessageType mtype, GtkButtonsType buttons, GtkWidget *parent)
create a modal (cannot be ignored) message window
Definition gtk-misc.c:531
gboolean cif_use_symmetry_positions
Definition global.c:189
GSimpleAction * analyze_actions[9]
Definition global.c:198
void combo_text_prepend(GtkWidget *combo, gchar *text)
prepend text in GtkComboBox widget
Definition gtk-misc.c:913
void hide_the_widgets(GtkWidget *widg)
hide GtkWidget
Definition gtk-misc.c:189
gchar * PACKAGE_VOID
Definition global.c:89
void append_menu_item(GMenu *menu, const gchar *label, const gchar *action, const gchar *accel, const gchar *custom, int format, const gchar *icon, gboolean check, gboolean status, gboolean radio, const gchar *rstatus)
create a menu item, then append it to a menu
Definition gui.c:758
gchar * PACKAGE_DOTB
Definition global.c:109
G_MODULE_EXPORT void replace_the_atoms(GtkWidget *widg, gpointer data)
replace selected atom(s) callback GTK3
Definition popup.c:1326
GtkWidget * curvetoolbox
Definition global.c:205
void add_menu_separator(GtkWidget *menu)
GdkPixbuf * THEMO
Definition global.c:217
GtkWidget * menu_item_new_with_submenu(gchar *name, gboolean active, GtkWidget *sub_menu)
GtkWidget * create_vbox(int spacing)
create a GtkBox with vertical orientation
Definition gtk-misc.c:801
ColRGBA * duplicate_color(int num, ColRGBA *col)
duplicate a ColRGBA pointer
Definition gtk-misc.c:1602
gchar * PACKAGE_PDF
Definition global.c:82
double string_to_double(gpointer string)
convert string to double
Definition global.c:624
GtkWidget * abox(GtkWidget *box, char *lab, int vspace)
box creating routine, to help design faster elements for the GUI
Definition gtk-misc.c:1912
GtkWidget * pop
Definition global.c:204
G_MODULE_EXPORT void edit_in_new_project(GtkWidget *widg, gpointer data)
create new project using selection callback GTK3
Definition popup.c:2192
GtkWidget * create_expander(gchar *name, gchar *file_img)
create GtkExpander
Definition gtk-misc.c:1984
gchar * ifield[8]
Definition global.c:139
GtkWidget * create_file_chooser(const gchar *title, GtkWindow *parent, GtkFileChooserAction act, const gchar *act_name)
create a GtkFileChooser, utility to select file(s)
Definition gtk-misc.c:2223
gchar * PACKAGE_SGOI
Definition global.c:129
gchar * PACKAGE_JPG
Definition global.c:86
#define MAXDATA
Number of tabs for the description of the classical force field.
Definition global.h:698
float *** alloctfloat(int xal, int yal, int zal)
allocate a float *** pointer
Definition global.c:437
gchar * PACKAGE_SGCI
Definition global.c:122
GSList * file_chooser_get_file_names(GtkFileChooser *chooser)
create a file list from files selected using a GtkFileChooser
Definition gtk-misc.c:2123
project * active_project
Definition project.c:47
G_MODULE_EXPORT void label_unlabel_this_atom(GtkWidget *widg, gpointer data)
label / unlabel this atom callback GTK3
Definition popup.c:1128
gchar * dots[NDOTS]
Definition gui.c:104
GtkWidget * calc_dialog
Definition global.c:210
gchar * PACKAGE_DOTD
Definition global.c:111
void initcutoffs(chemical_data *chem, int species)
initialize bond cutoffs
Definition bdcall.c:207
void update_rings_menus(glwin *view)
#define NCALCS
int tmp_pixels[2]
Definition global.c:173
void destroy_this_native_dialog(GtkNativeDialog *dialog)
destroy a GtkNativeDialog
Definition gtk-misc.c:2084
atomic_object * copied_object
Definition glwindow.c:123
gchar * PACKAGE_SQ
Definition global.c:91
void remove_action(gchar *action_name)
add action from the main window action map
Definition gui.c:412
char * calc_name[NCALCS-2]
Definition gui.c:122
image * active_image
Definition project.c:52
#define NDOTS
GtkWidget * MainView
Definition global.c:202
void show_the_widgets(GtkWidget *widg)
show GtkWidget
Definition gtk-misc.c:173
project * get_project_by_id(int p)
get project pointer using id number
Definition project.c:120
void update_entry_long_double(GtkEntry *entry, double doubleval)
update the content of a GtkEntry as long double
Definition gtk-misc.c:652
gchar * PACKAGE_PNG
Definition global.c:85
#define max(a, b)
Definition global.h:80
G_MODULE_EXPORT void remove_the_atoms(GtkWidget *widg, gpointer data)
remove selected atom(s) callback GTK3
Definition popup.c:1297
action
Definition glview.h:189
int step
Definition ogl_draw.c:70
Variable declarations related the OpenGL window Data structure declarations related the OpenGL wind...
Functions for OpenGL math.
double y
Definition ogl_draw.c:57
double x
Definition ogl_draw.c:57
float blue
Definition global.h:124
float alpha
Definition global.h:125
float red
Definition global.h:122
float green
Definition global.h:123
CurveExtra * prev
Definition global.h:586
tint id
Definition global.h:584
CurveExtra * next
Definition global.h:587
DataLayout * layout
Definition global.h:585
GtkWidget * plot
Definition global.h:615
ColRGBA backcolor
Definition global.h:625
int wsize[2]
Definition global.h:622
CurveState state
Definition global.h:686
double cmax[2]
Definition global.h:614
double axmax[2]
Definition global.h:630
GtkWidget * datatree
Definition global.h:623
ExtraSets * extrac
Definition global.h:677
GtkWidget * curve_hbox
Definition global.h:618
int legend_box_dash
Definition global.h:658
ColRGBA title_color
Definition global.h:667
char * axis_title[2]
Definition global.h:632
int labels_shift_y[2]
Definition global.h:651
gboolean show_legend
Definition global.h:653
gboolean default_title
Definition global.h:664
int format
Definition global.h:626
gboolean autoscale[2]
Definition global.h:637
double legend_pos[2]
Definition global.h:654
double cmin[2]
Definition global.h:613
GtkWidget * window
Definition global.h:619
double majt[2]
Definition global.h:640
gboolean show_legend_box
Definition global.h:657
ColRGBA frame_color
Definition global.h:673
int axis_title_y[2]
Definition global.h:634
gboolean show_frame
Definition global.h:669
double axmin[2]
Definition global.h:629
int labels_digit[2]
Definition global.h:647
int labels_shift_x[2]
Definition global.h:650
ColRGBA legend_box_color
Definition global.h:659
int frame_type
Definition global.h:670
int bshift
Definition global.h:680
int ticks_pos[2]
Definition global.h:643
GtkWidget * curve_vbox
Definition global.h:617
char * name
Definition global.h:627
double * err
Definition global.h:612
int majt_size[2]
Definition global.h:644
ColRGBA legend_color
Definition global.h:656
gboolean axis_defaut_title[2]
Definition global.h:631
int axis_title_x[2]
Definition global.h:633
int scale[2]
Definition global.h:636
cairo_surface_t * surface
Definition global.h:678
int ticks_io[2]
Definition global.h:642
gchar * axis_title_font[2]
Definition global.h:635
GtkWidget * shortcuts
Definition global.h:621
int ndata
Definition global.h:610
gchar * path
Definition global.h:684
int labels_pos[2]
Definition global.h:646
double * data[2]
Definition global.h:611
double frame_thickness
Definition global.h:672
GtkWidget * pos
Definition global.h:620
gboolean displayed
Definition global.h:682
double title_pos[2]
Definition global.h:665
int mint_size[2]
Definition global.h:645
qint idcol[2]
Definition global.h:624
int action_id
Definition global.h:685
gboolean show_title
Definition global.h:663
char * cfile
Definition global.h:683
int cid
Definition global.h:609
double legend_box_thickness
Definition global.h:660
gchar * legend_font
Definition global.h:655
DataLayout * layout
Definition global.h:676
double labels_angle[2]
Definition global.h:649
int draw_id
Definition global.h:679
gboolean show_grid[2]
Definition global.h:638
GSimpleActionGroup * action_group
Definition global.h:687
gchar * labels_font[2]
Definition global.h:648
gchar * title_font
Definition global.h:666
int frame_dash
Definition global.h:671
char * title
Definition global.h:662
int mint[2]
Definition global.h:641
GtkWidget * button
Definition global.h:616
double frame_pos[2][2]
Definition global.h:674
gboolean show_axis[2]
Definition global.h:639
tint * id
Definition global.h:555
MouseState mouseState
Definition global.h:554
double thickness
Definition global.h:566
int gfreq
Definition global.h:570
double hopac
Definition global.h:573
int glyph
Definition global.h:568
double hwidth
Definition global.h:572
int aspect
Definition global.h:571
ColRGBA datacolor
Definition global.h:565
int dash
Definition global.h:567
int hpos
Definition global.h:574
double gsize
Definition global.h:569
CurveExtra * last
Definition global.h:599
CurveExtra * first
Definition global.h:598
int extras
Definition global.h:597
gboolean MouseIsDown
Definition global.h:544
gint start_y
Definition global.h:542
gint start_x
Definition global.h:541
gint time
Definition global.h:543
Definition global.h:886
int sp
Definition global.h:888
gboolean label[2]
Definition global.h:923
int numv
Definition global.h:893
int coord[5]
Definition global.h:900
int id
Definition global.h:887
gboolean cloned
Definition global.h:925
int faid
Definition global.h:921
int * vois
Definition global.h:894
int style
Definition global.h:926
gboolean pick[2]
Definition global.h:924
int ** chain
Definition global.h:919
double z
Definition global.h:892
gboolean show[2]
Definition global.h:922
double y
Definition global.h:891
int ** rings[5]
Definition global.h:912
int fid
Definition global.h:920
atom * prev
Definition global.h:927
atom * next
Definition global.h:928
double x
Definition global.h:890
gchar * action_name
Definition global.h:148
gpointer action_data
Definition global.h:149
char ** label
Definition global.h:861
int * nsps
Definition global.h:859
int * formula
Definition global.h:860
double ** cutoffs
Definition global.h:863
double grtotcutoff
Definition global.h:864
double ** chem_prop
Definition global.h:853
char ** element
Definition global.h:862
double * io_opts
Definition global.h:720
struct field_external * first_external
Definition global.h:716
struct field_molecule * first_molecule
Definition global.h:710
struct field_nth_body * first_body[5]
Definition global.h:712
double * sys_opts
Definition global.h:719
double * equi_opts
Definition global.h:725
int extern_fields
Definition global.h:715
double * elec_opts
Definition global.h:722
gboolean afp[MAXDATC+MAXDATA]
Definition global.h:705
double * md_opts
Definition global.h:729
int nbody[5]
Definition global.h:711
gboolean prepare_file[2]
Definition global.h:703
double * out_opts
Definition global.h:730
double * vdw_opts
Definition global.h:723
double * ana_opts
Definition global.h:721
double *** cross
Definition global.h:714
double * thermo_opts
Definition global.h:728
double * met_opts
Definition global.h:724
int * nsps
Definition global.h:508
int natomes
Definition global.h:504
double ** coord
Definition global.h:509
int ndummy
Definition global.h:512
int atom_unlabelled
Definition global.h:528
int * object_list
Definition global.h:531
int object_to_insert
Definition global.h:530
cell_info lattice
Definition global.h:514
int ** occupied
Definition global.h:526
gchar *** sym_pos
Definition global.h:522
gboolean cartesian
Definition global.h:510
gchar * info
Definition global.h:516
int mid
Definition global.h:515
gchar ** label
Definition global.h:517
int setting
Definition global.h:523
int * wyckoff
Definition global.h:524
int * u_atom_list
Definition global.h:529
int num_sym_pos
Definition global.h:521
gchar ** dummy
Definition global.h:513
int steps
Definition global.h:505
double * z
Definition global.h:507
double * occupancy
Definition global.h:525
int * multi
Definition global.h:527
int traj
Definition global.h:519
int * lot
Definition global.h:511
int nspec
Definition global.h:506
int cmin
Definition global.h:176
int * ntg[10]
Definition global.h:173
int cmax
Definition global.h:177
int ** geolist[10]
Definition global.h:174
int *** partial_geo
Definition global.h:175
int totcoord[10]
Definition global.h:166
int species
Definition global.h:159
Definition global.h:790
gchar * files[5]
Definition global.h:799
int input_type
Definition global.h:791
gchar * info
Definition global.h:802
int thermostats
Definition global.h:794
int fixat[2]
Definition global.h:796
thermostat * ions_thermostat
Definition global.h:795
double extra_opts[3][4]
Definition global.h:793
int ** spec_data
Definition global.h:801
gchar *** spec_files
Definition global.h:800
double opts[42]
Definition global.h:792
int ** fixcoord[2]
Definition global.h:798
int * fixlist[2]
Definition global.h:797
Definition global.h:771
dummy_atom * dummy
Definition global.h:781
gchar * info
Definition global.h:785
int thermostats
Definition global.h:774
int * fixlist
Definition global.h:778
thermostat * ions_thermostat
Definition global.h:775
int calc_type
Definition global.h:772
int dummies
Definition global.h:780
int fixat
Definition global.h:777
int restart[10]
Definition global.h:773
double default_opts[17]
Definition global.h:782
int ** pp
Definition global.h:784
int ** fixcoord
Definition global.h:779
double calc_opts[24]
Definition global.h:783
thermostat * elec_thermostat
Definition global.h:776
Definition global.h:97
int b
Definition global.h:99
int a
Definition global.h:98
int numv
Definition global.h:763
dummy_atom * prev
Definition global.h:766
int natoms
Definition global.h:761
int pick[2]
Definition global.h:757
int * vois
Definition global.h:764
gboolean show
Definition global.h:758
int * list
Definition global.h:762
dummy_atom * next
Definition global.h:765
int type
Definition global.h:756
int coord[4]
Definition global.h:760
double xyz[3]
Definition global.h:759
float M
Definition global.h:842
gchar * lab
Definition global.h:839
gchar * name
Definition global.h:840
gpointer data
Definition global.h:1299
GCallback handler
Definition global.h:1298
Definition glwin.h:875
Definition glwin.h:277
gchar * type
Definition global.h:874
gchar * object
Definition global.h:875
gchar * line
Definition global.h:492
struct line_node * next
Definition global.h:493
struct line_node * prev
Definition global.h:494
int * mol_by_step
Definition global.h:828
molecule ** mols
Definition global.h:829
int * fragments
Definition global.h:815
int natoms
Definition global.h:816
int md
Definition global.h:813
int id
Definition global.h:812
int multiplicity
Definition global.h:814
int * species
Definition global.h:818
int nspec
Definition global.h:817
int natomes
Definition global.h:951
double fact[4]
Definition global.h:1004
int tunit
Definition global.h:954
gboolean run
Definition global.h:947
gboolean visok[NGRAPHS]
Definition global.h:964
double delta[NGRAPHS]
Definition global.h:971
model * modelfc
Definition global.h:1019
gboolean initgl
Definition global.h:1013
int numc[NGRAPHS]
Definition global.h:968
double max[NGRAPHS]
Definition global.h:973
int xcor
Definition global.h:965
tint * idcc[NGRAPHS]
Definition global.h:1007
gboolean runok[NGRAPHS]
Definition global.h:962
int rsparam[5][6]
Definition global.h:978
char * projfile
Definition global.h:943
gboolean newproj
Definition global.h:946
coord_info * coord
Definition global.h:956
char * name
Definition global.h:942
double calc_time[NGRAPHS]
Definition global.h:970
gboolean runc[3]
Definition global.h:966
double rsdata[5][5]
Definition global.h:985
int id
Definition global.h:941
double sk_advanced[2]
Definition global.h:1005
int num_delta[NGRAPHS]
Definition global.h:969
int csearch
Definition global.h:991
project * next
Definition global.h:1033
int tfile
Definition global.h:949
gboolean dmtx
Definition global.h:948
int dummies
Definition global.h:952
Curve ** curves[NGRAPHS]
Definition global.h:1009
int steps
Definition global.h:953
atom ** atoms
Definition global.h:958
char * bondfile
Definition global.h:945
gboolean initok[NGRAPHS]
Definition global.h:963
cp2k * cp2k_input[2]
Definition global.h:1023
project * prev
Definition global.h:1034
char * coordfile
Definition global.h:944
double csdata[2]
Definition global.h:1001
cell_info cell
Definition global.h:957
int csparam[7]
Definition global.h:993
int numwid
Definition global.h:1008
GtkTextBuffer * text_buffer[NITEMS]
Definition global.h:1006
cpmd * cpmd_input[2]
Definition global.h:1022
classical_field * force_field[2]
Definition global.h:1021
double min[NGRAPHS]
Definition global.h:972
int tmp_pixels[2]
Definition global.h:1014
int nspec
Definition global.h:950
chemical_data * chemistry
Definition global.h:955
int rsearch[2]
Definition global.h:975
glwin * modelgl
Definition global.h:1015
Definition global.h:112
int b
Definition global.h:114
int c
Definition global.h:115
int d
Definition global.h:116
int a
Definition global.h:113
gchar * description
Definition global.h:135
gchar * subtitle
Definition global.h:136
gint key
Definition global.h:137
gchar * accelerator
Definition global.h:138
int natoms
Definition global.h:745
thermostat * next
Definition global.h:747
thermostat * prev
Definition global.h:748
gboolean show
Definition global.h:743
int * list
Definition global.h:746
int type
Definition global.h:739
double params[4]
Definition global.h:744
int sys
Definition global.h:742
Definition global.h:104
int b
Definition global.h:106
int c
Definition global.h:107
int a
Definition global.h:105
project * last
Definition global.h:1045
project * first
Definition global.h:1044
int status
Definition w_advance.c:160
GdkPixbuf * pix
Definition workspace.c:69
GtkWidget * lab
Definition workspace.c:73