atomes 1.1.16
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 <gtk/gtkx.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 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  shortcuts
 
struct  atomes_action
 
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 shortcuts shortcuts
 keyboard shortcuts information
 
typedef struct atomes_action atomes_action
 action information data structure
 
typedef struct coord_info coord_info
 coordination information data structure
 
typedef struct line_node line_node
 
typedef struct coord_file coord_file
 atomic coordinates file, data container
 
typedef struct MouseState MouseState
 data structure to store mouse information on curve widget
 
typedef struct CurveState CurveState
 data structure used for zoom in / out on curve widget
 
typedef struct DataLayout DataLayout
 curve 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
 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
 the molecule data structure
 
typedef struct model model
 data structure 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
 a structure to store some chemical information
 
typedef struct insertion_menu insertion_menu
 data structure for the insertion pop-up menu
 
typedef struct atom atom
 atom data structure
 
typedef struct project project
 data structure for the 'atomes' project
 
typedef struct workspace workspace
 data structure for the 'atomes' 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
 
void hide_the_widgets (GtkWidget *widg)
 hide 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 string_to_double (gpointer string)
 convert string to double
 
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
 
int get_widget_width (GtkWidget *widg)
 retrive GtkWidget width
 
int get_widget_height (GtkWidget *widg)
 retrive GtkWidget height
 

Variables

gchar * PACKAGE_LIB_DIR
 
gchar * PACKAGE_IMP
 
gchar * PACKAGE_CON
 
gchar * PACKAGE_IMG
 
gchar * PACKAGE_PDF
 
gchar * PACKAGE_SVG
 
gchar * PACKAGE_EPS
 
gchar * PACKAGE_PNG
 
gchar * PACKAGE_JPG
 
gchar * PACKAGE_BMP
 
gchar * PACKAGE_TIFF
 
gchar * PACKAGE_VOID
 
gchar * PACKAGE_GR
 
gchar * PACKAGE_SQ
 
gchar * PACKAGE_BD
 
gchar * PACKAGE_AN
 
gchar * PACKAGE_RI
 
gchar * PACKAGE_CH
 
gchar * PACKAGE_SP
 
gchar * PACKAGE_MS
 
gchar * PACKAGE_TD
 
gchar * PACKAGE_MOL
 
gchar * PACKAGE_OGL
 
gchar * PACKAGE_OGLM
 
gchar * PACKAGE_OGLC
 
gchar * PACKAGE_PRO
 
gchar * PACKAGE_SET
 
gchar * PACKAGE_LOGO
 
gchar * PACKAGE_LAGPL
 
gchar * PACKAGE_LABOUT
 
gchar * PACKAGE_DOTA
 
gchar * PACKAGE_DOTB
 
gchar * PACKAGE_DOTC
 
gchar * PACKAGE_DOTD
 
gchar * PACKAGE_DOTE
 
gchar * PACKAGE_DOTF
 
gchar * PACKAGE_DOTG
 
gchar * PACKAGE_DOTH
 
gchar * PACKAGE_DFBD
 
gchar * PACKAGE_DFAN
 
gchar * PACKAGE_DFDI
 
gchar * PACKAGE_DFTD
 
gchar * PACKAGE_DFIN
 
gchar * PACKAGE_SGCP
 
gchar * PACKAGE_SGCI
 
gchar * PACKAGE_SGCF
 
gchar * PACKAGE_SGHP
 
gchar * PACKAGE_SGTR
 
gchar * PACKAGE_SGTI
 
gchar * PACKAGE_SGTP
 
gchar * PACKAGE_SGOP
 
gchar * PACKAGE_SGOI
 
gchar * PACKAGE_SGOC
 
gchar * PACKAGE_SGOF
 
gchar * PACKAGE_SGMP
 
gchar * PACKAGE_SGMI
 
gchar * PACKAGE_SGTC
 
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 * atomes_shortcuts
 
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
 
atomes_action edition_acts []
 
atomes_action analyze_acts []
 
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 225 of file global.h.

◆ AFILE

#define AFILE   "text-x-generic"

Definition at line 224 of file global.h.

◆ AN

#define AN   5

Definition at line 327 of file global.h.

◆ APPLY

#define APPLY   "gtk-apply"

Definition at line 220 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 326 of file global.h.

◆ BSEP

#define BSEP   0

Definition at line 245 of file global.h.

◆ BV

#define BV   10

Definition at line 332 of file global.h.

◆ CANCEL

#define CANCEL   "process-stop"

Definition at line 215 of file global.h.

◆ CH

#define CH   7

Definition at line 329 of file global.h.

◆ CHEM_M

#define CHEM_M   1

Definition at line 298 of file global.h.

◆ CHEM_N

#define CHEM_N   3

Definition at line 300 of file global.h.

◆ CHEM_PARAMS

#define CHEM_PARAMS   5

Definition at line 296 of file global.h.

◆ CHEM_R

#define CHEM_R   2

Definition at line 299 of file global.h.

◆ CHEM_X

#define CHEM_X   4

Definition at line 301 of file global.h.

◆ CHEM_Z

#define CHEM_Z   0

Definition at line 297 of file global.h.

◆ DEFAULT_ALPHA

#define DEFAULT_ALPHA   0.75

Definition at line 336 of file global.h.

◆ DEFAULT_FONT_SIZE

#define DEFAULT_FONT_SIZE   8

Definition at line 335 of file global.h.

◆ DELETEB

#define DELETEB   "edit-delete"

Definition at line 222 of file global.h.

◆ DIAL_ERROR

#define DIAL_ERROR   "dialog-error"

Definition at line 223 of file global.h.

◆ DPROPERTIES

#define DPROPERTIES   "document-properties"

Definition at line 206 of file global.h.

◆ ECUT

#define ECUT   "edit-cut"

Definition at line 205 of file global.h.

◆ EDITA

#define EDITA   "edit-find-replace"

Definition at line 202 of file global.h.

◆ EDITC

#define EDITC   "edit-copy"

Definition at line 203 of file global.h.

◆ EDITF

#define EDITF   "edit-find"

Definition at line 204 of file global.h.

◆ ERROR_ATOM_A

#define ERROR_ATOM_A   5

Definition at line 284 of file global.h.

◆ ERROR_ATOM_B

#define ERROR_ATOM_B   6

Definition at line 285 of file global.h.

◆ ERROR_CHAINS

#define ERROR_CHAINS   11

Definition at line 290 of file global.h.

◆ ERROR_COORD

#define ERROR_COORD   9

Definition at line 288 of file global.h.

◆ ERROR_CURVE

#define ERROR_CURVE   3

Definition at line 282 of file global.h.

◆ ERROR_IMAGE

#define ERROR_IMAGE   4

Definition at line 283 of file global.h.

◆ ERROR_MOL

#define ERROR_MOL   12

◆ ERROR_NO_WAY

#define ERROR_NO_WAY   8

Definition at line 287 of file global.h.

◆ ERROR_PROJECT

#define ERROR_PROJECT   2

Definition at line 281 of file global.h.

◆ ERROR_RINGS

#define ERROR_RINGS   10

Definition at line 289 of file global.h.

◆ ERROR_RW

#define ERROR_RW   1

Definition at line 280 of file global.h.

◆ ERROR_UPDATE

#define ERROR_UPDATE   7

Definition at line 286 of file global.h.

◆ EXECUTE

#define EXECUTE   "system-run"

Definition at line 216 of file global.h.

◆ FCLOSE

#define FCLOSE   "window-close"

Definition at line 211 of file global.h.

◆ FEXIT

#define FEXIT   "application-exit"

Definition at line 212 of file global.h.

◆ FF

#define FF   12

Definition at line 333 of file global.h.

◆ FITBEST

#define FITBEST   "zoom-fit-best"

Definition at line 199 of file global.h.

◆ FNEW

#define FNEW   "document-new"

Definition at line 207 of file global.h.

◆ FOPEN

#define FOPEN   "document-open"

Definition at line 208 of file global.h.

◆ FSAVE

#define FSAVE   "document-save"

Definition at line 209 of file global.h.

◆ FSAVEAS

#define FSAVEAS   "document-save-as"

Definition at line 210 of file global.h.

◆ FULLSCREEN

#define FULLSCREEN   "view-fullscreen"

Definition at line 198 of file global.h.

◆ GDK_SYNCHRONIZE

#define GDK_SYNCHRONIZE

Definition at line 39 of file global.h.

◆ GK

#define GK   3

Definition at line 325 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 196 of file global.h.

◆ GO_LEFT

#define GO_LEFT   "go-previous"

Definition at line 194 of file global.h.

◆ GO_RIGHT

#define GO_RIGHT   "go-next"

Definition at line 193 of file global.h.

◆ GO_UP

#define GO_UP   "go-up"

Definition at line 195 of file global.h.

◆ GR

#define GR   0

Definition at line 322 of file global.h.

◆ IODEBUG

#define IODEBUG   FALSE

Definition at line 267 of file global.h.

◆ LINE_SIZE

#define LINE_SIZE   160

Definition at line 486 of file global.h.

◆ LIST_ADD

#define LIST_ADD   "list-add"

Definition at line 213 of file global.h.

◆ LIST_REM

#define LIST_REM   "list-remove"

Definition at line 214 of file global.h.

◆ max

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

Definition at line 80 of file global.h.

◆ MAXDATA

#define MAXDATA   21

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

Definition at line 698 of file global.h.

◆ MAXDATC

#define MAXDATC   8

Number of tabs for the description of the classical calculation.

Definition at line 693 of file global.h.

◆ MEDIA_FAST

#define MEDIA_FAST   "view-sort-descending"

Definition at line 192 of file global.h.

◆ MEDIA_FIRST

#define MEDIA_FIRST   "go-first"

Definition at line 185 of file global.h.

◆ MEDIA_GOTO

#define MEDIA_GOTO   "go-jump"

Definition at line 186 of file global.h.

◆ MEDIA_LAST

#define MEDIA_LAST   "go-last"

Definition at line 184 of file global.h.

◆ MEDIA_LOOP

#define MEDIA_LOOP   "view-refresh"

Definition at line 189 of file global.h.

◆ MEDIA_NEXT

#define MEDIA_NEXT   "media-skip-forward"

Definition at line 182 of file global.h.

◆ MEDIA_PLAY

#define MEDIA_PLAY   "media-playback-start"

Definition at line 187 of file global.h.

◆ MEDIA_PREV

#define MEDIA_PREV   "media-skip-backward"

Definition at line 183 of file global.h.

◆ MEDIA_SLOW

#define MEDIA_SLOW   "view-sort-ascending"

Definition at line 191 of file global.h.

◆ MEDIA_STOP

#define MEDIA_STOP   "media-playback-stop"

Definition at line 188 of file global.h.

◆ MEDIA_ULOOP

#define MEDIA_ULOOP   "edit-cut"

Definition at line 190 of file global.h.

◆ min

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

Definition at line 81 of file global.h.

◆ MINCUT

#define MINCUT   1.85

Definition at line 337 of file global.h.

◆ MS

#define MS   9

Definition at line 331 of file global.h.

◆ NCALCS

#define NCALCS   12

◆ NCFORMATS

#define NCFORMATS   12

Definition at line 318 of file global.h.

◆ NDOTS

#define NDOTS   8

◆ NGRAPHS

#define NGRAPHS   10

◆ NITEMS

#define NITEMS   16

Definition at line 320 of file global.h.

◆ OK

#define OK   0

Definition at line 279 of file global.h.

◆ OT

#define OT   4

Definition at line 321 of file global.h.

◆ PAGE_SETUP

#define PAGE_SETUP   "document-page-setup"

Definition at line 197 of file global.h.

◆ RECORD

#define RECORD   "media-record"

Definition at line 200 of file global.h.

◆ RI

#define RI   6

Definition at line 328 of file global.h.

◆ SK

#define SK   2

Definition at line 324 of file global.h.

◆ SP

#define SP   8

Definition at line 330 of file global.h.

◆ SQ

#define SQ   1

Definition at line 323 of file global.h.

◆ STEP_LIMIT

#define STEP_LIMIT   10000

Definition at line 277 of file global.h.

◆ YES

#define YES   "gtk-yes"

Definition at line 201 of file global.h.

Typedef Documentation

◆ atom

atom

atom data structure

Definition at line 884 of file global.h.

◆ atomes_action

atomes_action

action information data structure

Definition at line 145 of file global.h.

◆ chemical_data

chemical_data

a structure to store some chemical information

Definition at line 849 of file global.h.

◆ classical_field

typedef struct classical_field classical_field

Definition at line 700 of file global.h.

◆ ColRGBA

typedef struct ColRGBA ColRGBA

Definition at line 119 of file global.h.

◆ coord_file

coord_file

atomic coordinates file, data container

Definition at line 501 of file global.h.

◆ coord_info

coord_info

coordination information data structure

Definition at line 156 of file global.h.

◆ cp2k

typedef struct cp2k cp2k

Definition at line 788 of file global.h.

◆ cpmd

typedef struct cpmd cpmd

Definition at line 769 of file global.h.

◆ Curve

Curve

curve data structure

Definition at line 606 of file global.h.

◆ CurveExtra

CurveExtra

extra curve(s) data information

Definition at line 581 of file global.h.

◆ CurveState

CurveState

data structure used for zoom in / out on curve widget

Definition at line 551 of file global.h.

◆ DataLayout

DataLayout

curve layout information

Definition at line 562 of file global.h.

◆ dint

typedef struct dint dint

Definition at line 95 of file global.h.

◆ dummy_atom

typedef struct dummy_atom dummy_atom

Definition at line 751 of file global.h.

◆ element_data

element_data

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

Definition at line 836 of file global.h.

◆ ExtraSets

ExtraSets

list of extra data sets for a curve

Definition at line 594 of file global.h.

◆ insertion_menu

insertion_menu

data structure for the insertion pop-up menu

Definition at line 871 of file global.h.

◆ line_node

line_node

Definition at line 489 of file global.h.

◆ model

model

data structure to describe the topology

Definition at line 825 of file global.h.

◆ molecule

molecule

the molecule data structure

Definition at line 809 of file global.h.

◆ MouseState

MouseState

data structure to store mouse information on curve widget

Definition at line 538 of file global.h.

◆ project

project

data structure for the 'atomes' project

Definition at line 935 of file global.h.

◆ qint

typedef struct qint qint

Definition at line 110 of file global.h.

◆ shortcuts

shortcuts

keyboard shortcuts information

Definition at line 132 of file global.h.

◆ thermostat

typedef struct thermostat thermostat

Definition at line 733 of file global.h.

◆ tint

typedef struct tint tint

Definition at line 102 of file global.h.

◆ workspace

workspace

data structure for the 'atomes' workspace

Definition at line 1041 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 249 of file global.h.

◆ ImageFormats

Enumerator
IMG_NONE 

0

IMG_PIXBUF 

1

IMG_SURFACE 

2

IMG_FILE 

3

IMG_STOCK 

4

Definition at line 259 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 1912 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 400 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 277 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 299 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 1171 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 226 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 2387 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 864 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 254 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 270 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 475 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 414 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 330 of file global.c.

◆ allocdouble()

double * allocdouble ( int val)
extern

allocate a double * pointer

Parameters
valsize of the pointer to allocate

Definition at line 459 of file global.c.

◆ allocfloat()

float * allocfloat ( int val)
extern

allocate a float * pointer

Parameters
valsize of the pointer to allocate

Definition at line 398 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 314 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 522 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 377 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 293 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 498 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 437 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 353 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 758 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 728 of file gui.c.

◆ bbox()

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

Definition at line 1921 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 1677 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 656 of file global.c.

◆ cbox()

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

Definition at line 1931 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 1799 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 1728 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 1634 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 900 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 913 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 1264 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 1863 of file gtk-misc.c.

◆ create_combo()

GtkWidget * create_combo ( )
extern

create a GtkCombox widget, note deprecated in GTK4

Definition at line 923 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 1314 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 1984 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 2223 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 813 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 744 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 1443 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 880 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 1960 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 1199 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 801 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 778 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 445 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 2065 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 2084 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 2034 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 2344 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 561 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 825 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 510 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 576 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 1602 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 608 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 592 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 560 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 544 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 2192 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 597 of file gtk-misc.c.

◆ fbox()

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

Definition at line 1941 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 2152 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 2136 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 2123 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 2188 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 2169 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 1750 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 1617 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 2236 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 643 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 2315 of file gtk-misc.c.

◆ get_widget_height()

int get_widget_height ( GtkWidget * widg)
extern

retrive GtkWidget height

Parameters
widgthe GtkWidget

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

◆ get_widget_width()

int get_widget_width ( GtkWidget * widg)
extern

retrive GtkWidget width

Parameters
widgthe GtkWidget

Definition at line 2403 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 2250 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 701 of file gtk-misc.c.

◆ hide_the_widgets()

void hide_the_widgets ( GtkWidget * widg)
extern

hide GtkWidget

Parameters
widgthe GtkWidget to show

Definition at line 189 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 2371 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 714 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 1503 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 1839 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 1128 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 846 of file gtk-misc.c.

◆ markup_label()

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

Definition at line 1585 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 531 of file gtk-misc.c.

◆ new_gtk_window()

GtkWidget * new_gtk_window ( )
extern

create a new GtkWindow

Definition at line 348 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 2301 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 2006 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 1834 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 412 of file gui.c.

◆ remove_edition_actions()

void remove_edition_actions ( )
extern

remove all edition actions

Definition at line 422 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 433 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 1297 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 1326 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 581 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 2102 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 492 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 1551 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 1915 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 1177 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 2265 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 1894 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 1653 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 1788 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 1019 of file popup.c.

◆ show_the_widgets()

void show_the_widgets ( GtkWidget * widg)
extern

show GtkWidget

Parameters
widgthe GtkWidget to show

Definition at line 173 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 1772 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 1364 of file gtk-misc.c.

◆ string_to_double()

double string_to_double ( gpointer string)
extern

convert string to double

Parameters
stringthe string to convert

Definition at line 624 of file global.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 687 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 633 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 614 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 652 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 671 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 641 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 206 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_actions

GSimpleAction* analyze_actions[9]
extern

Definition at line 198 of file global.c.

◆ analyze_acts

atomes_action analyze_acts[]
extern

Definition at line 112 of file gui.c.

◆ ATOMES_CONFIG

gchar* ATOMES_CONFIG
extern

Definition at line 135 of file global.c.

◆ atomes_logo

GtkWidget* atomes_logo
extern

Definition at line 208 of file global.c.

◆ atomes_shortcuts

GtkWidget* atomes_shortcuts
extern

Definition at line 209 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 200 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 210 of file global.c.

◆ calc_name

char* calc_name[NCALCS-2]
extern

Definition at line 122 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 123 of file glwindow.c.

◆ curvetoolbox

GtkWidget* curvetoolbox
extern

Definition at line 205 of file global.c.

◆ cut_lab

tint cut_lab
extern

Definition at line 145 of file gui.c.

◆ cut_sel

tint cut_sel
extern

Definition at line 144 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 104 of file gui.c.

◆ edition_actions

GSimpleAction* edition_actions[3]
extern

Definition at line 197 of file global.c.

◆ edition_acts

atomes_action edition_acts[]
extern

Definition at line 108 of file gui.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 106 of file gui.c.

◆ graph_name

char* graph_name[NGRAPHS]
extern

Definition at line 133 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 203 of file global.c.

◆ MainScrol

GtkWidget* MainScrol[2]
extern

Definition at line 207 of file global.c.

◆ MainView

GtkWidget* MainView
extern

Definition at line 202 of file global.c.

◆ MainWindow

GtkWidget* MainWindow
extern

Definition at line 201 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 221 of file global.c.

◆ OGLC

GdkPixbuf* OGLC
extern

Definition at line 223 of file global.c.

◆ OGLM

GdkPixbuf* OGLM
extern

Definition at line 222 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.

◆ PACKAGE_AN

gchar* PACKAGE_AN
extern

Definition at line 93 of file global.c.

◆ PACKAGE_BD

gchar* PACKAGE_BD
extern

Definition at line 92 of file global.c.

◆ PACKAGE_BMP

gchar* PACKAGE_BMP
extern

Definition at line 87 of file global.c.

◆ PACKAGE_CH

gchar* PACKAGE_CH
extern

Definition at line 95 of file global.c.

◆ PACKAGE_CON

gchar* PACKAGE_CON
extern

Definition at line 80 of file global.c.

◆ PACKAGE_DFAN

gchar* PACKAGE_DFAN
extern

Definition at line 117 of file global.c.

◆ PACKAGE_DFBD

gchar* PACKAGE_DFBD
extern

Definition at line 116 of file global.c.

◆ PACKAGE_DFDI

gchar* PACKAGE_DFDI
extern

Definition at line 118 of file global.c.

◆ PACKAGE_DFIN

gchar* PACKAGE_DFIN
extern

Definition at line 120 of file global.c.

◆ PACKAGE_DFTD

gchar* PACKAGE_DFTD
extern

Definition at line 119 of file global.c.

◆ PACKAGE_DOTA

gchar* PACKAGE_DOTA
extern

Definition at line 108 of file global.c.

◆ PACKAGE_DOTB

gchar* PACKAGE_DOTB
extern

Definition at line 109 of file global.c.

◆ PACKAGE_DOTC

gchar* PACKAGE_DOTC
extern

Definition at line 110 of file global.c.

◆ PACKAGE_DOTD

gchar* PACKAGE_DOTD
extern

Definition at line 111 of file global.c.

◆ PACKAGE_DOTE

gchar* PACKAGE_DOTE
extern

Definition at line 112 of file global.c.

◆ PACKAGE_DOTF

gchar* PACKAGE_DOTF
extern

Definition at line 113 of file global.c.

◆ PACKAGE_DOTG

gchar* PACKAGE_DOTG
extern

Definition at line 114 of file global.c.

◆ PACKAGE_DOTH

gchar* PACKAGE_DOTH
extern

Definition at line 115 of file global.c.

◆ PACKAGE_EPS

gchar* PACKAGE_EPS
extern

Definition at line 84 of file global.c.

◆ PACKAGE_GR

gchar* PACKAGE_GR
extern

Definition at line 90 of file global.c.

◆ PACKAGE_IMG

gchar* PACKAGE_IMG
extern

Definition at line 81 of file global.c.

◆ PACKAGE_IMP

gchar* PACKAGE_IMP
extern

Definition at line 79 of file global.c.

◆ PACKAGE_JPG

gchar* PACKAGE_JPG
extern

Definition at line 86 of file global.c.

◆ PACKAGE_LABOUT

gchar* PACKAGE_LABOUT
extern

Definition at line 107 of file global.c.

◆ PACKAGE_LAGPL

gchar* PACKAGE_LAGPL
extern

Definition at line 106 of file global.c.

◆ PACKAGE_LIB_DIR

gchar* PACKAGE_LIB_DIR
extern

Definition at line 78 of file global.c.

◆ PACKAGE_LOGO

gchar* PACKAGE_LOGO
extern

Definition at line 105 of file global.c.

◆ PACKAGE_MOL

gchar* PACKAGE_MOL
extern

Definition at line 99 of file global.c.

◆ PACKAGE_MS

gchar* PACKAGE_MS
extern

Definition at line 97 of file global.c.

◆ PACKAGE_OGL

gchar* PACKAGE_OGL
extern

Definition at line 100 of file global.c.

◆ PACKAGE_OGLC

gchar* PACKAGE_OGLC
extern

Definition at line 102 of file global.c.

◆ PACKAGE_OGLM

gchar* PACKAGE_OGLM
extern

Definition at line 101 of file global.c.

◆ PACKAGE_PDF

gchar* PACKAGE_PDF
extern

Definition at line 82 of file global.c.

◆ PACKAGE_PNG

gchar* PACKAGE_PNG
extern

Definition at line 85 of file global.c.

◆ PACKAGE_PRO

gchar* PACKAGE_PRO
extern

Definition at line 103 of file global.c.

◆ PACKAGE_RI

gchar* PACKAGE_RI
extern

Definition at line 94 of file global.c.

◆ PACKAGE_SET

gchar* PACKAGE_SET
extern

Definition at line 104 of file global.c.

◆ PACKAGE_SGCF

gchar* PACKAGE_SGCF
extern

Definition at line 123 of file global.c.

◆ PACKAGE_SGCI

gchar* PACKAGE_SGCI
extern

Definition at line 122 of file global.c.

◆ PACKAGE_SGCP

gchar* PACKAGE_SGCP
extern

Definition at line 121 of file global.c.

◆ PACKAGE_SGHP

gchar* PACKAGE_SGHP
extern

Definition at line 124 of file global.c.

◆ PACKAGE_SGMI

gchar* PACKAGE_SGMI
extern

Definition at line 133 of file global.c.

◆ PACKAGE_SGMP

gchar* PACKAGE_SGMP
extern

Definition at line 132 of file global.c.

◆ PACKAGE_SGOC

gchar* PACKAGE_SGOC
extern

Definition at line 130 of file global.c.

◆ PACKAGE_SGOF

gchar* PACKAGE_SGOF
extern

Definition at line 131 of file global.c.

◆ PACKAGE_SGOI

gchar* PACKAGE_SGOI
extern

Definition at line 129 of file global.c.

◆ PACKAGE_SGOP

gchar* PACKAGE_SGOP
extern

Definition at line 128 of file global.c.

◆ PACKAGE_SGTC

gchar* PACKAGE_SGTC
extern

Definition at line 134 of file global.c.

◆ PACKAGE_SGTI

gchar* PACKAGE_SGTI
extern

Definition at line 126 of file global.c.

◆ PACKAGE_SGTP

gchar* PACKAGE_SGTP
extern

Definition at line 127 of file global.c.

◆ PACKAGE_SGTR

gchar* PACKAGE_SGTR
extern

Definition at line 125 of file global.c.

◆ PACKAGE_SP

gchar* PACKAGE_SP
extern

Definition at line 96 of file global.c.

◆ PACKAGE_SQ

gchar* PACKAGE_SQ
extern

Definition at line 91 of file global.c.

◆ PACKAGE_SVG

gchar* PACKAGE_SVG
extern

Definition at line 83 of file global.c.

◆ PACKAGE_TD

gchar* PACKAGE_TD
extern

Definition at line 98 of file global.c.

◆ PACKAGE_TIFF

gchar* PACKAGE_TIFF
extern

Definition at line 88 of file global.c.

◆ PACKAGE_VOID

gchar* PACKAGE_VOID
extern

Definition at line 89 of file global.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 204 of file global.c.

◆ progressbar

GtkWidget* progressbar
extern

Definition at line 206 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 211 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 224 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 219 of file global.c.

◆ SETTINGS

GdkPixbuf* SETTINGS
extern

Definition at line 220 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 214 of file global.c.

◆ statusval

int statusval
extern

Definition at line 164 of file global.c.

◆ std

ColRGBA std[6]
extern

Definition at line 147 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 213 of file global.c.

◆ THEBD

GdkPixbuf* THEBD
extern

Definition at line 218 of file global.c.

◆ THEMO

GdkPixbuf* THEMO
extern

Definition at line 217 of file global.c.

◆ THETD

GdkPixbuf* THETD
extern

Definition at line 216 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.