atomes 1.3.1
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
tab-2.c File Reference

2nd tab 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 tab-2.c:

Go to the source code of this file.

Functions

cairo_surface_t * draw_surface (int aspect, double hwidth, double hopac, int da, double ti, ColRGBA dcol, ColRGBA bcol, int tglyph, double tgsize)
 draw the data set preview
DataLayoutget_extra_layout (gpointer data, int i)
 retrieve the i data layout
void set_data_style (gpointer data)
 update the data style widgets
G_MODULE_EXPORT void set_data_glyph (GtkComboBox *gbox, gpointer data)
 change glyph type
G_MODULE_EXPORT void set_data_dash (GtkComboBox *gbox, gpointer data)
 change data dash style
G_MODULE_EXPORT void set_data_color (GtkColorChooser *colob, gpointer data)
 set data color
G_MODULE_EXPORT void set_data_thickness (GtkEntry *thickd, gpointer data)
 set data thickness entry callback
G_MODULE_EXPORT void set_data_glyph_size (GtkEntry *glsize, gpointer data)
 set glyph size entry callback
G_MODULE_EXPORT void set_data_hist_width (GtkEntry *entry, gpointer data)
 set histogram bar width entry callback
G_MODULE_EXPORT void set_data_hist_opac (GtkEntry *entry, gpointer data)
 set histogram bar opacity entry callback
G_MODULE_EXPORT void set_data_hist_pos (GtkComboBox *gbox, gpointer data)
 change histogram bar position
G_MODULE_EXPORT void set_data_glyph_freq (GtkEntry *glfreq, gpointer data)
 set glyph frequency entry callback
G_MODULE_EXPORT void choose_set (GtkComboBox *box, gpointer data)
 change the data set to customize
G_MODULE_EXPORT void set_data_aspect (GtkComboBox *box, gpointer data)
 change data aspect (x/y or histogram bars)
DataLayoutduplicate_curve_layout (DataLayout *old_layout)
 duplicate a curve layout
G_MODULE_EXPORT void move_back_front (GtkTreeModel *tree_model, GtkTreePath *path, gpointer data)
 move up or down data set in the tree model to move it front or back in the data plot
void curve_set_markup (GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *mod, GtkTreeIter *iter, gpointer data)
 Curve edit window, tab-2, Pango markup in tree view.
GtkWidget * create_org_list (gpointer data)
 create the data set organisation widget
G_MODULE_EXPORT void set_bshift (GtkToggleButton *shift, gpointer data)
 shift / not histogram bars toggle callback GTK3
GtkWidget * create_tab_2 (curve_edition *cedit, gpointer data)
 handle the creation of the 2nd tab of the curve edition dialog

Variables

GtkTreeModel * orgmodel

Detailed Description

2nd tab 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 tab-2.c.

Function Documentation

◆ choose_set()

G_MODULE_EXPORT void choose_set ( GtkComboBox * box,
gpointer data )

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)

create the data set organisation widget

Parameters
datathe associated data pointer

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

◆ create_tab_2()

GtkWidget * create_tab_2 ( curve_edition * cedit,
gpointer data )

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.

◆ curve_set_markup()

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

Curve edit window, tab-2, 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 820 of file tab-2.c.

◆ draw_surface()

cairo_surface_t * draw_surface ( int aspect,
double hwidth,
double hopac,
int da,
double ti,
ColRGBA dcol,
ColRGBA bcol,
int tglyph,
double tgsize )

draw the data set preview

Parameters
aspectthe data aspect (x/y or bars)
hwidththe histogram bar width
hopacthe histogram bar opacity
dathe dash type
tithe thickness
dcolthe data color
bcolthe background color
tglyphthe glyphe type
tgsizethe glyph size

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

◆ duplicate_curve_layout()

DataLayout * duplicate_curve_layout ( DataLayout * old_layout)

duplicate a curve layout

Parameters
old_layoutthe layout to duplicate

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

◆ get_extra_layout()

DataLayout * get_extra_layout ( gpointer data,
int i )

retrieve the i data layout

Parameters
datathe target data pointer
ithe id of data layout to retrieve

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

◆ move_back_front()

G_MODULE_EXPORT void move_back_front ( GtkTreeModel * tree_model,
GtkTreePath * path,
gpointer data )

move up or down data set in the tree model to move it front or back in the data plot

Parameters
tree_modelthe GtkTreeModel sending the signal
paththe path in the tree model
datathe associated data pointer

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

◆ set_bshift()

G_MODULE_EXPORT void set_bshift ( GtkToggleButton * shift,
gpointer data )

shift / not histogram bars toggle callback GTK3

Parameters
shiftthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ set_data_aspect()

G_MODULE_EXPORT void set_data_aspect ( GtkComboBox * box,
gpointer data )

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_data_color()

G_MODULE_EXPORT void set_data_color ( GtkColorChooser * colob,
gpointer data )

set data color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_data_dash()

G_MODULE_EXPORT void set_data_dash ( GtkComboBox * gbox,
gpointer data )

change data dash style

Parameters
gboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_data_glyph()

G_MODULE_EXPORT void set_data_glyph ( GtkComboBox * gbox,
gpointer data )

change glyph type

Parameters
gboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_data_glyph_freq()

G_MODULE_EXPORT void set_data_glyph_freq ( GtkEntry * glfreq,
gpointer data )

set glyph frequency entry callback

Parameters
glfreqthe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_data_glyph_size()

G_MODULE_EXPORT void set_data_glyph_size ( GtkEntry * glsize,
gpointer data )

set glyph size entry callback

Parameters
glsizethe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_data_hist_opac()

G_MODULE_EXPORT void set_data_hist_opac ( GtkEntry * entry,
gpointer data )

set histogram bar opacity entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_data_hist_pos()

G_MODULE_EXPORT void set_data_hist_pos ( GtkComboBox * gbox,
gpointer data )

change histogram bar position

Parameters
gboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_data_hist_width()

G_MODULE_EXPORT void set_data_hist_width ( GtkEntry * entry,
gpointer data )

set histogram bar width entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_data_style()

void set_data_style ( gpointer data)

update the data style widgets

Parameters
datathe associated data pointer

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

◆ set_data_thickness()

G_MODULE_EXPORT void set_data_thickness ( GtkEntry * thickd,
gpointer data )

set data thickness entry callback

Parameters
thickdthe GtkEntry sending the signal
datathe associated data pointer

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

Variable Documentation

◆ orgmodel

GtkTreeModel* orgmodel

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