atomes 1.1.16
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
callbacks.h
Go to the documentation of this file.
1/* This file is part of the 'atomes' software
2
3'atomes' is free software: you can redistribute it and/or modify it under the terms
4of the GNU Affero General Public License as published by the Free Software Foundation,
5either version 3 of the License, or (at your option) any later version.
6
7'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9See the GNU General Public License for more details.
10
11You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12If not, see <https://www.gnu.org/licenses/>
13
14Copyright (C) 2022-2024 by CNRS and University of Strasbourg */
15
22/*
23* This header file: 'callbacks.h'
24*
25* Contains:
26
27 - Callback declarations for main window
28
29*/
30
31#ifndef CALLBACKS_H_
32#define CALLBACKS_H_
33
34extern void fill_tool_model ();
35void free_data ();
36void quit_gtk ();
37void show_Help ();
38
39G_MODULE_EXPORT int open_save_workspace (FILE * fp, int act);
40G_MODULE_EXPORT int open_save (FILE * fp, int i, int pid, int aid, int np, gchar * pfile);
41G_MODULE_EXPORT void on_close_workspace (GtkWidget * widg, gpointer data);
42G_MODULE_EXPORT void on_open_save_activate (GtkWidget * widg, gpointer data);
43G_MODULE_EXPORT void on_save_as_activate (GtkWidget * widg, gpointer data);
44extern void open_this_isaacs_xml_file (gchar * profile, int ptoc, gboolean visible);
45G_MODULE_EXPORT void on_isaacs_port (GtkWidget * widg, gpointer data);
46extern void open_this_coordinate_file (int format, gchar * proj_name);
47G_MODULE_EXPORT void on_coord_port (GtkWidget * widg, gpointer data);
48void to_read_pos ();
50void run_project ();
51void apply_project (gboolean showtools);
52G_MODULE_EXPORT void on_Bonds_activate ();
53G_MODULE_EXPORT void on_Help_released (GtkButton * but, gpointer data);
54G_MODULE_EXPORT void on_check_toggled (GtkToggleButton * Button, gpointer data);
55
56G_MODULE_EXPORT void expanding (GtkExpander * expander, gpointer data);
57G_MODULE_EXPORT void on_show_curve_toolbox (GtkWidget * widg, gpointer data);
58#endif
G_MODULE_EXPORT int open_save(FILE *fp, int i, int pid, int aid, int np, gchar *pfile)
open or save project file
Definition callbacks.c:174
void fill_tool_model()
fill the tool window tree model
Definition tools.c:87
void quit_gtk()
Leave the application.
Definition callbacks.c:119
G_MODULE_EXPORT void on_show_curve_toolbox(GtkWidget *widg, gpointer data)
show the curve toolboxes
Definition calc_menu.c:1019
G_MODULE_EXPORT void on_close_workspace(GtkWidget *widg, gpointer data)
close the active workspace
Definition callbacks.c:133
G_MODULE_EXPORT int open_save_workspace(FILE *fp, int act)
open or save the active workspace
Definition callbacks.c:234
G_MODULE_EXPORT void expanding(GtkExpander *expander, gpointer data)
G_MODULE_EXPORT void on_open_save_activate(GtkWidget *widg, gpointer data)
open or save an atomes file - prepare the dialog
Definition callbacks.c:423
G_MODULE_EXPORT void on_Help_released(GtkButton *but, gpointer data)
void apply_project(gboolean showtools)
get project ready for calculation and initialize the OpenGL window
Definition callbacks.c:665
void show_Help()
G_MODULE_EXPORT void on_isaacs_port(GtkWidget *widg, gpointer data)
open or write ISAACS XML file - prepare the dialog
Definition callbacks.c:775
void open_this_coordinate_file(int format, gchar *proj_name)
open coordinate file format, if successful add to workspace
Definition callbacks.c:1416
void run_project()
send project data to Fortran90
Definition callbacks.c:633
void display_distances()
void free_data()
G_MODULE_EXPORT void on_coord_port(GtkWidget *widg, gpointer data)
export or import atomic coordinates: prepare dialog
Definition callbacks.c:1604
G_MODULE_EXPORT void on_save_as_activate(GtkWidget *widg, gpointer data)
open or save, choosing a file name
Definition callbacks.c:621
G_MODULE_EXPORT void on_Bonds_activate()
G_MODULE_EXPORT void on_check_toggled(GtkToggleButton *Button, gpointer data)
void open_this_isaacs_xml_file(gchar *profile, int ptoc, gboolean visible)
open an ISAACS XML file
Definition callbacks.c:685
void to_read_pos()
send atomic coordinates to Fortran90
Definition callbacks.c:831
FILE * fp