atomes 1.3.1
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
gchar * ring_atoms (project *this_proj, int ring, int step, int size, int rid, gboolean to_file)
void fill_rings_model (GtkTreeStore *store, project *this_proj, int rid)
 fill the entire ring(s) tree store
void rings_set_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 Rings tree view set color and Pango markup in tree view.
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
G_MODULE_EXPORT void run_save_rings_to_file (GtkDialog *info, gint response_id, gpointer data)
 save rings data to file: run the dialog
G_MODULE_EXPORT void save_rings_to_file (GtkButton *but, gpointer data)
 save rings data to file
GtkWidget * rings_tab (glwin *view, int rid)
 create the ring(s) tab for the advanced environments window

Variables

const gchar * dfi [2]
gchar * rtype [5] = {i18n("all"), i18n("King"), i18n("Guttman"), i18n("primtive"), i18n("strong")}

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 455 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 946 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 408 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 305 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 802 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 782 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 72 of file w_rings.c.

◆ ring_atoms()

gchar * ring_atoms ( project * this_proj,
int ring,
int step,
int size,
int rid,
gboolean to_file )

Definition at line 266 of file w_rings.c.

◆ rings_set_markup()

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

Rings 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 393 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 174 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 1124 of file w_rings.c.

◆ run_save_rings_to_file()

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

save rings data to file: run the dialog

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

Definition at line 1014 of file w_rings.c.

◆ save_rings_to_file()

G_MODULE_EXPORT void save_rings_to_file ( GtkButton * but,
gpointer data )

save rings data to file

Parameters
butthe GtkButton sending the signal
datathe associated data pointer

Definition at line 1086 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 821 of file w_rings.c.

Variable Documentation

◆ dfi

const gchar* dfi[2]
extern

Definition at line 93 of file main.c.

◆ rtype

gchar* rtype[5] = {i18n("all"), i18n("King"), i18n("Guttman"), i18n("primtive"), i18n("strong")}

Definition at line 61 of file w_rings.c.