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

Functions to create the OpenGL window popup menus: More...

#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "workspace.h"
#include "project.h"
#include "glview.h"
#include "glwindow.h"
#include "submenus.h"
#include "color_box.h"
#include "bind.h"
#include "atom_edit.h"
+ Include dependency graph for popup.c:

Go to the source code of this file.

Macros

#define CONTEXTACT   12
 

Functions

atom_searchallocate_atom_search (int proj, int action, int searchid, int tsize)
 allocate atom search data structure
 
void check_all_trees (project *this_proj)
 check all search trees
 
int action_atoms_from_project (project *this_proj, atom_search *asearch, gboolean visible)
 apply atom edition action to project (motion, remove, replace, insert, random move)
 
G_MODULE_EXPORT void opengl_advanced (GtkWidget *widg, gpointer data)
 create OpenGL rendering advanced window
 
G_MODULE_EXPORT void render_gl_image (GtkWidget *widg, gpointer data)
 render image from the OpenGL window
 
G_MODULE_EXPORT void coord_properties (GtkWidget *widg, gpointer data)
 create the environments configuration window
 
void apply_project (gboolean showtools)
 get project ready for calculation and initialize the OpenGL window
 
GtkWidget * field_atom_menu (int p, int s, int a, int f)
 
void reset_coordinates (project *this_proj, int status)
 reset transformation and restore saved atomic coordinates
 
vec3_t get_bary (project *this_proj, int status)
 get barycenter of atomic coordinates
 
void prepare_to_instert (gchar *key, project *this_proj, atom_search *asearch, gboolean visible)
 prepare to insert something
 
atom_in_selectionnew_atom_in_selection (int id, int sp)
 create a selected atom
 
void duplicate_material_and_lightning (image *new_img, image *old_img)
 copy the material and lightning parameters of an image data structure
 
G_MODULE_EXPORT void view_shortcuts (GSimpleAction *action, GVariant *parameter, gpointer data)
 
int get_to_be_selected (glwin *view)
 find which atom(s) are to be selected
 
G_MODULE_EXPORT void set_full_screen (GtkWidget *widg, gpointer data)
 set full screen callback GTK3
 
int get_style (gchar *str)
 get OpenGL rendering style id
 
atom_searchfree_this_search_data (atom_search *this_search)
 free atom search data structure
 
void to_remove_this_object (int type, gpointer data)
 remove a type of object
 
gchar * get_object_from_action (GSimpleAction *action)
 get object name from action name GTK4
 
void to_replace_this_object (int type, GtkWidget *widg, gpointer data)
 replace a type of object GTK3
 
void copy_bond_selection ()
 copy bond selection
 
void remove_object ()
 remove object using 'remove_search'
 
G_MODULE_EXPORT void remove_this_atom (GtkWidget *widg, gpointer data)
 remove this atom callback GTK3
 
void insert_object (int action, gpointer data)
 insert object
 
G_MODULE_EXPORT void add_object (GtkWidget *widg, gpointer data)
 add object call back GTK3
 
G_MODULE_EXPORT void to_add_object (GtkWidget *widg, gpointer data)
 to add object callback GTK3
 
G_MODULE_EXPORT void replace_this_atom (GtkWidget *widg, gpointer data)
 replace this atom callback GTK3
 
G_MODULE_EXPORT void copy_this_atom (GtkWidget *widg, gpointer data)
 copy this atom callback GTK3
 
void check_hidden_visible (project *this_proj)
 check how many atom(s) are visible
 
G_MODULE_EXPORT void show_hide_this_atom (GtkWidget *widg, gpointer data)
 show / hide this atom callback GTK3
 
int check_label_numbers (project *this_proj, int types)
 check how many atom label(s) are visible
 
G_MODULE_EXPORT void label_unlabel_this_atom (GtkWidget *widg, gpointer data)
 label / unlabel this atom callback GTK3
 
G_MODULE_EXPORT void select_unselect_this_atom (GtkWidget *widg, gpointer data)
 select / unselect this atom callback GTK3
 
G_MODULE_EXPORT void style_this_atom (GtkWidget *widg, gpointer data)
 change OpenGL rendering style for this atom callback GTK3
 
G_MODULE_EXPORT void remove_the_atoms (GtkWidget *widg, gpointer data)
 remove selected atom(s) callback GTK3
 
G_MODULE_EXPORT void replace_the_atoms (GtkWidget *widg, gpointer data)
 replace selected atom(s) callback GTK3
 
G_MODULE_EXPORT void copy_the_atoms (GtkWidget *widg, gpointer data)
 copy selected atom(s) callback GTK3
 
G_MODULE_EXPORT void show_hide_others (GtkWidget *widg, gpointer data)
 show all hidden / hide all visible atom(s) callback GTK3
 
G_MODULE_EXPORT void show_hide_the_atoms (GtkWidget *widg, gpointer data)
 show / hide a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void label_unlabel_atoms (GtkWidget *widg, gpointer data)
 label / unlabel a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void select_unselect_atoms (GtkWidget *widg, gpointer data)
 select / unselect a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void style_the_atoms (GtkWidget *widg, gpointer data)
 change the OpenGL rendering style of a type of atom(s) callback GTK3
 
G_MODULE_EXPORT void remove_the_coord (GtkWidget *widg, gpointer data)
 remove a type of coordination callback GTK3
 
G_MODULE_EXPORT void replace_the_coord (GtkWidget *widg, gpointer data)
 replace a coordination callback GTK3
 
G_MODULE_EXPORT void copy_the_coord (GtkWidget *widg, gpointer data)
 copy a coordination callback GTK3
 
G_MODULE_EXPORT void show_hide_the_coord (GtkWidget *widg, gpointer data)
 show / hide a type of coordination callback GTK3
 
G_MODULE_EXPORT void label_unlabel_coord (GtkWidget *widg, gpointer data)
 label / unlabel a type of coordination callback GTK3
 
G_MODULE_EXPORT void select_unselect_coord (GtkWidget *widg, gpointer data)
 select / unselect a type of coordination callback GTK3
 
G_MODULE_EXPORT void style_the_coord (GtkWidget *widg, gpointer data)
 change OpenGL rendering style for a type of coordination callback GTK3
 
void create_new_project_using_data (atom_selection *selection)
 create new project using an atom selection
 
G_MODULE_EXPORT void edit_in_new_project (GtkWidget *widg, gpointer data)
 create new project using selection callback GTK3
 
G_MODULE_EXPORT void edit_coord (GtkWidget *widg, gpointer data)
 create new project using coordination type and id callback GTK3
 
G_MODULE_EXPORT void edit_atoms (GtkWidget *widg, gpointer data)
 create new project using atomic species callback GTK3
 
G_MODULE_EXPORT void select_action_for_all (GtkWidget *widg, gpointer data)
 select action for all object(s) callback GTK3
 
G_MODULE_EXPORT void select_action_for_this_bond (GtkWidget *widg, gpointer data)
 selection action for this bond callback GTK3
 
G_MODULE_EXPORT void select_action_for_all_bonds (GtkWidget *widg, gpointer data)
 select action for all bonds based on menu item id callback GTK3
 
void add_style_sub_menu (GtkWidget *item, GCallback handler, gpointer data)
 add style submenu to menu item GTK3
 
void add_edition_sub_menu (GtkWidget *item, GCallback handler, gpointer data)
 add edition submenu to menu item GTK3
 
GtkWidget * create_selection_item (glwin *view, gchar *str, int mid, int gid, int cid, int aoc, GCallback handler, gpointer data)
 create new menu item for the popup menu GTK3
 
GtkWidget * selection_menu (glwin *view, int ati, int bti, int aoc, int mid, GCallback handler_a, GCallback handler_b, GCallback handler_c)
 create popup submenu GTK3
 
void popup_selection (glwin *view, double ptx, double pty, int spe, int mmod, int ati, int bti, int aoc)
 create the contextual popup menu, right click on atom or bond
 
G_MODULE_EXPORT void reset_coords (GtkWidget *widg, gpointer data)
 reset coordinates menu item callback GTK3
 
G_MODULE_EXPORT void turn_rebuild (GtkWidget *widg, gpointer data)
 rebuild menu items callback GTK3
 
G_MODULE_EXPORT void to_center_this_molecule (GtkWidget *widg, gpointer data)
 center this molecule menu item callback GTK4
 
void popup_main_menu (glwin *view, double ptx, double pty)
 create the OpenGL window popup menu
 

Variables

insertion_menu mol []
 
int inserted_from_lib
 
atom_searchremove_search = NULL
 
atom_searchinsert_search = NULL
 
int selected_atom
 
int selected_btom
 
int selected_aspec
 
int selected_bspec
 
int is_selected
 
int is_labelled
 
int is_filled
 
atom_selectionbond_selection = NULL
 
tint atoid [CONTEXTACT][4]
 
dint btoid
 
gboolean insert_this_object
 
gboolean wait_for_style = FALSE
 
gchar * mot [2][2]
 

Detailed Description

Functions to create the OpenGL window popup menus:

Definition in file popup.c.

Macro Definition Documentation

◆ CONTEXTACT

#define CONTEXTACT   12

Definition at line 152 of file popup.c.

Function Documentation

◆ action_atoms_from_project()

int action_atoms_from_project ( project * this_proj,
atom_search * asearch,
gboolean visible )
extern

apply atom edition action to project (motion, remove, replace, insert, random move)

Parameters
this_projthe target project
asearchthe target atom search
visibleis the 'model edition' window visible (1/0)

Definition at line 206 of file atom_action.c.

◆ add_edition_sub_menu()

void add_edition_sub_menu ( GtkWidget * item,
GCallback handler,
gpointer data )

add edition submenu to menu item GTK3

Parameters
itemthe menu item to attach the new menu to
handlerthe associated callback
datathe associated data pointer

Definition at line 3111 of file popup.c.

◆ add_object()

G_MODULE_EXPORT void add_object ( GtkWidget * widg,
gpointer data )

add object call back GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 713 of file popup.c.

◆ add_style_sub_menu()

void add_style_sub_menu ( GtkWidget * item,
GCallback handler,
gpointer data )

add style submenu to menu item GTK3

Parameters
itemthe menu item to attach the new menu to
handlerthe associated callback
datathe associated data pointer

Definition at line 3050 of file popup.c.

◆ allocate_atom_search()

atom_search * allocate_atom_search ( int proj,
int action,
int searchid,
int tsize )
extern

allocate atom search data structure

Parameters
projthe target project id
actionthe edition action
searchidthe atom search id
tsizethe atom search object list size

Definition at line 392 of file atom_edit.c.

◆ apply_project()

void apply_project ( gboolean showtools)
extern

get project ready for calculation and initialize the OpenGL window

Parameters
showtools

Definition at line 665 of file callbacks.c.

◆ check_all_trees()

void check_all_trees ( project * this_proj)
extern

check all search trees

Parameters
this_projthe target project

Definition at line 450 of file w_search.c.

◆ check_hidden_visible()

void check_hidden_visible ( project * this_proj)

check how many atom(s) are visible

Parameters
this_projthe target project

Definition at line 869 of file popup.c.

◆ check_label_numbers()

int check_label_numbers ( project * this_proj,
int types )

check how many atom label(s) are visible

Parameters
this_projthe target project
types0 = atoms, 1 = clones, 2 = all

Definition at line 1040 of file popup.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.

◆ copy_bond_selection()

void copy_bond_selection ( )

copy bond selection

Definition at line 581 of file popup.c.

◆ copy_the_atoms()

G_MODULE_EXPORT void copy_the_atoms ( GtkWidget * widg,
gpointer data )

copy selected atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1355 of file popup.c.

◆ copy_the_coord()

G_MODULE_EXPORT void copy_the_coord ( GtkWidget * widg,
gpointer data )

copy a coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1725 of file popup.c.

◆ copy_this_atom()

G_MODULE_EXPORT void copy_this_atom ( GtkWidget * widg,
gpointer data )

copy this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 842 of file popup.c.

◆ create_new_project_using_data()

void create_new_project_using_data ( atom_selection * selection)

create new project using an atom selection

Parameters
selectionthe atom selection to use

Definition at line 2059 of file popup.c.

◆ create_selection_item()

GtkWidget * create_selection_item ( glwin * view,
gchar * str,
int mid,
int gid,
int cid,
int aoc,
GCallback handler,
gpointer data )

create new menu item for the popup menu GTK3

Parameters
viewthe target glwin
strthe new menu item label
midmenu item id
gidcoordination type
cidcoordination id
aocatom (0) or clone (1)
handlerthe associated callback
datathe associated data pointer

Definition at line 3214 of file popup.c.

◆ duplicate_material_and_lightning()

void duplicate_material_and_lightning ( image * new_img,
image * old_img )
extern

copy the material and lightning parameters of an image data structure

Parameters
new_imgthe new image
old_imgthe old image with the data to be copied

Definition at line 180 of file ogl_draw.c.

◆ edit_atoms()

G_MODULE_EXPORT void edit_atoms ( GtkWidget * widg,
gpointer data )

create new project using atomic species callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2342 of file popup.c.

◆ edit_coord()

G_MODULE_EXPORT void edit_coord ( GtkWidget * widg,
gpointer data )

create new project using coordination type and id callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2275 of file popup.c.

◆ edit_in_new_project()

G_MODULE_EXPORT void edit_in_new_project ( GtkWidget * widg,
gpointer data )

create new project using selection callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2192 of file popup.c.

◆ field_atom_menu()

GtkWidget * field_atom_menu ( int p,
int s,
int a,
int f )
extern

◆ free_this_search_data()

atom_search * free_this_search_data ( atom_search * this_search)

free atom search data structure

Parameters
this_searchthe data to free

Definition at line 285 of file popup.c.

◆ get_bary()

vec3_t get_bary ( project * this_proj,
int status )
extern

get barycenter of atomic coordinates

Parameters
this_projthe target project
statusselection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s)

Definition at line 170 of file atom_move.c.

◆ get_object_from_action()

gchar * get_object_from_action ( GSimpleAction * action)

get object name from action name GTK4

Parameters
actionthe GAction sending the signal

Definition at line 393 of file popup.c.

◆ get_style()

int get_style ( gchar * str)

get OpenGL rendering style id

Parameters
str

Definition at line 254 of file popup.c.

◆ get_to_be_selected()

int get_to_be_selected ( glwin * view)

find which atom(s) are to be selected

Parameters
viewthe target glwin

Definition at line 197 of file popup.c.

◆ insert_object()

void insert_object ( int action,
gpointer data )

insert object

Parameters
actionthe action to perform (replace = 1 or insert only = 3)
datathe associated data pointer

Definition at line 663 of file popup.c.

◆ label_unlabel_atoms()

G_MODULE_EXPORT void label_unlabel_atoms ( GtkWidget * widg,
gpointer data )

label / unlabel a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1503 of file popup.c.

◆ label_unlabel_coord()

G_MODULE_EXPORT void label_unlabel_coord ( GtkWidget * widg,
gpointer data )

label / unlabel a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1839 of file popup.c.

◆ label_unlabel_this_atom()

G_MODULE_EXPORT void label_unlabel_this_atom ( GtkWidget * widg,
gpointer data )

label / unlabel this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1128 of file popup.c.

◆ new_atom_in_selection()

atom_in_selection * new_atom_in_selection ( int id,
int sp )
extern

create a selected atom

Parameters
idatom id
spatom species

Definition at line 428 of file selection.c.

◆ opengl_advanced()

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

create OpenGL rendering advanced window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1477 of file w_advance.c.

◆ popup_main_menu()

void popup_main_menu ( glwin * view,
double ptx,
double pty )

create the OpenGL window popup menu

Parameters
viewthe target glwin
ptxx position
ptyy position

Definition at line 4131 of file popup.c.

◆ popup_selection()

void popup_selection ( glwin * view,
double ptx,
double pty,
int spe,
int mmod,
int ati,
int bti,
int aoc )

create the contextual popup menu, right click on atom or bond

Parameters
viewthe target glwin
ptxx position
ptyy position
spethe picked chemical
mmodmouse mode: 0 = analysis, 1 = edition
ati1st atom
bti2nd atom, if any
aocatom (0) or clone (1)

Definition at line 3666 of file popup.c.

◆ prepare_to_instert()

void prepare_to_instert ( gchar * key,
project * this_proj,
atom_search * asearch,
gboolean visible )
extern

prepare to insert something

Parameters
keythe string describing the object to insert
this_projthe target project
asearchthe target atom search
visibleis the model edition window visible

Definition at line 104 of file atom_insert.c.

◆ remove_object()

void remove_object ( )

remove object using 'remove_search'

Definition at line 603 of file popup.c.

◆ remove_the_atoms()

G_MODULE_EXPORT void remove_the_atoms ( GtkWidget * widg,
gpointer data )

remove selected atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1297 of file popup.c.

◆ remove_the_coord()

G_MODULE_EXPORT void remove_the_coord ( GtkWidget * widg,
gpointer data )

remove a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1668 of file popup.c.

◆ remove_this_atom()

G_MODULE_EXPORT void remove_this_atom ( GtkWidget * widg,
gpointer data )

remove this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 648 of file popup.c.

◆ render_gl_image()

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

render image from the OpenGL window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 429 of file glwindow.c.

◆ replace_the_atoms()

G_MODULE_EXPORT void replace_the_atoms ( GtkWidget * widg,
gpointer data )

replace selected atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1326 of file popup.c.

◆ replace_the_coord()

G_MODULE_EXPORT void replace_the_coord ( GtkWidget * widg,
gpointer data )

replace a coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1697 of file popup.c.

◆ replace_this_atom()

G_MODULE_EXPORT void replace_this_atom ( GtkWidget * widg,
gpointer data )

replace this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 814 of file popup.c.

◆ reset_coordinates()

void reset_coordinates ( project * this_proj,
int status )
extern

reset transformation and restore saved atomic coordinates

Parameters
this_projthe target project
statusselection status, 0 = non selected atom(s), 1 = selected atom(s), 2 = all atom(s)

Definition at line 143 of file atom_move.c.

◆ reset_coords()

G_MODULE_EXPORT void reset_coords ( GtkWidget * widg,
gpointer data )

reset coordinates menu item callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 3914 of file popup.c.

◆ select_action_for_all()

G_MODULE_EXPORT void select_action_for_all ( GtkWidget * widg,
gpointer data )

select action for all object(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2392 of file popup.c.

◆ select_action_for_all_bonds()

G_MODULE_EXPORT void select_action_for_all_bonds ( GtkWidget * widg,
gpointer data )

select action for all bonds based on menu item id callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2757 of file popup.c.

◆ select_action_for_this_bond()

G_MODULE_EXPORT void select_action_for_this_bond ( GtkWidget * widg,
gpointer data )

selection action for this bond callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2599 of file popup.c.

◆ select_unselect_atoms()

G_MODULE_EXPORT void select_unselect_atoms ( GtkWidget * widg,
gpointer data )

select / unselect a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1551 of file popup.c.

◆ select_unselect_coord()

G_MODULE_EXPORT void select_unselect_coord ( GtkWidget * widg,
gpointer data )

select / unselect a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1915 of file popup.c.

◆ select_unselect_this_atom()

G_MODULE_EXPORT void select_unselect_this_atom ( GtkWidget * widg,
gpointer data )

select / unselect this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1177 of file popup.c.

◆ selection_menu()

GtkWidget * selection_menu ( glwin * view,
int ati,
int bti,
int aoc,
int mid,
GCallback handler_a,
GCallback handler_b,
GCallback handler_c )

create popup submenu GTK3

Parameters
viewthe target glwin
ati1st atom
bti2nd atom, if any
aocatom (0) or clone (1)
midmenu id
handler_a1st callback - this object
handler_b2nd callback - coordination(s)
handler_c3rd callback - atom(s)

Definition at line 3328 of file popup.c.

◆ set_full_screen()

G_MODULE_EXPORT void set_full_screen ( GtkWidget * widg,
gpointer data )

set full screen callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 229 of file popup.c.

◆ show_hide_others()

G_MODULE_EXPORT void show_hide_others ( GtkWidget * widg,
gpointer data )

show all hidden / hide all visible atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1413 of file popup.c.

◆ show_hide_the_atoms()

G_MODULE_EXPORT void show_hide_the_atoms ( GtkWidget * widg,
gpointer data )

show / hide a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1456 of file popup.c.

◆ show_hide_the_coord()

G_MODULE_EXPORT void show_hide_the_coord ( GtkWidget * widg,
gpointer data )

show / hide a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1788 of file popup.c.

◆ show_hide_this_atom()

G_MODULE_EXPORT void show_hide_this_atom ( GtkWidget * widg,
gpointer data )

show / hide this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1019 of file popup.c.

◆ style_the_atoms()

G_MODULE_EXPORT void style_the_atoms ( GtkWidget * widg,
gpointer data )

change the OpenGL rendering style of a type of atom(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1617 of file popup.c.

◆ style_the_coord()

G_MODULE_EXPORT void style_the_coord ( GtkWidget * widg,
gpointer data )

change OpenGL rendering style for a type of coordination callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 2007 of file popup.c.

◆ style_this_atom()

G_MODULE_EXPORT void style_this_atom ( GtkWidget * widg,
gpointer data )

change OpenGL rendering style for this atom callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1256 of file popup.c.

◆ to_add_object()

G_MODULE_EXPORT void to_add_object ( GtkWidget * widg,
gpointer data )

to add object callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 780 of file popup.c.

◆ to_center_this_molecule()

G_MODULE_EXPORT void to_center_this_molecule ( GtkWidget * widg,
gpointer data )

center this molecule menu item callback GTK4

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 3974 of file popup.c.

◆ to_remove_this_object()

void to_remove_this_object ( int type,
gpointer data )

remove a type of object

Parameters
typethe type of object to remove (0= atom, 1= coordination type, 2= atom selection, 3= bond selection)
datathe associated data pointer

Definition at line 312 of file popup.c.

◆ to_replace_this_object()

void to_replace_this_object ( int type,
GtkWidget * widg,
gpointer data )

replace a type of object GTK3

Parameters
typethe type of object to replace (0= atom, 1= coordination type, 2= atom selection, 3= bond selection)
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 466 of file popup.c.

◆ turn_rebuild()

G_MODULE_EXPORT void turn_rebuild ( GtkWidget * widg,
gpointer data )

rebuild menu items callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 3947 of file popup.c.

◆ view_shortcuts()

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

Variable Documentation

◆ atoid

tint atoid[CONTEXTACT][4]

Definition at line 187 of file popup.c.

◆ bond_selection

atom_selection* bond_selection = NULL

Definition at line 185 of file popup.c.

◆ btoid

dint btoid

Definition at line 188 of file popup.c.

◆ insert_search

atom_search* insert_search = NULL

Definition at line 176 of file popup.c.

◆ insert_this_object

gboolean insert_this_object

Definition at line 691 of file popup.c.

◆ inserted_from_lib

int inserted_from_lib
extern

Definition at line 295 of file w_library.c.

◆ is_filled

int is_filled

Definition at line 184 of file popup.c.

◆ is_labelled

int is_labelled

Definition at line 183 of file popup.c.

◆ is_selected

int is_selected

Definition at line 182 of file popup.c.

◆ mol

insertion_menu mol[]
extern

Definition at line 193 of file w_library.c.

◆ mot

gchar* mot[2][2]
Initial value:
={{"All Non-Selected Atom(s)/Bond(s)", "All Selected Atom(s)/Bond(s)"},
{"All Non-Labelled Atom(s)/Bond(s)", "All Labelled Atom(s)/Bond(s)"}}

Definition at line 3293 of file popup.c.

◆ remove_search

atom_search* remove_search = NULL

Definition at line 175 of file popup.c.

◆ selected_aspec

int selected_aspec

Definition at line 180 of file popup.c.

◆ selected_atom

int selected_atom

Definition at line 178 of file popup.c.

◆ selected_bspec

int selected_bspec

Definition at line 181 of file popup.c.

◆ selected_btom

int selected_btom

Definition at line 179 of file popup.c.

◆ wait_for_style

gboolean wait_for_style = FALSE

Definition at line 1234 of file popup.c.