atomes 1.3.1
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-2026 by CNRS and University of Strasbourg */
15
23
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#define i18n(String) String
46
47#include <libintl.h>
48#include <locale.h>
49#ifdef OSX
50#include <xlocale.h>
51#endif
52#include <glib.h>
53#include <glib/gi18n.h>
54#include <unistd.h>
55#include <string.h>
56#include <stdio.h>
57#include <stdlib.h>
58#include <sys/types.h>
59#include <sys/stat.h>
60#include <math.h>
61
62#include <gtk/gtk.h>
63#ifndef GTK4
64# include <gtk/gtkx.h>
65#endif
66#include <gdk/gdk.h>
67#include <gdk/gdkkeysyms.h>
68#include <gdk-pixbuf/gdk-pixbuf.h>
69
77#define GTK_LIMIT 10000
78
79#include <pango/pangoft2.h>
80
81#ifdef MAC_INTEGRATION
82# include <gtkosxapplication.h>
83#endif
84
85#ifdef G_OS_WIN32
86# include <windef.h>
87# include <windows.h>
88# define WIN32_LEAN_AND_MEAN 1
89# include <epoxy/gl.h>
90# include <GL/glu.h>
91#else
92# define max(a,b) (a>=b?a:b)
93# define min(a,b) (a<=b?a:b)
94# include <epoxy/gl.h>
95# include <GL/glu.h>
96# ifdef OSX
97# include <GL/glx.h>
98# else
99# include <epoxy/glx.h>
100# endif
101#endif
102
103#define MY_ENCODING "UTF-8"
104
105#include "math_3d.h"
106
107// dint, tint and qint structures are used for pointer purposes.
108// dint, tint, qint, ColRGBA and coord_info structures must be defined before including 'glwin.h'
109typedef struct dint dint;
110struct dint
111{
112 int a;
113 int b;
114};
115
116typedef struct tint tint;
117struct tint
118{
119 int a;
120 int b;
121 int c;
122};
123
124typedef struct qint qint;
125struct qint
126{
127 int a;
128 int b;
129 int c;
130 int d;
131};
132
133typedef struct ColRGBA ColRGBA;
135{
136 float red;
137 float green;
138 float blue;
139 float alpha;
140};
141
142#include "cedit.h"
143
148typedef struct shortcuts shortcuts;
150{
151 gchar * description;
152 gchar * subtitle;
153 gint key;
154 gchar * accelerator;
155};
156
163{
164 gchar * action_name;
165 gpointer action_data;
166};
167
172typedef struct coord_info coord_info;
174{
176 // 0 = tot
177 // 1 = partial
178 // 2 = fragments
179 // 3 = molecules
180 // > 3 = rings
181 // 9 = chains
182 int totcoord[10];
189 int * ntg[10];
190 int ** geolist[10];
191 int *** partial_geo;
192 int cmin;
193 int cmax;
194};
195
196#include "glwin.h"
197
198#define MEDIA_NEXT "media-skip-forward"
199#define MEDIA_PREV "media-skip-backward"
200#define MEDIA_LAST "go-last"
201#define MEDIA_FIRST "go-first"
202#define MEDIA_GOTO "go-jump"
203#define MEDIA_PLAY "media-playback-start"
204#define MEDIA_STOP "media-playback-stop"
205#define MEDIA_LOOP "view-refresh"
206#define MEDIA_ULOOP "edit-cut"
207#define MEDIA_SLOW "view-sort-ascending"
208#define MEDIA_FAST "view-sort-descending"
209#define GO_RIGHT "go-next"
210#define GO_LEFT "go-previous"
211#define GO_UP "go-up"
212#define GO_DOWN "go-down"
213#define PAGE_SETUP "document-page-setup"
214#define FULLSCREEN "view-fullscreen"
215#define FITBEST "zoom-fit-best"
216#define RECORD "media-record"
217#define YES "gtk-yes"
218#define EDITA "edit-find-replace"
219#define EDITC "edit-copy"
220#define EDITF "edit-find"
221#define ECUT "edit-cut"
222#define DPROPERTIES "document-properties"
223#define FNEW "document-new"
224#define FOPEN "document-open"
225#define FSAVE "document-save"
226#define FSAVEAS "document-save-as"
227#define FCLOSE "window-close"
228#define FEXIT "application-exit"
229#define LIST_ADD "list-add"
230#define LIST_REM "list-remove"
231#define CANCEL "process-stop"
232#define EXECUTE "system-run"
233#ifdef GTK4
234#define APPLY "emblem-default"
235#else
236#define APPLY "gtk-apply"
237#endif
238#define DELETEB "edit-delete"
239#define DIAL_ERROR "dialog-error"
240#define AFILE "text-x-generic"
241#define ABOUT "help-about"
242
243#ifdef GTK4
245enum ReliefStyle {
246 GTK_RELIEF_NORMAL = 0,
247 GTK_RELIEF_HALF = 1,
248 GTK_RELIEF_NONE = 2
249};
250
252enum ShadowStyle {
253 GTK_SHADOW_NONE = 0,
254 GTK_SHADOW_IN = 1,
255 GTK_SHADOW_OUT = 2,
256 GTK_SHADOW_ETCHED_IN = 3,
257 GTK_SHADOW_ETCHED_OUT = 4
258};
259#define BSEP 3
260#else
261#define BSEP 0
262#endif
263
273
282
283#define IODEBUG FALSE
284
288#define ATOM_LIMIT 100000
289
293#define STEP_LIMIT 1000
294
295#define OK 0
296#define ERROR_RW 1
297#define ERROR_PROJECT 2
298#define ERROR_CURVE 3
299#define ERROR_IMAGE 4
300#define ERROR_ATOM_A 5
301#define ERROR_ATOM_B 6
302#define ERROR_UPDATE 7
303#define ERROR_NO_WAY 8
304#define ERROR_COORD 9
305#define ERROR_RINGS 10
306#define ERROR_CHAINS 11
307#define ERROR_MOL 12
308#define ERROR_ANA 13
309#define ERROR_QM 14
310#define ERROR_FIELD 15
311
315#define CHEM_PARAMS 5
316#define CHEM_Z 0
317#define CHEM_M 1
318#define CHEM_R 2
319#define CHEM_N 3
320#define CHEM_X 4
321
322#define NDOTS 8
323
327#define NCALCS 10
328
332#define NCFORMATS 13
333
334#define NITEMS 4
335
336#define OT 4
337#define GDR 0
338#define SQD 1
339#define SKD 2
340#define GDK 3
341#define BND 4
342#define ANG 5
343#define RIN 6
344#define CHA 7
345#define SPH 8
346#define MSD 9
347#define SKT 10
348
349// #define FF 12
350
351#define DEFAULT_FONT_SIZE 8
352#define DEFAULT_ALPHA 0.75
353#define MINCUT 1.85
354
355#ifdef G_OS_WIN32
356extern gchar * PACKAGE_PREFIX;
357extern gchar * PACKAGE_LIBEXEC;
358extern gchar * PACKAGE_LOCALE;
359#endif
360extern gchar * PACKAGE_LIB_DIR;
361extern gchar * PACKAGE_IMP;
362extern gchar * PACKAGE_CON;
363extern gchar * PACKAGE_IMG;
364extern gchar * PACKAGE_PDF;
365extern gchar * PACKAGE_SVG;
366extern gchar * PACKAGE_EPS;
367extern gchar * PACKAGE_PNG;
368extern gchar * PACKAGE_JPG;
369extern gchar * PACKAGE_BMP;
370extern gchar * PACKAGE_TIFF;
371extern gchar * PACKAGE_VOID;
372extern gchar * PACKAGE_TD;
373extern gchar * PACKAGE_MOL;
374extern gchar * PACKAGE_OGL;
375extern gchar * PACKAGE_OGLM;
376extern gchar * PACKAGE_OGLC;
377extern gchar * PACKAGE_PRO;
378extern gchar * PACKAGE_SET;
379extern gchar * PACKAGE_LOGO;
380extern gchar * PACKAGE_LAGPL;
381extern gchar * PACKAGE_LABOUT;
382extern gchar * PACKAGE_DOTA;
383extern gchar * PACKAGE_DOTB;
384extern gchar * PACKAGE_DOTC;
385extern gchar * PACKAGE_DOTD;
386extern gchar * PACKAGE_DOTE;
387extern gchar * PACKAGE_DOTF;
388extern gchar * PACKAGE_DOTG;
389extern gchar * PACKAGE_DOTH;
390extern gchar * PACKAGE_DFBD;
391extern gchar * PACKAGE_DFAN;
392extern gchar * PACKAGE_DFDI;
393extern gchar * PACKAGE_DFTD;
394extern gchar * PACKAGE_DFIN;
395extern gchar * PACKAGE_SGCP;
396extern gchar * PACKAGE_SGCI;
397extern gchar * PACKAGE_SGCF;
398extern gchar * PACKAGE_SGHP;
399extern gchar * PACKAGE_SGTR;
400extern gchar * PACKAGE_SGTI;
401extern gchar * PACKAGE_SGTP;
402extern gchar * PACKAGE_SGOP;
403extern gchar * PACKAGE_SGOI;
404extern gchar * PACKAGE_SGOC;
405extern gchar * PACKAGE_SGOF;
406extern gchar * PACKAGE_SGMP;
407extern gchar * PACKAGE_SGMI;
408extern gchar * PACKAGE_SGTC;
409extern gchar * ATOMES_CONFIG_DIR;
410extern gchar * ATOMES_CONFIG;
411extern gchar * ATOMES_URL;
412
413extern gchar * mode_name[2];
414extern gchar * graph_img[NCALCS];
415extern gchar * dots[NDOTS];
416extern gchar * bravais_img[14];
417extern gchar * ifield[8];
418extern gchar * projfile;
419extern char * ifbug;
420extern char * coord_files[NCFORMATS+1];
421extern char * coord_files_ext[NCFORMATS+1];
422extern char * calc_name[];
423extern char * graph_name[];
424extern char * rings_type[5];
425extern char * untime[5];
426extern gchar * workspacefile;
427
428extern int nprojects;
429extern int activep;
430extern int activev;
431extern int activef;
432extern int inactep;
433extern int activew;
434extern int statusval;
435extern int atomes_visual;
436extern int dialog_id;
437
438extern int reading_step_limit;
439extern int bonds_update;
440extern int frag_update;
441extern int mol_update;
442
443extern int tmp_pixels[2];
444extern int * pasted_todo;
446
447extern GMainLoop * Event_loop[5];
448
449extern gboolean in_movie_encoding;
450extern gboolean newspace;
451extern gboolean reading_input;
452extern gboolean tmp_adv_bonding[2];
453extern gboolean column_label;
454extern gboolean check_label;
455extern gboolean object_motion;
456extern gboolean selected_status;
457extern gboolean silent_input;
458extern gboolean cif_use_symmetry_positions;
459
460extern gboolean atomes_from_libreoffice;
461extern gboolean atomes_render_image;
462
463extern struct timespec start_time;
464extern struct timespec stop_time;
465
466extern double opac;
467extern double pi;
468
469extern GtkWidget * MainWindow;
470extern GtkWidget * MainView;
471extern GtkWidget * MainFrame[2];
472extern GtkWidget * pop;
473extern GtkWidget * curvetoolbox;
474extern GtkWidget * progressbar;
475extern GtkWidget * MainScrol[2];
476extern GtkWidget * atomes_logo;
477extern GtkWidget * atomes_shortcuts;
478extern GtkWidget * calc_dialog;
479extern GtkWidget * register_button;
480
481extern GtkTextTag * tag;
482extern GtkStatusbar * statusbar;
483
484extern ColRGBA std[6];
485
486extern GdkPixbuf * THETD;
487extern GdkPixbuf * THEMO;
488extern GdkPixbuf * THEBD;
489extern GdkPixbuf * SETTING;
490extern GdkPixbuf * SETTINGS;
491extern GdkPixbuf * OGL;
492extern GdkPixbuf * OGLM;
493extern GdkPixbuf * OGLC;
494extern GdkPixbuf * RUN;
495extern tint cut_sel;
496
497#define LINE_SIZE 160
498
499// Data structures
500
507{
508 int id;
509 gchar * message;
510};
511
526
528typedef struct line_node line_node;
530{
531 gchar * line;
532 struct line_node * next;
533 struct line_node * prev;
534};
535
540typedef struct coord_file coord_file;
542{
544 int steps;
545 int nspec;
546 double * z;
547 int * nsps;
548 double ** coord;
549 gboolean cartesian;
550 gboolean chemical;
551 int * lot;
552 int ndummy;
553 gchar ** dummy;
555 int mid;
556 int msg;
557 gchar ** info;
558 gchar ** label;
559 // The following line is only used for DL_POLY history files:
560 int traj;
561 // The following lines are only used for CIF files:
563 gchar *** sym_pos;
565 int * wyckoff;
567 double * occupancy;
568 int * multi;
569 int dis;
570 int * disorder;
575};
576
581typedef struct MouseState MouseState;
583{
584 gint start_x;
585 gint start_y;
586 gint time;
587 gboolean MouseIsDown;
588};
589
594typedef struct CurveState CurveState;
600
605typedef struct DataLayout DataLayout;
607{
609 double thickness;
610 int dash;
611 int glyph;
612 double gsize;
613 int gfreq;
614 int aspect;
615 double hwidth;
616 double hopac;
617 int hpos;
618};
619
624typedef struct CurveExtra CurveExtra;
632
637typedef struct ExtraSets ExtraSets;
644
649typedef struct Curve Curve;
650struct Curve
651{
652 int cid;
653 int ndata;
654 double * data[2];
655 double * err;
656 double cmin[2];
657 double cmax[2];
658 GtkWidget * plot;
659 GtkWidget * button;
660 GtkWidget * curve_vbox;
661 GtkWidget * curve_hbox;
662 GtkWidget * window;
663 GtkWidget * pos;
664 GtkWidget * shortcuts;
665 int wsize[2];
666 GtkWidget * datatree;
669 int format;
670 char * name;
671// Axis
672 double axmin[2];
673 double axmax[2];
674 gboolean axis_defaut_title[2];
675 char * axis_title[2];
678 gchar * axis_title_font[2];
679 int scale[2];
680 gboolean autoscale[2];
681 gboolean show_grid[2];
682 gboolean show_axis[2];
683 double majt[2];
684 int mint[2];
685 int ticks_io[2];
686 int ticks_pos[2];
687 int majt_size[2];
688 int mint_size[2];
689 int labels_pos[2];
691 gchar * labels_font[2];
692 double labels_angle[2];
695 // Legend
696 gboolean show_legend;
697 double legend_pos[2];
698 gchar * legend_font;
704// Title
705 char * title;
706 gboolean show_title;
707 gboolean default_title;
708 double title_pos[2];
709 gchar * title_font;
711// Frame
712 gboolean show_frame;
717 double frame_pos[2][2];
718
721 cairo_surface_t * surface;
723 int bshift;
724
725 gboolean displayed;
726 char * cfile;
727 gchar * path;
731 GSimpleActionGroup * action_group;
732};
733
740{
741 /*
742 Analysis default structure and parameters
743 */
744 int aid;
745 gchar * name;
746 gboolean avail_ok;
747 gboolean init_ok;
748 gboolean calc_ok;
749 gboolean requires_md;
750 gchar * x_title;
751 double calc_time;
753 double delta;
754 double min;
755 double max;
756 double fact;
758 double * o_params;
759 GtkTextBuffer * calc_buffer;
760 gboolean graph_res;
761 int numc;
762 int c_sets;
763 int * compat_id;
766};
767
771#define MAXDATC 8
772
776#define MAXDATA 21
777
780{
781 gboolean prepare_file[2];
782 // Field and Config files
783 gboolean afp[MAXDATC+MAXDATA];
784 int type;
789 int nbody[5];
791 // Tersoff potential cross terms
792 double *** cross;
795
796 // Control file
797 double * sys_opts;
798 double * io_opts;
799 double * ana_opts;
800 double * elec_opts;
801 double * vdw_opts;
802 double * met_opts;
803 double * equi_opts;
806 double * thermo_opts;
807 double * md_opts;
808 double * out_opts;
809};
810
811typedef struct thermostat thermostat;
813{
814 int id;
815 // For CPMD: 0 = none, 2 = controlled, 3 = nose
816 // For CP2K: 0 = none, 2 = langevin, 3 = csvr, 4 = gle, 5 = nose
817 int type;
818 // For CPMD: 0 = global, 1 = local
819 // For CP2K: 0 = global, 1 = local, 2 = molecule
820 int sys;
821 gboolean show;
822 double params[4];
824 int * list;
827};
828
829typedef struct dummy_atom dummy_atom;
831{
832 // 0 = type1, 1 = type2, ...
833 int id;
834 int type;
835 int pick[2];
836 gboolean show;
837 double xyz[3];
838 int coord[4];
840 int * list;
841 int numv;
842 int * vois;
845};
846
847typedef struct cpmd cpmd;
865
866typedef struct cp2k cp2k;
867struct cp2k
868{
870 double opts[42];
871 double extra_opts[3][4];
874 int fixat[2];
875 int * fixlist[2];
876 int ** fixcoord[2];
877 gchar * files[5];
878 gchar *** spec_files;
879 int ** spec_data;
880 gchar * info;
881};
882
887typedef struct molecule molecule;
889{
890 int id;
891 int md;
893 int * fragments;
894 int natoms;
895 int nspec;
896 int * species;
897};
898
903typedef struct model model;
904struct model
905{
908};
909
916{
917 gchar * lab;
918 gchar * name;
919 int Z;
920 float M;
921};
922
929{
930 // 0 = Z, 1 = Mass, 2 = Radius, 3 = Neutrons, 4 = X-rays
931 double ** chem_prop;
937 int * nsps;
938 int * formula;
939 char ** label;
940 char ** element;
941 double ** cutoffs;
942 double grtotcutoff;
943};
944
951{
952 gchar * type;
953 gchar * object;
954 double Z;
955 int ats;
956};
957
962typedef struct atom atom;
963struct atom
964{
965 int id; // The id in the model
966 int sp; // The chemical species
967 // The coordinates
968 double x;
969 double y;
970 double z;
971 int numv; // The number of neighbors
972 int * vois; // The list of neighbors
973 // 0 = Total coordination
974 // 1 = Partial coordination
975 // 2 = Fragment
976 // 3 = Molecule
977 // 4 = Field object id
978 int coord[5]; // Coordination information
985 // 0 = All
986 // 1 = King's
987 // 2 = Guttman's
988 // 3 = Primitive
989 // 4 = Strong
990 int ** rings[5]; // Rings statistics information
997 int ** chain;
998 int fid;
999 int faid;
1000 gboolean show[2];
1001 gboolean label[2];
1002 gboolean pick[2];
1003 gboolean cloned;
1004 int style;
1007};
1008
1013typedef struct project project;
1015{
1016 /*
1017 General parameters
1018 */
1019 int id;
1020 char * name;
1021 char * projfile;
1022 char * coordfile;
1023 char * bondfile;
1024 gboolean newproj;
1025 gboolean run;
1026 gboolean dmtx;
1027 int tfile;
1028 int nspec;
1031 int steps;
1032 int tunit;
1037 /*
1038 Analysis related parameters
1039 */
1042
1043 // Some parameters cannot be easily stored in a generic data structure
1044 gboolean runc[3];
1045 int xcor;
1046 // Ring statistics parameters
1047 // 0 = Search type, 1 = NUMA
1048 int rsearch[2];
1049 // First col : search type (up to chains stat). Second col: search info
1050 // 0 = Initnode, 1 = RMAX, 2 = ABAB, 3 = Homo, 4 = Homo in DMTX, 5 = Done + Rings
1051 int rsparam[5][6];
1058 double rsdata[5][5];
1064 // Chain statistics parameters
1066 // 0 = Initnode, 1 = AAAA, 2 = ABAB, 3 = Homo, 4 = 1221, 5 = RMAX, 6 = Done + Chains
1067 int csparam[7];
1075 double csdata[2];
1078 // F(k,t) and S(q,w) parameters
1079 double sk_advanced[2][2];
1082 gboolean skt_all_sets;
1087 double * sqw_q_id;
1089
1090 GtkTextBuffer * text_buffer[NITEMS];
1091
1092 /*
1093 OpenGL related parameters
1094 */
1095 gboolean initgl;
1096 int tmp_pixels[2];
1098 /*
1099 Molecular dynamics related parameters
1100 */
1102 // MD input files
1106
1107#ifdef DEBUG
1108 GtkWidget * pix_tab[3];
1109 GtkWidget * pix_box;
1110 int pix[3];
1111 int ** pixels;
1112 int actif_pix;
1113#endif
1114
1117};
1118
1123typedef struct workspace workspace;
1129
1132extern GSimpleAction * edition_actions[];
1133extern void add_analysis_action (int act);
1134extern void remove_action (gchar * action_name);
1135extern void remove_edition_actions ();
1137
1138extern GtkApplication * AtomesApp;
1139extern workspace workzone;
1140extern project * proj;
1141extern chemical_data * active_chem;
1142extern coord_info * active_coord;
1143extern cell_info * active_cell;
1144extern box_info * active_box;
1145extern image * active_image;
1146extern glwin * active_glwin;
1147extern project * active_project;
1148extern project * opengl_project;
1150
1151extern project * get_project_by_id (int p);
1152extern void opengl_project_changed (int id);
1153extern gboolean in_md_shaders (project * this_proj, int id);
1154extern void recreate_all_shaders (glwin * view);
1155extern gboolean is_atom_win_active (glwin * view);
1156
1157// extern gboolean run_distance_matrix (GtkWidget * widg, int calc, int up_ngb);
1158extern G_MODULE_EXPORT void on_calc_bonds_released (GtkWidget * widg, gpointer data);
1159extern void update_rings_menus (glwin * view);
1160extern void clean_rings_data (int rid, glwin * view);
1161extern void clean_chains_data (glwin * view);
1162extern void clean_volumes_data (glwin * view);
1163
1164extern void initcutoffs (chemical_data * chem, int species);
1165extern void cutoffsend ();
1166extern void update_entry_int (GtkEntry * entry, int intval);
1167extern void update_entry_double (GtkEntry * entry, double doubleval);
1168extern void update_entry_long_double (GtkEntry * entry, double doubleval);
1169extern void update_entry_text (GtkEntry * entry, gchar * text);
1170
1171extern double * xsk;
1172extern gboolean * allocbool (int val);
1173extern gboolean ** allocdbool (int xal, int yal);
1174extern gboolean *** alloctbool (int xal, int yal, int zal);
1175extern int * allocint (int val);
1176extern int ** allocdint (int xal, int yal);
1177extern int *** alloctint (int xal, int yal, int zal);
1178extern int **** allocqint (int wal, int xal, int yal, int zal);
1179extern float * allocfloat (int val);
1180extern float ** allocdfloat (int xal, int yal);
1181extern float *** alloctfloat (int xal, int yal, int zal);
1182extern double * allocdouble (int val);
1183extern double ** allocddouble (int xal, int yal);
1184extern double *** alloctdouble (int xal, int yal, int zal);
1185extern double **** allocqdouble (int wal, int xal, int yal, int zal);
1186
1187extern GLuint * allocgluint (int val);
1188extern GLuint ** allocdgluint (int xal, int yal);
1189extern GLfloat ** allocdGLfloat (int xal, int yal);
1190
1191extern gchar ** duplicate_strings (int num, gchar ** old_val);
1192extern int * duplicate_int (int num, int * old_val);
1193extern gboolean * duplicate_bool (int num, gboolean * old_val);
1194extern float * duplicate_float (int num, float * old_val);
1195extern double * duplicate_double (int num, double * old_val);
1196extern ColRGBA * duplicate_color (int num, ColRGBA * col);
1197
1198extern void combo_set_markup (GtkWidget * combo);
1199extern void combo_set_active (GtkWidget * combo, int pos);
1200extern int combo_get_active (GtkWidget * combo);
1201extern void combo_text_append (GtkWidget * combo, gchar * text);
1202extern void combo_text_prepend (GtkWidget * combo, gchar * text);
1203extern GtkWidget * create_combo ();
1204extern GtkTextBuffer * add_buffer (GCallback handler, gpointer data, gchar * text);
1205extern GtkWidget * create_text_view (int dimx, int dimy, int edit, int mono,
1206 GCallback handler, gpointer data, gchar * text);
1207
1208extern GdkPixbuf * convert_to_pixbuf (cairo_surface_t * surf);
1209
1210extern void text_view_set_monospace (GtkWidget * view);
1211extern void gtk_label_align (GtkWidget * lab, float ax, float ay);
1212
1213extern gchar * prepare_for_title (gchar * init);
1214
1215extern void show_the_widgets (GtkWidget * widg);
1216extern void hide_the_widgets (GtkWidget * widg);
1217extern gboolean is_the_widget_visible (GtkWidget * widg);
1218extern void widget_set_sensitive (GtkWidget * widg, gboolean sensitive);
1219
1220extern GtkWidget * new_gtk_window ();
1221extern GtkWidget * dialogmodal (gchar * str, GtkWindow * parent);
1222extern GtkWidget * message_dialogmodal (gchar * message, gchar * title, GtkMessageType mtype, GtkButtonsType buttons, GtkWidget * parent);
1223extern GtkWidget * dialog_cancel_apply (gchar * title, GtkWidget * parent, gboolean resiz);
1224extern void run_this_gtk_dialog (GtkWidget * dial, GCallback handler, gpointer data);
1225extern void resize_this_window (GtkWidget * window, int x, int y);
1226
1227extern GtkWidget * create_hscale (float min, float max, float delta,
1228 float val, int pos, int round, int size,
1229 GCallback handler, GCallback scroll_handler, gpointer data);
1230extern GtkWidget * create_vscale (float min, float max, float delta,
1231 float val, int pos, int round, int size,
1232 GCallback handler, GCallback scroll_handler, gpointer data);
1233
1234extern void append_comments (GtkWidget * vbox, gchar * symbol, gchar * legend);
1235extern void add_container_child (int type, GtkWidget * widg, GtkWidget * child);
1236extern void add_box_child_end (GtkWidget * widg, GtkWidget * child, gboolean expand, gboolean fill, int padding);
1237extern void add_box_child_start (int orientation, GtkWidget * widg, GtkWidget * child, gboolean expand, gboolean fill, int padding);
1238extern GtkWidget * create_vbox (int spacing);
1239extern GtkWidget * create_hbox (int spacing);
1240extern GtkWidget * dialog_get_content_area (GtkWidget * widg);
1241extern void layout_add_widget (GtkWidget * layout, GtkWidget * child, int x_pos, int y_pos);
1242extern GtkWidget * add_vbox_to_layout (GtkWidget * layout, int size_x, int size_y);
1243extern GtkWidget * create_layout (int x, int y);
1244extern void add_global_option (GtkWidget * vbox, tint * oid);
1245
1246#ifdef GTK4
1247extern void run_this_gtk_native_dialog (GtkNativeDialog * dial, GCallback handler, gpointer data);
1248extern G_MODULE_EXPORT void select_unselect_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1249extern G_MODULE_EXPORT void select_unselect_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1250extern G_MODULE_EXPORT void select_unselect_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1251
1252extern G_MODULE_EXPORT void label_unlabel_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1253extern G_MODULE_EXPORT void label_unlabel_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1254extern G_MODULE_EXPORT void label_unlabel_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1255
1256extern G_MODULE_EXPORT void show_hide_this_atom (GSimpleAction * action, GVariant * parameter, gpointer data);
1257extern G_MODULE_EXPORT void show_hide_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1258extern G_MODULE_EXPORT void show_hide_the_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1259extern G_MODULE_EXPORT void show_hide_coord (GSimpleAction * action, GVariant * parameter, gpointer data);
1260extern G_MODULE_EXPORT void show_hide_poly (GSimpleAction * action, GVariant * parameter, gpointer data);
1261extern G_MODULE_EXPORT void show_hide_labels (GSimpleAction * action, GVariant * parameter, gpointer data);
1262
1263extern G_MODULE_EXPORT void remove_the_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1264extern G_MODULE_EXPORT void replace_the_atoms (GSimpleAction * action, GVariant * parameter, gpointer data);
1265extern G_MODULE_EXPORT void edit_in_new_project (GSimpleAction * action, GVariant * parameter, gpointer data);
1266extern void add_widget_gesture_and_key_action (GtkWidget * widget,
1267 gchar * cp_name, GCallback cp_handler, gpointer cp_data,
1268 gchar * cr_name, GCallback cr_handler, gpointer cr_data,
1269 gchar * kp_name, GCallback kp_handler, gpointer kp_data,
1270 gchar * mo_name, GCallback mo_handler, gpointer mo_data,
1271 gchar * sc_name, GCallback sc_handler, gpointer sc_data);
1272extern G_MODULE_EXPORT gboolean destroy_this_window (GtkWindow * win, gpointer data);
1273extern G_MODULE_EXPORT gboolean hide_this_window (GtkWindow * win, gpointer data);
1274extern GtkFileChooserNative * create_file_chooser (const gchar * title, GtkWindow * parent, GtkFileChooserAction act, const gchar * act_name);
1275extern void pop_menu_at_pointer (GtkWidget * pop, double x, double y);
1276GListModel * file_chooser_get_file_names (GtkFileChooser * chooser);
1277extern void update_menu_bar (glwin * view);
1278
1279#else
1280
1281extern void update_chains_menus (glwin * view);
1282
1283extern G_MODULE_EXPORT void select_unselect_this_atom (GtkWidget * widg, gpointer data);
1284extern G_MODULE_EXPORT void select_unselect_atoms (GtkWidget * widg, gpointer data);
1285extern G_MODULE_EXPORT void select_unselect_coord (GtkWidget * widg, gpointer data);
1286
1287extern G_MODULE_EXPORT void label_unlabel_this_atom (GtkWidget * widg, gpointer data);
1288extern G_MODULE_EXPORT void label_unlabel_atoms (GtkWidget * widg, gpointer data);
1289extern G_MODULE_EXPORT void label_unlabel_coord (GtkWidget * widg, gpointer data);
1290
1291extern G_MODULE_EXPORT void show_hide_this_atom (GtkWidget * widg, gpointer data);
1292extern G_MODULE_EXPORT void show_hide_atoms (GtkWidget * widg, gpointer data);
1293extern G_MODULE_EXPORT void show_hide_the_coord (GtkWidget * widg, gpointer data);
1294extern G_MODULE_EXPORT void show_hide_coord (GtkWidget * widg, gpointer data);
1295extern G_MODULE_EXPORT void show_hide_poly (GtkWidget * widg, gpointer data);
1296extern G_MODULE_EXPORT void show_hide_labels (GtkWidget * widg, gpointer data);
1297
1298extern G_MODULE_EXPORT void remove_the_atoms (GtkWidget * widg, gpointer data);
1299extern G_MODULE_EXPORT void replace_the_atoms (GtkWidget * widg, gpointer data);
1300extern G_MODULE_EXPORT void edit_in_new_project (GtkWidget * widg, gpointer data);
1301extern GtkWidget * create_menu_item (gboolean add_mnemo, gchar * action);
1302extern GtkWidget * create_menu_item_from_widget (GtkWidget * widg, gboolean check, gboolean radio, gboolean status);
1303extern GtkWidget * menu_item_new_with_submenu (gchar * name, gboolean active, GtkWidget * sub_menu);
1304extern void add_menu_separator (GtkWidget * menu);
1305extern G_MODULE_EXPORT gboolean destroy_this_window (GtkWidget * win, GdkEvent * event, gpointer data);
1306extern G_MODULE_EXPORT gboolean hide_this_window (GtkWidget * win, GdkEvent * event, gpointer data);
1307extern GtkWidget * create_file_chooser (const gchar * title, GtkWindow * parent, GtkFileChooserAction act, const gchar * act_name);
1308extern void pop_menu_at_pointer (GtkWidget * widg, GdkEvent * event);
1309GSList * file_chooser_get_file_names (GtkFileChooser * chooser);
1310#endif
1311
1312extern const gchar * entry_get_text (GtkEntry * entry);
1313extern GtkWidget * create_entry (GCallback handler, int dim, int cdim, gboolean key_release, gpointer data);
1314
1315
1316extern GtkWidget * stock_image (const gchar * stock_id);
1317extern void set_image_from_icon_name (GtkWidget * widg, gchar * icon);
1318extern GtkWidget * create_image_from_data (int format, gpointer item_image);
1319
1320extern GtkWidget * gtk3_menu_item (GtkWidget * menu, gchar * name,
1321 int icon_format, gpointer item_icon,
1322 GCallback handler, gpointer data,
1323 gboolean accel, guint key, GdkModifierType mod,
1324 gboolean check, gboolean radio, gboolean status);
1325
1326extern GtkWidget * add_advanced_item (GtkWidget * menu, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod);
1327
1328extern GtkWidget * markup_label (gchar * text, int dimx, int dimy, float ax, float ay);
1329extern GtkWidget * color_button (ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data);
1330extern GtkWidget * font_button (gchar * font, int dimx, int dimy, GCallback handler, gpointer data);
1331extern GtkWidget * spin_button (GCallback handler, double value, double start, double end, double step, int digits, int dim, gpointer data);
1332extern int button_get_status (GtkWidget * button);
1333extern void button_set_status (GtkWidget * button, int status);
1334extern GtkWidget * check_button (gchar * text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data);
1335extern GtkWidget * radio_button (gchar * text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data);
1336extern GtkWidget * create_button (gchar * text, int image_format, gchar * image, int dimx, int dimy, int relief, GCallback handler, gpointer data);
1337
1338extern ColRGBA gdkrgba_to_rgba (GdkRGBA colgdk);
1339extern GdkRGBA colrgba_togtkrgba (ColRGBA col);
1340extern ColRGBA get_button_color (GtkColorChooser * colob);
1341extern ColRGBA get_window_color (GtkWidget * color_win);
1342extern void set_color_chooser_color (GtkWidget * color_win, ColRGBA col);
1343extern void set_renderer_color (int tocol, GtkCellRenderer * renderer, ColRGBA col);
1344extern void set_renderer_markup (GtkTreeModel * mod, GtkTreeIter * iter, GtkCellRenderer * renderer, int col);
1345
1346extern void button_set_image (GtkButton * but, gchar * text, int format, gpointer image);
1347
1348extern GtkWidget * abox (GtkWidget * box, char * lab, int vspace);
1349extern GtkWidget * bbox (GtkWidget * box, char * lab);
1350extern GtkWidget * cbox (GtkWidget * box, char * lab);
1351extern GtkWidget * fbox (GtkWidget * box, char * lab);
1352extern GtkWidget * create_scroll (GtkWidget * box, int dimx, int dimy, int shadow);
1353extern GtkWidget * create_expander (gchar * name, gchar * file_img);
1354
1355extern GtkWidget * create_win (gchar * str, GtkWidget * parent, gboolean modal, gboolean resiz);
1356
1357extern void widget_add_action (GSimpleActionGroup * action_group, const gchar * act, GCallback handler, gpointer data,
1358 gboolean check, gboolean status, gboolean radio, const gchar * stat);
1359extern void append_menu_item (GMenu * menu, const gchar * label, const gchar * action, const gchar * accel,
1360 const gchar * custom, int format, const gchar * icon,
1361 gboolean check, gboolean status, gboolean radio, const gchar * rstatus);
1362extern void append_submenu (GMenu * menu, const gchar * label, GMenu * submenu);
1363
1364extern GtkWidget * destroy_this_widget (GtkWidget * widg);
1365extern void destroy_this_dialog (GtkDialog * dialog);
1366extern void destroy_this_native_dialog (GtkNativeDialog * dialog);
1367extern G_MODULE_EXPORT void run_destroy_dialog (GtkDialog * dialog, gint response_id, gpointer data);
1368
1369extern void add_gtk_close_event (GtkWidget * widg, GCallback handler, gpointer data);
1370
1371extern gchar * file_chooser_get_file_name (GtkFileChooser * chooser);
1372extern gchar * file_chooser_get_current_folder (GtkFileChooser * chooser);
1373extern gboolean file_chooser_set_file_name (GtkFileChooser * chooser, gchar * filename);
1374extern void file_chooser_set_current_folder (GtkFileChooser * chooser);
1375
1376extern GtkWidget * get_top_level (GtkWidget * widg);
1377
1378extern void provide_gtk_css (gchar * css);
1379extern double string_to_double (gpointer string);
1380extern double get_calc_time (struct timespec start, struct timespec stop);
1381extern gchar * calculation_time (gboolean modelv, double ctime);
1382
1383extern int get_widget_width (GtkWidget * widg);
1384extern int get_widget_height (GtkWidget * widg);
1385
1386extern int signal_error (const char * file, const char * func, int error_line, int error_id);
1387extern void update_error_trace (const char * file, const char * func, int trace_line);
1388
1389typedef struct {
1390 GCallback handler;
1391 gpointer data;
1392} focus_data;
1393
1394#endif // GLOBAL_H_
gchar * action_name[5]
Definition atom_edit.c:60
Variable declarations for the curve layout edition window.
double ay
Definition curve.c:71
double ax
Definition curve.c:71
PangoLayout * layout
Definition curve.c:80
ColRGBA col
Definition d_measures.c:77
gchar * text
Definition datab.c:105
float val
Definition dlp_init.c:117
gchar * PACKAGE_BMP
Definition global.c:98
gchar * PACKAGE_SET
Definition global.c:107
gboolean reading_input
Definition global.c:186
gchar * ATOMES_CONFIG
Definition global.c:139
gchar * PACKAGE_SGTP
Definition global.c:130
gchar * PACKAGE_SGMI
Definition global.c:136
gchar * PACKAGE_SGTI
Definition global.c:129
GtkStatusbar * statusbar
Definition global.c:220
GtkWidget * register_button
Definition global.c:217
int mol_update
Definition global.c:175
gchar * workspacefile
Definition global.c:159
char * ifbug
Definition global.c:145
gchar * PACKAGE_DOTG
Definition global.c:117
gchar * PACKAGE_TIFF
Definition global.c:99
gchar * PACKAGE_LAGPL
Definition global.c:109
gchar * PACKAGE_LOGO
Definition global.c:108
double pi
Definition global.c:202
gboolean newspace
Definition global.c:185
gchar * PACKAGE_DOTC
Definition global.c:113
gchar * PACKAGE_LIB_DIR
Definition global.c:89
gchar * PACKAGE_IMG
Definition global.c:92
gchar * PACKAGE_DFIN
Definition global.c:123
int dialog_id
Definition global.c:170
char * rings_type[5]
Definition global.c:147
GtkTextTag * tag
Definition global.c:219
GtkWidget * MainScrol[2]
Definition global.c:213
struct timespec start_time
Definition global.c:198
int activep
Definition global.c:162
gchar * PACKAGE_IMP
Definition global.c:90
GSimpleAction * edition_actions[3]
Definition global.c:204
int * pasted_todo
Definition global.c:178
gchar * PACKAGE_DOTE
Definition global.c:115
int inactep
Definition global.c:165
gboolean in_movie_encoding
Definition global.c:184
gchar * PACKAGE_DOTH
Definition global.c:118
double * xsk
Definition global.c:180
gchar * PACKAGE_SGMP
Definition global.c:135
int activef
Definition global.c:164
gboolean tmp_adv_bonding[2]
Definition global.c:187
gchar * PACKAGE_DFAN
Definition global.c:120
gchar * PACKAGE_SGTR
Definition global.c:128
GdkPixbuf * OGLC
Definition global.c:229
gchar * PACKAGE_DFDI
Definition global.c:121
gchar * PACKAGE_DFTD
Definition global.c:122
char * untime[5]
Definition global.c:153
GMainLoop * Event_loop[5]
Definition global.c:182
gboolean silent_input
Definition global.c:192
gchar * PACKAGE_SGCF
Definition global.c:126
int activew
Definition global.c:166
GtkApplication * AtomesApp
Definition global.c:206
gchar * PACKAGE_DFBD
Definition global.c:119
gchar * PACKAGE_CON
Definition global.c:91
gchar * PACKAGE_SGHP
Definition global.c:127
int nprojects
Definition global.c:161
GtkWidget * MainFrame[2]
Definition global.c:209
GtkWidget * atomes_shortcuts
Definition global.c:215
int activev
Definition global.c:163
gboolean selected_status
Definition global.c:191
int frag_update
Definition global.c:174
gchar * PACKAGE_OGL
Definition global.c:103
GtkWidget * MainWindow
Definition global.c:207
gchar * PACKAGE_DOTF
Definition global.c:116
GdkPixbuf * OGLM
Definition global.c:228
gchar * PACKAGE_EPS
Definition global.c:95
gchar * PACKAGE_DOTA
Definition global.c:111
gchar * PACKAGE_OGLM
Definition global.c:104
gchar * PACKAGE_SGOC
Definition global.c:133
gboolean column_label
Definition global.c:188
gchar * projfile
Definition global.c:144
gchar * PACKAGE_SGOF
Definition global.c:134
gchar * ATOMES_URL
Definition global.c:140
int bonds_update
Definition global.c:173
gboolean atomes_render_image
Definition global.c:196
gchar * PACKAGE_SGOP
Definition global.c:131
GdkPixbuf * SETTINGS
Definition global.c:226
gchar * PACKAGE_OGLC
Definition global.c:105
gboolean check_label
Definition global.c:189
double opac
Definition global.c:201
gchar * mode_name[2]
Definition global.c:141
gchar * PACKAGE_TD
Definition global.c:101
GdkPixbuf * THEBD
Definition global.c:224
gboolean object_motion
Definition global.c:190
gchar * PACKAGE_SVG
Definition global.c:94
gchar * PACKAGE_SGTC
Definition global.c:137
gchar * PACKAGE_SGCP
Definition global.c:124
GdkPixbuf * OGL
Definition global.c:227
GdkPixbuf * RUN
Definition global.c:230
GdkPixbuf * THETD
Definition global.c:222
GtkWidget * atomes_logo
Definition global.c:214
gchar * PACKAGE_PRO
Definition global.c:106
GtkWidget * progressbar
Definition global.c:212
gchar * PACKAGE_LABOUT
Definition global.c:110
GdkPixbuf * SETTING
Definition global.c:225
gchar * ATOMES_CONFIG_DIR
Definition global.c:138
int atomes_visual
Definition global.c:168
struct timespec stop_time
Definition global.c:199
gchar * bravais_img[14]
Definition global.c:142
gchar * PACKAGE_MOL
Definition global.c:102
int statusval
Definition global.c:167
gboolean cif_use_symmetry_positions
Definition global.c:193
int reading_step_limit
Definition global.c:172
gchar * PACKAGE_VOID
Definition global.c:100
gchar * PACKAGE_DOTB
Definition global.c:112
GtkWidget * curvetoolbox
Definition global.c:211
GdkPixbuf * THEMO
Definition global.c:223
gchar * PACKAGE_PDF
Definition global.c:93
GtkWidget * pop
Definition global.c:210
gchar * ifield[8]
Definition global.c:143
gchar * PACKAGE_SGOI
Definition global.c:132
gchar * PACKAGE_JPG
Definition global.c:97
gchar * PACKAGE_SGCI
Definition global.c:125
GtkWidget * calc_dialog
Definition global.c:216
gchar * PACKAGE_DOTD
Definition global.c:114
int tmp_pixels[2]
Definition global.c:177
GtkWidget * MainView
Definition global.c:208
gboolean atomes_from_libreoffice
Definition global.c:195
gchar * PACKAGE_PNG
Definition global.c:96
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:616
int ** allocdint(int xal, int yal)
allocate an int ** pointer
Definition global.c:317
GdkPixbuf * convert_to_pixbuf(cairo_surface_t *surf)
convert cairo surface to GdkPixbuf
Definition gtk-misc.c:1351
void run_this_gtk_dialog(GtkWidget *dial, GCallback handler, gpointer data)
run a GTK (3 and 4) basic GtkDialog
Definition gtk-misc.c:533
void recreate_all_shaders(glwin *view)
re-initialize all OpenGL shaders
workspace workzone
Definition project.c:46
ImageFormats
Definition global.h:275
@ IMG_PIXBUF
Definition global.h:277
@ IMG_NONE
Definition global.h:276
@ IMG_STOCK
Definition global.h:280
@ IMG_SURFACE
Definition global.h:278
@ IMG_FILE
Definition global.h:279
void file_chooser_set_current_folder(GtkFileChooser *chooser)
set current folder in a GtkFilechooser
Definition gtk-misc.c:2358
double **** allocqdouble(int wal, int xal, int yal, int zal)
allocate a double **** pointer
Definition global.c:509
int combo_get_active(GtkWidget *combo)
retrieve the active item's position
Definition gtk-misc.c:935
int signal_error(const char *file, const char *func, int error_line, int error_id)
Definition callbacks.c:182
GtkWidget * create_entry(GCallback handler, int dim, int cdim, gboolean key_release, gpointer data)
Create a GtkEntry.
Definition gtk-misc.c:1401
float ** allocdfloat(int xal, int yal)
allocate a float ** pointer
Definition global.c:401
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:688
void set_renderer_color(int tocol, GtkCellRenderer *renderer, ColRGBA col)
set the color of a GtkCellRenderer
Definition gtk-misc.c:1740
void append_comments(GtkWidget *vbox, gchar *symbol, gchar *legend)
append comments to a vertical box
Definition gtk-misc.c:2048
G_MODULE_EXPORT void show_hide_labels(GtkWidget *widg, gpointer data)
GLfloat ** allocdGLfloat(int xal, int yal)
allocate a GLfloat ** pointer
Definition glview.c:169
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:1704
GLuint ** allocdgluint(int xal, int yal)
allocate a GLuint ** pointer
Definition glview.c:147
G_MODULE_EXPORT void show_hide_poly(GtkWidget *widg, gpointer data)
show / hide polyhedra callback - GTK3
Definition m_poly.c:79
double * duplicate_double(int num, double *old_val)
copy a list of double
Definition global.c:595
int * duplicate_int(int num, int *old_val)
copy a list of int
Definition global.c:547
int *** alloctint(int xal, int yal, int zal)
allocate an int *** pointer
Definition global.c:340
GtkWidget * font_button(gchar *font, int dimx, int dimy, GCallback handler, gpointer data)
create a font selection button
Definition gtk-misc.c:1855
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:1286
void add_analysis_action(int act)
add action to the main window action map
Definition gui.c:538
GtkTextBuffer * add_buffer(GCallback handler, gpointer data, gchar *text)
create a GtkTextBuffer
Definition gtk-misc.c:1258
GtkWidget * create_scroll(GtkWidget *box, int dimx, int dimy, int shadow)
create a scroll window
Definition gtk-misc.c:2139
GtkWidget * dialogmodal(gchar *str, GtkWindow *parent)
Create a new dialog modal window.
Definition gtk-misc.c:552
void set_color_chooser_color(GtkWidget *color_win, ColRGBA col)
set the color of a color selection window
Definition gtk-misc.c:2435
coord_info * active_coord
Definition project.c:49
gboolean is_the_widget_visible(GtkWidget *widg)
test if a GtkWidget exist, then return if it is visible or not
Definition gtk-misc.c:183
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
void resize_this_window(GtkWidget *window, int x, int y)
resize this GtkWindow
Definition gtk-misc.c:636
GtkWidget * create_win(gchar *str, GtkWidget *parent, gboolean modal, gboolean resiz)
create a new GtkWindow
Definition gtk-misc.c:486
cell_info * active_cell
Definition project.c:50
void combo_set_markup(GtkWidget *combo)
use pango markup in combo widget
Definition gtk-misc.c:970
element_data periodic_table_info[]
Definition w_library.c:71
atomes_action edition_acts[]
Definition gui.c:108
ColRGBA get_window_color(GtkWidget *color_win)
get the ColRGBA color from a color selection window
Definition gtk-misc.c:2420
project * proj
void combo_set_active(GtkWidget *combo, int pos)
set the active item's position
Definition gtk-misc.c:958
void remove_edition_actions()
remove all edition actions
Definition gui.c:564
gchar * graph_img[NCALCS]
Definition gui.c:106
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:900
int get_widget_height(GtkWidget *widg)
retrive GtkWidget height
Definition gtk-misc.c:2589
char * graph_name[]
Definition gui.c:123
gchar * file_chooser_get_file_name(GtkFileChooser *chooser)
get a file name from a GtkFileChooser (single file selected)
Definition gtk-misc.c:2306
G_MODULE_EXPORT void show_hide_coord(GtkWidget *widg, gpointer data)
show/hide coordination callback GTK3
Definition m_coord.c:106
const gchar * entry_get_text(GtkEntry *entry)
get the text in a GtkEntry
Definition gtk-misc.c:652
chemical_data * active_chem
Definition project.c:48
GdkRGBA colrgba_togtkrgba(ColRGBA col)
convert ColRGBA color to GdkRGBA color
Definition gtk-misc.c:1721
void clean_rings_data(int rid, glwin *view)
clean a ring type data for a glview
Definition ringscall.c:361
void opengl_project_changed(int id)
change the OpenGL project
Definition update_p.c:296
gboolean * allocbool(int val)
allocate a gboolean * pointer
Definition global.c:241
void update_entry_int(GtkEntry *entry, int intval)
update the content of a GtkEntry as int
Definition gtk-misc.c:669
G_MODULE_EXPORT gboolean hide_this_window(GtkWidget *win, GdkEvent *event, gpointer data)
hide a GtkWindow
Definition gtk-misc.c:2541
void pop_menu_at_pointer(GtkWidget *widg, GdkEvent *event)
popup a menu at pointer location
Definition gtk-misc.c:2471
gboolean file_chooser_set_file_name(GtkFileChooser *chooser, gchar *filename)
set file name in a GtkFilechooser
Definition gtk-misc.c:2339
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:627
G_MODULE_EXPORT gboolean destroy_this_window(GtkWidget *win, GdkEvent *event, gpointer data)
destroy a GtkWindow
Definition gtk-misc.c:2514
G_MODULE_EXPORT void select_unselect_this_atom(GtkWidget *widg, gpointer data)
select / unselect this atom callback GTK3
Definition popup.c:1196
GtkWidget * stock_image(const gchar *stock_id)
create a GtkImage for the Gtk database
Definition gtk-misc.c:1451
char * calc_name[]
Definition gui.c:112
int get_widget_width(GtkWidget *widg)
retrive GtkWidget width
Definition gtk-misc.c:2573
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:714
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:2557
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:814
void layout_add_widget(GtkWidget *layout, GtkWidget *child, int x_pos, int y_pos)
Add a GtkWidget in a GtkLayout.
Definition gtk-misc.c:882
atomes_action analyze_acts[]
void set_renderer_markup(GtkTreeModel *mod, GtkTreeIter *iter, GtkCellRenderer *renderer, int col)
set Pango text markup for a GtkCellRenderer
Definition gtk-misc.c:1764
void button_set_status(GtkWidget *button, int status)
set status of check / toggle button
Definition gtk-misc.c:1916
GtkWidget * fbox(GtkWidget *box, char *lab)
box creating routine, to help design faster elements for the GUI
Definition gtk-misc.c:2120
gchar * file_chooser_get_current_folder(GtkFileChooser *chooser)
get the current folder for a GtkFileChooser
Definition gtk-misc.c:2322
ColRGBA std[6]
Definition gui.c:149
void add_global_option(GtkWidget *vbox, tint *oid)
add a button to update global user preferences
double ** allocddouble(int xal, int yal)
allocate a double ** pointer
Definition global.c:462
GtkWidget * radio_button(gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
create a radio button
Definition gtk-misc.c:1970
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:1877
#define NITEMS
Definition global.h:334
GtkWidget * check_button(gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
create a check button
Definition gtk-misc.c:1937
G_MODULE_EXPORT void on_calc_bonds_released(GtkWidget *widg, gpointer data)
compute bonding properties
Definition bdcall.c:559
GtkWidget * add_advanced_item(GtkWidget *menu, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod)
box_info * active_box
Definition project.c:51
ContainerType
Definition global.h:265
@ CONTAINER_EXP
Definition global.h:271
@ CONTAINER_WIN
Definition global.h:266
@ CONTAINER_FRA
Definition global.h:270
@ CONTAINER_BUT
Definition global.h:269
@ CONTAINER_SCR
Definition global.h:267
@ CONTAINER_VIE
Definition global.h:268
G_MODULE_EXPORT void label_unlabel_coord(GtkWidget *widg, gpointer data)
label / unlabel a type of coordination callback GTK3
Definition popup.c:1858
double * allocdouble(int val)
allocate a double * pointer
Definition global.c:446
gchar * calculation_time(gboolean modelv, double ctime)
get calculation time, human readable
Definition global.c:643
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:1999
G_MODULE_EXPORT void show_hide_this_atom(GtkWidget *widg, gpointer data)
show / hide this atom callback GTK3
Definition popup.c:1038
G_MODULE_EXPORT void label_unlabel_atoms(GtkWidget *widg, gpointer data)
label / unlabel a type of atom(s) callback GTK3
Definition popup.c:1522
GtkWidget * get_top_level(GtkWidget *widg)
get the top level container, window, of a widget
Definition gtk-misc.c:2485
#define NCFORMATS
Definition global.h:332
GtkWidget * create_combo()
create a GtkCombox widget, note deprecated in GTK4
Definition gtk-misc.c:1010
void remove_edition_and_analyze_actions()
remove all edition and analysis action
Definition gui.c:575
GtkWidget * dialog_get_content_area(GtkWidget *widg)
prepare GtkWidget to insert content in a GtkDialog window
Definition gtk-misc.c:861
void button_set_image(GtkButton *but, gchar *text, int format, gpointer image)
Add an image to a GtkButton.
Definition gtk-misc.c:1782
gchar ** duplicate_strings(int num, gchar **old_val)
copy a list of strings
Definition global.c:531
GtkWidget * markup_label(gchar *text, int dimx, int dimy, float ax, float ay)
create a GtkLabel with pango markup
Definition gtk-misc.c:1672
GtkWidget * cbox(GtkWidget *box, char *lab)
box creating routine, to help design faster elements for the GUI
Definition gtk-misc.c:2102
void clean_chains_data(glwin *view)
cleaning the OpenGL data related to chain statistics
Definition chainscall.c:263
project * opengl_project
Definition project.c:54
float * duplicate_float(int num, float *old_val)
copy a list of float
Definition global.c:579
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:340
ColRGBA get_button_color(GtkColorChooser *colob)
get the ColRGBA color from a GtkColorChooser button
Definition gtk-misc.c:2406
void widget_set_sensitive(GtkWidget *widg, gboolean sensitive)
Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
Definition gtk-misc.c:247
void destroy_this_dialog(GtkDialog *dialog)
destroy a GtkDialog
Definition gtk-misc.c:2235
void text_view_set_monospace(GtkWidget *view)
set the font of a GtkTextView as monospace
Definition gtk-misc.c:742
GtkWidget * create_hbox(int spacing)
create a GtkBox with horizontal orientation
Definition gtk-misc.c:849
gboolean * duplicate_bool(int num, gboolean *old_val)
copy a list of gboolean
Definition global.c:563
GtkWidget * new_gtk_window()
create a new GtkWindow
Definition gtk-misc.c:389
GtkWidget * create_image_from_data(int format, gpointer item_image)
create Gtk image for data
Definition gtk-misc.c:1530
double *** alloctdouble(int xal, int yal, int zal)
allocate a double *** pointer
Definition global.c:485
int * allocint(int val)
allocate an int * pointer
Definition global.c:301
void gtk_label_align(GtkWidget *lab, float ax, float ay)
set text alignment in a GtkLabel
Definition gtk-misc.c:756
char * coord_files_ext[NCFORMATS+1]
Definition callbacks.c:103
G_MODULE_EXPORT void select_unselect_atoms(GtkWidget *widg, gpointer data)
select / unselect a type of atom(s) callback GTK3
Definition popup.c:1570
void combo_text_append(GtkWidget *combo, gchar *text)
append text in GtkComboBox widget
Definition gtk-misc.c:987
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:2272
GtkWidget * create_layout(int x, int y)
create a GtkLayout / GtkFixed widget
Definition gtk-misc.c:916
GtkWidget * create_menu_item(gboolean add_mnemo, gchar *action)
gboolean *** alloctbool(int xal, int yal, int zal)
allocate a gboolean *** pointer
Definition global.c:280
gboolean ** allocdbool(int xal, int yal)
allocate a gboolean ** pointer
Definition global.c:257
GtkWidget * destroy_this_widget(GtkWidget *widg)
destroy a GtkWidget
Definition gtk-misc.c:2213
GLuint * allocgluint(int val)
allocate a GLuint * pointer
Definition glview.c:131
GtkWidget * color_button(ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data)
create a color selection button
Definition gtk-misc.c:1833
G_MODULE_EXPORT void select_unselect_coord(GtkWidget *widg, gpointer data)
select / unselect a type of coordination callback GTK3
Definition popup.c:1934
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:780
GtkWidget * bbox(GtkWidget *box, char *lab)
box creating routine, to help design faster elements for the GUI
Definition gtk-misc.c:2084
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:318
void update_entry_text(GtkEntry *entry, gchar *text)
update the content of a GtkEntry as string
Definition gtk-misc.c:726
void provide_gtk_css(gchar *css)
create a css provider based on the css data
Definition gtk-misc.c:2185
GSList * file_chooser_get_file_names(GtkFileChooser *chooser)
create a file list from files selected using a GtkFileChooser
Definition gtk-misc.c:2293
double get_calc_time(struct timespec start, struct timespec stop)
get calculation time in s
Definition global.c:630
#define min(a, b)
Definition global.h:93
tint cut_sel
Definition gui.c:147
int **** allocqint(int wal, int xal, int yal, int zal)
allocate an int **** pointer
Definition global.c:364
float * allocfloat(int val)
allocate a float * pointer
Definition global.c:385
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:1807
void cutoffsend()
send cutoffs to Fortran90
Definition bdcall.c:293
gboolean in_md_shaders(project *this_proj, int id)
is this shader MD dependent ?
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:267
void set_image_from_icon_name(GtkWidget *widg, gchar *icon)
set a image from a stock icon name
Definition gtk-misc.c:2030
#define MAXDATC
Number of tabs for the description of the classical calculation.
Definition global.h:771
char * coord_files[NCFORMATS+1]
Definition callbacks.c:88
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:573
void combo_text_prepend(GtkWidget *combo, gchar *text)
prepend text in GtkComboBox widget
Definition gtk-misc.c:1000
void hide_the_widgets(GtkWidget *widg)
hide GtkWidget
Definition gtk-misc.c:224
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:745
G_MODULE_EXPORT void replace_the_atoms(GtkWidget *widg, gpointer data)
replace selected atom(s) callback GTK3
Definition popup.c:1345
void add_menu_separator(GtkWidget *menu)
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:837
ColRGBA * duplicate_color(int num, ColRGBA *col)
duplicate a ColRGBA pointer
Definition gtk-misc.c:1689
int button_get_status(GtkWidget *button)
get status of check / toggle button
Definition gtk-misc.c:1899
double string_to_double(gpointer string)
convert string to double
Definition global.c:611
GtkWidget * abox(GtkWidget *box, char *lab, int vspace)
box creating routine, to help design faster elements for the GUI
Definition gtk-misc.c:2067
G_MODULE_EXPORT void edit_in_new_project(GtkWidget *widg, gpointer data)
create new project using selection callback GTK3
Definition popup.c:2209
GtkWidget * create_expander(gchar *name, gchar *file_img)
create GtkExpander
Definition gtk-misc.c:2163
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:2393
void update_error_trace(const char *file, const char *func, int trace_line)
Definition callbacks.c:200
#define MAXDATA
Number of tabs for the description of the classical force field.
Definition global.h:776
float *** alloctfloat(int xal, int yal, int zal)
allocate a float *** pointer
Definition global.c:424
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:1147
gchar * dots[NDOTS]
Definition gui.c:105
void initcutoffs(chemical_data *chem, int species)
initialize bond cutoffs
Definition bdcall.c:245
void update_rings_menus(glwin *view)
#define NCALCS
void destroy_this_native_dialog(GtkNativeDialog *dialog)
destroy a GtkNativeDialog
Definition gtk-misc.c:2254
atomic_object * copied_object
Definition glwindow.c:124
void remove_action(gchar *action_name)
add action from the main window action map
Definition gui.c:554
image * active_image
Definition project.c:52
#define NDOTS
void show_the_widgets(GtkWidget *widg)
show GtkWidget
Definition gtk-misc.c:202
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:707
#define max(a, b)
Definition global.h:92
G_MODULE_EXPORT void remove_the_atoms(GtkWidget *widg, gpointer data)
remove selected atom(s) callback GTK3
Definition popup.c:1316
action
Definition glview.h:198
int step
Definition ogl_draw.c:76
Variable declarations related the OpenGL window Data structure declarations related the OpenGL wind...
Functions for OpenGL math.
double y
Definition ogl_draw.c:63
double x
Definition ogl_draw.c:63
float blue
Definition global.h:138
float alpha
Definition global.h:139
float red
Definition global.h:136
float green
Definition global.h:137
CurveExtra * prev
Definition global.h:629
tint id
Definition global.h:627
CurveExtra * next
Definition global.h:630
DataLayout * layout
Definition global.h:628
GtkWidget * plot
Definition global.h:658
ColRGBA backcolor
Definition global.h:668
int wsize[2]
Definition global.h:665
CurveState state
Definition global.h:729
double cmax[2]
Definition global.h:657
double axmax[2]
Definition global.h:673
GtkWidget * datatree
Definition global.h:666
ExtraSets * extrac
Definition global.h:720
GtkWidget * curve_hbox
Definition global.h:661
int legend_box_dash
Definition global.h:701
ColRGBA title_color
Definition global.h:710
char * axis_title[2]
Definition global.h:675
int labels_shift_y[2]
Definition global.h:694
gboolean show_legend
Definition global.h:696
gboolean default_title
Definition global.h:707
int format
Definition global.h:669
gboolean autoscale[2]
Definition global.h:680
double legend_pos[2]
Definition global.h:697
double cmin[2]
Definition global.h:656
GtkWidget * window
Definition global.h:662
double majt[2]
Definition global.h:683
gboolean show_legend_box
Definition global.h:700
ColRGBA frame_color
Definition global.h:716
int axis_title_y[2]
Definition global.h:677
gboolean show_frame
Definition global.h:712
double axmin[2]
Definition global.h:672
int labels_digit[2]
Definition global.h:690
int labels_shift_x[2]
Definition global.h:693
ColRGBA legend_box_color
Definition global.h:702
int frame_type
Definition global.h:713
int bshift
Definition global.h:723
int ticks_pos[2]
Definition global.h:686
GtkWidget * curve_vbox
Definition global.h:660
char * name
Definition global.h:670
double * err
Definition global.h:655
int majt_size[2]
Definition global.h:687
ColRGBA legend_color
Definition global.h:699
gboolean axis_defaut_title[2]
Definition global.h:674
int axis_title_x[2]
Definition global.h:676
int scale[2]
Definition global.h:679
cairo_surface_t * surface
Definition global.h:721
int ticks_io[2]
Definition global.h:685
gchar * axis_title_font[2]
Definition global.h:678
GtkWidget * shortcuts
Definition global.h:664
int ndata
Definition global.h:653
gchar * path
Definition global.h:727
int labels_pos[2]
Definition global.h:689
double * data[2]
Definition global.h:654
double frame_thickness
Definition global.h:715
GtkWidget * pos
Definition global.h:663
gboolean displayed
Definition global.h:725
double title_pos[2]
Definition global.h:708
int mint_size[2]
Definition global.h:688
qint idcol[2]
Definition global.h:667
int action_id
Definition global.h:728
gboolean show_title
Definition global.h:706
char * cfile
Definition global.h:726
curve_edition * curve_edit
Definition global.h:730
int cid
Definition global.h:652
double legend_box_thickness
Definition global.h:703
gchar * legend_font
Definition global.h:698
DataLayout * layout
Definition global.h:719
double labels_angle[2]
Definition global.h:692
int draw_id
Definition global.h:722
gboolean show_grid[2]
Definition global.h:681
GSimpleActionGroup * action_group
Definition global.h:731
gchar * labels_font[2]
Definition global.h:691
gchar * title_font
Definition global.h:709
int frame_dash
Definition global.h:714
char * title
Definition global.h:705
int mint[2]
Definition global.h:684
GtkWidget * button
Definition global.h:659
double frame_pos[2][2]
Definition global.h:717
gboolean show_axis[2]
Definition global.h:682
tint * id
Definition global.h:598
MouseState mouseState
Definition global.h:597
double thickness
Definition global.h:609
int gfreq
Definition global.h:613
double hopac
Definition global.h:616
int glyph
Definition global.h:611
double hwidth
Definition global.h:615
int aspect
Definition global.h:614
ColRGBA datacolor
Definition global.h:608
int dash
Definition global.h:610
int hpos
Definition global.h:617
double gsize
Definition global.h:612
CurveExtra * last
Definition global.h:642
CurveExtra * first
Definition global.h:641
int extras
Definition global.h:640
gboolean MouseIsDown
Definition global.h:587
gint start_y
Definition global.h:585
gint start_x
Definition global.h:584
gint time
Definition global.h:586
Definition global.h:964
int sp
Definition global.h:966
gboolean label[2]
Definition global.h:1001
int numv
Definition global.h:971
int coord[5]
Definition global.h:978
int id
Definition global.h:965
gboolean cloned
Definition global.h:1003
int faid
Definition global.h:999
int * vois
Definition global.h:972
int style
Definition global.h:1004
gboolean pick[2]
Definition global.h:1002
int ** chain
Definition global.h:997
double z
Definition global.h:970
gboolean show[2]
Definition global.h:1000
double y
Definition global.h:969
int ** rings[5]
Definition global.h:990
int fid
Definition global.h:998
atom * prev
Definition global.h:1005
atom * next
Definition global.h:1006
double x
Definition global.h:968
gchar * action_name
Definition global.h:164
gpointer action_data
Definition global.h:165
double calc_time
Definition global.h:751
int * compat_id
Definition global.h:763
tint * idcc
Definition global.h:765
double * o_params
Definition global.h:758
gchar * x_title
Definition global.h:750
double fact
Definition global.h:756
GtkTextBuffer * calc_buffer
Definition global.h:759
gboolean graph_res
Definition global.h:760
gboolean init_ok
Definition global.h:747
double delta
Definition global.h:753
Curve ** curves
Definition global.h:764
gboolean calc_ok
Definition global.h:748
gboolean avail_ok
Definition global.h:746
gchar * name
Definition global.h:745
gboolean requires_md
Definition global.h:749
atomes_error_signal error_signal
Definition global.h:519
gchar * error_file
Definition global.h:520
int error_line
Definition global.h:522
int trace_id
Definition global.h:523
gchar * error_func
Definition global.h:521
gchar * error_trace
Definition global.h:524
Definition glwin.h:350
char ** label
Definition global.h:939
int * nsps
Definition global.h:937
int * formula
Definition global.h:938
double ** cutoffs
Definition global.h:941
double grtotcutoff
Definition global.h:942
double ** chem_prop
Definition global.h:931
char ** element
Definition global.h:940
double * io_opts
Definition global.h:798
struct field_external * first_external
Definition global.h:794
struct field_molecule * first_molecule
Definition global.h:788
struct field_nth_body * first_body[5]
Definition global.h:790
double * sys_opts
Definition global.h:797
double * equi_opts
Definition global.h:803
int extern_fields
Definition global.h:793
double * elec_opts
Definition global.h:800
gboolean afp[MAXDATC+MAXDATA]
Definition global.h:783
double * md_opts
Definition global.h:807
int nbody[5]
Definition global.h:789
gboolean prepare_file[2]
Definition global.h:781
double * out_opts
Definition global.h:808
double * vdw_opts
Definition global.h:801
double * ana_opts
Definition global.h:799
double *** cross
Definition global.h:792
double * thermo_opts
Definition global.h:806
double * met_opts
Definition global.h:802
int dis
Definition global.h:569
int * nsps
Definition global.h:547
int natomes
Definition global.h:543
double ** coord
Definition global.h:548
int msg
Definition global.h:556
int ndummy
Definition global.h:552
int atom_unlabelled
Definition global.h:571
int * object_list
Definition global.h:574
int object_to_insert
Definition global.h:573
cell_info lattice
Definition global.h:554
gchar *** sym_pos
Definition global.h:563
gboolean cartesian
Definition global.h:549
int mid
Definition global.h:555
gchar ** label
Definition global.h:558
gchar ** info
Definition global.h:557
int setting
Definition global.h:564
int * wyckoff
Definition global.h:565
int rounding
Definition global.h:566
int * u_atom_list
Definition global.h:572
int num_sym_pos
Definition global.h:562
gchar ** dummy
Definition global.h:553
int steps
Definition global.h:544
double * z
Definition global.h:546
double * occupancy
Definition global.h:567
int * multi
Definition global.h:568
int traj
Definition global.h:560
gboolean chemical
Definition global.h:550
int * lot
Definition global.h:551
int * disorder
Definition global.h:570
int nspec
Definition global.h:545
int cmin
Definition global.h:192
int * ntg[10]
Definition global.h:189
int cmax
Definition global.h:193
int ** geolist[10]
Definition global.h:190
int *** partial_geo
Definition global.h:191
int totcoord[10]
Definition global.h:182
int species
Definition global.h:175
Definition global.h:868
gchar * files[5]
Definition global.h:877
int input_type
Definition global.h:869
gchar * info
Definition global.h:880
int thermostats
Definition global.h:872
int fixat[2]
Definition global.h:874
thermostat * ions_thermostat
Definition global.h:873
double extra_opts[3][4]
Definition global.h:871
int ** spec_data
Definition global.h:879
gchar *** spec_files
Definition global.h:878
double opts[42]
Definition global.h:870
int ** fixcoord[2]
Definition global.h:876
int * fixlist[2]
Definition global.h:875
Definition global.h:849
dummy_atom * dummy
Definition global.h:859
gchar * info
Definition global.h:863
int thermostats
Definition global.h:852
int * fixlist
Definition global.h:856
thermostat * ions_thermostat
Definition global.h:853
int calc_type
Definition global.h:850
int dummies
Definition global.h:858
int fixat
Definition global.h:855
int restart[10]
Definition global.h:851
double default_opts[17]
Definition global.h:860
int ** pp
Definition global.h:862
int ** fixcoord
Definition global.h:857
double calc_opts[24]
Definition global.h:861
thermostat * elec_thermostat
Definition global.h:854
Definition global.h:111
int b
Definition global.h:113
int a
Definition global.h:112
int numv
Definition global.h:841
dummy_atom * prev
Definition global.h:844
int natoms
Definition global.h:839
int pick[2]
Definition global.h:835
int * vois
Definition global.h:842
gboolean show
Definition global.h:836
int * list
Definition global.h:840
dummy_atom * next
Definition global.h:843
int type
Definition global.h:834
int coord[4]
Definition global.h:838
double xyz[3]
Definition global.h:837
float M
Definition global.h:920
gchar * lab
Definition global.h:917
gchar * name
Definition global.h:918
gpointer data
Definition global.h:1391
GCallback handler
Definition global.h:1390
Definition glwin.h:967
Definition glwin.h:364
gchar * type
Definition global.h:952
gchar * object
Definition global.h:953
gchar * line
Definition global.h:531
struct line_node * next
Definition global.h:532
struct line_node * prev
Definition global.h:533
int * mol_by_step
Definition global.h:906
molecule ** mols
Definition global.h:907
int * fragments
Definition global.h:893
int natoms
Definition global.h:894
int md
Definition global.h:891
int id
Definition global.h:890
int multiplicity
Definition global.h:892
int * species
Definition global.h:896
int nspec
Definition global.h:895
int natomes
Definition global.h:1029
int tunit
Definition global.h:1032
gboolean run
Definition global.h:1025
int sqw_n_data_sets
Definition global.h:1086
int skt_corr_threshold
Definition global.h:1081
int sqw_sets
Definition global.h:1085
model * modelfc
Definition global.h:1101
gboolean initgl
Definition global.h:1095
double sk_advanced[2][2]
Definition global.h:1079
int xcor
Definition global.h:1045
int rsparam[5][6]
Definition global.h:1051
int skt_sets
Definition global.h:1080
char * projfile
Definition global.h:1021
gboolean newproj
Definition global.h:1024
coord_info * coord
Definition global.h:1034
char * name
Definition global.h:1020
gboolean runc[3]
Definition global.h:1044
atomes_analysis ** analysis
Definition global.h:1041
double rsdata[5][5]
Definition global.h:1058
int id
Definition global.h:1019
gboolean skt_all_sets
Definition global.h:1082
int csearch
Definition global.h:1065
int * skt_step_id
Definition global.h:1084
project * next
Definition global.h:1115
int tfile
Definition global.h:1027
gboolean dmtx
Definition global.h:1026
int dummies
Definition global.h:1030
int steps
Definition global.h:1031
atom ** atoms
Definition global.h:1036
char * bondfile
Definition global.h:1023
cp2k * cp2k_input[2]
Definition global.h:1105
project * prev
Definition global.h:1116
char * coordfile
Definition global.h:1022
double csdata[2]
Definition global.h:1075
double * sqw_q_id
Definition global.h:1087
int skt_n_data_sets
Definition global.h:1083
cell_info cell
Definition global.h:1035
int csparam[7]
Definition global.h:1067
GtkTextBuffer * text_buffer[NITEMS]
Definition global.h:1090
int sqw_freq
Definition global.h:1088
cpmd * cpmd_input[2]
Definition global.h:1104
classical_field * force_field[2]
Definition global.h:1103
int tmp_pixels[2]
Definition global.h:1096
int nspec
Definition global.h:1028
chemical_data * chemistry
Definition global.h:1033
int rsearch[2]
Definition global.h:1048
glwin * modelgl
Definition global.h:1097
Definition global.h:126
int b
Definition global.h:128
int c
Definition global.h:129
int d
Definition global.h:130
int a
Definition global.h:127
gchar * description
Definition global.h:151
gchar * subtitle
Definition global.h:152
gint key
Definition global.h:153
gchar * accelerator
Definition global.h:154
int natoms
Definition global.h:823
thermostat * next
Definition global.h:825
thermostat * prev
Definition global.h:826
gboolean show
Definition global.h:821
int * list
Definition global.h:824
int type
Definition global.h:817
double params[4]
Definition global.h:822
int sys
Definition global.h:820
Definition global.h:118
int b
Definition global.h:120
int c
Definition global.h:121
int a
Definition global.h:119
project * last
Definition global.h:1127
project * first
Definition global.h:1126
int status
Definition w_advance.c:173
GdkPixbuf * pix
Definition workspace.c:69
GtkWidget * vbox
Definition workspace.c:72
GtkWidget * lab
Definition workspace.c:73