Workspace menu GTK3 version
Callbacks for the workspace menu.
More...
#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "workspace.h"
#include "glview.h"
Go to the source code of this file.
|
| G_MODULE_EXPORT void | on_calc_activate (GtkWidget *widg, gpointer data) |
| | create a calculation dialog - prepare the dialog
|
| |
| G_MODULE_EXPORT void | set_mode (GtkWidget *widg, gpointer data) |
| | set mouse mode callback
|
| |
| G_MODULE_EXPORT void | on_create_new_project (GtkWidget *widg, gpointer data) |
| | create a new project
|
| |
| G_MODULE_EXPORT void | leaving_from_menu (GtkWidget *widg, gpointer data) |
| | leaving atomes ?
|
| |
| G_MODULE_EXPORT void | compute_this_prop (GtkWidget *widg, gpointer data) |
| | to compute the 'calc_to_compute'
|
| |
| void | atomes_menu_bar_action (GSimpleAction *action, GVariant *parameter, gpointer data) |
| | atomes menu bar actions
|
| |
| GMenu * | create_workspace_menu (gchar *act, int pop_up, int proj, int calc) |
| | create atomes 'workspace' menu
|
| |
| GtkWidget * | work_menu (int p, int c) |
| | create the workspace popup menu
|
| |
Workspace menu GTK3 version
Callbacks for the workspace menu.
- 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 work_menu.c.
◆ atomes_menu_bar_action()
| void atomes_menu_bar_action |
( |
GSimpleAction * | action, |
|
|
GVariant * | parameter, |
|
|
gpointer | data ) |
|
extern |
atomes menu bar actions
- Parameters
-
| action | the GAction sending the signal the GSimpleAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 462 of file gui.c.
◆ compute_this_prop()
| G_MODULE_EXPORT void compute_this_prop |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
to compute the 'calc_to_compute'
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 105 of file work_menu.c.
◆ create_workspace_menu()
| GMenu * create_workspace_menu |
( |
gchar * | act, |
|
|
int | pop_up, |
|
|
int | proj, |
|
|
int | calc ) |
|
extern |
create atomes 'workspace' menu
- Parameters
-
| act | "app" or "pop" key for the GAction |
| pop_up | from main app (0) or contextual (1) |
| proj | project id, if any (or -1) |
| calc | calculation id, if any (or -1) |
Definition at line 956 of file gui.c.
◆ leaving_from_menu()
| G_MODULE_EXPORT void leaving_from_menu |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
leaving atomes ?
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 86 of file work_menu.c.
◆ on_calc_activate()
| G_MODULE_EXPORT void on_calc_activate |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
|
extern |
create a calculation dialog - prepare the dialog
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 1463 of file calc_menu.c.
◆ on_create_new_project()
| G_MODULE_EXPORT void on_create_new_project |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
create a new project
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 62 of file work_menu.c.
◆ set_mode()
| G_MODULE_EXPORT void set_mode |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
|
extern |
set mouse mode callback
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 172 of file m_tools.c.
◆ work_menu()
| GtkWidget * work_menu |
( |
int | p, |
|
|
int | c ) |
create the workspace popup menu
- Parameters
-
| p | project id, or -1 |
| c | calculation id, or -1 |
Definition at line 202 of file work_menu.c.
◆ calc_to_compute
◆ pop_act
| GSimpleAction* pop_act[7] |
|
extern |