atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
global.h File Reference

Global variable declarations
Global convenience function declarations
Global data structure definitions. More...

#include <glib.h>
#include <glib/gi18n.h>
#include <locale.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <math.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <pango/pangoft2.h>
#include <epoxy/gl.h>
#include <GL/glu.h>
#include <epoxy/glx.h>
#include "math_3d.h"
#include "glwin.h"
#include <gtk/gtkx.h>
+ Include dependency graph for global.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dint
 
struct  tint
 
struct  qint
 
struct  ColRGBA
 
struct  coord_info
 
struct  line_node
 
struct  coord_file
 
struct  MouseState
 
struct  CurveState
 
struct  DataLayout
 
struct  CurveExtra
 
struct  ExtraSets
 
struct  Curve
 
struct  classical_field
 
struct  thermostat
 
struct  dummy_atom
 
struct  cpmd
 
struct  cp2k
 
struct  molecule
 
struct  model
 
struct  element_data
 
struct  chemical_data
 
struct  insertion_menu
 
struct  atom
 
struct  project
 
struct  workspace
 
struct  focus_data
 

Macros

#define GDK_SYNCHRONIZE
 
#define GLOBAL_H_
 
#define max(a, b)   (a>=b?a:b)
 
#define min(a, b)   (a<=b?a:b)
 
#define MEDIA_NEXT   "media-skip-forward"
 
#define MEDIA_PREV   "media-skip-backward"
 
#define MEDIA_LAST   "go-last"
 
#define MEDIA_FIRST   "go-first"
 
#define MEDIA_GOTO   "go-jump"
 
#define MEDIA_PLAY   "media-playback-start"
 
#define MEDIA_STOP   "media-playback-stop"
 
#define MEDIA_LOOP   "view-refresh"
 
#define MEDIA_ULOOP   "edit-cut"
 
#define MEDIA_SLOW   "view-sort-ascending"
 
#define MEDIA_FAST   "view-sort-descending"
 
#define GO_RIGHT   "go-next"
 
#define GO_LEFT   "go-previous"
 
#define GO_UP   "go-up"
 
#define GO_DOWN   "go-down"
 
#define PAGE_SETUP   "document-page-setup"
 
#define FULLSCREEN   "view-fullscreen"
 
#define FITBEST   "zoom-fit-best"
 
#define RECORD   "media-record"
 
#define YES   "gtk-yes"
 
#define EDITA   "edit-find-replace"
 
#define EDITC   "edit-copy"
 
#define EDITF   "edit-find"
 
#define ECUT   "edit-cut"
 
#define DPROPERTIES   "document-properties"
 
#define FNEW   "document-new"
 
#define FOPEN   "document-open"
 
#define FSAVE   "document-save"
 
#define FSAVEAS   "document-save-as"
 
#define FCLOSE   "window-close"
 
#define FEXIT   "application-exit"
 
#define LIST_ADD   "list-add"
 
#define LIST_REM   "list-remove"
 
#define CANCEL   "process-stop"
 
#define EXECUTE   "system-run"
 
#define APPLY   "gtk-apply"
 
#define DELETEB   "edit-delete"
 
#define DIAL_ERROR   "dialog-error"
 
#define AFILE   "text-x-generic"
 
#define ABOUT   "help-about"
 
#define BSEP   0
 
#define IODEBUG   FALSE
 
#define ATOM_LIMIT   100000
 Atom number limit to compute fragment(s) and molecule(s) analysis automatically.
 
#define STEP_LIMIT   10000
 
#define OK   0
 
#define ERROR_RW   1
 
#define ERROR_PROJECT   2
 
#define ERROR_CURVE   3
 
#define ERROR_IMAGE   4
 
#define ERROR_ATOM_A   5
 
#define ERROR_ATOM_B   6
 
#define ERROR_UPDATE   7
 
#define ERROR_NO_WAY   8
 
#define ERROR_COORD   9
 
#define ERROR_RINGS   10
 
#define ERROR_CHAINS   11
 
#define ERROR_MOL   12
 
#define CHEM_PARAMS   5
 
#define CHEM_Z   0
 
#define CHEM_M   1
 
#define CHEM_R   2
 
#define CHEM_N   3
 
#define CHEM_X   4
 
#define NDOTS   8
 
#define NCALCS   12
 
#define NGRAPHS   10
 
#define NCFORMATS   12
 
#define NITEMS   16
 
#define OT   4
 
#define GR   0
 
#define SQ   1
 
#define SK   2
 
#define GK   3
 
#define BD   4
 
#define AN   5
 
#define RI   6
 
#define CH   7
 
#define SP   8
 
#define MS   9
 
#define BV   10
 
#define FF   12
 
#define DEFAULT_FONT_SIZE   8
 
#define DEFAULT_ALPHA   0.75
 
#define MINCUT   1.85
 
#define LINE_SIZE   160
 
#define MAXDATC   8
 Number of tabs for the description of the classical calculation.
 
#define MAXDATA   21
 Number of tabs for the description of the classical force field.
 

Typedefs

typedef struct dint dint
 
typedef struct tint tint
 
typedef struct qint qint
 
typedef struct ColRGBA ColRGBA
 
typedef struct coord_info coord_info
 Data structure to store coordination information.
 
typedef struct line_node line_node
 
typedef struct coord_file coord_file
 Atomic coordinates file, data container.
 
typedef struct MouseState MouseState
 Data structure used for zoom in / out on curve widget.
 
typedef struct CurveState CurveState
 Data structure used for zoom in / out on curve widget.
 
typedef struct DataLayout DataLayout
 Cruve layout information.
 
typedef struct CurveExtra CurveExtra
 Extra curve(s) data information.
 
typedef struct ExtraSets ExtraSets
 List of extra data sets for a curve.
 
typedef struct Curve Curve
 The curve data structure.
 
typedef struct classical_field classical_field
 
typedef struct thermostat thermostat
 
typedef struct dummy_atom dummy_atom
 
typedef struct cpmd cpmd
 
typedef struct cp2k cp2k
 
typedef struct molecule molecule
 
typedef struct model model
 Data stucture to describe the topology.
 
typedef struct element_data element_data
 element description used for the periodic table defined in 'w_periodic.c'
 
typedef struct chemical_data chemical_data
 
typedef struct insertion_menu insertion_menu
 Data structure for the insertion pop-up menu.
 
typedef struct atom atom
 The data structure for an atom.
 
typedef struct project project
 The data structure for the 'atomes' project.
 
typedef struct workspace workspace
 

Enumerations

enum  ContainerType {
  CONTAINER_WIN = 0 , CONTAINER_SCR = 1 , CONTAINER_VIE = 2 , CONTAINER_BUT = 3 ,
  CONTAINER_FRA = 4 , CONTAINER_EXP = 5
}
 
enum  ImageFormats {
  IMG_NONE = 0 , IMG_PIXBUF = 1 , IMG_SURFACE = 2 , IMG_FILE = 3 ,
  IMG_STOCK = 4
}
 

Functions

void add_action (GSimpleAction *action)
 add action to the main window action map
 
void remove_action (gchar *action_name)
 add action from the main window action map
 
void remove_edition_actions ()
 remove all edition actions
 
void remove_edition_and_analyze_actions ()
 remove all edition and analysis action
 
projectget_project_by_id (int p)
 get project pointer using id number
 
void opengl_project_changed (int id)
 change the OpenGL project
 
gboolean in_md_shaders (project *this_proj, int id)
 is this shader MD dependent ?
 
void recreate_all_shaders (glwin *view)
 re-initialize all OpenGL shaders
 
gboolean is_atom_win_active (glwin *view)
 is the model edition window visible ?
 
G_MODULE_EXPORT void on_calc_bonds_released (GtkWidget *widg, gpointer data)
 compute bonding properties
 
void update_rings_menus (glwin *view)
 
void clean_rings_data (int rid, glwin *view)
 clean a ring type data for a glview
 
void clean_chains_data (glwin *view)
 cleaning the OpenGL data related to chain statistics
 
void clean_volumes_data (glwin *view)
 clean volume data
 
void initcutoffs (chemical_data *chem, int species)
 initialize bond cutoffs
 
void cutoffsend ()
 send cutoffs to Fortran90
 
void update_entry_int (GtkEntry *entry, int intval)
 update the content of a GtkEntry as int
 
void update_entry_double (GtkEntry *entry, double doubleval)
 update the content of a GtkEntry as double
 
void update_entry_long_double (GtkEntry *entry, double doubleval)
 update the content of a GtkEntry as long double
 
void update_entry_text (GtkEntry *entry, gchar *text)
 update the content of a GtkEntry as string
 
gboolean * allocbool (int val)
 allocate a gboolean * pointer
 
gboolean ** allocdbool (int xal, int yal)
 allocate a gboolean ** pointer
 
gboolean *** alloctbool (int xal, int yal, int zal)
 allocate a gboolean *** pointer
 
int * allocint (int val)
 allocate an int * pointer
 
int ** allocdint (int xal, int yal)
 allocate an int ** pointer
 
int *** alloctint (int xal, int yal, int zal)
 allocate an int *** pointer
 
int **** allocqint (int wal, int xal, int yal, int zal)
 allocate an int **** pointer
 
float * allocfloat (int val)
 allocate a float * pointer
 
float ** allocdfloat (int xal, int yal)
 allocate a float ** pointer
 
float *** alloctfloat (int xal, int yal, int zal)
 allocate a float *** pointer
 
double * allocdouble (int val)
 allocate a double * pointer
 
double ** allocddouble (int xal, int yal)
 allocate a double ** pointer
 
double *** alloctdouble (int xal, int yal, int zal)
 allocate a double *** pointer
 
double **** allocqdouble (int wal, int xal, int yal, int zal)
 allocate a double **** pointer
 
GLuint * allocgluint (int val)
 allocate a GLuint * pointer
 
GLuint ** allocdgluint (int xal, int yal)
 allocate a GLuint ** pointer
 
GLfloat ** allocdGLfloat (int xal, int yal)
 allocate a GLfloat ** pointer
 
gchar ** duplicate_strings (int num, gchar **old_val)
 copy a list of strings
 
int * duplicate_int (int num, int *old_val)
 copy a list of int
 
gboolean * duplicate_bool (int num, gboolean *old_val)
 copy a list of gboolean
 
float * duplicate_float (int num, float *old_val)
 copy a list of float
 
double * duplicate_double (int num, double *old_val)
 copy a list of double
 
ColRGBAduplicate_color (int num, ColRGBA *col)
 duplicate a ColRGBA pointer
 
void combo_text_append (GtkWidget *combo, gchar *text)
 append text in GtkComboBox widget
 
void combo_text_prepend (GtkWidget *combo, gchar *text)
 prepend text in GtkComboBox widget
 
GtkWidget * create_combo ()
 create a GtkCombox widget, note deprecated in GTK4
 
GtkTextBuffer * add_buffer (GCallback handler, gpointer data, gchar *text)
 create a GtkTextBuffer
 
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
 
GdkPixbuf * convert_to_pixbuf (cairo_surface_t *surf)
 convert cairo surface to GdkPixbuf
 
void text_view_set_monospace (GtkWidget *view)
 set the font of a GtkTextView as monospace
 
void gtk_label_align (GtkWidget *lab, float ax, float ay)
 set text alignment in a GtkLabel
 
gchar * prepare_for_title (gchar *init)
 prepare a string for a window title, getting rid of all markup
 
void show_the_widgets (GtkWidget *widg)
 show GtkWidget
 
gboolean is_the_widget_visible (GtkWidget *widg)
 test if a GtkWidget exist, then return if it is visible or not
 
void widget_set_sensitive (GtkWidget *widg, gboolean sensitive)
 Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
 
GtkWidget * new_gtk_window ()
 create a new GtkWindow
 
GtkWidget * dialogmodal (gchar *str, GtkWindow *parent)
 Create a new dialog modal window.
 
GtkWidget * message_dialogmodal (gchar *message, gchar *title, GtkMessageType mtype, GtkButtonsType buttons, GtkWidget *parent)
 create a modal (cannot be ignored) message window
 
GtkWidget * dialog_cancel_apply (gchar *title, GtkWidget *parent, gboolean resiz)
 create a dialog modal offering a choice to apply something or not
 
void run_this_gtk_dialog (GtkWidget *dial, GCallback handler, gpointer data)
 run a GTK (3 and 4) basic GtkDialog
 
void resize_this_window (GtkWidget *window, int x, int y)
 resize this GtkWindow
 
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
 
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
 
void add_container_child (int type, GtkWidget *widg, GtkWidget *child)
 Add a GtkWidget into another GtkWidget.
 
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.
 
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.
 
GtkWidget * create_vbox (int spacing)
 create a GtkBox with vertical orientation
 
GtkWidget * create_hbox (int spacing)
 create a GtkBox with horizontal orientation
 
GtkWidget * dialog_get_content_area (GtkWidget *widg)
 prepare GtkWidget to insert content in a GtkDialog window
 
void layout_add_widget (GtkWidget *layout, GtkWidget *child, int x_pos, int y_pos)
 Add a GtkWidget in a GtkLayout.
 
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.
 
GtkWidget * create_layout (int x, int y)
 create a GtkLayout / GtkFixed widget
 
void update_chains_menus (glwin *view)
 
G_MODULE_EXPORT void select_unselect_this_atom (GtkWidget *widg, gpointer data)
 select / unselect this atom callback GTK3
 
G_MODULE_EXPORT void select_unselect_atoms (GtkWidget *widg, gpointer data)
 select / unselect a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void select_unselect_coord (GtkWidget *widg, gpointer data)
 select / unselect a type of coordination callback GTK3
 
G_MODULE_EXPORT void label_unlabel_this_atom (GtkWidget *widg, gpointer data)
 label / unlabel this atom callback GTK3
 
G_MODULE_EXPORT void label_unlabel_atoms (GtkWidget *widg, gpointer data)
 label / unlabel a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void label_unlabel_coord (GtkWidget *widg, gpointer data)
 label / unlabel a type of coordination callback GTK3
 
G_MODULE_EXPORT void show_hide_this_atom (GtkWidget *widg, gpointer data)
 show / hide this atom callback GTK3
 
G_MODULE_EXPORT void show_hide_atoms (GtkWidget *widg, gpointer data)
 
G_MODULE_EXPORT void show_hide_the_coord (GtkWidget *widg, gpointer data)
 show / hide a type of coordination callback GTK3
 
G_MODULE_EXPORT void show_hide_coord (GtkWidget *widg, gpointer data)
 show/hide coordination callback GTK3
 
G_MODULE_EXPORT void show_hide_poly (GtkWidget *widg, gpointer data)
 show / hide polyhedra callback - GTK3
 
G_MODULE_EXPORT void show_hide_labels (GtkWidget *widg, gpointer data)
 
G_MODULE_EXPORT void remove_the_atoms (GtkWidget *widg, gpointer data)
 remove selected atom(s) callback GTK3
 
G_MODULE_EXPORT void replace_the_atoms (GtkWidget *widg, gpointer data)
 replace selected atom(s) callback GTK3
 
G_MODULE_EXPORT void edit_in_new_project (GtkWidget *widg, gpointer data)
 create new project using selection callback GTK3
 
GtkWidget * create_menu_item (gboolean add_mnemo, gchar *action)
 
GtkWidget * create_menu_item_from_widget (GtkWidget *widg, gboolean check, gboolean radio, gboolean status)
 
GtkWidget * menu_item_new_with_submenu (gchar *name, gboolean active, GtkWidget *sub_menu)
 
void add_menu_separator (GtkWidget *menu)
 
G_MODULE_EXPORT gboolean destroy_this_window (GtkWidget *win, GdkEvent *event, gpointer data)
 destroy a GtkWindow
 
G_MODULE_EXPORT gboolean hide_this_window (GtkWidget *win, GdkEvent *event, gpointer data)
 hide a GtkWindow
 
GtkWidget * create_file_chooser (const gchar *title, GtkWindow *parent, GtkFileChooserAction act, const gchar *act_name)
 create a GtkFileChooser, utility to select file(s)
 
void pop_menu_at_pointer (GtkWidget *widg, GdkEvent *event)
 popup a menu at pointer location
 
GSList * file_chooser_get_file_names (GtkFileChooser *chooser)
 create a file list from files selected using a GtkFileChooser
 
const gchar * entry_get_text (GtkEntry *entry)
 get the text in a GtkEntry
 
GtkWidget * create_entry (GCallback handler, int dim, int cdim, gboolean key_release, gpointer data)
 Create a GtkEntry.
 
GtkWidget * stock_image (const gchar *stock_id)
 create a GtkImage for the Gtk database
 
void set_image_from_icon_name (GtkWidget *widg, gchar *icon)
 set a image from a stock icon name
 
GtkWidget * create_image_from_data (int format, gpointer item_image)
 create Gtk image for data
 
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)
 
GtkWidget * add_advanced_item (GtkWidget *menu, GCallback handler, gpointer data, gboolean accel, guint key, GdkModifierType mod)
 
GtkWidget * markup_label (gchar *text, int dimx, int dimy, float ax, float ay)
 
GtkWidget * color_button (ColRGBA col, gboolean alpha, int dimx, int dimy, GCallback handler, gpointer data)
 create a color selection button
 
GtkWidget * font_button (gchar *font, int dimx, int dimy, GCallback handler, gpointer data)
 create a font selection button
 
GtkWidget * spin_button (GCallback handler, double value, double start, double end, double step, int digits, int dim, gpointer data)
 create a spin button
 
GtkWidget * check_button (gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
 create a check button
 
GtkWidget * radio_button (gchar *text, int dimx, int dimy, gboolean state, GCallback handler, gpointer data)
 create a radio button
 
GtkWidget * create_button (gchar *text, int image_format, gchar *image, int dimx, int dimy, int relief, GCallback handler, gpointer data)
 create a simple button
 
ColRGBA gdkrgba_to_rgba (GdkRGBA colgdk)
 convert GdkRGBA color to ColRGBA color
 
GdkRGBA colrgba_togtkrgba (ColRGBA col)
 convert ColRGBA color to GdkRGBA color
 
ColRGBA get_button_color (GtkColorChooser *colob)
 get the ColRGBA color from a GtkColorChooser button
 
ColRGBA get_window_color (GtkWidget *color_win)
 get the ColRGBA color from a color selection window
 
void set_color_chooser_color (GtkWidget *color_win, ColRGBA col)
 set the color of a color selection window
 
void set_renderer_color (int tocol, GtkCellRenderer *renderer, ColRGBA col)
 set the color of a GtkCellRenderer
 
void button_set_image (GtkButton *but, gchar *text, int format, gpointer image)
 Add an image to a GtkButton.
 
GtkWidget * abox (GtkWidget *box, char *lab, int vspace)
 box creating routine, to help design faster elements for the GUI
 
GtkWidget * bbox (GtkWidget *box, char *lab)
 
GtkWidget * cbox (GtkWidget *box, char *lab)
 
GtkWidget * fbox (GtkWidget *box, char *lab)
 
GtkWidget * create_scroll (GtkWidget *box, int dimx, int dimy, int shadow)
 create a scroll window
 
GtkWidget * create_expander (gchar *name, gchar *file_img)
 create GtkExpander
 
GtkWidget * create_win (gchar *str, GtkWidget *parent, gboolean modal, gboolean resiz)
 create a new GtkWindow
 
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
 
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
 
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
 
GtkWidget * destroy_this_widget (GtkWidget *widg)
 destroy a GtkWidget
 
void destroy_this_dialog (GtkDialog *dialog)
 destroy a GtkDialog
 
void destroy_this_native_dialog (GtkNativeDialog *dialog)
 destroy a GtkNativeDialog
 
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
 
void add_gtk_close_event (GtkWidget *widg, GCallback handler, gpointer data)
 add a close event signal and callback to a GtkWidget
 
gchar * file_chooser_get_file_name (GtkFileChooser *chooser)
 get a file name from a GtkFileChooser (single file selected)
 
gchar * file_chooser_get_current_folder (GtkFileChooser *chooser)
 get the current folder for a GtkFileChooser
 
gboolean file_chooser_set_file_name (GtkFileChooser *chooser, gchar *filename)
 set file name in a GtkFilechooser
 
void file_chooser_set_current_folder (GtkFileChooser *chooser)
 set current folder in a GtkFilechooser
 
GtkWidget * get_top_level (GtkWidget *widg)
 get the top level container, window, of a widget
 
void provide_gtk_css (gchar *css)
 create a css provider based on the css data
 
double get_calc_time (struct timespec start, struct timespec stop)
 get calculation time in s
 
gchar * calculation_time (gboolean modelv, double ctime)
 get calculation time, human readable
 

Variables

gchar * ATOMES_CONFIG
 
gchar * ATOMES_URL
 
gchar * mode_name [2]
 
gchar * graph_img [NGRAPHS]
 
gchar * dots [NDOTS]
 
gchar * bravais_img [14]
 
gchar * ifield [8]
 
gchar * projfile
 
char * ifbug
 
char * coord_files [NCFORMATS+1]
 
char * coord_files_ext [NCFORMATS+1]
 
char * calc_name [NCALCS-2]
 
char * graph_name [NGRAPHS]
 
char * rings_type [5]
 
char * untime [6]
 
gchar * workspacefile
 
int nprojects
 
int activep
 
int activev
 
int activef
 
int inactep
 
int activew
 
int statusval
 
int atomes_visual
 
int dialog_id
 
int bonds_update
 
int frag_update
 
int mol_update
 
int tmp_pixels [2]
 
int * pasted_todo
 
atomic_objectcopied_object
 
GMainLoop * Event_loop [5]
 
gboolean in_movie_encoding
 
gboolean newspace
 
gboolean reading_input
 
gboolean tmp_adv_bonding [2]
 
gboolean column_label
 
gboolean check_label
 
gboolean object_motion
 
gboolean selected_status
 
gboolean silent_input
 
gboolean cif_use_symmetry_positions
 
struct timespec start_time
 
struct timespec stop_time
 
double opac
 
double pi
 
GtkWidget * MainWindow
 
GtkWidget * MainView
 
GtkWidget * MainFrame [2]
 
GtkWidget * pop
 
GtkWidget * curvetoolbox
 
GtkWidget * progressbar
 
GtkWidget * MainScrol [2]
 
GtkWidget * atomes_logo
 
GtkWidget * calc_dialog
 
GtkWidget * register_button
 
GtkTextTag * tag
 
GtkStatusbar * statusbar
 
ColRGBA std [6]
 
GdkPixbuf * THETD
 
GdkPixbuf * THEMO
 
GdkPixbuf * THEBD
 
GdkPixbuf * SETTING
 
GdkPixbuf * SETTINGS
 
GdkPixbuf * OGL
 
GdkPixbuf * OGLM
 
GdkPixbuf * OGLC
 
GdkPixbuf * RUN
 
tint cut_sel
 
tint cut_lab
 
gchar * edition_action_names [3]
 
gchar * analyze_action_names [9]
 
GSimpleAction * edition_actions [3]
 
GSimpleAction * analyze_actions [9]
 
GtkApplication * AtomesApp
 
workspace workzone
 
projectproj
 
chemical_dataactive_chem
 
coord_infoactive_coord
 
cell_infoactive_cell
 
box_infoactive_box
 
imageactive_image
 
glwinactive_glwin
 
projectactive_project
 
projectopengl_project
 
element_data periodic_table_info []
 
double * xsk
 

Detailed Description

Global variable declarations
Global convenience function declarations
Global data structure definitions.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file global.h.

Macro Definition Documentation

◆ ABOUT

#define ABOUT   "help-about"

Definition at line 197 of file global.h.

◆ AFILE

#define AFILE   "text-x-generic"

Definition at line 196 of file global.h.

◆ AN

#define AN   5

Definition at line 299 of file global.h.

◆ APPLY

#define APPLY   "gtk-apply"

Definition at line 192 of file global.h.

◆ ATOM_LIMIT

#define ATOM_LIMIT   100000

Atom number limit to compute fragment(s) and molecule(s) analysis automatically.

◆ BD

#define BD   4

Definition at line 298 of file global.h.

◆ BSEP

#define BSEP   0

Definition at line 217 of file global.h.

◆ BV

#define BV   10

Definition at line 304 of file global.h.

◆ CANCEL

#define CANCEL   "process-stop"

Definition at line 187 of file global.h.

◆ CH

#define CH   7

Definition at line 301 of file global.h.

◆ CHEM_M

#define CHEM_M   1

Definition at line 270 of file global.h.

◆ CHEM_N

#define CHEM_N   3

Definition at line 272 of file global.h.

◆ CHEM_PARAMS

#define CHEM_PARAMS   5

Definition at line 268 of file global.h.

◆ CHEM_R

#define CHEM_R   2

Definition at line 271 of file global.h.

◆ CHEM_X

#define CHEM_X   4

Definition at line 273 of file global.h.

◆ CHEM_Z

#define CHEM_Z   0

Definition at line 269 of file global.h.

◆ DEFAULT_ALPHA

#define DEFAULT_ALPHA   0.75

Definition at line 308 of file global.h.

◆ DEFAULT_FONT_SIZE

#define DEFAULT_FONT_SIZE   8

Definition at line 307 of file global.h.

◆ DELETEB

#define DELETEB   "edit-delete"

Definition at line 194 of file global.h.

◆ DIAL_ERROR

#define DIAL_ERROR   "dialog-error"

Definition at line 195 of file global.h.

◆ DPROPERTIES

#define DPROPERTIES   "document-properties"

Definition at line 178 of file global.h.

◆ ECUT

#define ECUT   "edit-cut"

Definition at line 177 of file global.h.

◆ EDITA

#define EDITA   "edit-find-replace"

Definition at line 174 of file global.h.

◆ EDITC

#define EDITC   "edit-copy"

Definition at line 175 of file global.h.

◆ EDITF

#define EDITF   "edit-find"

Definition at line 176 of file global.h.

◆ ERROR_ATOM_A

#define ERROR_ATOM_A   5

Definition at line 256 of file global.h.

◆ ERROR_ATOM_B

#define ERROR_ATOM_B   6

Definition at line 257 of file global.h.

◆ ERROR_CHAINS

#define ERROR_CHAINS   11

Definition at line 262 of file global.h.

◆ ERROR_COORD

#define ERROR_COORD   9

Definition at line 260 of file global.h.

◆ ERROR_CURVE

#define ERROR_CURVE   3

Definition at line 254 of file global.h.

◆ ERROR_IMAGE

#define ERROR_IMAGE   4

Definition at line 255 of file global.h.

◆ ERROR_MOL

#define ERROR_MOL   12

◆ ERROR_NO_WAY

#define ERROR_NO_WAY   8

Definition at line 259 of file global.h.

◆ ERROR_PROJECT

#define ERROR_PROJECT   2

Definition at line 253 of file global.h.

◆ ERROR_RINGS

#define ERROR_RINGS   10

Definition at line 261 of file global.h.

◆ ERROR_RW

#define ERROR_RW   1

Definition at line 252 of file global.h.

◆ ERROR_UPDATE

#define ERROR_UPDATE   7

Definition at line 258 of file global.h.

◆ EXECUTE

#define EXECUTE   "system-run"

Definition at line 188 of file global.h.

◆ FCLOSE

#define FCLOSE   "window-close"

Definition at line 183 of file global.h.

◆ FEXIT

#define FEXIT   "application-exit"

Definition at line 184 of file global.h.

◆ FF

#define FF   12

Definition at line 305 of file global.h.

◆ FITBEST

#define FITBEST   "zoom-fit-best"

Definition at line 171 of file global.h.

◆ FNEW

#define FNEW   "document-new"

Definition at line 179 of file global.h.

◆ FOPEN

#define FOPEN   "document-open"

Definition at line 180 of file global.h.

◆ FSAVE

#define FSAVE   "document-save"

Definition at line 181 of file global.h.

◆ FSAVEAS

#define FSAVEAS   "document-save-as"

Definition at line 182 of file global.h.

◆ FULLSCREEN

#define FULLSCREEN   "view-fullscreen"

Definition at line 170 of file global.h.

◆ GDK_SYNCHRONIZE

#define GDK_SYNCHRONIZE

Definition at line 39 of file global.h.

◆ GK

#define GK   3

Definition at line 297 of file global.h.

◆ GLOBAL_H_

#define GLOBAL_H_

Definition at line 43 of file global.h.

◆ GO_DOWN

#define GO_DOWN   "go-down"

Definition at line 168 of file global.h.

◆ GO_LEFT

#define GO_LEFT   "go-previous"

Definition at line 166 of file global.h.

◆ GO_RIGHT

#define GO_RIGHT   "go-next"

Definition at line 165 of file global.h.

◆ GO_UP

#define GO_UP   "go-up"

Definition at line 167 of file global.h.

◆ GR

#define GR   0

Definition at line 294 of file global.h.

◆ IODEBUG

#define IODEBUG   FALSE

Definition at line 239 of file global.h.

◆ LINE_SIZE

#define LINE_SIZE   160

Definition at line 458 of file global.h.

◆ LIST_ADD

#define LIST_ADD   "list-add"

Definition at line 185 of file global.h.

◆ LIST_REM

#define LIST_REM   "list-remove"

Definition at line 186 of file global.h.

◆ max

#define max ( a,
b )   (a>=b?a:b)

Definition at line 74 of file global.h.

◆ MAXDATA

#define MAXDATA   21

Number of tabs for the description of the classical force field.

Definition at line 662 of file global.h.

◆ MAXDATC

#define MAXDATC   8

Number of tabs for the description of the classical calculation.

Definition at line 657 of file global.h.

◆ MEDIA_FAST

#define MEDIA_FAST   "view-sort-descending"

Definition at line 164 of file global.h.

◆ MEDIA_FIRST

#define MEDIA_FIRST   "go-first"

Definition at line 157 of file global.h.

◆ MEDIA_GOTO

#define MEDIA_GOTO   "go-jump"

Definition at line 158 of file global.h.

◆ MEDIA_LAST

#define MEDIA_LAST   "go-last"

Definition at line 156 of file global.h.

◆ MEDIA_LOOP

#define MEDIA_LOOP   "view-refresh"

Definition at line 161 of file global.h.

◆ MEDIA_NEXT

#define MEDIA_NEXT   "media-skip-forward"

Definition at line 154 of file global.h.

◆ MEDIA_PLAY

#define MEDIA_PLAY   "media-playback-start"

Definition at line 159 of file global.h.

◆ MEDIA_PREV

#define MEDIA_PREV   "media-skip-backward"

Definition at line 155 of file global.h.

◆ MEDIA_SLOW

#define MEDIA_SLOW   "view-sort-ascending"

Definition at line 163 of file global.h.

◆ MEDIA_STOP

#define MEDIA_STOP   "media-playback-stop"

Definition at line 160 of file global.h.

◆ MEDIA_ULOOP

#define MEDIA_ULOOP   "edit-cut"

Definition at line 162 of file global.h.

◆ min

#define min ( a,
b )   (a<=b?a:b)

Definition at line 75 of file global.h.

◆ MINCUT

#define MINCUT   1.85

Definition at line 309 of file global.h.

◆ MS

#define MS   9

Definition at line 303 of file global.h.

◆ NCALCS

#define NCALCS   12

◆ NCFORMATS

#define NCFORMATS   12

Definition at line 290 of file global.h.

◆ NDOTS

#define NDOTS   8

◆ NGRAPHS

#define NGRAPHS   10

◆ NITEMS

#define NITEMS   16

Definition at line 292 of file global.h.

◆ OK

#define OK   0

Definition at line 251 of file global.h.

◆ OT

#define OT   4

Definition at line 293 of file global.h.

◆ PAGE_SETUP

#define PAGE_SETUP   "document-page-setup"

Definition at line 169 of file global.h.

◆ RECORD

#define RECORD   "media-record"

Definition at line 172 of file global.h.

◆ RI

#define RI   6

Definition at line 300 of file global.h.

◆ SK

#define SK   2

Definition at line 296 of file global.h.

◆ SP

#define SP   8

Definition at line 302 of file global.h.

◆ SQ

#define SQ   1

Definition at line 295 of file global.h.

◆ STEP_LIMIT

#define STEP_LIMIT   10000

Definition at line 249 of file global.h.

◆ YES

#define YES   "gtk-yes"

Definition at line 173 of file global.h.

Typedef Documentation

◆ atom

atom

The data structure for an atom.

Definition at line 837 of file global.h.

◆ chemical_data

typedef struct chemical_data chemical_data

Definition at line 804 of file global.h.

◆ classical_field

typedef struct classical_field classical_field

Definition at line 664 of file global.h.

◆ ColRGBA

typedef struct ColRGBA ColRGBA

Definition at line 113 of file global.h.

◆ coord_file

coord_file

Atomic coordinates file, data container.

Definition at line 472 of file global.h.

◆ coord_info

coord_info

Data structure to store coordination information.

Definition at line 125 of file global.h.

◆ cp2k

typedef struct cp2k cp2k

Definition at line 752 of file global.h.

◆ cpmd

typedef struct cpmd cpmd

Definition at line 733 of file global.h.

◆ Curve

Curve

The curve data structure.

Definition at line 571 of file global.h.

◆ CurveExtra

CurveExtra

Extra curve(s) data information.

Definition at line 548 of file global.h.

◆ CurveState

CurveState

Data structure used for zoom in / out on curve widget.

Definition at line 520 of file global.h.

◆ DataLayout

DataLayout

Cruve layout information.

Definition at line 530 of file global.h.

◆ dint

typedef struct dint dint

Definition at line 89 of file global.h.

◆ dummy_atom

typedef struct dummy_atom dummy_atom

Definition at line 715 of file global.h.

◆ element_data

element_data

element description used for the periodic table defined in 'w_periodic.c'

Definition at line 795 of file global.h.

◆ ExtraSets

ExtraSets

List of extra data sets for a curve.

Definition at line 560 of file global.h.

◆ insertion_menu

insertion_menu

Data structure for the insertion pop-up menu.

Definition at line 825 of file global.h.

◆ line_node

line_node

Definition at line 461 of file global.h.

◆ model

model

Data stucture to describe the topology.

Definition at line 785 of file global.h.

◆ molecule

molecule

Definition at line 770 of file global.h.

◆ MouseState

MouseState

Data structure used for zoom in / out on curve widget.

Definition at line 508 of file global.h.

◆ project

project

The data structure for the 'atomes' project.

Definition at line 887 of file global.h.

◆ qint

typedef struct qint qint

Definition at line 104 of file global.h.

◆ thermostat

typedef struct thermostat thermostat

Definition at line 697 of file global.h.

◆ tint

typedef struct tint tint

Definition at line 96 of file global.h.

◆ workspace

typedef struct workspace workspace

Definition at line 989 of file global.h.

Enumeration Type Documentation

◆ ContainerType

Enumerator
CONTAINER_WIN 

0

CONTAINER_SCR 

1

CONTAINER_VIE 

2

CONTAINER_BUT 

3

CONTAINER_FRA 

4

CONTAINER_EXP 

5

Definition at line 221 of file global.h.

◆ ImageFormats

Enumerator
IMG_NONE 

0

IMG_PIXBUF 

1

IMG_SURFACE 

2

IMG_FILE 

3

IMG_STOCK 

4

Definition at line 231 of file global.h.

Function Documentation

◆ abox()

GtkWidget * abox ( GtkWidget * box,
char * lab,
int vspace )
extern

box creating routine, to help design faster elements for the GUI

GtkWidget * bbox (GtkWidget * box, char * lab) GtkWidget * cbox (GtkWidget * box, char * lab) GtkWidget * fbox (GtkWidget * box, char * lab)

Definition at line 1892 of file gtk-misc.c.

◆ add_action()

void add_action ( GSimpleAction * action)
extern

add action to the main window action map

Parameters
actionthe GAction sending the signal the action to add

Definition at line 284 of file gui.c.

◆ add_advanced_item()

GtkWidget * add_advanced_item ( GtkWidget * menu,
GCallback handler,
gpointer data,
gboolean accel,
guint key,
GdkModifierType mod )
extern

◆ add_box_child_end()

void add_box_child_end ( GtkWidget * widg,
GtkWidget * child,
gboolean expand,
gboolean fill,
int padding )
extern

Add a GtkWidget in a GtkBox at the end position.

Parameters
widgthe GtkBox
childthe GtkWidget to add
expandGTK3 only: expandable
fillGTK3 only: fill
paddingGTK3 only: box padding

Definition at line 257 of file gtk-misc.c.

◆ add_box_child_start()

void add_box_child_start ( int orientation,
GtkWidget * widg,
GtkWidget * child,
gboolean expand,
gboolean fill,
int padding )
extern

Add a GtkWidget in a GtkBox at the initial position.

Parameters
orientationhorizontal or vertical
widgthe GtkBox
childthe GtkWidget to add
expandGTK3 only: expandable
fillGTK3 only: fill
paddingGTK3 only: box padding

Definition at line 279 of file gtk-misc.c.

◆ add_buffer()

GtkTextBuffer * add_buffer ( GCallback handler,
gpointer data,
gchar * text )
extern

create a GtkTextBuffer

Parameters
handlerthe callback on buffer changed
datathe associated data pointer
textthe text to display

Definition at line 1151 of file gtk-misc.c.

◆ add_container_child()

void add_container_child ( int type,
GtkWidget * widg,
GtkWidget * child )
extern

Add a GtkWidget into another GtkWidget.

Parameters
typeGTK4 only: the type of container
widgthe container Gtkwidget
childthe child GtkWidget

Definition at line 206 of file gtk-misc.c.

◆ add_gtk_close_event()

void add_gtk_close_event ( GtkWidget * widg,
GCallback handler,
gpointer data )
extern

add a close event signal and callback to a GtkWidget

Parameters
widgthe GtkWidget
handlerthe callback for the close event
datathe associated data pointer

Definition at line 2363 of file gtk-misc.c.

◆ add_menu_separator()

void add_menu_separator ( GtkWidget * menu)
extern

◆ add_vbox_to_layout()

GtkWidget * add_vbox_to_layout ( GtkWidget * layout,
int size_x,
int size_y )
extern

Insert a vertical GtkBox in a GtkLatout then send back the GtkBox.

Parameters
layoutthe GtkLayout
size_xthe x size of the box
size_ythe y size of the box

Definition at line 844 of file gtk-misc.c.

◆ allocbool()

gboolean * allocbool ( int val)
extern

allocate a gboolean * pointer

Parameters
valsize of the pointer to allocate

Definition at line 266 of file global.c.

◆ allocdbool()

gboolean ** allocdbool ( int xal,
int yal )
extern

allocate a gboolean ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 282 of file global.c.

◆ allocddouble()

double ** allocddouble ( int xal,
int yal )
extern

allocate a double ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 487 of file global.c.

◆ allocdfloat()

float ** allocdfloat ( int xal,
int yal )
extern

allocate a float ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 426 of file global.c.

◆ allocdGLfloat()

GLfloat ** allocdGLfloat ( int xal,
int yal )
extern

allocate a GLfloat ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 161 of file glview.c.

◆ allocdgluint()

GLuint ** allocdgluint ( int xal,
int yal )
extern

allocate a GLuint ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 139 of file glview.c.

◆ allocdint()

int ** allocdint ( int xal,
int yal )
extern

allocate an int ** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate

Definition at line 342 of file global.c.

◆ allocdouble()

double * allocdouble ( int val)
extern

allocate a double * pointer

Parameters
valsize of the pointer to allocate

Definition at line 471 of file global.c.

◆ allocfloat()

float * allocfloat ( int val)
extern

allocate a float * pointer

Parameters
valsize of the pointer to allocate

Definition at line 410 of file global.c.

◆ allocgluint()

GLuint * allocgluint ( int val)
extern

allocate a GLuint * pointer

Parameters
valsize of the pointer to allocate

Definition at line 123 of file glview.c.

◆ allocint()

int * allocint ( int val)
extern

allocate an int * pointer

Parameters
valsize of the pointer to allocate

Definition at line 326 of file global.c.

◆ allocqdouble()

double **** allocqdouble ( int wal,
int xal,
int yal,
int zal )
extern

allocate a double **** pointer

Parameters
wal1st dimension size of the pointer to allocate
xal2nd dimension size of the pointer to allocate
yal3rd dimension size of the pointer to allocate
zal4th dimension size of the pointer to allocate

Definition at line 534 of file global.c.

◆ allocqint()

int **** allocqint ( int wal,
int xal,
int yal,
int zal )
extern

allocate an int **** pointer

Parameters
wal1st dimension size of the pointer to allocate
xal2nd dimension size of the pointer to allocate
yal3rd dimension size of the pointer to allocate
zal4th dimension size of the pointer to allocate

Definition at line 389 of file global.c.

◆ alloctbool()

gboolean *** alloctbool ( int xal,
int yal,
int zal )
extern

allocate a gboolean *** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate
zal3rd dimension size of the pointer to allocate

Definition at line 305 of file global.c.

◆ alloctdouble()

double *** alloctdouble ( int xal,
int yal,
int zal )
extern

allocate a double *** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate
zal3rd dimension size of the pointer to allocate

Definition at line 510 of file global.c.

◆ alloctfloat()

float *** alloctfloat ( int xal,
int yal,
int zal )
extern

allocate a float *** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate
zal3rd dimension size of the pointer to allocate

Definition at line 449 of file global.c.

◆ alloctint()

int *** alloctint ( int xal,
int yal,
int zal )
extern

allocate an int *** pointer

Parameters
xal1st dimension size of the pointer to allocate
yal2nd dimension size of the pointer to allocate
zal3rd dimension size of the pointer to allocate

Definition at line 365 of file global.c.

◆ append_menu_item()

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 )
extern

create a menu item, then append it to a menu

Parameters
menuthe menu to insert the item in
labelLabel of the menu item
actionAction of the menu item
accelKeyboard accelerator, if any
customCustom menu item ? NULL otherwise
formatImage format if not IMG_NONE
iconImage data if not NULL
checkCheck menu item ?
statusIf check then status
radioRadio menu item ?
rstatusIf radio then variant parameter

Definition at line 632 of file gui.c.

◆ append_submenu()

void append_submenu ( GMenu * menu,
const gchar * label,
GMenu * submenu )
extern

append a GMenuItem with a subenu to a GMenu, and use markup for the GMenuItem

Parameters
menuthe GMenu to insert the item with a submenu
labelthe text for the menu item
submenuthe submenu to add to the menu item

Definition at line 602 of file gui.c.

◆ bbox()

GtkWidget * bbox ( GtkWidget * box,
char * lab )
extern

Definition at line 1901 of file gtk-misc.c.

◆ button_set_image()

void button_set_image ( GtkButton * but,
gchar * text,
int format,
gpointer image )
extern

Add an image to a GtkButton.

Parameters
butthe GtkButton
textthe message to display
formatthe image format
imagethe data of the image

Definition at line 1657 of file gtk-misc.c.

◆ calculation_time()

gchar * calculation_time ( gboolean modelv,
double ctime )
extern

get calculation time, human readable

Parameters
modelvwas an analysis performed ?
ctimethe calculation time

Definition at line 649 of file global.c.

◆ cbox()

GtkWidget * cbox ( GtkWidget * box,
char * lab )
extern

Definition at line 1911 of file gtk-misc.c.

◆ check_button()

GtkWidget * check_button ( gchar * text,
int dimx,
int dimy,
gboolean state,
GCallback handler,
gpointer data )
extern

create a check button

Parameters
textthe message to display
dimxthe x size
dimythe y size
stateChecked or not (1/0)
handlerthe callback for the button
datathe associated data pointer

Definition at line 1779 of file gtk-misc.c.

◆ clean_chains_data()

void clean_chains_data ( glwin * view)
extern

cleaning the OpenGL data related to chain statistics

Parameters
viewthe gliwn to clean the data from

Definition at line 258 of file chainscall.c.

◆ clean_rings_data()

void clean_rings_data ( int rid,
glwin * view )
extern

clean a ring type data for a glview

Parameters
ridRings type
viewthe glview

Definition at line 374 of file ringscall.c.

◆ clean_volumes_data()

void clean_volumes_data ( glwin * view)
extern

clean volume data

Parameters
viewthe target glwin

Definition at line 83 of file w_volumes.c.

◆ color_button()

GtkWidget * color_button ( ColRGBA col,
gboolean alpha,
int dimx,
int dimy,
GCallback handler,
gpointer data )
extern

create a color selection button

Parameters
colthe color to use
alphaUse alpha channel (1/0)
dimxSize x of the button
dimySize y of the button
handlerthe callback for the button
datathe associated data pointer

Definition at line 1708 of file gtk-misc.c.

◆ colrgba_togtkrgba()

GdkRGBA colrgba_togtkrgba ( ColRGBA col)
extern

convert ColRGBA color to GdkRGBA color

Parameters
colthe ColRGBA to convert

Definition at line 1614 of file gtk-misc.c.

◆ combo_text_append()

void combo_text_append ( GtkWidget * combo,
gchar * text )
extern

append text in GtkComboBox widget

Parameters
combothe GtkWidget
textthe text to append

Definition at line 880 of file gtk-misc.c.

◆ combo_text_prepend()

void combo_text_prepend ( GtkWidget * combo,
gchar * text )
extern

prepend text in GtkComboBox widget

Parameters
combothe GtkWidget
textthe text to prepend

Definition at line 893 of file gtk-misc.c.

◆ convert_to_pixbuf()

GdkPixbuf * convert_to_pixbuf ( cairo_surface_t * surf)
extern

convert cairo surface to GdkPixbuf

Parameters
surfthe cairo sufrace to convert

Definition at line 1244 of file gtk-misc.c.

◆ create_button()

GtkWidget * create_button ( gchar * text,
int image_format,
gchar * image,
int dimx,
int dimy,
int relief,
GCallback handler,
gpointer data )
extern

create a simple button

Parameters
textthe message to display
image_formatthe image format
imagethe name of the stock image
dimxthe x size
dimythe y size
reliefbutton should appear pressed or not (1/0)
handlerthe callback for the button
datathe associated data pointer

Definition at line 1843 of file gtk-misc.c.

◆ create_combo()

GtkWidget * create_combo ( )
extern

create a GtkCombox widget, note deprecated in GTK4

Definition at line 903 of file gtk-misc.c.

◆ create_entry()

GtkWidget * create_entry ( GCallback handler,
int dim,
int cdim,
gboolean key_release,
gpointer data )
extern

Create a GtkEntry.

Parameters
handlerthe callback
dimthe x size
cdimthe maximum number of character to display
key_releaseUse release event (1/0)
datathe data pointer for the callback

Definition at line 1294 of file gtk-misc.c.

◆ create_expander()

GtkWidget * create_expander ( gchar * name,
gchar * file_img )
extern

create GtkExpander

Parameters
nameName of the expander tab
file_imgimage file to add if required

Definition at line 1964 of file gtk-misc.c.

◆ create_file_chooser()

GtkWidget * create_file_chooser ( const gchar * title,
GtkWindow * parent,
GtkFileChooserAction act,
const gchar * act_name )
extern

create a GtkFileChooser, utility to select file(s)

Parameters
titlethe title of the window
parentthe parent window, if any
actthe action to perform (read or write)
act_namethe action name to display

Definition at line 2199 of file gtk-misc.c.

◆ create_hbox()

GtkWidget * create_hbox ( int spacing)
extern

create a GtkBox with horizontal orientation

Parameters
spacingspacing between elements

Definition at line 793 of file gtk-misc.c.

◆ create_hscale()

GtkWidget * create_hscale ( float min,
float max,
float delta,
float val,
int pos,
int round,
int size,
GCallback handler,
GCallback scroll_handler,
gpointer data )
extern

create an horizontal scale GtkWidget

Parameters
minMin value for the h scale
maxMax value for the h scale
deltathe step on the h scale
valthe value to position to set on the h scale
posthe location where the value is on display
roundthe rounding digit for the value on display
sizethe x size of the GtkWdiget
handlerthe callback to move the h scale
scroll_handlerthe callback on mouse scroll
datathe associated data pointer

Definition at line 724 of file gtk-misc.c.

◆ create_image_from_data()

GtkWidget * create_image_from_data ( int format,
gpointer item_image )
extern

create Gtk image for data

Parameters
formatImage format
item_imagethe data to create the image

Definition at line 1423 of file gtk-misc.c.

◆ create_layout()

GtkWidget * create_layout ( int x,
int y )
extern

create a GtkLayout / GtkFixed widget

Parameters
xthe x size of the widget
ythe y size of the widget

Definition at line 860 of file gtk-misc.c.

◆ create_menu_item()

GtkWidget * create_menu_item ( gboolean add_mnemo,
gchar * action )
extern

◆ create_menu_item_from_widget()

GtkWidget * create_menu_item_from_widget ( GtkWidget * widg,
gboolean check,
gboolean radio,
gboolean status )
extern

◆ create_scroll()

GtkWidget * create_scroll ( GtkWidget * box,
int dimx,
int dimy,
int shadow )
extern

create a scroll window

Parameters
boxthe box to insert the scroll window in, if any
dimxthe x size of the widget
dimythe x size of the widget
shadowAdd shadow (1/0)

Definition at line 1940 of file gtk-misc.c.

◆ create_text_view()

GtkWidget * create_text_view ( int dimx,
int dimy,
int edit,
int mono,
GCallback handler,
gpointer data,
gchar * text )
extern

create a GtkTextView and display some text

Parameters
dimxthe x size of the GtkTextView
dimythe y size of the GtkTextView
editIs the text view editable (1/0)
monoUse monospace font (1/0)
handlerthe callback on buffer changed
datathe associated data pointer
textthe text to display

Definition at line 1179 of file gtk-misc.c.

◆ create_vbox()

GtkWidget * create_vbox ( int spacing)
extern

create a GtkBox with vertical orientation

Parameters
spacingspacing between elements

Definition at line 781 of file gtk-misc.c.

◆ create_vscale()

GtkWidget * create_vscale ( float min,
float max,
float delta,
float val,
int pos,
int round,
int size,
GCallback handler,
GCallback scroll_handler,
gpointer data )
extern

create an vertical scale GtkWidget

Parameters
minMin value for the v scale
maxMax value for the v scale
deltathe step on the v scale
valthe value to position to set on the h scale
posthe location where the value is on display
roundthe rounding digit for the value on display
sizethe x size of the GtkWdiget
handlerthe callback to move the v scale
scroll_handlerthe callback on mouse scroll
datathe associated data pointer

Definition at line 758 of file gtk-misc.c.

◆ create_win()

GtkWidget * create_win ( gchar * str,
GtkWidget * parent,
gboolean modal,
gboolean resiz )
extern

create a new GtkWindow

Parameters
strTitle
parentParent GtkWidget (if any)
modalModal (TRUE/FALSE)
resizCan be re-sized (TRUE/FALSE)

Definition at line 425 of file gtk-misc.c.

◆ cutoffsend()

void cutoffsend ( )
extern

send cutoffs to Fortran90

Definition at line 243 of file bdcall.c.

◆ destroy_this_dialog()

void destroy_this_dialog ( GtkDialog * dialog)
extern

destroy a GtkDialog

Parameters
dialogthe GtkDialog to destroy

Definition at line 2041 of file gtk-misc.c.

◆ destroy_this_native_dialog()

void destroy_this_native_dialog ( GtkNativeDialog * dialog)
extern

destroy a GtkNativeDialog

Parameters
dialogthe GtkNativeDialog to destroy

Definition at line 2060 of file gtk-misc.c.

◆ destroy_this_widget()

GtkWidget * destroy_this_widget ( GtkWidget * widg)
extern

destroy a GtkWidget

Parameters
widgthe GtkWidget to destroy

Definition at line 2010 of file gtk-misc.c.

◆ destroy_this_window()

G_MODULE_EXPORT gboolean destroy_this_window ( GtkWidget * win,
GdkEvent * event,
gpointer data )
extern

destroy a GtkWindow

Parameters
winthe GtkWindow to destroy
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 2320 of file gtk-misc.c.

◆ dialog_cancel_apply()

GtkWidget * dialog_cancel_apply ( gchar * title,
GtkWidget * parent,
gboolean resiz )
extern

create a dialog modal offering a choice to apply something or not

Parameters
titlethe message
parentthe parent window, if any
resizIs the new window re-sizable ?

Definition at line 541 of file gtk-misc.c.

◆ dialog_get_content_area()

GtkWidget * dialog_get_content_area ( GtkWidget * widg)
extern

prepare GtkWidget to insert content in a GtkDialog window

Parameters
widgthe GtkDialog window

Definition at line 805 of file gtk-misc.c.

◆ dialogmodal()

GtkWidget * dialogmodal ( gchar * str,
GtkWindow * parent )
extern

Create a new dialog modal window.

Parameters
strTitle
parentParent GtkWindow, if any

Definition at line 490 of file gtk-misc.c.

◆ duplicate_bool()

gboolean * duplicate_bool ( int num,
gboolean * old_val )
extern

copy a list of gboolean

Parameters
numnumber of elements in the list
old_valthe list to copy

Definition at line 588 of file global.c.

◆ duplicate_color()

ColRGBA * duplicate_color ( int num,
ColRGBA * col )
extern

duplicate a ColRGBA pointer

Parameters
numSize of the pointer
colColRGBA pointer to duplicate

Definition at line 1582 of file gtk-misc.c.

◆ duplicate_double()

double * duplicate_double ( int num,
double * old_val )
extern

copy a list of double

Parameters
numnumber of elements in the list
old_valthe list to copy

Definition at line 620 of file global.c.

◆ duplicate_float()

float * duplicate_float ( int num,
float * old_val )
extern

copy a list of float

Parameters
numnumber of elements in the list
old_valthe list to copy

Definition at line 604 of file global.c.

◆ duplicate_int()

int * duplicate_int ( int num,
int * old_val )
extern

copy a list of int

Parameters
numnumber of elements in the list
old_valthe list to copy

Definition at line 572 of file global.c.

◆ duplicate_strings()

gchar ** duplicate_strings ( int num,
gchar ** old_val )
extern

copy a list of strings

Parameters
numnumber of elements in the list
old_valthe list to copy

Definition at line 556 of file global.c.

◆ edit_in_new_project()

G_MODULE_EXPORT void edit_in_new_project ( GtkWidget * widg,
gpointer data )
extern

create new project using selection callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2193 of file popup.c.

◆ entry_get_text()

const gchar * entry_get_text ( GtkEntry * entry)
extern

get the text in a GtkEntry

Parameters
entrythe GtkEntry

Definition at line 577 of file gtk-misc.c.

◆ fbox()

GtkWidget * fbox ( GtkWidget * box,
char * lab )
extern

Definition at line 1921 of file gtk-misc.c.

◆ file_chooser_get_current_folder()

gchar * file_chooser_get_current_folder ( GtkFileChooser * chooser)
extern

get the current folder for a GtkFileChooser

Parameters
chooserthe GtkFilechooser

Definition at line 2128 of file gtk-misc.c.

◆ file_chooser_get_file_name()

gchar * file_chooser_get_file_name ( GtkFileChooser * chooser)
extern

get a file name from a GtkFileChooser (single file selected)

Parameters
chooserthe GtkFilechooser

Definition at line 2112 of file gtk-misc.c.

◆ file_chooser_get_file_names()

GList * file_chooser_get_file_names ( GtkFileChooser * chooser)

create a file list from files selected using a GtkFileChooser

Definition at line 2099 of file gtk-misc.c.

◆ file_chooser_set_current_folder()

void file_chooser_set_current_folder ( GtkFileChooser * chooser)
extern

set current folder in a GtkFilechooser

Parameters
chooserthe GtkFilechooser

Definition at line 2164 of file gtk-misc.c.

◆ file_chooser_set_file_name()

gboolean file_chooser_set_file_name ( GtkFileChooser * chooser,
gchar * filename )
extern

set file name in a GtkFilechooser

Parameters
chooserthe GtkFilechooser
filenamethe file name to appear in the GtkFilechooser

Definition at line 2145 of file gtk-misc.c.

◆ font_button()

GtkWidget * font_button ( gchar * font,
int dimx,
int dimy,
GCallback handler,
gpointer data )
extern

create a font selection button

Parameters
fontthe font to use
dimxSize x of the button
dimySize y of the button
handlerthe callback for the button
datathe associated data pointer

Definition at line 1730 of file gtk-misc.c.

◆ gdkrgba_to_rgba()

ColRGBA gdkrgba_to_rgba ( GdkRGBA colgdk)
extern

convert GdkRGBA color to ColRGBA color

Parameters
colgdkthe GdkRGBA to convert

Definition at line 1597 of file gtk-misc.c.

◆ get_button_color()

ColRGBA get_button_color ( GtkColorChooser * colob)
extern

get the ColRGBA color from a GtkColorChooser button

Parameters
colobthe GtkColorChooser button

Definition at line 2212 of file gtk-misc.c.

◆ get_calc_time()

double get_calc_time ( struct timespec start,
struct timespec stop )
extern

get calculation time in s

Parameters
startthe initial time
stopthe final time

Definition at line 636 of file global.c.

◆ get_project_by_id()

project * get_project_by_id ( int p)
extern

get project pointer using id number

Parameters
pthe id number

Definition at line 120 of file project.c.

◆ get_top_level()

GtkWidget * get_top_level ( GtkWidget * widg)
extern

get the top level container, window, of a widget

Parameters
widgthe GtkWidget

Definition at line 2291 of file gtk-misc.c.

◆ get_window_color()

ColRGBA get_window_color ( GtkWidget * color_win)
extern

get the ColRGBA color from a color selection window

Parameters
color_winthe color selection window

Definition at line 2226 of file gtk-misc.c.

◆ gtk3_menu_item()

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 )
extern

◆ gtk_label_align()

void gtk_label_align ( GtkWidget * lab,
float ax,
float ay )
extern

set text alignment in a GtkLabel

Parameters
labthe GtkLabel
axthe x alignment
aythe Y alignment

Definition at line 681 of file gtk-misc.c.

◆ hide_this_window()

G_MODULE_EXPORT gboolean hide_this_window ( GtkWidget * win,
GdkEvent * event,
gpointer data )
extern

hide a GtkWindow

Parameters
winthe GtkWindow to hide
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 2347 of file gtk-misc.c.

◆ in_md_shaders()

gboolean in_md_shaders ( project * this_proj,
int id )
extern

is this shader MD dependent ?

Parameters
this_projthe target project
idthe shader id

Definition at line 632 of file ogl_shading.c.

◆ initcutoffs()

void initcutoffs ( chemical_data * chem,
int species )
extern

initialize bond cutoffs

Parameters
chemthe target chemical data
speciesthe number of chemical species

Definition at line 207 of file bdcall.c.

◆ is_atom_win_active()

gboolean is_atom_win_active ( glwin * view)
extern

is the model edition window visible ?

Parameters
viewthe target glwin

Definition at line 71 of file atom_edit.c.

◆ is_the_widget_visible()

gboolean is_the_widget_visible ( GtkWidget * widg)
extern

test if a GtkWidget exist, then return if it is visible or not

Parameters
widgthe GtkWidget

Definition at line 694 of file gtk-misc.c.

◆ label_unlabel_atoms()

G_MODULE_EXPORT void label_unlabel_atoms ( GtkWidget * widg,
gpointer data )
extern

label / unlabel a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1502 of file popup.c.

◆ label_unlabel_coord()

G_MODULE_EXPORT void label_unlabel_coord ( GtkWidget * widg,
gpointer data )
extern

label / unlabel a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1840 of file popup.c.

◆ label_unlabel_this_atom()

G_MODULE_EXPORT void label_unlabel_this_atom ( GtkWidget * widg,
gpointer data )
extern

label / unlabel this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1127 of file popup.c.

◆ layout_add_widget()

void layout_add_widget ( GtkWidget * layout,
GtkWidget * child,
int x_pos,
int y_pos )
extern

Add a GtkWidget in a GtkLayout.

Parameters
layoutthe GtkLayout
childthe GtkWidget to insert
x_posthe x position to insert at
y_posthe y position to insert at

Definition at line 826 of file gtk-misc.c.

◆ markup_label()

GtkWidget * markup_label ( gchar * text,
int dimx,
int dimy,
float ax,
float ay )
extern

Definition at line 1565 of file gtk-misc.c.

◆ menu_item_new_with_submenu()

GtkWidget * menu_item_new_with_submenu ( gchar * name,
gboolean active,
GtkWidget * sub_menu )
extern

◆ message_dialogmodal()

GtkWidget * message_dialogmodal ( gchar * message,
gchar * title,
GtkMessageType mtype,
GtkButtonsType buttons,
GtkWidget * parent )
extern

create a modal (cannot be ignored) message window

Parameters
messagethe message
titlethe title
mtypethe message type
buttonsthe type of closing button to add
parentthe parent window, if any

Definition at line 511 of file gtk-misc.c.

◆ new_gtk_window()

GtkWidget * new_gtk_window ( )
extern

create a new GtkWindow

Definition at line 328 of file gtk-misc.c.

◆ on_calc_bonds_released()

G_MODULE_EXPORT void on_calc_bonds_released ( GtkWidget * widg,
gpointer data )
extern

compute bonding properties

Parameters
widgthe GtkWidget sending the signal, if any
datathe associated data pointer

Definition at line 471 of file bdcall.c.

◆ opengl_project_changed()

void opengl_project_changed ( int id)
extern

change the OpenGL project

Parameters
idthe id of the new OpenGL project

Definition at line 245 of file update_p.c.

◆ pop_menu_at_pointer()

void pop_menu_at_pointer ( GtkWidget * widg,
GdkEvent * event )
extern

popup a menu at pointer location

Parameters
widgthe menu to popup
eventthe GdkEvent triggering the signal

Definition at line 2277 of file gtk-misc.c.

◆ prepare_for_title()

gchar * prepare_for_title ( gchar * init)
extern

prepare a string for a window title, getting rid of all markup

Parameters
initthe initial string

Definition at line 71 of file tools.c.

◆ provide_gtk_css()

void provide_gtk_css ( gchar * css)
extern

create a css provider based on the css data

Parameters
cssthe css data, use the name of the variable to use the css

Definition at line 1986 of file gtk-misc.c.

◆ radio_button()

GtkWidget * radio_button ( gchar * text,
int dimx,
int dimy,
gboolean state,
GCallback handler,
gpointer data )
extern

create a radio button

Parameters
textthe message to display
dimxthe x size
dimythe y size
stateChecked or not (1/0)
handlerthe callback for the button
datathe associated data pointer

Definition at line 1814 of file gtk-misc.c.

◆ recreate_all_shaders()

void recreate_all_shaders ( glwin * view)
extern

re-initialize all OpenGL shaders

Parameters
viewthe target glwin

Definition at line 713 of file ogl_shading.c.

◆ remove_action()

void remove_action ( gchar * action_name)
extern

add action from the main window action map

Parameters
action_namethe action to remove

Definition at line 296 of file gui.c.

◆ remove_edition_actions()

void remove_edition_actions ( )
extern

remove all edition actions

Definition at line 306 of file gui.c.

◆ remove_edition_and_analyze_actions()

void remove_edition_and_analyze_actions ( )
extern

remove all edition and analysis action

Definition at line 317 of file gui.c.

◆ remove_the_atoms()

G_MODULE_EXPORT void remove_the_atoms ( GtkWidget * widg,
gpointer data )
extern

remove selected atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1296 of file popup.c.

◆ replace_the_atoms()

G_MODULE_EXPORT void replace_the_atoms ( GtkWidget * widg,
gpointer data )
extern

replace selected atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1325 of file popup.c.

◆ resize_this_window()

void resize_this_window ( GtkWidget * window,
int x,
int y )
extern

resize this GtkWindow

Parameters
windowthe GtkWidget to resize
xthe x size
ythe y size

Definition at line 561 of file gtk-misc.c.

◆ run_destroy_dialog()

G_MODULE_EXPORT void run_destroy_dialog ( GtkDialog * dialog,
gint response_id,
gpointer data )
extern

to destroy a GtkDialog when the dialog emit the closing signal

Parameters
dialogthe GtkDialog to destroy
response_idthe response id
datathe associated data pointer

Definition at line 2078 of file gtk-misc.c.

◆ run_this_gtk_dialog()

void run_this_gtk_dialog ( GtkWidget * dial,
GCallback handler,
gpointer data )
extern

run a GTK (3 and 4) basic GtkDialog

Parameters
dialthe GtkDialog
handlerthe callback
datathe associated data pointer

Definition at line 472 of file gtk-misc.c.

◆ select_unselect_atoms()

G_MODULE_EXPORT void select_unselect_atoms ( GtkWidget * widg,
gpointer data )
extern

select / unselect a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1550 of file popup.c.

◆ select_unselect_coord()

G_MODULE_EXPORT void select_unselect_coord ( GtkWidget * widg,
gpointer data )
extern

select / unselect a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1916 of file popup.c.

◆ select_unselect_this_atom()

G_MODULE_EXPORT void select_unselect_this_atom ( GtkWidget * widg,
gpointer data )
extern

select / unselect this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1176 of file popup.c.

◆ set_color_chooser_color()

void set_color_chooser_color ( GtkWidget * color_win,
ColRGBA col )
extern

set the color of a color selection window

Parameters
color_winthe color selection window
colthe color to use

Definition at line 2241 of file gtk-misc.c.

◆ set_image_from_icon_name()

void set_image_from_icon_name ( GtkWidget * widg,
gchar * icon )
extern

set a image from a stock icon name

Parameters
widgthe GtkImage to modify
iconthe name of the stock icon

Definition at line 1874 of file gtk-misc.c.

◆ set_renderer_color()

void set_renderer_color ( int tocol,
GtkCellRenderer * renderer,
ColRGBA col )
extern

set the color of a GtkCellRenderer

Parameters
tocolApply color (1/0)
rendererthe GtkCellRenderer
colthe color to apply

Definition at line 1633 of file gtk-misc.c.

◆ show_hide_atoms()

G_MODULE_EXPORT void show_hide_atoms ( GtkWidget * widg,
gpointer data )
extern

◆ show_hide_coord()

G_MODULE_EXPORT void show_hide_coord ( GtkWidget * widg,
gpointer data )
extern

show/hide coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 106 of file m_coord.c.

◆ show_hide_labels()

G_MODULE_EXPORT void show_hide_labels ( GtkWidget * widg,
gpointer data )
extern

◆ show_hide_poly()

G_MODULE_EXPORT void show_hide_poly ( GtkWidget * widg,
gpointer data )
extern

show / hide polyhedra callback - GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 79 of file m_poly.c.

◆ show_hide_the_coord()

G_MODULE_EXPORT void show_hide_the_coord ( GtkWidget * widg,
gpointer data )
extern

show / hide a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1787 of file popup.c.

◆ show_hide_this_atom()

G_MODULE_EXPORT void show_hide_this_atom ( GtkWidget * widg,
gpointer data )
extern

show / hide this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1018 of file popup.c.

◆ show_the_widgets()

void show_the_widgets ( GtkWidget * widg)
extern

show GtkWidget

Parameters
widgthe GtkWidget to show

Definition at line 169 of file gtk-misc.c.

◆ spin_button()

GtkWidget * spin_button ( GCallback handler,
double value,
double start,
double end,
double step,
int digits,
int dim,
gpointer data )
extern

create a spin button

Parameters
handlerthe callback for the button
valueInitial value for the spin button
startMinimum value
endMaximum value
stepStep between values
digitsNumber of digits displayed
dimSize x of the button
datathe associated data pointer

Definition at line 1752 of file gtk-misc.c.

◆ stock_image()

GtkWidget * stock_image ( const gchar * stock_id)
extern

create a GtkImage for the Gtk database

Parameters
stock_id

Definition at line 1344 of file gtk-misc.c.

◆ text_view_set_monospace()

void text_view_set_monospace ( GtkWidget * view)
extern

set the font of a GtkTextView as monospace

Parameters
viewthe GtkTextView

Definition at line 667 of file gtk-misc.c.

◆ update_chains_menus()

void update_chains_menus ( glwin * view)
extern

◆ update_entry_double()

void update_entry_double ( GtkEntry * entry,
double doubleval )
extern

update the content of a GtkEntry as double

Parameters
entrythe GtkEntry
doublevalthe new double value to display

Definition at line 613 of file gtk-misc.c.

◆ update_entry_int()

void update_entry_int ( GtkEntry * entry,
int intval )
extern

update the content of a GtkEntry as int

Parameters
entrythe GtkEntry
intvalthe new int value to display

Definition at line 594 of file gtk-misc.c.

◆ update_entry_long_double()

void update_entry_long_double ( GtkEntry * entry,
double doubleval )
extern

update the content of a GtkEntry as long double

Parameters
entrythe GtkEntry
doublevalthe new long double value to display

Definition at line 632 of file gtk-misc.c.

◆ update_entry_text()

void update_entry_text ( GtkEntry * entry,
gchar * text )
extern

update the content of a GtkEntry as string

Parameters
entrythe GtkEntry
textthe new string to display

Definition at line 651 of file gtk-misc.c.

◆ update_rings_menus()

void update_rings_menus ( glwin * view)
extern

◆ widget_add_action()

void widget_add_action ( GSimpleActionGroup * action_group,
const gchar * act,
GCallback handler,
gpointer data,
gboolean check,
gboolean status,
gboolean radio,
const gchar * stat )
extern

add an action to an action group

Parameters
action_groupthe action group to add an action to
actthe name of the action to add
handlerthe associated callback
datathe associated data pointer
checkis the action a check (1/0)
statusif check or radio, status of the action (1/0)
radiois the action a radio (1/0)
statif radio variant parameter of the action

Definition at line 515 of file gui.c.

◆ widget_set_sensitive()

void widget_set_sensitive ( GtkWidget * widg,
gboolean sensitive )
extern

Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.

Parameters
widgthe GtkWidget
sensitiveSensitivity

Definition at line 186 of file gtk-misc.c.

Variable Documentation

◆ active_box

box_info* active_box
extern

Definition at line 51 of file project.c.

◆ active_cell

cell_info* active_cell
extern

Definition at line 50 of file project.c.

◆ active_chem

chemical_data* active_chem
extern

Definition at line 48 of file project.c.

◆ active_coord

coord_info* active_coord
extern

Definition at line 49 of file project.c.

◆ active_glwin

glwin* active_glwin
extern

Definition at line 53 of file project.c.

◆ active_image

image* active_image
extern

Definition at line 52 of file project.c.

◆ active_project

project* active_project
extern

Definition at line 47 of file project.c.

◆ activef

int activef
extern

Definition at line 161 of file global.c.

◆ activep

int activep
extern

Definition at line 159 of file global.c.

◆ activev

int activev
extern

Definition at line 160 of file global.c.

◆ activew

int activew
extern

Definition at line 163 of file global.c.

◆ analyze_action_names

gchar* analyze_action_names[9]
extern

Definition at line 201 of file global.c.

◆ analyze_actions

GSimpleAction* analyze_actions[9]
extern

Definition at line 211 of file global.c.

◆ ATOMES_CONFIG

gchar* ATOMES_CONFIG
extern

Definition at line 135 of file global.c.

◆ atomes_logo

GtkWidget* atomes_logo
extern

Definition at line 221 of file global.c.

◆ ATOMES_URL

gchar* ATOMES_URL
extern

Definition at line 136 of file global.c.

◆ atomes_visual

int atomes_visual
extern

Definition at line 165 of file global.c.

◆ AtomesApp

GtkApplication* AtomesApp
extern

Definition at line 213 of file global.c.

◆ bonds_update

int bonds_update
extern

Definition at line 169 of file global.c.

◆ bravais_img

gchar* bravais_img[14]
extern

Definition at line 138 of file global.c.

◆ calc_dialog

GtkWidget* calc_dialog
extern

Definition at line 222 of file global.c.

◆ calc_name

char* calc_name[NCALCS-2]
extern

Definition at line 107 of file gui.c.

◆ check_label

gboolean check_label
extern

Definition at line 185 of file global.c.

◆ cif_use_symmetry_positions

gboolean cif_use_symmetry_positions
extern

Definition at line 189 of file global.c.

◆ column_label

gboolean column_label
extern

Definition at line 184 of file global.c.

◆ coord_files

char* coord_files[NCFORMATS+1]
extern

Definition at line 86 of file callbacks.c.

◆ coord_files_ext

char* coord_files_ext[NCFORMATS+1]
extern

Definition at line 100 of file callbacks.c.

◆ copied_object

atomic_object* copied_object
extern

Definition at line 121 of file glwindow.c.

◆ curvetoolbox

GtkWidget* curvetoolbox
extern

Definition at line 218 of file global.c.

◆ cut_lab

tint cut_lab
extern

Definition at line 130 of file gui.c.

◆ cut_sel

tint cut_sel
extern

Definition at line 129 of file gui.c.

◆ dialog_id

int dialog_id
extern

Definition at line 167 of file global.c.

◆ dots

gchar* dots[NDOTS]
extern

Definition at line 103 of file gui.c.

◆ edition_action_names

gchar* edition_action_names[3]
extern

Definition at line 197 of file global.c.

◆ edition_actions

GSimpleAction* edition_actions[3]
extern

Definition at line 210 of file global.c.

◆ Event_loop

GMainLoop* Event_loop[5]
extern

Definition at line 178 of file global.c.

◆ frag_update

int frag_update
extern

Definition at line 170 of file global.c.

◆ graph_img

gchar* graph_img[NGRAPHS]
extern

Definition at line 105 of file gui.c.

◆ graph_name

char* graph_name[NGRAPHS]
extern

Definition at line 118 of file gui.c.

◆ ifbug

char* ifbug
extern

Definition at line 141 of file global.c.

◆ ifield

gchar* ifield[8]
extern

Definition at line 139 of file global.c.

◆ in_movie_encoding

gboolean in_movie_encoding
extern

Definition at line 180 of file global.c.

◆ inactep

int inactep
extern

Definition at line 162 of file global.c.

◆ MainFrame

GtkWidget* MainFrame[2]
extern

Definition at line 216 of file global.c.

◆ MainScrol

GtkWidget* MainScrol[2]
extern

Definition at line 220 of file global.c.

◆ MainView

GtkWidget* MainView
extern

Definition at line 215 of file global.c.

◆ MainWindow

GtkWidget* MainWindow
extern

Definition at line 214 of file global.c.

◆ mode_name

gchar* mode_name[2]
extern

Definition at line 137 of file global.c.

◆ mol_update

int mol_update
extern

Definition at line 171 of file global.c.

◆ newspace

gboolean newspace
extern

Definition at line 181 of file global.c.

◆ nprojects

int nprojects
extern

Definition at line 158 of file global.c.

◆ object_motion

gboolean object_motion
extern

Definition at line 186 of file global.c.

◆ OGL

GdkPixbuf* OGL
extern

Definition at line 233 of file global.c.

◆ OGLC

GdkPixbuf* OGLC
extern

Definition at line 235 of file global.c.

◆ OGLM

GdkPixbuf* OGLM
extern

Definition at line 234 of file global.c.

◆ opac

double opac
extern

Definition at line 194 of file global.c.

◆ opengl_project

project* opengl_project
extern

Definition at line 54 of file project.c.

◆ pasted_todo

int* pasted_todo
extern

Definition at line 174 of file global.c.

◆ periodic_table_info

element_data periodic_table_info[]
extern

Definition at line 71 of file w_library.c.

◆ pi

double pi
extern

Definition at line 195 of file global.c.

◆ pop

GtkWidget* pop
extern

Definition at line 217 of file global.c.

◆ progressbar

GtkWidget* progressbar
extern

Definition at line 219 of file global.c.

◆ proj

project* proj
extern

◆ projfile

gchar* projfile
extern

Definition at line 140 of file global.c.

◆ reading_input

gboolean reading_input
extern

Definition at line 182 of file global.c.

◆ register_button

GtkWidget* register_button
extern

Definition at line 223 of file global.c.

◆ rings_type

char* rings_type[5]
extern

Definition at line 143 of file global.c.

◆ RUN

GdkPixbuf* RUN
extern

Definition at line 236 of file global.c.

◆ selected_status

gboolean selected_status
extern

Definition at line 187 of file global.c.

◆ SETTING

GdkPixbuf* SETTING
extern

Definition at line 231 of file global.c.

◆ SETTINGS

GdkPixbuf* SETTINGS
extern

Definition at line 232 of file global.c.

◆ silent_input

gboolean silent_input
extern

Definition at line 188 of file global.c.

◆ start_time

struct timespec start_time
extern

Definition at line 191 of file global.c.

◆ statusbar

GtkStatusbar* statusbar
extern

Definition at line 226 of file global.c.

◆ statusval

int statusval
extern

Definition at line 164 of file global.c.

◆ std

ColRGBA std[6]
extern

Definition at line 132 of file gui.c.

◆ stop_time

struct timespec stop_time
extern

Definition at line 192 of file global.c.

◆ tag

GtkTextTag* tag
extern

Definition at line 225 of file global.c.

◆ THEBD

GdkPixbuf* THEBD
extern

Definition at line 230 of file global.c.

◆ THEMO

GdkPixbuf* THEMO
extern

Definition at line 229 of file global.c.

◆ THETD

GdkPixbuf* THETD
extern

Definition at line 228 of file global.c.

◆ tmp_adv_bonding

gboolean tmp_adv_bonding[2]
extern

Definition at line 183 of file global.c.

◆ tmp_pixels

int tmp_pixels[2]
extern

Definition at line 173 of file global.c.

◆ untime

char* untime[6]
extern

Definition at line 149 of file global.c.

◆ workspacefile

gchar* workspacefile
extern

Definition at line 156 of file global.c.

◆ workzone

workspace workzone
extern

Definition at line 46 of file project.c.

◆ xsk

double* xsk
extern

Definition at line 176 of file global.c.