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

Functions to create the model edition window. More...

#include "atom_edit.h"
+ Include dependency graph for atom_edit.c:

Go to the source code of this file.

Functions

gboolean is_atom_win_active (glwin *view)
 is the model edition window visible ?
 
void clean_coord_window (project *this_proj)
 update the environment configuration window after edtion
 
void clean_other_window_after_edit (project *this_proj)
 update other windows after model edition if required
 
void clean_atom_win (project *this_proj)
 clean model edition data
 
G_MODULE_EXPORT void close_edit (GtkButton *but, gpointer data)
 close model edition window
 
G_MODULE_EXPORT gboolean delete_action (GtkWidget *widg, GdkEvent *event, gpointer data)
 model edition window close event callback GTK3
 
G_MODULE_EXPORT void set_reset_transformation (GtkToggleButton *but, gpointer data)
 reset model transformation toggle callback GTK3
 
G_MODULE_EXPORT void apply_edit (GtkButton *but, gpointer data)
 apply edition action callback
 
GtkWidget * create_atom_notebook (project *this_proj, GtkWidget *vbox)
 create the model edition notebook
 
atom_searchallocate_atom_search (int proj, int action, int searchid, int tsize)
 allocate atom search data structure
 
GtkWidget * create_edition_window (project *this_proj)
 create the model edition window
 
void prepare_atom_edition (gpointer data, gboolean visible)
 prepare atom edition
 
G_MODULE_EXPORT void action_window (GtkWidget *widg, gpointer data)
 open model edition window callback GTK3
 

Variables

float limit [2] = {100.0, 180.0}
 
gchar * action_name [5] = {"Move", "Replace", "Remove", "Insert", "Random move"}
 
gchar * action_atoms [3] = {"All non-selected atoms", "All selected atoms", "All atoms"}
 
gboolean was_moved
 

Detailed Description

Functions to create the model edition window.

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

Function Documentation

◆ action_window()

G_MODULE_EXPORT void action_window ( GtkWidget * widg,
gpointer data )

open model edition window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 535 of file atom_edit.c.

◆ allocate_atom_search()

atom_search * allocate_atom_search ( int proj,
int action,
int searchid,
int tsize )

allocate atom search data structure

Parameters
projthe target project id
actionthe edition action
searchidthe atom search id
tsizethe atom search object list size

Definition at line 392 of file atom_edit.c.

◆ apply_edit()

G_MODULE_EXPORT void apply_edit ( GtkButton * but,
gpointer data )

apply edition action callback

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 325 of file atom_edit.c.

◆ clean_atom_win()

void clean_atom_win ( project * this_proj)

clean model edition data

Parameters
this_projthe target project

Definition at line 162 of file atom_edit.c.

◆ clean_coord_window()

void clean_coord_window ( project * this_proj)

update the environment configuration window after edtion

Parameters
this_projthe target project

Definition at line 87 of file atom_edit.c.

◆ clean_other_window_after_edit()

void clean_other_window_after_edit ( project * this_proj)

update other windows after model edition if required

Parameters
this_projthe target project

Definition at line 110 of file atom_edit.c.

◆ close_edit()

G_MODULE_EXPORT void close_edit ( GtkButton * but,
gpointer data )

close model edition window

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 202 of file atom_edit.c.

◆ create_atom_notebook()

GtkWidget * create_atom_notebook ( project * this_proj,
GtkWidget * vbox )

create the model edition notebook

Parameters
this_projthe target project
vboxthe GtkWidget sending the signal

Definition at line 365 of file atom_edit.c.

◆ create_edition_window()

GtkWidget * create_edition_window ( project * this_proj)

create the model edition window

Parameters
this_projthe target project

Definition at line 418 of file atom_edit.c.

◆ delete_action()

G_MODULE_EXPORT gboolean delete_action ( GtkWidget * widg,
GdkEvent * event,
gpointer data )

model edition window close event callback GTK3

Parameters
widgthe GtkWidget sending the signal
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 249 of file atom_edit.c.

◆ is_atom_win_active()

gboolean is_atom_win_active ( glwin * view)

is the model edition window visible ?

Parameters
viewthe target glwin

Definition at line 71 of file atom_edit.c.

◆ prepare_atom_edition()

void prepare_atom_edition ( gpointer data,
gboolean visible )

prepare atom edition

Parameters
datathe associated data pointer
visibleis the window visible (1/0)

Definition at line 459 of file atom_edit.c.

◆ set_reset_transformation()

G_MODULE_EXPORT void set_reset_transformation ( GtkToggleButton * but,
gpointer data )

reset model transformation toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 277 of file atom_edit.c.

Variable Documentation

◆ action_atoms

gchar* action_atoms[3] = {"All non-selected atoms", "All selected atoms", "All atoms"}

Definition at line 61 of file atom_edit.c.

◆ action_name

gchar* action_name[5] = {"Move", "Replace", "Remove", "Insert", "Random move"}

Definition at line 60 of file atom_edit.c.

◆ limit

float limit[2] = {100.0, 180.0}

Definition at line 59 of file atom_edit.c.

◆ was_moved

gboolean was_moved

Definition at line 62 of file atom_edit.c.