atomes 1.3.1
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-2026 by CNRS and University of Strasbourg */
15
21
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_with_trace (gchar * error, atomes_error * this_error, int act, int val, GtkWidget * win);
41void show_error_ (char * error, char * sub, char * tab);
42gboolean ask_yes_no (gchar * title, gchar * text, int type, GtkWidget * widg);
43gchar * exact_name (gchar * name);
44GtkWidget * show_pop (char * pop, GtkWidget * pwin);
45#ifdef GTK4
46G_MODULE_EXPORT gboolean leaving_question (GtkWindow * widget, gpointer data);
47#else
48G_MODULE_EXPORT gboolean leaving_question (GtkWidget * widget, GdkEvent * event, gpointer data);
49#endif
50int dummy_ask_ (char * question);
51int iask (char * question, char * lab, int id, GtkWidget * win);
52gchar * cask (char * question, char * lab, int id, char * old, GtkWidget * win);
53
54void print_info (gchar * str, gchar * stag, GtkTextBuffer * buffer);
55gchar * textcolor (int i);
56
57gchar * env_name (project * this_proj, int g, int s, int f, GtkTextBuffer * buffer);
58void init_data_ (int * nats, int * nspc, int * stps, int * cid);
59void update_after_calc (int calc);
60
61// In init.c:
62void prepostcalc (GtkWidget * widg, gboolean status, int run, int adv, double opc);
63void prep_calc_actions ();
64
65void init_atomes_analysis (project * this_proj, gboolean apply_defaults);
66#endif
gchar * text
Definition datab.c:105
float val
Definition dlp_init.c:117
GtkWidget * pop
Definition global.c:210
G_MODULE_EXPORT void create_about_dialog(GtkWidget *widg, gpointer data)
create the about dialog
Definition interface.c:176
int iask(char *question, char *lab, int id, GtkWidget *win)
enter an integer value - prepare the dialog
Definition interface.c:620
gchar * cask(char *question, char *lab, int id, char *old, GtkWidget *win)
enter a string - prepare the dialog
Definition interface.c:770
void show_warning_(char *warning, char *sub, char *tab)
show warning from Fortran90
Definition interface.c:281
void show_warning(char *warning, GtkWidget *win)
show warning
Definition interface.c:266
void prepostcalc(GtkWidget *widg, gboolean status, int run, int adv, double opc)
to just before and just after running a calculation
Definition initc.c:87
void show_info_(double *valdij)
void init_atomes_analysis(project *this_proj, gboolean apply_defaults)
initialize analysis data structures for atomes
Definition initc.c:223
void show_info(char *information, int val, GtkWidget *win)
add / show information message to widget
Definition interface.c:240
gchar * textcolor(int i)
setup text color keyword
Definition interface.c:893
void show_error(char *error, int val, GtkWidget *win)
show error message
Definition interface.c:299
void prep_calc_actions()
prepare analysis widgets
Definition update_p.c:59
G_MODULE_EXPORT gboolean leaving_question(GtkWidget *widget, GdkEvent *event, gpointer data)
Leaving atomes ?
Definition interface.c:482
int dummy_ask_(char *question)
Ask to use dummy atoms or not from Fortran90.
Definition interface.c:503
void update_after_calc(int calc)
update all curve plots in the workspace after a calculation
Definition interface.c:1110
void show_error_(char *error, char *sub, char *tab)
show error from Fortran90
Definition interface.c:384
void show_error_with_trace(gchar *error, atomes_error *this_error, int act, int val, GtkWidget *win)
show error message
Definition interface.c:328
void init_data_(int *nats, int *nspc, int *stps, int *cid)
update project data using information from Fortran90
Definition interface.c:807
gchar * env_name(project *this_proj, int g, int s, int f, GtkTextBuffer *buffer)
output the name of a coordination sphere
Definition interface.c:1022
GtkWidget * show_pop(char *pop, GtkWidget *pwin)
display pop information window
Definition interface.c:447
void print_info(gchar *str, gchar *stag, GtkTextBuffer *buffer)
print information in GtkTextBuffer
Definition interface.c:869
gboolean ask_yes_no(gchar *title, gchar *text, int type, GtkWidget *widg)
ask yes or no for something: prepare dialog
Definition interface.c:420
gchar * exact_name(gchar *name)
short cut to print string without spaces
Definition interface.c:434
int status
Definition w_advance.c:173
GtkWidget * lab
Definition workspace.c:73