Functions to create the 'Model -> Atom(s)' submenu.
More...
#include "global.h"
#include "glview.h"
#include "glwindow.h"
#include "color_box.h"
Go to the source code of this file.
|
| void | check_hidden_visible (project *this_proj) |
| | check how many atom(s) are visible
|
| |
| 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) property 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
|
| |
◆ atom_properties()
| G_MODULE_EXPORT void atom_properties |
( |
GSimpleAction * | action, |
|
|
GVariant * | parameter, |
|
|
gpointer | data ) |
|
extern |
atom(s) property callback GTK4
- Parameters
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 571 of file w_atoms.c.
◆ check_hidden_visible()
| void check_hidden_visible |
( |
project * | this_proj | ) |
|
|
extern |
check how many atom(s) are visible
- Parameters
-
| this_proj | the target project |
Definition at line 868 of file popup.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
-
| view | the target glwin |
| popm | main app (0) or popup (1) |
| at | atoms (0) or clones (1) |
| sensitive | menu item sensitivity |
Definition at line 726 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
-
| view | the target glwin |
| popm | main app (0) or popup (1) |
| at | atoms (0) or clones (1) |
| sensitive | menu item sensitivity |
Definition at line 685 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_proj | the target project |
| view | the target glwin |
| id | the type of label to prepare |
Definition at line 73 of file m_atoms.c.
◆ menu_atoms()
| GMenu * menu_atoms |
( |
glwin * | view, |
|
|
int | popm, |
|
|
int | at ) |
create the 'Atom(s)' submenu elements
- Parameters
-
| view | the target glwin |
| popm | main app (0) or popup (1) |
| at | atoms (0) or clones (1) |
Definition at line 799 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
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 193 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
-
| view | the target glwin |
| popm | main app (0) or popup (1) |
| at | atoms (0) or clones (1) |
| sensitive | menu item sensitivity |
Definition at line 766 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
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 654 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
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 531 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
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 589 of file m_atoms.c.