atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
interface.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: 'interface.h'
24*
25* Contains:
26
27 - Messaging function declarations
28
29*/
30
31#ifndef INTERFACE_H_
32#define INTERFACE_H_
33G_MODULE_EXPORT void create_about_dialog (GtkWidget * widg, gpointer data);
34
35void show_info (char * information, int val, GtkWidget * win);
36void show_info_ (double * valdij);
37void show_warning (char * warning, GtkWidget * win);
38void show_warning_ (char * warning, char * sub, char * tab);
39void show_error (char * error, int val, GtkWidget * win);
40void show_error_ (char * error, char * sub, char * tab);
41gboolean ask_yes_no (gchar * title, gchar * text, int type, GtkWidget * widg);
42gchar * exact_name (gchar * name);
43GtkWidget * show_pop (char * pop, GtkWidget * pwin);
44#ifdef GTK4
45G_MODULE_EXPORT gboolean leaving_question (GtkWindow * widget, gpointer data);
46#else
47G_MODULE_EXPORT gboolean leaving_question (GtkWidget * widget, GdkEvent * event, gpointer data);
48#endif
49int dummy_ask_ (char * question);
50int iask (char * question, char * lab, int id, GtkWidget * win);
51gchar * cask (char * question, char * lab, int id, char * old, GtkWidget * win);
52
53void print_info (gchar * str, gchar * stag, GtkTextBuffer * buffer);
54gchar * textcolor (int i);
55
56gchar * env_name (project * this_proj, int g, int s, int f, GtkTextBuffer * buffer);
57void init_data_ (int * nats, int * nspc, int * stps, int * cid);
58void update_after_calc (int calc);
59
60// In init.c:
61
62void prepostcalc (GtkWidget * widg, gboolean status, int run, int adv, double opc);
63void prep_calc_actions ();
64void initcwidgets ();
65#endif
gchar * text
Definition datab.c:105
float val
Definition dlp_init.c:117
GtkWidget * pop
Definition global.c:217
void initcwidgets()
initializing curve values
Definition initc.c:104
G_MODULE_EXPORT void create_about_dialog(GtkWidget *widg, gpointer data)
create the about dialog
Definition interface.c:175
int iask(char *question, char *lab, int id, GtkWidget *win)
enter an integer value - prepare the dialog
Definition interface.c:529
gchar * cask(char *question, char *lab, int id, char *old, GtkWidget *win)
enter a string - prepare the dialog
Definition interface.c:645
void show_warning_(char *warning, char *sub, char *tab)
show warning from Fortran90
Definition interface.c:275
void show_warning(char *warning, GtkWidget *win)
show warning
Definition interface.c:260
void prepostcalc(GtkWidget *widg, gboolean status, int run, int adv, double opc)
to just before and just after running a calculation
Definition initc.c:154
void show_info_(double *valdij)
void show_info(char *information, int val, GtkWidget *win)
add / show information message to widget
Definition interface.c:234
gchar * textcolor(int i)
setup text color keyword
Definition interface.c:763
void show_error(char *error, int val, GtkWidget *win)
show error message
Definition interface.c:293
void prep_calc_actions()
prepare analysis widgets
Definition update_p.c:58
G_MODULE_EXPORT gboolean leaving_question(GtkWidget *widget, GdkEvent *event, gpointer data)
Leaving atomes ?
Definition interface.c:418
int dummy_ask_(char *question)
Ask to use dummy atoms or not from Fortran90.
Definition interface.c:439
void update_after_calc(int calc)
To update all curve plots in the workspace after a calculation.
Definition interface.c:977
void show_error_(char *error, char *sub, char *tab)
show error from Fortran90
Definition interface.c:320
void init_data_(int *nats, int *nspc, int *stps, int *cid)
update project data using information from Fortran90
Definition interface.c:682
gchar * env_name(project *this_proj, int g, int s, int f, GtkTextBuffer *buffer)
ouput the name of a coordination sphere
Definition interface.c:889
GtkWidget * show_pop(char *pop, GtkWidget *pwin)
display pop information window
Definition interface.c:383
void print_info(gchar *str, gchar *stag, GtkTextBuffer *buffer)
print information in GtkTextBuffer
Definition interface.c:738
gboolean ask_yes_no(gchar *title, gchar *text, int type, GtkWidget *widg)
ask yes or no for something: prepare dialog
Definition interface.c:356
gchar * exact_name(gchar *name)
short cut to print string without spaces
Definition interface.c:370
int status
Definition w_advance.c:160
GtkWidget * lab
Definition workspace.c:73