atomes 1.3.1
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 (curve_edition *cedit, gpointer data)
 handle the creation of the 1st tab of the curve edition dialog
GtkWidget * create_tab_2 (curve_edition *cedit, gpointer data)
 handle the creation of the 2nd tab of the curve edition dialog
GtkWidget * create_tab_3 (curve_edition *cedit, gpointer data)
 handle the creation of the 3rd tab of the curve edition dialog
GtkWidget * create_tab_4 (curve_edition *cedit, gpointer data)
 handle the creation of the 4th tab of the curve edition dialog
void prepbox (gpointer data)
 prepare the curve selection combo box
void set_set (int a, int b, int c, gpointer data)
 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 *cedit, gpointer data)
 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

int activeg = 0
int activec = 0
int activer = 0
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 227 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 567 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 832 of file tab-2.c.

◆ create_projects_tree()

GtkWidget * create_projects_tree ( curve_edition * cedit,
gpointer data )

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

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

Definition at line 289 of file cedit.c.

◆ create_tab_1()

GtkWidget * create_tab_1 ( curve_edition * cedit,
gpointer data )
extern

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

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

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

◆ create_tab_2()

GtkWidget * create_tab_2 ( curve_edition * cedit,
gpointer data )
extern

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

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

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

◆ create_tab_3()

GtkWidget * create_tab_3 ( curve_edition * cedit,
gpointer data )
extern

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

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

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

◆ create_tab_4()

GtkWidget * create_tab_4 ( curve_edition * cedit,
gpointer data )
extern

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

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

Definition at line 691 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 348 of file cedit.c.

◆ prepbox()

void prepbox ( gpointer data)

prepare the curve selection combo box

Parameters
datathe associate data pointer

Definition at line 87 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 331 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 603 of file tab-2.c.

◆ set_set()

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

addjust widgets to handle the new curve

Parameters
aproject id
bcalculation id
ccurve id
datathe associated data pointer

Definition at line 133 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 274 of file cedit.c.

◆ toggle_curve()

G_MODULE_EXPORT 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 251 of file cedit.c.

◆ update_axis()

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

change the axis

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 627 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 342 of file m_curve.c.

Variable Documentation

◆ activec

int activec = 0

Definition at line 76 of file cedit.c.

◆ activeg

int activeg = 0

Definition at line 75 of file cedit.c.

◆ activer

int activer = 0

Definition at line 77 of file cedit.c.

◆ lapos

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

Definition at line 78 of file cedit.c.

◆ projmodel

GtkTreeStore* projmodel

Definition at line 240 of file cedit.c.