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

4th 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-4.c:

Go to the source code of this file.

Functions

int get_active_axis (curve_edition *cedit)
 get active axis
G_MODULE_EXPORT void set_axis_min (GtkEntry *res, gpointer data)
 set axis min
G_MODULE_EXPORT void set_axis_max (GtkEntry *res, gpointer data)
 set axis max
G_MODULE_EXPORT void set_max_div (GtkEntry *maj, gpointer data)
 set number of major tick divisions
G_MODULE_EXPORT void set_min_div_spin (GtkSpinButton *res, gpointer data)
 set number of minor tick division(s)
G_MODULE_EXPORT void set_ticks_size_major_spin (GtkSpinButton *res, gpointer data)
 set major ticks size
G_MODULE_EXPORT void set_ticks_size_minor_spin (GtkSpinButton *res, gpointer data)
 set minor ticks size
G_MODULE_EXPORT void set_lab_digit_spin (GtkSpinButton *res, gpointer data)
 set ticks label number of digit(s)
G_MODULE_EXPORT void set_lab_shift_x_spin (GtkSpinButton *res, gpointer data)
 set ticks label position shift on x axis
G_MODULE_EXPORT void set_lab_shift_y_spin (GtkSpinButton *res, gpointer data)
 set ticks label position shift on y axis
G_MODULE_EXPORT void set_axis_title_x_spin (GtkSpinButton *res, gpointer data)
 set axis title position shift on x axis
G_MODULE_EXPORT void set_axis_title_y_spin (GtkSpinButton *res, gpointer data)
 set axis title position shift on y axis
G_MODULE_EXPORT void set_io_ticks (GtkComboBox *box, gpointer data)
 change tick marks location
G_MODULE_EXPORT void set_pos_ticks (GtkComboBox *box, gpointer data)
 change tick marks position
G_MODULE_EXPORT void set_pos_labels (GtkComboBox *box, gpointer data)
 change ticks labels position
G_MODULE_EXPORT void set_ticks_labels_font (GtkFontButton *fontb, gpointer data)
 set ticks labels font
void ticks_angle_has_changed (gpointer data, double value)
 set ticks angle
G_MODULE_EXPORT gboolean scroll_set_ticks_angle (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data)
 set ticks angle callback - scroll
G_MODULE_EXPORT void set_ticks_angle (GtkRange *range, gpointer data)
 set ticks angle callback - range
G_MODULE_EXPORT void to_axis_title (GtkToggleButton *but, gpointer data)
 show / hide axis title toggle callback GTK3
G_MODULE_EXPORT void set_grid (GtkToggleButton *grid, gpointer data)
 show / hide grid toggle callback GTK3
G_MODULE_EXPORT void set_autoscale (GtkButton *autosc, gpointer data)
 autoscale axis
G_MODULE_EXPORT void set_axis (GtkToggleButton *axis, gpointer data)
 show / hide axis toggle callback GTK3
G_MODULE_EXPORT void set_axis_legend (GtkEntry *xtit, gpointer data)
 set axis legend entry callback
G_MODULE_EXPORT void set_axis_title_font (GtkFontButton *fontb, gpointer data)
 set axis title font
G_MODULE_EXPORT void set_scale (GtkComboBox *sbox, gpointer data)
 change the axis scale
G_MODULE_EXPORT void update_axis (GtkComboBox *box, gpointer data)
 change the axis
GtkWidget * create_tab_4 (curve_edition *cedit, gpointer data)
 handle the creation of the 4th tab of the curve edition dialog

Detailed Description

4th 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-4.c.

Function Documentation

◆ create_tab_4()

GtkWidget * create_tab_4 ( curve_edition * cedit,
gpointer data )

handle the creation of the 4th tab of the curve edition dialog

Parameters
ceditthe target curve_edition pointer
datathe associated data pointer

Definition at line 691 of file tab-4.c.

◆ get_active_axis()

int get_active_axis ( curve_edition * cedit)

get active axis

Parameters
ceditthe target curve_edition pointer

Definition at line 96 of file tab-4.c.

◆ scroll_set_ticks_angle()

G_MODULE_EXPORT gboolean scroll_set_ticks_angle ( GtkRange * range,
GtkScrollType scroll,
gdouble value,
gpointer data )

set ticks angle callback - scroll

Parameters
rangethe GtkRange sending the signal
scrollthe associated scroll type
valuethe range value
datathe associated data pointer

Definition at line 435 of file tab-4.c.

◆ set_autoscale()

G_MODULE_EXPORT void set_autoscale ( GtkButton * autosc,
gpointer data )

autoscale axis

Parameters
autoscthe GtkButton sending the signal
datathe associated data pointer

Definition at line 529 of file tab-4.c.

◆ set_axis()

G_MODULE_EXPORT void set_axis ( GtkToggleButton * axis,
gpointer data )

show / hide axis toggle callback GTK3

Parameters
axisthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 556 of file tab-4.c.

◆ set_axis_legend()

G_MODULE_EXPORT void set_axis_legend ( GtkEntry * xtit,
gpointer data )

set axis legend entry callback

Parameters
xtitthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 573 of file tab-4.c.

◆ set_axis_max()

G_MODULE_EXPORT void set_axis_max ( GtkEntry * res,
gpointer data )

set axis max

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 138 of file tab-4.c.

◆ set_axis_min()

G_MODULE_EXPORT void set_axis_min ( GtkEntry * res,
gpointer data )

set axis min

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 109 of file tab-4.c.

◆ set_axis_title_font()

G_MODULE_EXPORT void set_axis_title_font ( GtkFontButton * fontb,
gpointer data )

set axis title font

Parameters
fontbthe GtkFontButton sending the signal
datathe associated data pointer

Definition at line 590 of file tab-4.c.

◆ set_axis_title_x_spin()

G_MODULE_EXPORT void set_axis_title_x_spin ( GtkSpinButton * res,
gpointer data )

set axis title position shift on x axis

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 314 of file tab-4.c.

◆ set_axis_title_y_spin()

G_MODULE_EXPORT void set_axis_title_y_spin ( GtkSpinButton * res,
gpointer data )

set axis title position shift on y axis

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 333 of file tab-4.c.

◆ set_grid()

G_MODULE_EXPORT void set_grid ( GtkToggleButton * grid,
gpointer data )

show / hide grid toggle callback GTK3

Parameters
gridthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 512 of file tab-4.c.

◆ set_io_ticks()

G_MODULE_EXPORT void set_io_ticks ( GtkComboBox * box,
gpointer data )

change tick marks location

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 352 of file tab-4.c.

◆ set_lab_digit_spin()

G_MODULE_EXPORT void set_lab_digit_spin ( GtkSpinButton * res,
gpointer data )

set ticks label number of digit(s)

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 251 of file tab-4.c.

◆ set_lab_shift_x_spin()

G_MODULE_EXPORT void set_lab_shift_x_spin ( GtkSpinButton * res,
gpointer data )

set ticks label position shift on x axis

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 272 of file tab-4.c.

◆ set_lab_shift_y_spin()

G_MODULE_EXPORT void set_lab_shift_y_spin ( GtkSpinButton * res,
gpointer data )

set ticks label position shift on y axis

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 293 of file tab-4.c.

◆ set_max_div()

G_MODULE_EXPORT void set_max_div ( GtkEntry * maj,
gpointer data )

set number of major tick divisions

Parameters
majthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 164 of file tab-4.c.

◆ set_min_div_spin()

G_MODULE_EXPORT void set_min_div_spin ( GtkSpinButton * res,
gpointer data )

set number of minor tick division(s)

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 192 of file tab-4.c.

◆ set_pos_labels()

G_MODULE_EXPORT void set_pos_labels ( GtkComboBox * box,
gpointer data )

change ticks labels position

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 384 of file tab-4.c.

◆ set_pos_ticks()

G_MODULE_EXPORT void set_pos_ticks ( GtkComboBox * box,
gpointer data )

change tick marks position

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

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

◆ set_scale()

G_MODULE_EXPORT void set_scale ( GtkComboBox * sbox,
gpointer data )

change the axis scale

Parameters
sboxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 607 of file tab-4.c.

◆ set_ticks_angle()

G_MODULE_EXPORT void set_ticks_angle ( GtkRange * range,
gpointer data )

set ticks angle callback - range

Parameters
rangethe GtkRange sending the signal
datathe associated data pointer

Definition at line 449 of file tab-4.c.

◆ set_ticks_labels_font()

G_MODULE_EXPORT void set_ticks_labels_font ( GtkFontButton * fontb,
gpointer data )

set ticks labels font

Parameters
fontbthe GtkFontButton sending the signal
datathe associated data pointer

Definition at line 400 of file tab-4.c.

◆ set_ticks_size_major_spin()

G_MODULE_EXPORT void set_ticks_size_major_spin ( GtkSpinButton * res,
gpointer data )

set major ticks size

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 211 of file tab-4.c.

◆ set_ticks_size_minor_spin()

G_MODULE_EXPORT void set_ticks_size_minor_spin ( GtkSpinButton * res,
gpointer data )

set minor ticks size

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

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

◆ ticks_angle_has_changed()

void ticks_angle_has_changed ( gpointer data,
double value )

set ticks angle

Parameters
datathe associated data pointer
valuethe new ticks angle

Definition at line 417 of file tab-4.c.

◆ to_axis_title()

G_MODULE_EXPORT void to_axis_title ( GtkToggleButton * but,
gpointer data )

show / hide axis title toggle callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

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

◆ update_axis()

G_MODULE_EXPORT void update_axis ( GtkComboBox * box,
gpointer data )

change the axis

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 627 of file tab-4.c.