atomes 1.1.16
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 "cedit.h"
+ Include dependency graph for tab-4.c:

Go to the source code of this file.

Functions

int get_active_axis ()
 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 *widg, gpointer data)
 change the axis
 
GtkWidget * create_tab_4 (gpointer data)
 handle the creation of the 4th tab of the curve edition dialog
 

Variables

GtkWidget * axischoice = NULL
 
GtkWidget * scale_box = NULL
 
GtkWidget * ticks_inout_box = NULL
 
GtkWidget * ticks_pos_box = NULL
 
GtkWidget * labels_pos_box = NULL
 
GtkWidget * ticks_labels_angle = NULL
 
GtkWidget * ticks_labels_font = NULL
 
GtkWidget * show_axis = NULL
 
GtkWidget * show_grid = NULL
 
GtkWidget * auto_scale = NULL
 
GtkWidget * axis_default_title = NULL
 
GtkWidget * axis_title = NULL
 
GtkWidget * axis_title_font = NULL
 
GtkWidget * majt = NULL
 
GtkWidget * vmin = NULL
 
GtkWidget * vmax = NULL
 
GtkWidget * nmi [2]
 
GtkWidget * ndi [2]
 
GtkWidget * mats [2]
 
GtkWidget * mits [2]
 
GtkWidget * nptx [2]
 
GtkWidget * npty [2]
 
GtkWidget * tptx [2]
 
GtkWidget * tpty [2]
 
qint dataxe [2]
 
qint framxe [4]
 
int a
 
int b
 
int c
 
int d
 
int handler_id
 

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 ( gpointer data)

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

Parameters
datathe associated data pointer

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

◆ get_active_axis()

int get_active_axis ( )

get active axis

Definition at line 121 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 520 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 628 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 658 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 682 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 167 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 134 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 703 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 375 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 398 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 604 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 421 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 300 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 325 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 350 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 197 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 229 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 459 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 440 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 724 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 534 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 478 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 252 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 275 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 499 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 558 of file tab-4.c.

◆ update_axis()

G_MODULE_EXPORT void update_axis ( GtkComboBox * widg,
gpointer data )

change the axis

Parameters
widgthe GtkComboBox sending the signal
datathe associated data pointer

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

Variable Documentation

◆ a

int a
extern

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

◆ auto_scale

GtkWidget* auto_scale = NULL

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

◆ axis_default_title

GtkWidget* axis_default_title = NULL

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

◆ axis_title

GtkWidget* axis_title = NULL

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

◆ axis_title_font

GtkWidget* axis_title_font = NULL

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

◆ axischoice

GtkWidget* axischoice = NULL

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

◆ b

int b

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

◆ c

int c

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

◆ d

int d

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

◆ dataxe

qint dataxe[2]
extern

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

◆ framxe

qint framxe[4]
extern

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

◆ handler_id

int handler_id

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

◆ labels_pos_box

GtkWidget* labels_pos_box = NULL

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

◆ majt

GtkWidget* majt = NULL

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

◆ mats

GtkWidget* mats[2]

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

◆ mits

GtkWidget* mits[2]

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

◆ ndi

GtkWidget * ndi[2]

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

◆ nmi

GtkWidget* nmi[2]

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

◆ nptx

GtkWidget* nptx[2]

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

◆ npty

GtkWidget * npty[2]

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

◆ scale_box

GtkWidget* scale_box = NULL

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

◆ show_axis

GtkWidget* show_axis = NULL

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

◆ show_grid

GtkWidget* show_grid = NULL

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

◆ ticks_inout_box

GtkWidget* ticks_inout_box = NULL

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

◆ ticks_labels_angle

GtkWidget* ticks_labels_angle = NULL

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

◆ ticks_labels_font

GtkWidget* ticks_labels_font = NULL

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

◆ ticks_pos_box

GtkWidget* ticks_pos_box = NULL

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

◆ tptx

GtkWidget* tptx[2]

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

◆ tpty

GtkWidget * tpty[2]

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

◆ vmax

GtkWidget* vmax = NULL

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

◆ vmin

GtkWidget* vmin = NULL

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