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

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"
+ Include dependency graph for work_menu.c:

Go to the source code of this file.

Functions

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
 

Variables

int calc_to_compute
 
GSimpleAction * pop_act [7]
 

Detailed Description

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.

Function Documentation

◆ atomes_menu_bar_action()

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

atomes menu bar actions

Parameters
actionthe GAction sending the signal the GSimpleAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe 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
widgthe GtkWidget sending the signal
datathe 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_upfrom main app (0) or contextual (1)
projproject id, if any (or -1)
calccalculation id, if any (or -1)

Definition at line 952 of file gui.c.

◆ leaving_from_menu()

G_MODULE_EXPORT void leaving_from_menu ( GtkWidget * widg,
gpointer data )

leaving atomes ?

Parameters
widgthe GtkWidget sending the signal
datathe 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
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 1387 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
widgthe GtkWidget sending the signal
datathe 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
widgthe GtkWidget sending the signal
datathe 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
pproject id, or -1
ccalculation id, or -1

Definition at line 202 of file work_menu.c.

Variable Documentation

◆ calc_to_compute

int calc_to_compute

Definition at line 95 of file work_menu.c.

◆ pop_act

GSimpleAction* pop_act[7]
extern