atomes 1.1.14
atomes: an atomic scale modeling tool box
|
Implementation of the workspace tree view
Associated callbacks.
More...
#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "glwindow.h"
Go to the source code of this file.
Functions | |
void | workinfo (project *this_proj, int i) |
display information about a workspace menu item for a project | |
GtkWidget * | work_menu (int p, int c) |
create the workspace popup menu | |
void | add_project (GtkTreeStore *store, int i) |
add project to the GtkTreeStore of the workspace | |
G_MODULE_EXPORT void | activate_project (GtkWidget *widg, gpointer data) |
activate a project | |
int | find_calc_by_path (GtkTreeView *treeview, GtkTreePath *path) |
find the calculation using the GtkTreePath in the GtkTreeView | |
int | find_proj_by_path (GtkTreePath *path) |
find the project id using the GtkTreePath | |
G_MODULE_EXPORT void | workspace_ondc (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, gpointer data) |
do something after Double Click in the workspace tree | |
void | correct_this_window_title (GtkWidget *win, gchar *str) |
use new title for GtkWindow, providing it exists | |
G_MODULE_EXPORT void | change_project_name (GtkWidget *wid, gpointer edata) |
change project name | |
void | workspace_menu (GtkWidget *tree, gpointer event, double x, double y) |
popup the workspace contextual menu in workspace tree view | |
G_MODULE_EXPORT gboolean | on_workspace_button_event (GtkWidget *widget, GdkEventButton *event, gpointer data) |
GTK3 button event on workspace to display contextual menu. | |
void | workspace_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data) |
GtkWidget * | create_workspace_tree () |
create the workspace tree store | |
void | create_workspace () |
create the workspace | |
void | add_project_to_workspace () |
add project(s) to the workspace tree | |
void | remove_project_from_workspace (int id) |
remove project from workspace | |
Variables | |
GdkPixbuf * | pix = NULL |
GtkWidget * | img = NULL |
GtkWidget * | hbox = NULL |
GtkWidget * | vbox = NULL |
GtkWidget * | lab = NULL |
GtkWidget * | lap = NULL |
GtkWidget * | eap = NULL |
gchar * | labtmp = NULL |
gchar * | laptmp = NULL |
GtkWidget * | worktree = NULL |
GtkTreeStore * | workstore = NULL |
GtkTreeIter | worklevel |
GtkTreeIter * | piter = NULL |
GtkTreeIter * | witer = NULL |
GtkTreePath ** | prpath = NULL |
GtkTreePath * | wpath = NULL |
GdkPixbuf * | wpix = NULL |
gchar * | wchar = NULL |
int | projects_in_workspace = 0 |
char * | work_menu_items [NITEMS-2] |
Implementation of the workspace tree view
Associated callbacks.
Definition in file workspace.c.
G_MODULE_EXPORT void activate_project | ( | GtkWidget * | widg, |
gpointer | data ) |
activate a project
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 191 of file workspace.c.
void add_project | ( | GtkTreeStore * | store, |
int | i ) |
add project to the GtkTreeStore of the workspace
store | the GtkTreeStore |
i | the id of the project to add |
Definition at line 114 of file workspace.c.
void add_project_to_workspace | ( | ) |
add project(s) to the workspace tree
Definition at line 594 of file workspace.c.
G_MODULE_EXPORT void change_project_name | ( | GtkWidget * | wid, |
gpointer | edata ) |
change project name
wid | the GtkWidgent sending the signal |
edata | the associated data pointer |
Definition at line 357 of file workspace.c.
void correct_this_window_title | ( | GtkWidget * | win, |
gchar * | str ) |
use new title for GtkWindow, providing it exists
win | the GtkWindow |
str | the new title |
Definition at line 337 of file workspace.c.
void create_workspace | ( | ) |
create the workspace
Definition at line 580 of file workspace.c.
GtkWidget * create_workspace_tree | ( | ) |
create the workspace tree store
Definition at line 530 of file workspace.c.
int find_calc_by_path | ( | GtkTreeView * | treeview, |
GtkTreePath * | path ) |
find the calculation using the GtkTreePath in the GtkTreeView
treeview | the GtkTreeView |
path | the GtkTreePath |
Definition at line 214 of file workspace.c.
int find_proj_by_path | ( | GtkTreePath * | path | ) |
find the project id using the GtkTreePath
path | the GtkTreePath |
Definition at line 235 of file workspace.c.
G_MODULE_EXPORT gboolean on_workspace_button_event | ( | GtkWidget * | widget, |
GdkEventButton * | event, | ||
gpointer | data ) |
GTK3 button event on workspace to display contextual menu.
widget | the GtkWidget sending the signal |
event | the associated GtkButton |
data | the associated data pointer |
Definition at line 506 of file workspace.c.
void remove_project_from_workspace | ( | int | id | ) |
remove project from workspace
id | the id of the project to be remove |
Definition at line 650 of file workspace.c.
|
extern |
create the workspace popup menu
p | project id, or -1 |
c | calculation id, or -1 |
Definition at line 202 of file work_menu.c.
|
extern |
display information about a workspace menu item for a project
this_proj | the target project |
i | the properties to display from the menu |
Definition at line 59 of file workinfo.c.
void workspace_menu | ( | GtkWidget * | tree, |
gpointer | event, | ||
double | x, | ||
double | y ) |
popup the workspace contextual menu in workspace tree view
tree | the GtkTreeView |
event | the event |
x | x position |
y | y position |
Definition at line 453 of file workspace.c.
G_MODULE_EXPORT void workspace_ondc | ( | GtkTreeView * | treeview, |
GtkTreePath * | path, | ||
GtkTreeViewColumn * | col, | ||
gpointer | data ) |
do something after Double Click in the workspace tree
treeview | the GtkTreeView |
path | the GtkTreePath |
col | the GtkTreeViewColumn |
data | the associated data pointer |
Definition at line 262 of file workspace.c.
void workspace_set_visible | ( | GtkTreeViewColumn * | col, |
GtkCellRenderer * | renderer, | ||
GtkTreeModel * | mod, | ||
GtkTreeIter * | iter, | ||
gpointer | data ) |
Definition at line 516 of file workspace.c.
GtkWidget* eap = NULL |
Definition at line 75 of file workspace.c.
GtkWidget* hbox = NULL |
Definition at line 71 of file workspace.c.
GtkWidget* img = NULL |
Definition at line 70 of file workspace.c.
GtkWidget* lab = NULL |
Definition at line 73 of file workspace.c.
gchar* labtmp = NULL |
Definition at line 76 of file workspace.c.
GtkWidget* lap = NULL |
Definition at line 74 of file workspace.c.
gchar* laptmp = NULL |
Definition at line 77 of file workspace.c.
GtkTreeIter* piter = NULL |
Definition at line 81 of file workspace.c.
GdkPixbuf* pix = NULL |
Definition at line 69 of file workspace.c.
int projects_in_workspace = 0 |
Definition at line 87 of file workspace.c.
GtkTreePath** prpath = NULL |
Definition at line 83 of file workspace.c.
GtkWidget* vbox = NULL |
Definition at line 72 of file workspace.c.
gchar* wchar = NULL |
Definition at line 86 of file workspace.c.
GtkTreeIter* witer = NULL |
Definition at line 82 of file workspace.c.
char* work_menu_items[NITEMS-2] |
Definition at line 89 of file workspace.c.
GtkTreeIter worklevel |
Definition at line 80 of file workspace.c.
GtkTreeStore* workstore = NULL |
Definition at line 79 of file workspace.c.
GtkWidget* worktree = NULL |
Definition at line 78 of file workspace.c.
GtkTreePath* wpath = NULL |
Definition at line 84 of file workspace.c.
GdkPixbuf* wpix = NULL |
Definition at line 85 of file workspace.c.