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

Callback declarations for main window. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void fill_tool_model ()
 fill the tool window tree model
 
void free_data ()
 
void quit_gtk ()
 Leave the application.
 
void show_Help ()
 
G_MODULE_EXPORT int open_save_workspace (FILE *fp, int act)
 open or save the active workspace
 
G_MODULE_EXPORT int open_save (FILE *fp, int i, int pid, int aid, int np, gchar *pfile)
 open or save project file
 
G_MODULE_EXPORT void on_close_workspace (GtkWidget *widg, gpointer data)
 close the active workspace
 
G_MODULE_EXPORT void on_open_save_activate (GtkWidget *widg, gpointer data)
 open or save an atomes file - prepare the dialog
 
G_MODULE_EXPORT void on_save_as_activate (GtkWidget *widg, gpointer data)
 open or save, choosing a file name
 
void open_this_isaacs_xml_file (gchar *profile, int ptoc, gboolean visible)
 open an ISAACS XML file
 
G_MODULE_EXPORT void on_isaacs_port (GtkWidget *widg, gpointer data)
 open or write ISAACS XML file - prepare the dialog
 
void open_this_coordinate_file (int format, gchar *proj_name)
 open coordinate file format, if successful add to workspace
 
G_MODULE_EXPORT void on_coord_port (GtkWidget *widg, gpointer data)
 export or import atomic coordinates: prepare dialog
 
void to_read_pos ()
 send atomic coordinates to Fortran90
 
void display_distances ()
 
void run_project ()
 send project data to Fortran90
 
void apply_project (gboolean showtools)
 get project ready for calculation and initialize the OpenGL window
 
G_MODULE_EXPORT void on_Bonds_activate ()
 
G_MODULE_EXPORT void on_Help_released (GtkButton *but, gpointer data)
 
G_MODULE_EXPORT void on_check_toggled (GtkToggleButton *Button, gpointer data)
 
G_MODULE_EXPORT void expanding (GtkExpander *expander, gpointer data)
 
G_MODULE_EXPORT void on_show_curve_toolbox (GtkWidget *widg, gpointer data)
 show the curve toolboxes
 

Detailed Description

Callback declarations for main window.

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 callbacks.h.

Function Documentation

◆ apply_project()

void apply_project ( gboolean showtools)

get project ready for calculation and initialize the OpenGL window

Parameters
showtools

Definition at line 665 of file callbacks.c.

◆ display_distances()

void display_distances ( )

◆ expanding()

G_MODULE_EXPORT void expanding ( GtkExpander * expander,
gpointer data )

◆ fill_tool_model()

void fill_tool_model ( )
extern

fill the tool window tree model

Definition at line 87 of file tools.c.

◆ free_data()

void free_data ( )

◆ on_Bonds_activate()

G_MODULE_EXPORT void on_Bonds_activate ( )

◆ on_check_toggled()

G_MODULE_EXPORT void on_check_toggled ( GtkToggleButton * Button,
gpointer data )

◆ on_close_workspace()

G_MODULE_EXPORT void on_close_workspace ( GtkWidget * widg,
gpointer data )

close the active workspace

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 133 of file callbacks.c.

◆ on_coord_port()

G_MODULE_EXPORT void on_coord_port ( GtkWidget * widg,
gpointer data )

export or import atomic coordinates: prepare dialog

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1604 of file callbacks.c.

◆ on_Help_released()

G_MODULE_EXPORT void on_Help_released ( GtkButton * but,
gpointer data )

◆ on_isaacs_port()

G_MODULE_EXPORT void on_isaacs_port ( GtkWidget * widg,
gpointer data )

open or write ISAACS XML file - prepare the dialog

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer (int *) open = 0, save = 1

Definition at line 775 of file callbacks.c.

◆ on_open_save_activate()

G_MODULE_EXPORT void on_open_save_activate ( GtkWidget * widg,
gpointer data )

open or save an atomes file - prepare the dialog

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 423 of file callbacks.c.

◆ on_save_as_activate()

G_MODULE_EXPORT void on_save_as_activate ( GtkWidget * widg,
gpointer data )

open or save, choosing a file name

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 621 of file callbacks.c.

◆ on_show_curve_toolbox()

G_MODULE_EXPORT void on_show_curve_toolbox ( GtkWidget * widg,
gpointer data )

show the curve toolboxes

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1019 of file calc_menu.c.

◆ open_save()

G_MODULE_EXPORT int open_save ( FILE * fp,
int i,
int pid,
int aid,
int npi,
gchar * pfile )

open or save project file

Parameters
fpthe file pointer
i0 = read, 1 = write
pidthe project id
aidthe active project id
npitotal number of projects
pfilethe file name

Definition at line 174 of file callbacks.c.

◆ open_save_workspace()

G_MODULE_EXPORT int open_save_workspace ( FILE * fp,
int act )

open or save the active workspace

Parameters
fpthe file to read or write
actthe action (0 = read, 1 = write)

Definition at line 234 of file callbacks.c.

◆ open_this_coordinate_file()

void open_this_coordinate_file ( int format,
gchar * proj_name )
extern

open coordinate file format, if successful add to workspace

Parameters
formatthe format of the file that contains the atomic coordinates
proj_namethe project name to use, if any

Definition at line 1416 of file callbacks.c.

◆ open_this_isaacs_xml_file()

void open_this_isaacs_xml_file ( gchar * profile,
int ptoc,
gboolean visible )
extern

open an ISAACS XML file

Parameters
profilethe XML file name
ptocthe previous active project
visibleread from the command line (FALSE), from the gui (TRUE)

Definition at line 685 of file callbacks.c.

◆ quit_gtk()

void quit_gtk ( )

Leave the application.

Definition at line 119 of file callbacks.c.

◆ run_project()

void run_project ( )

send project data to Fortran90

Definition at line 633 of file callbacks.c.

◆ show_Help()

void show_Help ( )

◆ to_read_pos()

void to_read_pos ( )

send atomic coordinates to Fortran90

Definition at line 831 of file callbacks.c.