atomes 1.1.16
atomes: an atomic scale modeling tool box
|
Functions to create the periodic table of the elements
Functions to select element from the periodic table.
More...
#include "global.h"
Go to the source code of this file.
Functions | |
gchar * | get_electronic_structure (int r, int c) |
get electronic structure for this (row,column) combination | |
int | is_in_table (int i, int j) |
is this (row,column) combination a chemical element ? | |
GtkWidget * | create_el_preview (int p, int a, int r, int c) |
create element preview | |
GtkWidget * | el_preview (int p, int a) |
create element preview CSS widget | |
G_MODULE_EXPORT gboolean | on_element_focus (GtkWidget *widget, GdkEvent *event, gpointer data) |
periodic table focus event callback GTK3 | |
G_MODULE_EXPORT void | run_periodic_table (GtkDialog *info, gint response_id, gpointer data) |
periodic table - running the dialog | |
G_MODULE_EXPORT void | get_element (GtkButton *but, gpointer data) |
get element from periodic table button | |
GtkWidget * | create_css_button (int p, int id, int r, int c) |
create CSS periodic table element button | |
GtkWidget * | create_css_group (int p, int i) |
create group CSS | |
GtkWidget * | css_element (int p, int i, int j) |
create CSS for the periodic table elements | |
GtkWidget * | periodic_table (int p, int a) |
create periodic table | |
int | get_atom_id_from_periodic_table (atom_search *asearch) |
get atom Z from selection in the periodic table | |
Variables | |
insertion_menu | mol [] |
atom_search * | periodic_search |
int | element |
dint | table_p [118] |
ColRGBA | rtcolo [11] |
gchar * | ptcolo [11] = {"#8EFF8E", "#F5FF53", "#FFB853", "#FF6C7D", "#F4A7FF", "#408538", "#B15EFF", "#8EE3FF", "#505DFD", "#7EFFEB", "#5FC0B0"} |
Functions to create the periodic table of the elements
Functions to select element from the periodic table.
Definition in file w_periodic.c.
GtkWidget * create_css_button | ( | int | p, |
int | id, | ||
int | r, | ||
int | c ) |
create CSS periodic table element button
p | the target project id |
id | is element table (1 / 0) |
r | row |
c | column |
Definition at line 422 of file w_periodic.c.
GtkWidget * create_css_group | ( | int | p, |
int | i ) |
create group CSS
p | the target project id |
i | the group |
Definition at line 576 of file w_periodic.c.
GtkWidget * create_el_preview | ( | int | p, |
int | a, | ||
int | r, | ||
int | c ) |
create element preview
p | the target project id |
a | target atom search id |
r | row |
c | column |
Definition at line 233 of file w_periodic.c.
GtkWidget * css_element | ( | int | p, |
int | i, | ||
int | j ) |
create CSS for the periodic table elements
p | target project id |
i | row |
j | column |
Definition at line 607 of file w_periodic.c.
GtkWidget * el_preview | ( | int | p, |
int | a ) |
create element preview CSS widget
p | the target project id |
a | target atom search id |
Definition at line 309 of file w_periodic.c.
int get_atom_id_from_periodic_table | ( | atom_search * | asearch | ) |
get atom Z from selection in the periodic table
asearch | target atom search, if any |
Definition at line 672 of file w_periodic.c.
gchar * get_electronic_structure | ( | int | r, |
int | c ) |
get electronic structure for this (row,column) combination
r | row |
c | column |
Definition at line 86 of file w_periodic.c.
G_MODULE_EXPORT void get_element | ( | GtkButton * | but, |
gpointer | data ) |
get element from periodic table button
but | the GtkButton sending the signal |
data | the associated data pointer |
Definition at line 405 of file w_periodic.c.
int is_in_table | ( | int | i, |
int | j ) |
is this (row,column) combination a chemical element ?
i | row |
j | column |
Definition at line 194 of file w_periodic.c.
G_MODULE_EXPORT gboolean on_element_focus | ( | GtkWidget * | widget, |
GdkEvent * | event, | ||
gpointer | data ) |
periodic table focus event callback GTK3
widget | the GtkWidget sending the signal |
event | the GdkEvent triggering the signal |
data | the associated data pointer |
Definition at line 352 of file w_periodic.c.
GtkWidget * periodic_table | ( | int | p, |
int | a ) |
create periodic table
p | target project id |
a | target atom search id |
Definition at line 632 of file w_periodic.c.
G_MODULE_EXPORT void run_periodic_table | ( | GtkDialog * | info, |
gint | response_id, | ||
gpointer | data ) |
periodic table - running the dialog
info | the GtkDialog sending the signal |
response_id | the response id |
data | the associated data pointer |
Definition at line 392 of file w_periodic.c.
int element |
Definition at line 61 of file w_periodic.c.
|
extern |
Definition at line 193 of file w_library.c.
atom_search* periodic_search |
Definition at line 60 of file w_periodic.c.
gchar* ptcolo[11] = {"#8EFF8E", "#F5FF53", "#FFB853", "#FF6C7D", "#F4A7FF", "#408538", "#B15EFF", "#8EE3FF", "#505DFD", "#7EFFEB", "#5FC0B0"} |
Definition at line 76 of file w_periodic.c.
ColRGBA rtcolo[11] |
Definition at line 65 of file w_periodic.c.
dint table_p[118] |
Definition at line 63 of file w_periodic.c.