atomes 1.1.15
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] ={"Analysis", "Edition", "Input(s)"}
 
gchar * smodes [NSELECTION] ={"Atom/Bond", "Coordination Sphere", "Fragment", "Molecule", "Single Fragment", "Single Molecule", "Measures (Edition Mode Only)"}
 
gchar * invl [2] ={"Selection", "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 755 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 530 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 596 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 869 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 514 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 735 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 278 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 256 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 701 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 470 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 770 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 671 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 573 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 638 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 172 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 90 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 133 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 688 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 722 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 457 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 486 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 499 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 739 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 1131 of file w_volumes.c.

Variable Documentation

◆ input_types

char* input_types[NINPUTS]
Initial value:
= {"Classical: DL-POLY",
"Classical: LAMMPS",
"First-Principles: CPMD",
"First-Principles: CP2K",
"QM-MM: CPMD - [Soon]",
"QM-MM: CP2K - [Soon]"}

Definition at line 71 of file m_tools.c.

◆ invl

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

Definition at line 80 of file m_tools.c.

◆ modes

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

Definition at line 78 of file m_tools.c.

◆ smodes

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

Definition at line 79 of file m_tools.c.