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

Functions to close an atomes project
Callbacks to close an atomes project. More...

#include "global.h"
#include "bind.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "workspace.h"
#include "curve.h"
#include "glview.h"
Include dependency graph for close_p.c:

Go to the source code of this file.

Functions

GtkTreeModel * replace_combo_tree (gboolean insert, int proj)
 replace combo box in the tree view
G_MODULE_EXPORT void spin_stop (GtkButton *but, gpointer data)
 stop spin
void clean_animation (project *proj, glwin *view)
 clean saved animation data
void free_glwin_spec_data (project *this_proj, int spec)
 free the memory used by the chemical species related data in a glwin data structure
void update_insert_combos ()
 update some GtkComboBox in the workspace if a project is removed
glwinfree_glwin (project *to_close, glwin *to_clow)
 free all memory related to a gliwn data structure
void close_project (project *to_close)
 close a project
void to_close_this_project (int to_activate, project *this_proj)
 to close this project
G_MODULE_EXPORT void on_close_activate (GtkWidget *widg, gpointer cdata)
 signal to close a project

Variables

GtkTreeStore * tool_model

Detailed Description

Functions to close an atomes project
Callbacks to close an atomes project.

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 close_p.c.

Function Documentation

◆ clean_animation()

void clean_animation ( project * proj,
glwin * view )
extern

clean saved animation data

Parameters
projthe target project
viewthe target glwin

Definition at line 324 of file w_encode.c.

◆ close_project()

void close_project ( project * to_close)

close a project

Parameters
to_closethe project to close

Definition at line 260 of file close_p.c.

◆ free_glwin()

glwin * free_glwin ( project * to_close,
glwin * to_clow )

free all memory related to a gliwn data structure

Parameters
to_closethe target project
to_clowthe target gliwn to free

Definition at line 97 of file close_p.c.

◆ free_glwin_spec_data()

void free_glwin_spec_data ( project * this_proj,
int spec )
extern

free the memory used by the chemical species related data in a glwin data structure

Parameters
this_projthe target project
specthe number of chemical species

Definition at line 1602 of file glview.c.

◆ on_close_activate()

G_MODULE_EXPORT void on_close_activate ( GtkWidget * widg,
gpointer cdata )

signal to close a project

Parameters
widgthe GtkWidget sending the signal
cdatathe associated data pointer

Definition at line 503 of file close_p.c.

◆ replace_combo_tree()

GtkTreeModel * replace_combo_tree ( gboolean insert,
int proj )
extern

replace combo box in the tree view

Parameters
insertadd 'Select ...' combo box item
projtarget crystal builder project id

Definition at line 2612 of file w_search.c.

◆ spin_stop()

G_MODULE_EXPORT void spin_stop ( GtkButton * but,
gpointer data )
extern

stop spin

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 155 of file w_spiner.c.

◆ to_close_this_project()

void to_close_this_project ( int to_activate,
project * this_proj )

to close this project

Parameters
to_activateIf the workspace is not empty, activate first another project
this_projthe target project

Definition at line 479 of file close_p.c.

◆ update_insert_combos()

void update_insert_combos ( )

update some GtkComboBox in the workspace if a project is removed

Definition at line 65 of file close_p.c.

Variable Documentation

◆ tool_model

GtkTreeStore* tool_model
extern

Definition at line 60 of file tools.c.