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

1st 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-1.c:

Go to the source code of this file.

Functions

void set_data_style (gpointer data)
 update the data style widgets
 
G_MODULE_EXPORT void set_window_size (GtkEntry *maj, gpointer data)
 change window size entry callback
 
cairo_surface_t * draw_frame_surface (int tf, int da, double ti, double x[2], double y[2], ColRGBA dcol, ColRGBA bcol)
 draw frame preview
 
G_MODULE_EXPORT void set_title (GtkToggleButton *but, gpointer data)
 show / hide title toggle callback GTK3
 
G_MODULE_EXPORT void set_title_default (GtkToggleButton *but, gpointer data)
 use / not default title toggle callback GTK3
 
G_MODULE_EXPORT void set_title_custom (GtkEntry *tit, gpointer data)
 set custom title entry callback
 
G_MODULE_EXPORT void set_title_font (GtkFontButton *fontb, gpointer data)
 set title font
 
G_MODULE_EXPORT void set_title_color (GtkColorChooser *colob, gpointer data)
 set title color
 
G_MODULE_EXPORT void set_title_pos (GtkEntry *entry, gpointer data)
 set axis title position entry callback
 
void set_frame_style (gpointer data)
 create frame preview
 
G_MODULE_EXPORT void set_show_frame (GtkToggleButton *but, gpointer data)
 show / hide frame toggle callback GTK3
 
G_MODULE_EXPORT void set_background_color (GtkColorChooser *colob, gpointer data)
 change background color
 
G_MODULE_EXPORT void set_frame_type (GtkComboBox *fbox, gpointer data)
 change frame type
 
G_MODULE_EXPORT void set_frame_line (GtkComboBox *fbox, gpointer data)
 change frame line type
 
G_MODULE_EXPORT void set_frame_thickness (GtkEntry *entry, gpointer data)
 set frame thickness entry callback
 
G_MODULE_EXPORT void set_frame_color (GtkColorChooser *colob, gpointer data)
 set frame color
 
G_MODULE_EXPORT void set_frame_pos (GtkEntry *fen, gpointer data)
 set frame position entry callback
 
GtkWidget * create_tab_1 (gpointer data)
 handle the creation of the 1st tab of the curve edition dialog
 

Variables

GtkWidget * title_box = NULL
 
GtkWidget * frame [11]
 
GtkWidget * frame_box = NULL
 
GtkWidget * frame_style_area = NULL
 
GtkWidget * frame_pix_box = NULL
 
char * ctext [2]
 
qint dataxe [2]
 
qint framxe [4]
 
GtkWidget * custom_title = NULL
 
int a
 
int b
 
int c
 
int d
 

Detailed Description

1st 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-1.c.

Function Documentation

◆ create_tab_1()

GtkWidget * create_tab_1 ( gpointer data)

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.

◆ draw_frame_surface()

cairo_surface_t * draw_frame_surface ( int tf,
int da,
double ti,
double x[2],
double y[2],
ColRGBA dcol,
ColRGBA bcol )

draw frame preview

Parameters
tfframe type
daframe dash
tiframe thickness
xx positions (min / max)
yy positions (min / max)
dcolframe color
bcolbackground color

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

◆ set_background_color()

G_MODULE_EXPORT void set_background_color ( GtkColorChooser * colob,
gpointer data )

change background color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_data_style()

void set_data_style ( gpointer data)
extern

update the data style widgets

Parameters
datathe associated data pointer

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

◆ set_frame_color()

G_MODULE_EXPORT void set_frame_color ( GtkColorChooser * colob,
gpointer data )

set frame color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_frame_line()

G_MODULE_EXPORT void set_frame_line ( GtkComboBox * fbox,
gpointer data )

change frame line type

Parameters
fboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_frame_pos()

G_MODULE_EXPORT void set_frame_pos ( GtkEntry * fen,
gpointer data )

set frame position entry callback

Parameters
fenthe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_frame_style()

void set_frame_style ( gpointer data)

create frame preview

Parameters
datathe associated data pointer

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

◆ set_frame_thickness()

G_MODULE_EXPORT void set_frame_thickness ( GtkEntry * entry,
gpointer data )

set frame thickness entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_frame_type()

G_MODULE_EXPORT void set_frame_type ( GtkComboBox * fbox,
gpointer data )

change frame type

Parameters
fboxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_show_frame()

G_MODULE_EXPORT void set_show_frame ( GtkToggleButton * but,
gpointer data )

show / hide frame toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ set_title()

G_MODULE_EXPORT void set_title ( GtkToggleButton * but,
gpointer data )

show / hide title toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ set_title_color()

G_MODULE_EXPORT void set_title_color ( GtkColorChooser * colob,
gpointer data )

set title color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

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

◆ set_title_custom()

G_MODULE_EXPORT void set_title_custom ( GtkEntry * tit,
gpointer data )

set custom title entry callback

Parameters
titthe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_title_default()

G_MODULE_EXPORT void set_title_default ( GtkToggleButton * but,
gpointer data )

use / not default title toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ set_title_font()

G_MODULE_EXPORT void set_title_font ( GtkFontButton * fontb,
gpointer data )

set title font

Parameters
fontbthe GtkFontButton sending the signal
datathe associated data pointer

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

◆ set_title_pos()

G_MODULE_EXPORT void set_title_pos ( GtkEntry * entry,
gpointer data )

set axis title position entry callback

Parameters
entrythe GtkEntry sending the signal
datathe associated data pointer

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

◆ set_window_size()

G_MODULE_EXPORT void set_window_size ( GtkEntry * maj,
gpointer data )

change window size entry callback

Parameters
majthe GtkEntry sending the signal
datathe associated data pointer

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

Variable Documentation

◆ a

int a

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

◆ b

int b

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

◆ c

int c

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

◆ ctext

char* ctext[2]

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

◆ custom_title

GtkWidget* custom_title = NULL

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

◆ d

int d

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

◆ dataxe

qint dataxe[2]

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

◆ frame

GtkWidget* frame[11]

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

◆ frame_box

GtkWidget* frame_box = NULL

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

◆ frame_pix_box

GtkWidget* frame_pix_box = NULL

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

◆ frame_style_area

GtkWidget* frame_style_area = NULL

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

◆ framxe

qint framxe[4]

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

◆ title_box

GtkWidget* title_box = NULL

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