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

Functions to create the 'Chemistry -> Coordination' submenu. More...

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

Go to the source code of this file.

Functions

G_MODULE_EXPORT void coord_properties (GtkWidget *widg, gpointer data)
 create the environments configuration window
 
gboolean is_coord_in_menu (int id, project *this_proj)
 is this coordination in a menu ?
 
G_MODULE_EXPORT void show_hide_coord (GtkWidget *widg, gpointer data)
 show/hide coordination callback GTK3
 
GMenu * color_item (glwin *view, gchar *act, int popm, int id, GCallback handler, gpointer data)
 create a submenu to attach a color palette
 
GMenu * menu_show_coord (glwin *view, int popm, int id, int mid)
 create the coordination 'Show' or 'Color' submenus
 
G_MODULE_EXPORT void to_coord_properties (GSimpleAction *action, GVariant *parameter, gpointer data)
 open advancedd coordination properties GTK4 callback
 
GMenu * menu_show_frag_mol (glwin *view, int popm, int id, int mid)
 create a fragment/molecule coordination submenu
 
GMenu * menu_show_rings (glwin *view, int popm, int id, int mid)
 create a ring coordination submenu
 
GMenu * add_menu_coord (glwin *view, int popm, int id)
 create a coordination type submenu
 
GMenu * menu_coord (glwin *view, int popm)
 create the 'Coordination' submenu GTK4
 
GMenu * menu_rings (glwin *view, int popm)
 create the 'Ring(s)' submenu GTK4
 

Detailed Description

Functions to create the 'Chemistry -> Coordination' 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_coord.c.

Function Documentation

◆ add_menu_coord()

GMenu * add_menu_coord ( glwin * view,
int popm,
int id )

create a coordination type submenu

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

Definition at line 652 of file m_coord.c.

◆ color_item()

GMenu * color_item ( glwin * view,
gchar * act,
int popm,
int id,
GCallback handler,
gpointer data )

create a submenu to attach a color palette

Parameters
viewthe target glwin
actthe custom attribute to attach a widget
popmmain app (0) or popup (1)
idid number
handlerthe associated callback
datathe associated data pointer

Definition at line 479 of file m_coord.c.

◆ coord_properties()

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

create the environments configuration window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1469 of file w_coord.c.

◆ is_coord_in_menu()

gboolean is_coord_in_menu ( int id,
project * this_proj )

is this coordination in a menu ?

Parameters
idthe coordination type
this_projthe target project

Definition at line 74 of file m_coord.c.

◆ menu_coord()

GMenu * menu_coord ( glwin * view,
int popm )

create the 'Coordination' submenu GTK4

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

Definition at line 689 of file m_coord.c.

◆ menu_rings()

GMenu * menu_rings ( glwin * view,
int popm )

create the 'Ring(s)' submenu GTK4

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

Definition at line 705 of file m_coord.c.

◆ menu_show_coord()

GMenu * menu_show_coord ( glwin * view,
int popm,
int id,
int mid )

create the coordination 'Show' or 'Color' submenus

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
idcoordination type
mid0 = show, 1 = color

Definition at line 497 of file m_coord.c.

◆ menu_show_frag_mol()

GMenu * menu_show_frag_mol ( glwin * view,
int popm,
int id,
int mid )

create a fragment/molecule coordination submenu

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
idcoordination type
mid0 = show, 1 = color

Definition at line 572 of file m_coord.c.

◆ menu_show_rings()

GMenu * menu_show_rings ( glwin * view,
int popm,
int id,
int mid )

create a ring coordination submenu

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
idcoordination type
mid0 = show, 1 = color

Definition at line 611 of file m_coord.c.

◆ show_hide_coord()

G_MODULE_EXPORT void show_hide_coord ( GtkWidget * widg,
gpointer data )

show/hide coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 106 of file m_coord.c.

◆ to_coord_properties()

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

open advancedd coordination properties GTK4 callback

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

Definition at line 557 of file m_coord.c.