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

Initialization of the curve layout edition dialog. More...

#include <gtk/gtk.h>
#include <cairo.h>
#include <cairo-pdf.h>
#include <cairo-svg.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "global.h"
#include "interface.h"
#include "callbacks.h"
#include "project.h"
#include "curve.h"
+ Include dependency graph for cedit.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void set_data_aspect (GtkComboBox *box, gpointer data)
 change data aspect (x/y or histogram bars)
 
G_MODULE_EXPORT void update_axis (GtkComboBox *widg, gpointer data)
 change the axis
 
void action_to_plot (gpointer data)
 add to plot, or, remove curve from plot
 
gboolean was_not_added (ExtraSets *sets, int a, int b, int c)
 test if already in the menu or not
 
G_MODULE_EXPORT void choose_set (GtkComboBox *box, gpointer data)
 change the data set to customize
 
GtkWidget * create_org_list (gpointer data)
 create the data set organisation widget
 
GtkWidget * create_tab_1 (gpointer data)
 handle the creation of the 1st tab of the curve edition dialog
 
GtkWidget * create_tab_2 (gpointer data)
 handle the creation of the 2nd tab of the curve edition dialog
 
GtkWidget * create_tab_3 (gpointer data)
 handle the creation of the 3rd tab of the curve edition dialog
 
GtkWidget * create_tab_4 (gpointer data)
 handle the creation of the 4th tab of the curve edition dialog
 
void prepbox (int k, int l, int m)
 prepare the curve selection combo box
 
void set_set (int a, int b, int c)
 addjust widgets to handle the new curve
 
G_MODULE_EXPORT void toggle_curve (GtkCellRendererToggle *cell_renderer, gchar *string_path, gpointer data)
 show / hide curve cellrenderer toggle callback
 
void set_visible_curve_data (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 show / hide cell renderer
 
GtkWidget * create_projects_tree ()
 curve edition create the project(s) / curves tree model
 
G_MODULE_EXPORT void run_curve_edit (GtkDialog *dial, gint response_id, gpointer data)
 curve edition dialog callback
 
void edit_curve (gpointer data)
 create the curve edition dialog
 

Variables

GtkWidget * data_aspect
 
GtkWidget * Glyph_box
 
GtkWidget * Hist_box
 
GtkWidget * orgtree
 
GtkWidget * datascroll
 
char * ctext [2]
 
GtkWidget * setcolorbox = NULL
 
GtkWidget * thesetbox = NULL
 
tint prc
 
GtkTreePath ** ppath = NULL
 
GtkTreePath ** cpath = NULL
 
GtkWidget * projtree = NULL
 
GtkWidget * xyp [2]
 
char * lapos [2] ={"x: ", "y: "}
 
GtkTreeStore * projmodel
 

Detailed Description

Initialization of the curve layout edition 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 cedit.c.

Function Documentation

◆ action_to_plot()

void action_to_plot ( gpointer data)
extern

add to plot, or, remove curve from plot

Parameters
datathe associated data pointer

Definition at line 207 of file m_curve.c.

◆ choose_set()

G_MODULE_EXPORT void choose_set ( GtkComboBox * box,
gpointer data )
extern

change the data set to customize

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 629 of file tab-2.c.

◆ create_org_list()

GtkWidget * create_org_list ( gpointer data)
extern

create the data set organisation widget

Parameters
datathe associated data pointer

Definition at line 895 of file tab-2.c.

◆ create_projects_tree()

GtkWidget * create_projects_tree ( )

curve edition create the project(s) / curves tree model

Definition at line 290 of file cedit.c.

◆ create_tab_1()

GtkWidget * create_tab_1 ( gpointer data)
extern

handle the creation of the 1st tab of the curve edition dialog

Parameters
datathe associated data pointer

Definition at line 611 of file tab-1.c.

◆ create_tab_2()

GtkWidget * create_tab_2 ( gpointer data)
extern

handle the creation of the 2nd tab of the curve edition dialog

Parameters
datathe associated data pointer

Definition at line 971 of file tab-2.c.

◆ create_tab_3()

GtkWidget * create_tab_3 ( gpointer data)
extern

handle the creation of the 3rd tab of the curve edition dialog

Parameters
datathe associated data pointer

Definition at line 365 of file tab-3.c.

◆ create_tab_4()

GtkWidget * create_tab_4 ( gpointer data)
extern

handle the creation of the 4th tab of the curve edition dialog

Parameters
datathe associated data pointer

Definition at line 820 of file tab-4.c.

◆ edit_curve()

void edit_curve ( gpointer data)

create the curve edition dialog

Parameters
datathe associated data pointer

Definition at line 347 of file cedit.c.

◆ prepbox()

void prepbox ( int k,
int l,
int m )

prepare the curve selection combo box

Parameters
kproject id
lcalculation id
mcurve id

Definition at line 100 of file cedit.c.

◆ run_curve_edit()

G_MODULE_EXPORT void run_curve_edit ( GtkDialog * dial,
gint response_id,
gpointer data )

curve edition dialog callback

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

Definition at line 332 of file cedit.c.

◆ set_data_aspect()

G_MODULE_EXPORT void set_data_aspect ( GtkComboBox * box,
gpointer data )
extern

change data aspect (x/y or histogram bars)

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 672 of file tab-2.c.

◆ set_set()

void set_set ( int a,
int b,
int c )

addjust widgets to handle the new curve

Parameters
aproject id
bcalculation id
ccurve id

Definition at line 144 of file cedit.c.

◆ set_visible_curve_data()

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

show / hide cell renderer

Parameters
colthe tree view column
rendererthe cell renderer
modthe tree model
iterthe tree iter
datathe associated data pointer

Definition at line 278 of file cedit.c.

◆ toggle_curve()

void toggle_curve ( GtkCellRendererToggle * cell_renderer,
gchar * string_path,
gpointer data )

show / hide curve cellrenderer toggle callback

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

Definition at line 255 of file cedit.c.

◆ update_axis()

G_MODULE_EXPORT void update_axis ( GtkComboBox * widg,
gpointer data )
extern

change the axis

Parameters
widgthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 749 of file tab-4.c.

◆ was_not_added()

gboolean was_not_added ( ExtraSets * sets,
int a,
int b,
int c )
extern

test if already in the menu or not

Parameters
setsthe target extra sets
athe target project
bthe target calculation
cthe target curve

Definition at line 314 of file m_curve.c.

Variable Documentation

◆ cpath

GtkTreePath** cpath = NULL

Definition at line 85 of file cedit.c.

◆ ctext

char* ctext[2]
extern

Definition at line 91 of file tab-1.c.

◆ data_aspect

GtkWidget* data_aspect
extern

Definition at line 80 of file tab-2.c.

◆ datascroll

GtkWidget* datascroll
extern

Definition at line 99 of file tab-2.c.

◆ Glyph_box

GtkWidget* Glyph_box
extern

Definition at line 92 of file tab-2.c.

◆ Hist_box

GtkWidget* Hist_box
extern

Definition at line 93 of file tab-2.c.

◆ lapos

char* lapos[2] ={"x: ", "y: "}

Definition at line 89 of file cedit.c.

◆ orgtree

GtkWidget* orgtree
extern

Definition at line 97 of file tab-2.c.

◆ ppath

GtkTreePath** ppath = NULL

Definition at line 84 of file cedit.c.

◆ prc

tint prc

Definition at line 83 of file cedit.c.

◆ projmodel

GtkTreeStore* projmodel

Definition at line 244 of file cedit.c.

◆ projtree

GtkWidget* projtree = NULL

Definition at line 86 of file cedit.c.

◆ setcolorbox

GtkWidget* setcolorbox = NULL

Definition at line 81 of file cedit.c.

◆ thesetbox

GtkWidget* thesetbox = NULL

Definition at line 82 of file cedit.c.

◆ xyp

GtkWidget* xyp[2]

Definition at line 87 of file cedit.c.