atomes 1.1.16
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
 
void fill_chains_model (GtkTreeStore *store, project *this_proj)
 fill the entire chain(s) tree store
 
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
 
GtkWidget * chains_tab (glwin *view)
 create the chain(s) tab for the advanced environments window
 

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 264 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 784 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 732 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 223 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 148 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 576 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 557 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 64 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 165 of file w_rings.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 616 of file w_chains.c.