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

3rd 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-3.c:

Go to the source code of this file.

Functions

cairo_surface_t * draw_legend_surface (int da, double ti, ColRGBA dcol, ColRGBA bcol)
 draw legend preview
 
G_MODULE_EXPORT void show_data_legend (GtkToggleButton *leg, gpointer data)
 show / hide legend toggle callback GTK3
 
void set_legend_box_style (gpointer data)
 update legend style widgets
 
G_MODULE_EXPORT void show_data_legend_box (GtkToggleButton *bleg, gpointer data)
 show / hide legend box toggle callback GTK3
 
G_MODULE_EXPORT void set_legend_font (GtkFontButton *fontb, gpointer data)
 change legend font
 
G_MODULE_EXPORT void set_legend_color (GtkColorChooser *colob, gpointer data)
 change legend color
 
G_MODULE_EXPORT void set_legend_pos (GtkEntry *entry, gpointer data)
 set the legend position entry callback
 
G_MODULE_EXPORT void set_legend_box_line (GtkComboBox *fbox, gpointer data)
 change the legend box line type
 
G_MODULE_EXPORT void set_legend_box_thickness (GtkEntry *entry, gpointer data)
 set legend box thickness entry callback
 
G_MODULE_EXPORT void set_legend_box_color (GtkColorChooser *colob, gpointer data)
 set legend color
 
GtkWidget * create_tab_3 (gpointer data)
 handle the creation of the 3rd tab of the curve edition dialog
 

Variables

GtkWidget * legend_box = NULL
 
GtkWidget * legend_box_style = NULL
 
GtkWidget * legend_style_area = NULL
 
char * ctext [2]
 
qint dataxe [2]
 
int a
 
int b
 
int c
 
int d
 

Detailed Description

3rd 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-3.c.

Function Documentation

◆ create_tab_3()

GtkWidget * create_tab_3 ( gpointer data)

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.

◆ draw_legend_surface()

cairo_surface_t * draw_legend_surface ( int da,
double ti,
ColRGBA dcol,
ColRGBA bcol )

draw legend preview

Parameters
dathe dash type
tithe thickness
dcolthe legend color
bcolthe background color

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

◆ set_legend_box_color()

G_MODULE_EXPORT void set_legend_box_color ( GtkColorChooser * colob,
gpointer data )

set legend color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_legend_box_line()

G_MODULE_EXPORT void set_legend_box_line ( GtkComboBox * fbox,
gpointer data )

change the legend box line type

Parameters
fboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_legend_box_style()

void set_legend_box_style ( gpointer data)

update legend style widgets

Parameters
datathe associated data pointer

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

◆ set_legend_box_thickness()

G_MODULE_EXPORT void set_legend_box_thickness ( GtkEntry * entry,
gpointer data )

set legend box thickness entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_legend_color()

G_MODULE_EXPORT void set_legend_color ( GtkColorChooser * colob,
gpointer data )

change legend color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_legend_font()

G_MODULE_EXPORT void set_legend_font ( GtkFontButton * fontb,
gpointer data )

change legend font

Parameters
fontbthe GtkFontButton sending the signal
datathe associated data pointer

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

◆ set_legend_pos()

G_MODULE_EXPORT void set_legend_pos ( GtkEntry * entry,
gpointer data )

set the legend position entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ show_data_legend()

G_MODULE_EXPORT void show_data_legend ( GtkToggleButton * leg,
gpointer data )

show / hide legend toggle callback GTK3

Parameters
legthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ show_data_legend_box()

G_MODULE_EXPORT void show_data_legend_box ( GtkToggleButton * bleg,
gpointer data )

show / hide legend box toggle callback GTK3

Parameters
blegthe GtkToggleButton sending the signal
datathe associated data pointer

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

Variable Documentation

◆ a

int a
extern

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

◆ b

int b

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

◆ c

int c

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

◆ ctext

char* ctext[2]
extern

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

◆ d

int d

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

◆ dataxe

qint dataxe[2]
extern

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

◆ legend_box

GtkWidget* legend_box = NULL

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

◆ legend_box_style

GtkWidget* legend_box_style = NULL

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

◆ legend_style_area

GtkWidget* legend_style_area = NULL

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