atomes 1.1.15
atomes: an atomic scale modeling tool box
|
GUI of the main window
Menu elements of the workspace menu
Creation of menu items, actions, used in the entire atomes software.
More...
#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "workspace.h"
Go to the source code of this file.
Functions | |
GtkWidget * | curvetbox () |
create the curve tool box window | |
GtkWidget * | work_menu (int p, int c) |
create the workspace popup menu | |
G_MODULE_EXPORT void | compute_this_prop (GtkWidget *widg, gpointer data) |
to compute the 'calc_to_compute' | |
G_MODULE_EXPORT void | on_create_new_project (GtkWidget *widg, gpointer data) |
create a new project | |
int | get_atom_id_from_periodic_table (atom_search *asearch) |
get atom Z from selection in the periodic table | |
G_MODULE_EXPORT void | leaving_from_menu (GtkWidget *widg, gpointer data) |
leaving atomes ? | |
G_MODULE_EXPORT void | on_edit_activate (GtkWidget *widg, gpointer data) |
create an edition dialog - prepare the dialog | |
G_MODULE_EXPORT void | on_calc_activate (GtkWidget *widg, gpointer data) |
create a calculation dialog - prepare the dialog | |
GtkWidget * | shortcuts_window (int sections, int group_by_section[sections], int groups, int shortcut_by_group[groups], gchar *section_names[sections], gchar *group_names[groups], shortcuts shortcs[]) |
Create the shortcuts information window. | |
void | clean_view () |
clean the main window | |
void | view_buffer (GtkTextBuffer *buffer) |
set a text buffer in the main window or an image | |
void | atomes_key_pressed (guint keyval, GdkModifierType state) |
main window key actions callbacks | |
void | add_action (GSimpleAction *action) |
add action to the main window action map | |
void | remove_action (gchar *action_name) |
add action from the main window action map | |
void | remove_edition_actions () |
remove all edition actions | |
void | remove_edition_and_analyze_actions () |
remove all edition and analysis action | |
G_MODULE_EXPORT void | show_periodic_table (GtkWidget *widg, gpointer data) |
show the periodic table of the elements | |
G_MODULE_EXPORT void | atomes_menu_bar_action (GSimpleAction *action, GVariant *parameter, gpointer data) |
atomes menu bar actions | |
GIcon * | get_gicon_from_data (int format, const gchar *icon) |
create a new icon using data | |
void | widget_add_action (GSimpleActionGroup *action_group, const gchar *act, GCallback handler, gpointer data, gboolean check, gboolean status, gboolean radio, const gchar *stat) |
add an action to an action group | |
GMenuItem * | create_gmenu_item (const gchar *label, const gchar *action, const gchar *accel, const gchar *custom, int format, const gchar *icon, gboolean check, gboolean status, gboolean radio, const gchar *rstatus) |
create menu item | |
void | append_submenu (GMenu *menu, const gchar *label, GMenu *submenu) |
append a GMenuItem with a subenu to a GMenu, and use markup for the GMenuItem | |
void | append_menu_item (GMenu *menu, const gchar *label, const gchar *action, const gchar *accel, const gchar *custom, int format, const gchar *icon, gboolean check, gboolean status, gboolean radio, const gchar *rstatus) |
create a menu item, then append it to a menu | |
GMenu * | workspace_section (gchar *act, int pop) |
create the workspace section | |
GMenu * | port_section (gchar *act, int pop, int port) |
create the import/export menu items | |
GMenu * | project_section (gchar *act, int pop_up, int proj, int calc) |
create the project section | |
GMenu * | import_section (gchar *act) |
create the 'Import' submenu | |
GMenu * | quit_section (gchar *act) |
create the 'Quit' menu item | |
GMenu * | workspace_title () |
create the 'Workspace' menu item | |
GMenu * | project_title (int pop_up, int proj) |
create project title menu item | |
GMenu * | create_workspace_menu (gchar *act, int pop_up, int proj, int calc) |
create atomes 'workspace' menu | |
GMenu * | create_edit_menu () |
create atomes 'edit' menu | |
GMenu * | tool_box_section () |
create toolboxes menu item | |
GMenu * | create_analyze_menu () |
create atomes 'analyze' menu | |
GMenu * | create_help_menu () |
create atomes 'help' menu | |
GMenu * | atomes_menu_bar () |
create atomes menu bar | |
GtkWidget * | create_main_window (GApplication *atomes) |
create the main application window | |
Variables | |
int | objects [3] |
int * | object_was_selected [3] |
int ** | tmp_object_id [3] |
gchar * | dots [NDOTS] |
gchar * | calc_img [NCALCS-2] |
gchar * | graph_img [NGRAPHS] |
atomes_action | edition_acts [] |
atomes_action | analyze_acts [] |
char * | calc_name [NCALCS-2] |
char * | graph_name [NGRAPHS] |
tint | cut_sel |
tint | cut_lab |
dint | davect [9] |
ColRGBA | std [6] |
shortcuts | main_shortcuts [] |
gchar * | main_section_names [] = { "Main" } |
int | main_group_by_section [] = { 3 } |
gchar * | main_group_names [] = { "General", "Workspace", "Projects" } |
int | main_shortcut_by_group [] = { 3, 3, 2 } |
GUI of the main window
Menu elements of the workspace menu
Creation of menu items, actions, used in the entire atomes software.
Definition in file gui.c.
void add_action | ( | GSimpleAction * | action | ) |
void append_menu_item | ( | GMenu * | menu, |
const gchar * | label, | ||
const gchar * | action, | ||
const gchar * | accel, | ||
const gchar * | custom, | ||
int | format, | ||
const gchar * | icon, | ||
gboolean | check, | ||
gboolean | status, | ||
gboolean | radio, | ||
const gchar * | rstatus ) |
create a menu item, then append it to a menu
menu | the menu to insert the item in |
label | Label of the menu item |
action | Action of the menu item |
accel | Keyboard accelerator, if any |
custom | Custom menu item ? NULL otherwise |
format | Image format if not IMG_NONE |
icon | Image data if not NULL |
check | Check menu item ? |
status | If check then status |
radio | Radio menu item ? |
rstatus | If radio then variant parameter |
void append_submenu | ( | GMenu * | menu, |
const gchar * | label, | ||
GMenu * | submenu ) |
void atomes_key_pressed | ( | guint | keyval, |
GdkModifierType | state ) |
G_MODULE_EXPORT void atomes_menu_bar_action | ( | GSimpleAction * | action, |
GVariant * | parameter, | ||
gpointer | data ) |
|
extern |
to compute the 'calc_to_compute'
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 105 of file work_menu.c.
GMenuItem * create_gmenu_item | ( | const gchar * | label, |
const gchar * | action, | ||
const gchar * | accel, | ||
const gchar * | custom, | ||
int | format, | ||
const gchar * | icon, | ||
gboolean | check, | ||
gboolean | status, | ||
gboolean | radio, | ||
const gchar * | rstatus ) |
create menu item
label | Label of the menu item |
action | Action of the menu item |
accel | Keyboard accelerator, if any |
custom | Custom menu item ? NULL otherwise |
format | Image format if not IMG_NONE |
icon | Image data if not NULL |
check | Check menu item ? |
status | If check then status |
radio | Radio menu item ? |
rstatus | If radio then variant parameter |
GtkWidget * create_main_window | ( | GApplication * | atomes | ) |
GMenu * create_workspace_menu | ( | gchar * | act, |
int | pop_up, | ||
int | proj, | ||
int | calc ) |
|
extern |
|
extern |
get atom Z from selection in the periodic table
asearch | target atom search, if any |
Definition at line 672 of file w_periodic.c.
GIcon * get_gicon_from_data | ( | int | format, |
const gchar * | icon ) |
GMenu * import_section | ( | gchar * | act | ) |
|
extern |
leaving atomes ?
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 86 of file work_menu.c.
|
extern |
create a calculation dialog - prepare the dialog
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 1387 of file calc_menu.c.
|
extern |
create a new project
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 62 of file work_menu.c.
|
extern |
create an edition dialog - prepare the dialog
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 835 of file edit_menu.c.
GMenu * port_section | ( | gchar * | act, |
int | pop, | ||
int | port ) |
GMenu * project_section | ( | gchar * | act, |
int | pop_up, | ||
int | proj, | ||
int | calc ) |
GMenu * project_title | ( | int | pop_up, |
int | proj ) |
GMenu * quit_section | ( | gchar * | act | ) |
void remove_action | ( | gchar * | action_name | ) |
void remove_edition_and_analyze_actions | ( | ) |
GtkWidget * shortcuts_window | ( | int | sections, |
int | group_by_section[sections], | ||
int | groups, | ||
int | shortcut_by_group[groups], | ||
gchar * | section_names[sections], | ||
gchar * | group_names[groups], | ||
shortcuts | shortcs[] ) |
G_MODULE_EXPORT void show_periodic_table | ( | GtkWidget * | widg, |
gpointer | data ) |
void view_buffer | ( | GtkTextBuffer * | buffer | ) |
void widget_add_action | ( | GSimpleActionGroup * | action_group, |
const gchar * | act, | ||
GCallback | handler, | ||
gpointer | data, | ||
gboolean | check, | ||
gboolean | status, | ||
gboolean | radio, | ||
const gchar * | stat ) |
add an action to an action group
action_group | the action group to add an action to |
act | the name of the action to add |
handler | the associated callback |
data | the associated data pointer |
check | is the action a check (1/0) |
status | if check or radio, status of the action (1/0) |
radio | is the action a radio (1/0) |
stat | if radio variant parameter of the action |
|
extern |
create the workspace popup menu
p | project id, or -1 |
c | calculation id, or -1 |
Definition at line 202 of file work_menu.c.
GMenu * workspace_section | ( | gchar * | act, |
int | pop ) |
atomes_action analyze_acts[] |
char* calc_name[NCALCS-2] |
atomes_action edition_acts[] |
char* graph_name[NGRAPHS] |
gchar* main_group_names[] = { "General", "Workspace", "Projects" } |
shortcuts main_shortcuts[] |
|
extern |
Definition at line 213 of file selection.c.
|
extern |
Definition at line 212 of file selection.c.
|
extern |
Definition at line 214 of file selection.c.