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

Functions to create the 'Tools' submenu. More...

#include "cell_edit.h"
#include "atom_edit.h"
#include "submenus.h"
Include dependency graph for m_tools.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void window_measures (GtkWidget *widg, gpointer data)
 create the measurements window
G_MODULE_EXPORT void window_volumes (GtkWidget *widg, gpointer data)
 create the 'Volumes' window callback
G_MODULE_EXPORT void create_field (GtkWidget *widg, gpointer data)
 start an input creation assistant
gboolean spin (gpointer data)
 spin
void check_hidden_visible (project *this_proj)
 check how many atom(s) are visible
void set_motion_sensitive (glwin *view, int status)
 change motion parameters following a change in the mouse mode
G_MODULE_EXPORT void set_selection_mode (GtkWidget *widg, gpointer data)
 set selection mode callback
G_MODULE_EXPORT void set_mode (GtkWidget *widg, gpointer data)
 set mouse mode callback
void invert_visible (project *this_proj)
 invert visible atom(s)
G_MODULE_EXPORT void invert_this (GtkWidget *widg, gpointer data)
 invert selection or visible callback
G_MODULE_EXPORT void to_window_measures (GSimpleAction *action, GVariant *parameter, gpointer data)
 open the measurement window callback GTK4
GMenu * measure_section (glwin *view, int popm)
 create the 'Tools -> Measures' menu item GTK4
G_MODULE_EXPORT void to_window_volumes (GSimpleAction *action, GVariant *parameter, gpointer data)
 open the volumes window callback GTK4
GMenu * volume_section (glwin *view, int popm)
 create the 'Tools -> Volumes' menu item GTK4
GMenu * edit_section (glwin *view, int popm)
 create the 'Tools -> Edit' submenu GTK4
G_MODULE_EXPORT void change_mouse_mode_radio (GSimpleAction *action, GVariant *parameter, gpointer data)
 change mouse radio menu item callback GTK4
GMenu * mouse_mode_menu (glwin *view, int popm)
 create the 'Tools -> Mouse Mode' submenu GTK4
G_MODULE_EXPORT void change_sel_mode_radio (GSimpleAction *action, GVariant *parameter, gpointer data)
 change selection mode callback GTK4
GMenu * selection_mode_menu (glwin *view, int popm)
 create the 'Tools -> Selection Mode' submenu GTK4
GMenu * modes_section (glwin *view, int popm)
 create the 'Tools -> * Modes' submenus GTK4
G_MODULE_EXPORT void to_create_field (GSimpleAction *action, GVariant *parameter, gpointer data)
 run MD input assistant callback GTK4
GMenu * md_menu (glwin *view, int popm)
 create the 'Molecular Dynamics' submenu GTK4
G_MODULE_EXPORT void to_invert_this (GSimpleAction *action, GVariant *parameter, gpointer data)
 invert this callback GTK4
GMenu * inv_menu (glwin *view, int popm)
 create the 'Tools -> Invert' submenu GTK4
GMenu * add_section_item_with_menu (glwin *view, gchar *item_name, GMenu *men)
 append a new menu item with a new submenu
GMenu * menu_tools (glwin *view, int popm)
 create the 'Tools' submenu - GTK4

Variables

char * input_types [NINPUTS]
gchar * modes [3] ={i18n("Analysis "), i18n("Edition "), i18n("Input(s)")}
gchar * smodes [NSELECTION]
gchar * invl [2] ={i18n("Selection"), i18n("Visible/Hidden")}

Detailed Description

Functions to create the 'Tools' submenu.

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 m_tools.c.

Function Documentation

◆ add_section_item_with_menu()

GMenu * add_section_item_with_menu ( glwin * view,
gchar * item_name,
GMenu * men )

append a new menu item with a new submenu

Parameters
viewthe target glwin
item_namethe new menu item label
menthe menu item new submenu

Definition at line 763 of file m_tools.c.

◆ change_mouse_mode_radio()

G_MODULE_EXPORT void change_mouse_mode_radio ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

change mouse radio menu item callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 538 of file m_tools.c.

◆ change_sel_mode_radio()

G_MODULE_EXPORT void change_sel_mode_radio ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

change selection mode callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 604 of file m_tools.c.

◆ check_hidden_visible()

void check_hidden_visible ( project * this_proj)
extern

check how many atom(s) are visible

Parameters
this_projthe target project

Definition at line 888 of file popup.c.

◆ create_field()

G_MODULE_EXPORT void create_field ( GtkWidget * widg,
gpointer data )
extern

start an input creation assistant

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 308 of file calc.c.

◆ edit_section()

GMenu * edit_section ( glwin * view,
int popm )

create the 'Tools -> Edit' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 522 of file m_tools.c.

◆ inv_menu()

GMenu * inv_menu ( glwin * view,
int popm )

create the 'Tools -> Invert' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 743 of file m_tools.c.

◆ invert_this()

G_MODULE_EXPORT void invert_this ( GtkWidget * widg,
gpointer data )

invert selection or visible callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 286 of file m_tools.c.

◆ invert_visible()

void invert_visible ( project * this_proj)

invert visible atom(s)

Parameters
this_projthe target project

Definition at line 264 of file m_tools.c.

◆ md_menu()

GMenu * md_menu ( glwin * view,
int popm )

create the 'Molecular Dynamics' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 709 of file m_tools.c.

◆ measure_section()

GMenu * measure_section ( glwin * view,
int popm )

create the 'Tools -> Measures' menu item GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 478 of file m_tools.c.

◆ menu_tools()

GMenu * menu_tools ( glwin * view,
int popm )

create the 'Tools' submenu - GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 778 of file m_tools.c.

◆ modes_section()

GMenu * modes_section ( glwin * view,
int popm )

create the 'Tools -> * Modes' submenus GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 679 of file m_tools.c.

◆ mouse_mode_menu()

GMenu * mouse_mode_menu ( glwin * view,
int popm )

create the 'Tools -> Mouse Mode' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 581 of file m_tools.c.

◆ selection_mode_menu()

GMenu * selection_mode_menu ( glwin * view,
int popm )

create the 'Tools -> Selection Mode' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 646 of file m_tools.c.

◆ set_mode()

G_MODULE_EXPORT void set_mode ( GtkWidget * widg,
gpointer data )

set mouse mode callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 180 of file m_tools.c.

◆ set_motion_sensitive()

void set_motion_sensitive ( glwin * view,
int status )

change motion parameters following a change in the mouse mode

Parameters
viewthe target glwin
statusinitialize or restore spin

Definition at line 98 of file m_tools.c.

◆ set_selection_mode()

G_MODULE_EXPORT void set_selection_mode ( GtkWidget * widg,
gpointer data )

set selection mode callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 141 of file m_tools.c.

◆ spin()

gboolean spin ( gpointer data)
extern

spin

Parameters
datathe associated data pointer

Definition at line 56 of file w_spiner.c.

◆ to_create_field()

G_MODULE_EXPORT void to_create_field ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

run MD input assistant callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 696 of file m_tools.c.

◆ to_invert_this()

G_MODULE_EXPORT void to_invert_this ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

invert this callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 730 of file m_tools.c.

◆ to_window_measures()

G_MODULE_EXPORT void to_window_measures ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

open the measurement window callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 465 of file m_tools.c.

◆ to_window_volumes()

G_MODULE_EXPORT void to_window_volumes ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

open the volumes window callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 494 of file m_tools.c.

◆ volume_section()

GMenu * volume_section ( glwin * view,
int popm )

create the 'Tools -> Volumes' menu item GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 507 of file m_tools.c.

◆ window_measures()

G_MODULE_EXPORT void window_measures ( GtkWidget * widg,
gpointer data )
extern

create the measurements window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 734 of file w_measures.c.

◆ window_volumes()

G_MODULE_EXPORT void window_volumes ( GtkWidget * widg,
gpointer data )
extern

create the 'Volumes' window callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1123 of file w_volumes.c.

Variable Documentation

◆ input_types

char* input_types[NINPUTS]
Initial value:
= {i18n("Classical: DL-POLY"),
i18n("Classical: LAMMPS"),
i18n("First-Principles: CPMD"),
i18n("First-Principles: CP2K"),
i18n("QM-MM: CPMD - [Soon]"),
i18n("QM-MM: CP2K - [Soon]")}
#define i18n(String)
Definition global.c:80

Definition at line 71 of file m_tools.c.

◆ invl

gchar* invl[2] ={i18n("Selection"), i18n("Visible/Hidden")}

Definition at line 88 of file m_tools.c.

◆ modes

gchar* modes[3] ={i18n("Analysis "), i18n("Edition "), i18n("Input(s)")}

Definition at line 78 of file m_tools.c.

◆ smodes

gchar* smodes[NSELECTION]
Initial value:
={i18n("Atom/Bond"),
i18n("Coordination Sphere"),
i18n("Fragment"),
i18n("Molecule"),
i18n("Single Fragment"),
i18n("Single Molecule"),
i18n("Measures (Edition Mode Only)")}

Definition at line 80 of file m_tools.c.