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

Functions to create the 'Model -> Atom(s)' submenu. More...

#include "global.h"
#include "glview.h"
#include "glwindow.h"
#include "color_box.h"
+ Include dependency graph for m_atoms.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void set_atom_parameter (GtkWidget *widg, gpointer data)
 set atom parameter - creating the dialog
 
gchar * label_atpts (project *this_proj, glwin *view, int id)
 prepare the text of a menu item in the 'Model -> Atom(s)' submenu
 
G_MODULE_EXPORT void atom_properties (GSimpleAction *action, GVariant *state, gpointer data)
 atom(s) propery callback GTK4
 
G_MODULE_EXPORT void show_hide_atoms (GSimpleAction *action, GVariant *parameter, gpointer data)
 handle the show/hide signal GTK4
 
G_MODULE_EXPORT void show_hide_labels (GSimpleAction *action, GVariant *parameter, gpointer data)
 handle the show/hide label signal GTK4
 
G_MODULE_EXPORT void show_hide_all_atom_labels (GSimpleAction *action, GVariant *parameter, gpointer data)
 handle the show/hide all labels GTK4
 
GMenu * label_atoms_submenu (glwin *view, int popm, int at, gboolean sensitive)
 create the 'Atom(s) -> Label(s)' submenu elements
 
GMenu * color_atoms_submenu (glwin *view, int popm, int at, gboolean sensitive)
 create the 'Atom(s) -> Color(s)' submenu elements
 
GMenu * show_atoms_submenu (glwin *view, int popm, int at, gboolean sensitive)
 create the 'Atom(s) -> Show' submenu elements
 
GMenu * menu_atoms (glwin *view, int popm, int at)
 create the 'Atom(s)' submenu elements
 

Detailed Description

Functions to create the 'Model -> Atom(s)' 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_atoms.c.

Function Documentation

◆ atom_properties()

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

atom(s) propery callback GTK4

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

Definition at line 573 of file w_atoms.c.

◆ color_atoms_submenu()

GMenu * color_atoms_submenu ( glwin * view,
int popm,
int at,
gboolean sensitive )

create the 'Atom(s) -> Color(s)' submenu elements

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
atatoms (0) or clones (1)
sensitivemenu item sensitivity

Definition at line 724 of file m_atoms.c.

◆ label_atoms_submenu()

GMenu * label_atoms_submenu ( glwin * view,
int popm,
int at,
gboolean sensitive )

create the 'Atom(s) -> Label(s)' submenu elements

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
atatoms (0) or clones (1)
sensitivemenu item sensitivity

Definition at line 683 of file m_atoms.c.

◆ label_atpts()

gchar * label_atpts ( project * this_proj,
glwin * view,
int id )

prepare the text of a menu item in the 'Model -> Atom(s)' submenu

Parameters
this_projthe target project
viewthe target glwin
idthe type of label to prepare

Definition at line 72 of file m_atoms.c.

◆ menu_atoms()

GMenu * menu_atoms ( glwin * view,
int popm,
int at )

create the 'Atom(s)' submenu elements

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

Definition at line 797 of file m_atoms.c.

◆ set_atom_parameter()

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

set atom parameter - creating the dialog

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 192 of file w_atoms.c.

◆ show_atoms_submenu()

GMenu * show_atoms_submenu ( glwin * view,
int popm,
int at,
gboolean sensitive )

create the 'Atom(s) -> Show' submenu elements

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
atatoms (0) or clones (1)
sensitivemenu item sensitivity

Definition at line 764 of file m_atoms.c.

◆ show_hide_all_atom_labels()

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

handle the show/hide all labels GTK4

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

Definition at line 652 of file m_atoms.c.

◆ show_hide_atoms()

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

handle the show/hide signal GTK4

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

Definition at line 529 of file m_atoms.c.

◆ show_hide_labels()

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

handle the show/hide label signal GTK4

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

Definition at line 587 of file m_atoms.c.