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