atomes 1.1.15
atomes: an atomic scale modeling tool box
|
General messaging functions. More...
#include "global.h"
#include "bind.h"
#include "callbacks.h"
#include "project.h"
#include "curve.h"
#include "affero.h"
Go to the source code of this file.
Functions | |
gchar * | substitute_string (gchar *init, gchar *o_motif, gchar *n_motif) |
substitute all patterns in string | |
GtkWidget * | addweb (int id) |
create a widget to present | |
G_MODULE_EXPORT void | create_about_dialog (GtkWidget *widg, gpointer data) |
create the about dialog | |
void | show_web (GtkWidget *dialog, int id) |
add / show web information to widget | |
void | show_info (char *information, int val, GtkWidget *win) |
add / show information message to widget | |
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_ (char *error, char *sub, char *tab) |
show error from Fortran90 | |
G_MODULE_EXPORT void | run_yes_no (GtkDialog *dial, gint response_id, gpointer data) |
ask yes or no for something: running dialog | |
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. | |
G_MODULE_EXPORT void | on_answer_changed (GtkWidget *widg, gpointer data) |
Handling the GtkComboBox in 'int iask'. | |
G_MODULE_EXPORT void | run_iask (GtkDialog *iask, gint response_id, gpointer data) |
enter an integer value - running the dialog | |
int | iask (char *question, char *lab, int id, GtkWidget *win) |
enter an integer value - prepare the dialog | |
G_MODULE_EXPORT void | run_cask (GtkDialog *cask, gint response_id, gpointer data) |
enter a string - running the dialog | |
gchar * | cask (char *question, char *lab, int id, char *old, GtkWidget *win) |
enter a string - prepare the dialog | |
void | init_data_ (int *nats, int *nspc, int *stps, int *cid) |
update project data using information from Fortran90 | |
void | spec_data_ (int *status, int *ind, int *atd, int *nsp, char *lbel, char *el_nme, double *amss, double *rdus, double *nscatt, double *xscatt) |
update project data using information from Fortran90 | |
void | print_info (gchar *str, gchar *stag, GtkTextBuffer *buffer) |
print information in GtkTextBuffer | |
gchar * | textcolor (int i) |
setup text color keyword | |
void | lattice_info_ (int *bid, double *volume, double *density, double dvects[3][3], double rvects[3][3], double mod[3], double ang[3], double f_to_c[3][3], double c_to_f[3][3]) |
lattice data from Fortran90 | |
void | send_chem_info_ (int prop[active_project -> nspec]) |
gchar * | env_name (project *this_proj, int g, int s, int f, GtkTextBuffer *buffer) |
ouput the name of a coordination sphere | |
void | update_after_calc (int calc) |
To update all curve plots in the workspace after a calculation. | |
Variables | |
GtkWidget * | answer |
gboolean | res_yes_no |
gchar * | field_init [3] |
gchar * | coord_type [3] |
gchar * | npt_type [4] |
gchar * | npt_info [3] |
GtkWidget * | answer_info |
int | res_int |
gchar * | res_char |
General messaging functions.
Definition in file interface.c.
GtkWidget * addweb | ( | int | id | ) |
create a widget to present
id | Add contact info (1) or not (0) |
Definition at line 135 of file interface.c.
gboolean ask_yes_no | ( | gchar * | title, |
gchar * | text, | ||
int | type, | ||
GtkWidget * | widg ) |
ask yes or no for something: prepare dialog
title | Title |
text | Message |
type | the type of message window |
widg | the parent GtkWidget, if any |
Definition at line 356 of file interface.c.
gchar * cask | ( | char * | question, |
char * | lab, | ||
int | id, | ||
char * | old, | ||
GtkWidget * | win ) |
enter a string - prepare the dialog
question | Message |
lab | Text to use for label |
id | the required parameter id |
old | the initial value for the string |
win | the parent GtkWidget, if any |
Definition at line 645 of file interface.c.
G_MODULE_EXPORT void create_about_dialog | ( | GtkWidget * | widg, |
gpointer | data ) |
create the about dialog
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 175 of file interface.c.
int dummy_ask_ | ( | char * | question | ) |
Ask to use dummy atoms or not from Fortran90.
question | Message |
Definition at line 439 of file interface.c.
gchar * env_name | ( | project * | this_proj, |
int | g, | ||
int | s, | ||
int | f, | ||
GtkTextBuffer * | buffer ) |
ouput the name of a coordination sphere
this_proj | the target project |
g | the coordination (0 = total, 1 = partial) |
s | the chemical species |
f | With markup or not |
buffer | Output in a GtkTextBuffer, or not if NULL |
Definition at line 889 of file interface.c.
gchar * exact_name | ( | gchar * | name | ) |
short cut to print string without spaces
name | the initial string |
Definition at line 370 of file interface.c.
int iask | ( | char * | question, |
char * | lab, | ||
int | id, | ||
GtkWidget * | win ) |
enter an integer value - prepare the dialog
question | Message |
lab | Text to use for label |
id | the required parameter id |
win | the parent GtkWidget, if any |
Definition at line 529 of file interface.c.
void init_data_ | ( | int * | nats, |
int * | nspc, | ||
int * | stps, | ||
int * | cid ) |
update project data using information from Fortran90
nats | number of atoms |
nspc | number of species |
stps | number of steps |
cid | allocate chemistry data (1) or not (0) |
Definition at line 682 of file interface.c.
void lattice_info_ | ( | int * | bid, |
double * | volume, | ||
double * | density, | ||
double | dvects[3][3], | ||
double | rvects[3][3], | ||
double | mod[3], | ||
double | ang[3], | ||
double | f_to_c[3][3], | ||
double | c_to_f[3][3] ) |
lattice data from Fortran90
bid | 0 or MD step if NPT |
volume | volume |
density | density |
dvects | direct space lattice vectors |
rvects | reciprocal lattice vectors |
mod | modulus of lattice vectors (a,b,c) |
ang | lattice angles (alpha, beta, gamma) |
f_to_c | fractional to cartesian matrix |
c_to_f | cartesian to fractional matrix |
Definition at line 816 of file interface.c.
G_MODULE_EXPORT gboolean leaving_question | ( | GtkWidget * | widget, |
GdkEvent * | event, | ||
gpointer | data ) |
Leaving atomes ?
widget | the GtkWidget sending the signal |
event | the GdkEvent triggering the signal |
data | the associated data pointer |
Definition at line 418 of file interface.c.
G_MODULE_EXPORT void on_answer_changed | ( | GtkWidget * | widg, |
gpointer | data ) |
Handling the GtkComboBox in 'int iask'.
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 467 of file interface.c.
void print_info | ( | gchar * | str, |
gchar * | stag, | ||
GtkTextBuffer * | buffer ) |
print information in GtkTextBuffer
str | the text |
stag | the tags |
buffer | the GtkTextBuffer to print to |
Definition at line 738 of file interface.c.
G_MODULE_EXPORT void run_cask | ( | GtkDialog * | cask, |
gint | response_id, | ||
gpointer | data ) |
enter a string - running the dialog
cask | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 604 of file interface.c.
G_MODULE_EXPORT void run_iask | ( | GtkDialog * | iask, |
gint | response_id, | ||
gpointer | data ) |
enter an integer value - running the dialog
iask | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 486 of file interface.c.
G_MODULE_EXPORT void run_yes_no | ( | GtkDialog * | dial, |
gint | response_id, | ||
gpointer | data ) |
ask yes or no for something: running dialog
dial | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 340 of file interface.c.
void send_chem_info_ | ( | int | prop[active_project -> nspec] | ) |
Definition at line 869 of file interface.c.
void show_error | ( | char * | error, |
int | val, | ||
GtkWidget * | win ) |
show error message
error | Message |
val | Add contact info (1) or not (0) |
win | Parent GtkWidget, if any |
Definition at line 293 of file interface.c.
void show_error_ | ( | char * | error, |
char * | sub, | ||
char * | tab ) |
show error from Fortran90
error | Message |
sub | Fortan90 subroutine |
tab | Fortran90 pointer |
Definition at line 320 of file interface.c.
void show_info | ( | char * | information, |
int | val, | ||
GtkWidget * | win ) |
add / show information message to widget
information | Message |
val | Add contact info (1) or not (0) |
win | the GtkWidget to modify |
Definition at line 234 of file interface.c.
GtkWidget * show_pop | ( | char * | pop, |
GtkWidget * | pwin ) |
display pop information window
pop | Message |
pwin | Parent widget, if any |
Definition at line 383 of file interface.c.
void show_warning | ( | char * | warning, |
GtkWidget * | win ) |
show warning
warning | Message |
win | Parent GtkWidget, if any |
Definition at line 260 of file interface.c.
void show_warning_ | ( | char * | warning, |
char * | sub, | ||
char * | tab ) |
show warning from Fortran90
warning | Message |
sub | Fortan90 subroutine |
tab | Fortran90 pointer |
Definition at line 275 of file interface.c.
void show_web | ( | GtkWidget * | dialog, |
int | id ) |
add / show web information to widget
dialog | the GtkWidget to modify |
id | Add contact info (1) or not (0) |
Definition at line 216 of file interface.c.
void spec_data_ | ( | int * | status, |
int * | ind, | ||
int * | atd, | ||
int * | nsp, | ||
char * | lbel, | ||
char * | el_nme, | ||
double * | amss, | ||
double * | rdus, | ||
double * | nscatt, | ||
double * | xscatt ) |
update project data using information from Fortran90
status | Update data (1) or not (0) |
ind | the chemical species |
atd | Z |
nsp | Number of atoms of this species |
lbel | Symbol |
el_nme | Element |
amss | M |
rdus | Radius |
nscatt | Neutron scattering length |
xscatt | X scattering length |
Definition at line 710 of file interface.c.
|
extern |
substitute all patterns in string
init | the initial string |
o_motif | the pattern to replace |
n_motif | the new pattern |
Definition at line 372 of file w_library.c.
gchar * textcolor | ( | int | i | ) |
void update_after_calc | ( | int | calc | ) |
To update all curve plots in the workspace after a calculation.
calc | Analysis id |
Definition at line 977 of file interface.c.
GtkWidget* answer |
Definition at line 80 of file interface.c.
GtkWidget* answer_info |
Definition at line 457 of file interface.c.
gchar* coord_type[3] |
Definition at line 447 of file interface.c.
|
extern |
Definition at line 4352 of file dlp_field.c.
gchar* npt_info[3] |
Definition at line 454 of file interface.c.
gchar* npt_type[4] |
Definition at line 450 of file interface.c.
gchar* res_char |
Definition at line 593 of file interface.c.
int res_int |
Definition at line 475 of file interface.c.
gboolean res_yes_no |
Definition at line 329 of file interface.c.