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

Messaging function declarations. More...

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

Go to the source code of this file.

Functions

G_MODULE_EXPORT void create_about_dialog (GtkWidget *widg, gpointer data)
 create the about dialog
void show_info (char *information, int val, GtkWidget *win)
 add / show information message to widget
void show_info_ (double *valdij)
void show_warning (char *warning, GtkWidget *win)
 show warning
void show_warning_ (char *warning, char *sub, char *tab)
 show warning from Fortran90
void show_error (char *error, int val, GtkWidget *win)
 show error message
void show_error_with_trace (gchar *error, atomes_error *this_error, int act, int val, GtkWidget *win)
 show error message
void show_error_ (char *error, char *sub, char *tab)
 show error from Fortran90
gboolean ask_yes_no (gchar *title, gchar *text, int type, GtkWidget *widg)
 ask yes or no for something: prepare dialog
gchar * exact_name (gchar *name)
 short cut to print string without spaces
GtkWidget * show_pop (char *pop, GtkWidget *pwin)
 display pop information window
G_MODULE_EXPORT gboolean leaving_question (GtkWidget *widget, GdkEvent *event, gpointer data)
 Leaving atomes ?
int dummy_ask_ (char *question)
 Ask to use dummy atoms or not from Fortran90.
int iask (char *question, char *lab, int id, GtkWidget *win)
 enter an integer value - prepare the dialog
gchar * cask (char *question, char *lab, int id, char *old, GtkWidget *win)
 enter a string - prepare the dialog
void print_info (gchar *str, gchar *stag, GtkTextBuffer *buffer)
 print information in GtkTextBuffer
gchar * textcolor (int i)
 setup text color keyword
gchar * env_name (project *this_proj, int g, int s, int f, GtkTextBuffer *buffer)
 output the name of a coordination sphere
void init_data_ (int *nats, int *nspc, int *stps, int *cid)
 update project data using information from Fortran90
void update_after_calc (int calc)
 update all curve plots in the workspace after a calculation
void prepostcalc (GtkWidget *widg, gboolean status, int run, int adv, double opc)
 to just before and just after running a calculation
void prep_calc_actions ()
 prepare analysis widgets
void init_atomes_analysis (project *this_proj, gboolean apply_defaults)
 initialize analysis data structures for atomes

Detailed Description

Messaging function declarations.

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

Function Documentation

◆ ask_yes_no()

gboolean ask_yes_no ( gchar * title,
gchar * text,
int type,
GtkWidget * widg )

ask yes or no for something: prepare dialog

Parameters
titleTitle
textMessage
typethe type of message window
widgthe parent GtkWidget, if any

Definition at line 420 of file interface.c.

◆ cask()

gchar * cask ( char * question,
char * lab,
int id,
char * old,
GtkWidget * win )

enter a string - prepare the dialog

Parameters
questionMessage
labText to use for label
idthe required parameter id
oldthe initial value for the string
winthe parent GtkWidget, if any

Definition at line 770 of file interface.c.

◆ create_about_dialog()

G_MODULE_EXPORT void create_about_dialog ( GtkWidget * widg,
gpointer data )

create the about dialog

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 176 of file interface.c.

◆ dummy_ask_()

int dummy_ask_ ( char * question)

Ask to use dummy atoms or not from Fortran90.

Parameters
questionMessage

Definition at line 503 of file interface.c.

◆ env_name()

gchar * env_name ( project * this_proj,
int g,
int s,
int f,
GtkTextBuffer * buffer )

output the name of a coordination sphere

Parameters
this_projthe target project
gthe coordination (0 = total, 1 = partial)
sthe chemical species
fWith markup or not
bufferOutput in a GtkTextBuffer, or not if NULL

Definition at line 1022 of file interface.c.

◆ exact_name()

gchar * exact_name ( gchar * name)

short cut to print string without spaces

Parameters
namethe initial string

Definition at line 434 of file interface.c.

◆ iask()

int iask ( char * question,
char * lab,
int id,
GtkWidget * win )

enter an integer value - prepare the dialog

Parameters
questionMessage
labText to use for label
idthe required parameter id
winthe parent GtkWidget, if any

Definition at line 620 of file interface.c.

◆ init_atomes_analysis()

void init_atomes_analysis ( project * this_proj,
gboolean apply_defaults )

initialize analysis data structures for atomes

Parameters
this_projthe target project
apply_defaultsapply default parameters (1/0)

Definition at line 223 of file initc.c.

◆ init_data_()

void init_data_ ( int * nats,
int * nspc,
int * stps,
int * cid )

update project data using information from Fortran90

Parameters
natsnumber of atoms
nspcnumber of species
stpsnumber of steps
cidallocate chemistry data (1) or not (0)

Definition at line 807 of file interface.c.

◆ leaving_question()

G_MODULE_EXPORT gboolean leaving_question ( GtkWidget * widget,
GdkEvent * event,
gpointer data )

Leaving atomes ?

Parameters
widgetthe GtkWidget sending the signal
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 482 of file interface.c.

◆ prep_calc_actions()

void prep_calc_actions ( )

prepare analysis widgets

Definition at line 59 of file update_p.c.

◆ prepostcalc()

void prepostcalc ( GtkWidget * widg,
gboolean status,
int run,
int adv,
double opc )

to just before and just after running a calculation

Parameters
widgthe GtkWidget sending the signal
statuscalculation completed (1/0)
runcalculation id
advcalculation result
opcopacity

Definition at line 87 of file initc.c.

◆ print_info()

void print_info ( gchar * str,
gchar * stag,
GtkTextBuffer * buffer )

print information in GtkTextBuffer

Parameters
strthe text
stagthe tags
bufferthe GtkTextBuffer to print into

Definition at line 869 of file interface.c.

◆ show_error()

void show_error ( char * error,
int val,
GtkWidget * win )

show error message

Parameters
errorthe error message
valAdd contact info (1) or not (0)
winParent GtkWidget, if any

Definition at line 299 of file interface.c.

◆ show_error_()

void show_error_ ( char * error,
char * sub,
char * tab )

show error from Fortran90

Parameters
errorMessage
subFortan90 subroutine
tabFortran90 pointer

Definition at line 384 of file interface.c.

◆ show_error_with_trace()

void show_error_with_trace ( gchar * error,
atomes_error * this_error,
int act,
int val,
GtkWidget * win )

show error message

Parameters
errorthe error message
back_traceBacktrace of the error
actruntime action
valAdd contact info (1) or not (0)
winParent GtkWidget, if any

Definition at line 328 of file interface.c.

◆ show_info()

void show_info ( char * information,
int val,
GtkWidget * win )

add / show information message to widget

Parameters
informationMessage
valAdd contact info (1) or not (0)
winthe GtkWidget to modify

Definition at line 240 of file interface.c.

◆ show_info_()

void show_info_ ( double * valdij)

◆ show_pop()

GtkWidget * show_pop ( char * pop,
GtkWidget * pwin )

display pop information window

Parameters
popMessage
pwinParent widget, if any

Definition at line 447 of file interface.c.

◆ show_warning()

void show_warning ( char * warning,
GtkWidget * win )

show warning

Parameters
warningMessage
winParent GtkWidget, if any

Definition at line 266 of file interface.c.

◆ show_warning_()

void show_warning_ ( char * warning,
char * sub,
char * tab )

show warning from Fortran90

Parameters
warningMessage
subFortan90 subroutine
tabFortran90 pointer

Definition at line 281 of file interface.c.

◆ textcolor()

gchar * textcolor ( int i)

setup text color keyword

Parameters
icolor id

Definition at line 893 of file interface.c.

◆ update_after_calc()

void update_after_calc ( int calc)

update all curve plots in the workspace after a calculation

Parameters
calcanalysis id

Definition at line 1110 of file interface.c.