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

Functions to create the ring(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_rings.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void on_select_rings (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 on select ring toggle callback
 
void rings_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 show / hide cell renderer in the ring search tree store
 
void fill_rings_model (GtkTreeStore *store, project *this_proj, int rid)
 fill the entire ring(s) tree store
 
GtkWidget * create_rings_tree (project *this_proj, int rid, gboolean fill_this)
 create the ring(s) search tree store
 
void add_this_ring_to_search_tree (project *this_proj, int rid)
 add ring in the search tree based on ring size and id
 
int get_rmin (project *this_proj, int rid, int step)
 get ring(s) max size for the MD step
 
int get_rmax (project *this_proj, int rid, int step)
 get ring(s) min size for the MD step
 
G_MODULE_EXPORT void update_rings_search (GtkEntry *res, gpointer data)
 update the ring(s) search widget
 
GtkWidget * create_rings_search (project *this_proj, int rid)
 create the ring(s) search widget
 
GtkWidget * rings_tab (glwin *view, int rid)
 create the ring(s) tab for the advanced environments window
 

Detailed Description

Functions to create the ring(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_rings.c.

Function Documentation

◆ add_this_ring_to_search_tree()

void add_this_ring_to_search_tree ( project * this_proj,
int rid )

add ring in the search tree based on ring size and id

Parameters
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong

Definition at line 377 of file w_rings.c.

◆ create_rings_search()

GtkWidget * create_rings_search ( project * this_proj,
int rid )

create the ring(s) search widget

Parameters
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong

Definition at line 853 of file w_rings.c.

◆ create_rings_tree()

GtkWidget * create_rings_tree ( project * this_proj,
int rid,
gboolean fill_this )

create the ring(s) search tree store

Parameters
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong
fill_this1 = yes, 0 = no

Definition at line 335 of file w_rings.c.

◆ fill_rings_model()

void fill_rings_model ( GtkTreeStore * store,
project * this_proj,
int rid )

fill the entire ring(s) tree store

Parameters
storethe GtkTreeStore to fill
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong

Definition at line 254 of file w_rings.c.

◆ get_rmax()

int get_rmax ( project * this_proj,
int rid,
int step )

get ring(s) min size for the MD step

Parameters
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong
stepthe MD step

Definition at line 709 of file w_rings.c.

◆ get_rmin()

int get_rmin ( project * this_proj,
int rid,
int step )

get ring(s) max size for the MD step

Parameters
this_projthe target project
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong
stepthe MD step

Definition at line 689 of file w_rings.c.

◆ on_select_rings()

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

on select ring toggle callback

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

Definition at line 63 of file w_rings.c.

◆ rings_set_visible()

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

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.

◆ rings_tab()

GtkWidget * rings_tab ( glwin * view,
int rid )

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

Parameters
viewthe target glwin
ridthe type of ring(s), 0 = All, 1 = King, 2 = Guttman, 3 = Primtive, 4 = Strong

Definition at line 906 of file w_rings.c.

◆ update_rings_search()

G_MODULE_EXPORT void update_rings_search ( GtkEntry * res,
gpointer data )

update the ring(s) search widget

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 728 of file w_rings.c.