atomes 1.1.15
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 "cedit.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 (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)
 
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
 
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 (gpointer data)
 handle the creation of the 2nd tab of the curve edition dialog
 

Variables

GtkWidget * data_shape = NULL
 
GtkWidget * data_color = NULL
 
GtkWidget * data_aspect = NULL
 
GtkWidget * data_thickness = NULL
 
GtkWidget * data_glyph = NULL
 
GtkWidget * data_glyph_size = NULL
 
GtkWidget * data_glyph_freq = NULL
 
GtkWidget * data_hist_width = NULL
 
GtkWidget * data_hist_opac = NULL
 
GtkWidget * data_hist_pos = NULL
 
GtkWidget * data_dash = NULL
 
GtkWidget * stylearea = NULL
 
GtkWidget * pixarea = NULL
 
GtkWidget * Glyph_box = NULL
 
GtkWidget * Hist_box = NULL
 
GtkWidget * xyl [2]
 
GtkWidget * orgtree = NULL
 
GtkTreeModel * orgmodel = NULL
 
GtkWidget * datascroll = NULL
 
qint dataxe [2]
 
int a
 
int b
 
int c
 
int d
 

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 629 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 895 of file tab-2.c.

◆ create_tab_2()

GtkWidget * create_tab_2 ( gpointer data)

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.

◆ 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 119 of file tab-2.c.

◆ get_extra_layout()

DataLayout * get_extra_layout ( int i)

retrieve the i data layout

Parameters
ithe id of data layout to retrieve

Definition at line 195 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 765 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 948 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 672 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 334 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 298 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 260 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 582 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 410 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 506 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 554 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 458 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 213 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 362 of file tab-2.c.

Variable Documentation

◆ a

int a
extern

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

◆ b

int b

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

◆ c

int c

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

◆ d

int d

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

◆ data_aspect

GtkWidget* data_aspect = NULL

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

◆ data_color

GtkWidget* data_color = NULL

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

◆ data_dash

GtkWidget* data_dash = NULL

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

◆ data_glyph

GtkWidget* data_glyph = NULL

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

◆ data_glyph_freq

GtkWidget* data_glyph_freq = NULL

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

◆ data_glyph_size

GtkWidget* data_glyph_size = NULL

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

◆ data_hist_opac

GtkWidget* data_hist_opac = NULL

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

◆ data_hist_pos

GtkWidget* data_hist_pos = NULL

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

◆ data_hist_width

GtkWidget* data_hist_width = NULL

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

◆ data_shape

GtkWidget* data_shape = NULL

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

◆ data_thickness

GtkWidget* data_thickness = NULL

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

◆ datascroll

GtkWidget* datascroll = NULL

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

◆ dataxe

qint dataxe[2]
extern

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

◆ Glyph_box

GtkWidget* Glyph_box = NULL

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

◆ Hist_box

GtkWidget* Hist_box = NULL

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

◆ orgmodel

GtkTreeModel* orgmodel = NULL

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

◆ orgtree

GtkWidget* orgtree = NULL

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

◆ pixarea

GtkWidget* pixarea = NULL

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

◆ stylearea

GtkWidget* stylearea = NULL

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

◆ xyl

GtkWidget* xyl[2]

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