atomes 1.3.1
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 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 (curve_edition *cedit, gpointer data)
 handle the creation of the 1st tab of the curve edition dialog

Variables

char * ctext [2] = {"x &#x2208; [0.0, 1.0]", "y &#x2208; [0.0, 1.0]"}

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 ( curve_edition * cedit,
gpointer data )

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.

◆ 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 147 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 377 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 190 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 437 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 405 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 451 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 318 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 419 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 391 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 360 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 188 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 272 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 239 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 216 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 256 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 286 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 95 of file tab-1.c.

Variable Documentation

◆ ctext

char* ctext[2] = {"x &#x2208; [0.0, 1.0]", "y &#x2208; [0.0, 1.0]"}

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