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

Callbacks for the toolbox dialog. More...

#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "workspace.h"
+ Include dependency graph for tools.c:

Go to the source code of this file.

Functions

GtkWidget * create_curve (tint *data)
 create the curve data plot window
 
gchar * substitute_string (gchar *init, gchar *o_motif, gchar *n_motif)
 substitute all patterns in string
 
gchar * prepare_for_title (gchar *init)
 prepare a string for a window title, getting rid of all markup
 
void fill_tool_model ()
 fill the tool window tree model
 
void tool_set_visible (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 
void adjust_tool_model (int calc, int curve, gchar *string_path)
 adjust the content of the tool box tree model
 
G_MODULE_EXPORT void toggle_show_hide_curve (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 To show/hide a curve by clicking in the tree view.
 
GtkWidget * tooltree ()
 create the toolbox tree view
 
GtkWidget * curvetbox ()
 create the curve tool box window
 

Variables

GtkTreeStore * tool_model = NULL
 
GtkWidget * tool_tree = NULL
 
GtkWidget * toolscroll = NULL
 

Detailed Description

Callbacks for the toolbox dialog.

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

Function Documentation

◆ adjust_tool_model()

void adjust_tool_model ( int calc,
int curve,
gchar * string_path )

adjust the content of the tool box tree model

Parameters
calcthe calculation
curvethe curve
string_paththe path in the tree view

Definition at line 216 of file tools.c.

◆ create_curve()

GtkWidget * create_curve ( tint * data)
extern

create the curve data plot window

Parameters
datathe associated data pointer

Definition at line 605 of file w_curve.c.

◆ curvetbox()

GtkWidget * curvetbox ( )

create the curve tool box window

Definition at line 321 of file tools.c.

◆ fill_tool_model()

void fill_tool_model ( )

fill the tool window tree model

Definition at line 87 of file tools.c.

◆ prepare_for_title()

gchar * prepare_for_title ( gchar * init)

prepare a string for a window title, getting rid of all markup

Parameters
initthe initial string

Definition at line 71 of file tools.c.

◆ substitute_string()

gchar * substitute_string ( gchar * init,
gchar * o_motif,
gchar * n_motif )
extern

substitute all patterns in string

Parameters
initthe initial string
o_motifthe pattern to replace
n_motifthe new pattern

Definition at line 372 of file w_library.c.

◆ toggle_show_hide_curve()

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

To show/hide a curve by clicking in the tree view.

Parameters
cell_rendererthe renderer toggled
string_paththe path in the tree view
datathe associated data pointer

Definition at line 244 of file tools.c.

◆ tool_set_visible()

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

Definition at line 178 of file tools.c.

◆ tooltree()

GtkWidget * tooltree ( )

create the toolbox tree view

Definition at line 281 of file tools.c.

Variable Documentation

◆ tool_model

GtkTreeStore* tool_model = NULL

Definition at line 60 of file tools.c.

◆ tool_tree

GtkWidget* tool_tree = NULL

Definition at line 61 of file tools.c.

◆ toolscroll

GtkWidget* toolscroll = NULL

Definition at line 62 of file tools.c.