atomes 1.3.1
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 * create_tool_tree ()
 create the toolbox tree view
GtkWidget * create_curve_tool_box ()
 create the curve tool box window

Variables

GtkTreeStore * tool_model = NULL
GtkWidget * tool_tree = NULL
GtkWidget * tool_scroll = 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 233 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 581 of file w_curve.c.

◆ create_curve_tool_box()

GtkWidget * create_curve_tool_box ( )

create the curve tool box window

Definition at line 339 of file tools.c.

◆ create_tool_tree()

GtkWidget * create_tool_tree ( )

create the toolbox tree view

Definition at line 298 of file tools.c.

◆ fill_tool_model()

void fill_tool_model ( )

fill the tool window tree model

Definition at line 91 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 375 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 261 of file tools.c.

◆ tool_set_visible()

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

Definition at line 188 of file tools.c.

Variable Documentation

◆ tool_model

GtkTreeStore* tool_model = NULL

Definition at line 60 of file tools.c.

◆ tool_scroll

GtkWidget* tool_scroll = NULL

Definition at line 62 of file tools.c.

◆ tool_tree

GtkWidget* tool_tree = NULL

Definition at line 61 of file tools.c.