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

Functions to create the chain(s) tab for the advanced environments window. More...

#include "global.h"
#include "interface.h"
#include "glview.h"
#include "glwindow.h"
Include dependency graph for w_chains.c:

Go to the source code of this file.

Functions

void rings_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 show / hide cell renderer in the ring search tree store
G_MODULE_EXPORT void on_select_chains (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 on select chain toggle callback
gchar * chain_atoms (project *this_proj, int step, int size, int cid, gboolean to_file)
 create a string containing the list of atoms in a chain
void fill_chains_model (GtkTreeStore *store, project *this_proj)
 fill the entire chain(s) tree store
void chains_set_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 Chains tree view set color and Pango markup in tree view.
GtkWidget * create_chains_tree (project *this_proj, gboolean fill_this)
 create the chain(s) search tree store
void add_this_chain_to_search_tree (project *this_proj)
 add chain in the search tree based on chain length and id
int get_cmin (project *this_proj, int step)
 get chain(s) min size for the MD step
int get_cmax (project *this_proj, int step)
 get chain(s) max size for the MD step
G_MODULE_EXPORT void update_chains_search (GtkEntry *res, gpointer data)
 update the chain(s) search widget
GtkWidget * create_chains_search (project *this_proj)
 create the chain(s) search widget
G_MODULE_EXPORT void run_save_chains_to_file (GtkDialog *info, gint response_id, gpointer data)
 save chains data to file: run the dialog
G_MODULE_EXPORT void save_chains_to_file (GtkButton *but, gpointer data)
 save chains data to file
GtkWidget * chains_tab (glwin *view)
 create the chain(s) tab for the advanced environments window

Variables

const gchar * dfi [2]

Detailed Description

Functions to create the chain(s) tab for the advanced environments 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 w_chains.c.

Function Documentation

◆ add_this_chain_to_search_tree()

void add_this_chain_to_search_tree ( project * this_proj)

add chain in the search tree based on chain length and id

Parameters
this_projthe target project

Definition at line 337 of file w_chains.c.

◆ chain_atoms()

gchar * chain_atoms ( project * this_proj,
int step,
int size,
int cid,
gboolean to_file )

create a string containing the list of atoms in a chain

Parameters
this_projthe target project
stepthe configuration
sizethe size of the ring
cidthe id number of the ring
to_fileoutput

Definition at line 158 of file w_chains.c.

◆ chains_set_markup()

void chains_set_markup ( GtkTreeViewColumn * col,
GtkCellRenderer * renderer,
GtkTreeModel * mod,
GtkTreeIter * iter,
gpointer data )

Chains tree view set color and Pango markup in tree view.

Parameters
colthe tree view column
rendererthe column renderer
modthe tree model
iterthe tree it
datathe associated data pointer

Definition at line 279 of file w_chains.c.

◆ chains_tab()

GtkWidget * chains_tab ( glwin * view)

create the chain(s) tab for the advanced environments window

Parameters
viewthe target glwin

Definition at line 983 of file w_chains.c.

◆ create_chains_search()

GtkWidget * create_chains_search ( project * this_proj)

create the chain(s) search widget

Parameters
this_projthe target project

Definition at line 820 of file w_chains.c.

◆ create_chains_tree()

GtkWidget * create_chains_tree ( project * this_proj,
gboolean fill_this )

create the chain(s) search tree store

Parameters
this_projthe target project
fill_this1 = yes, 0 = no

Definition at line 293 of file w_chains.c.

◆ fill_chains_model()

void fill_chains_model ( GtkTreeStore * store,
project * this_proj )

fill the entire chain(s) tree store

Parameters
storethe GtkTreeStore to fill
this_projthe target project

Definition at line 196 of file w_chains.c.

◆ get_cmax()

int get_cmax ( project * this_proj,
int step )

get chain(s) max size for the MD step

Parameters
this_projthe target project
stepthe MD step

Definition at line 664 of file w_chains.c.

◆ get_cmin()

int get_cmin ( project * this_proj,
int step )

get chain(s) min size for the MD step

Parameters
this_projthe target project
stepthe MD step

Definition at line 645 of file w_chains.c.

◆ on_select_chains()

G_MODULE_EXPORT void on_select_chains ( GtkCellRendererToggle * cell_renderer,
gchar * string_path,
gpointer data )

on select chain toggle callback

Parameters
cell_rendererthe GtkCellRendererToggle sending the signal
string_paththe path in the tree store
datathe associated data pointer

Definition at line 71 of file w_chains.c.

◆ rings_set_visible()

void rings_set_visible ( GtkTreeViewColumn * col,
GtkCellRenderer * renderer,
GtkTreeModel * mod,
GtkTreeIter * iter,
gpointer data )
extern

show / hide cell renderer in the ring search tree store

Parameters
colthe tree view column
rendererthe column renderer
modthe tree model
iterthe tree it
datathe associated data pointer

Definition at line 174 of file w_rings.c.

◆ run_save_chains_to_file()

G_MODULE_EXPORT void run_save_chains_to_file ( GtkDialog * info,
gint response_id,
gpointer data )

save chains data to file: run the dialog

Parameters
infothe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 888 of file w_chains.c.

◆ save_chains_to_file()

G_MODULE_EXPORT void save_chains_to_file ( GtkButton * but,
gpointer data )

save chains data to file

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 952 of file w_chains.c.

◆ update_chains_search()

G_MODULE_EXPORT void update_chains_search ( GtkEntry * res,
gpointer data )

update the chain(s) search widget

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 704 of file w_chains.c.

Variable Documentation

◆ dfi

const gchar* dfi[2]
extern

Definition at line 93 of file main.c.