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

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

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

Go to the source code of this file.

Functions

G_MODULE_EXPORT void window_bonds (GtkWidget *widg, gpointer data)
 create bond(s) configuration window(s) callback GTK3
 
G_MODULE_EXPORT void window_cuts (GtkWidget *widg, gpointer data)
 adjust bond cutoffs window callback GTK3
 
G_MODULE_EXPORT void set_bond_parameter (GtkWidget *widg, gpointer data)
 update bond parameter callback - creating the dialog GTK3
 
gchar * label_cutrab (project *this_proj, glwin *view, int id)
 prepare the text of a menu item in the 'Model -> Bond(s)' submenu
 
GMenu * create_bond_layout_section (glwin *view, gchar *str, gchar *key, int popm, int id, GCallback handler, gpointer data, gboolean sensitive)
 create a bond menu item GTK4
 
GMenu * menu_bonds (glwin *view, int popm, int at)
 create the 'Bond(s)' submenu GTK4
 

Detailed Description

Functions to create the 'Model -> Bond(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_bonds.c.

Function Documentation

◆ create_bond_layout_section()

GMenu * create_bond_layout_section ( glwin * view,
gchar * str,
gchar * key,
int popm,
int id,
GCallback handler,
gpointer data,
gboolean sensitive )

create a bond menu item GTK4

Parameters
viewthe target glwin
strmenu item name
keymenu item action key
popmmain app (0) or popup (1)
idmenu item action id
handlerthe associated callback
datathe associated data pointer
sensitivemenu item sensitivity

Definition at line 351 of file m_bonds.c.

◆ label_cutrab()

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

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

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

Definition at line 67 of file m_bonds.c.

◆ menu_bonds()

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

create the 'Bond(s)' submenu GTK4

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

Definition at line 367 of file m_bonds.c.

◆ set_bond_parameter()

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

update bond parameter callback - creating the dialog GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 324 of file w_bonds.c.

◆ window_bonds()

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

create bond(s) configuration window(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 373 of file w_bonds.c.

◆ window_cuts()

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

adjust bond cutoffs window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 272 of file w_cutoffs.c.