GDS-Render v1.2.1
Collaboration diagram for RendererSettingsDialog:

Data Structures

struct  render_settings
 This struct holds the renderer configuration. More...
 
struct  _RendererSettingsDialog
 

Macros

#define RENDERER_TYPE_SETTINGS_DIALOG   (renderer_settings_dialog_get_type())
 

Enumerations

enum  output_renderer { RENDERER_LATEX_TIKZ , RENDERER_CAIROGRAPHICS_PDF , RENDERER_CAIROGRAPHICS_SVG }
 return type of the RedererSettingsDialog More...
 
enum  { PROP_CELL_NAME = 1 , PROP_COUNT }
 

Functions

RendererSettingsDialog * renderer_settings_dialog_new (GtkWindow *parent)
 Create a new RedererSettingsDialog GObject. More...
 
G_END_DECLS void renderer_settings_dialog_set_settings (RendererSettingsDialog *dialog, struct render_settings *settings)
 Apply settings to dialog. More...
 
void renderer_settings_dialog_get_settings (RendererSettingsDialog *dialog, struct render_settings *settings)
 Get the settings configured in the dialog. More...
 
void renderer_settings_dialog_set_cell_width (RendererSettingsDialog *dialog, unsigned int width)
 renderer_settings_dialog_set_cell_width Set width for rendered cell More...
 
void renderer_settings_dialog_set_cell_height (RendererSettingsDialog *dialog, unsigned int height)
 renderer_settings_dialog_set_cell_height Set height for rendered cell More...
 
void renderer_settings_dialog_set_database_unit_scale (RendererSettingsDialog *dialog, double unit_in_meters)
 renderer_settings_dialog_set_database_unit_scale Set database scale More...
 
static void renderer_settings_dialog_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
 
static void renderer_settings_dialog_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
 
static void renderer_settings_dialog_class_init (RendererSettingsDialogClass *klass)
 
static void show_tex_options (RendererSettingsDialog *self)
 
static void hide_tex_options (RendererSettingsDialog *self)
 
static void latex_render_callback (GtkToggleButton *radio, RendererSettingsDialog *dialog)
 
static gboolean shape_drawer_drawing_callback (GtkWidget *widget, cairo_t *cr, gpointer data)
 
static double convert_number_to_engineering (double input, const char **out_prefix)
 
static void renderer_settings_dialog_update_labels (RendererSettingsDialog *self)
 
static void scale_value_changed (GtkRange *range, gpointer user_data)
 
static void renderer_settings_dialog_init (RendererSettingsDialog *self)
 

Variables

static GParamSpec * properties [PROP_COUNT]
 

Detailed Description

Macro Definition Documentation

◆ RENDERER_TYPE_SETTINGS_DIALOG

#define RENDERER_TYPE_SETTINGS_DIALOG   (renderer_settings_dialog_get_type())

Definition at line 51 of file conv-settings-dialog.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PROP_CELL_NAME 
PROP_COUNT 

Definition at line 58 of file conv-settings-dialog.c.

◆ output_renderer

return type of the RedererSettingsDialog

Enumerator
RENDERER_LATEX_TIKZ 
RENDERER_CAIROGRAPHICS_PDF 
RENDERER_CAIROGRAPHICS_SVG 

Definition at line 40 of file conv-settings-dialog.h.

Function Documentation

◆ convert_number_to_engineering()

static double convert_number_to_engineering ( double  input,
const char **  out_prefix 
)
static

Definition at line 185 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ hide_tex_options()

static void hide_tex_options ( RendererSettingsDialog *  self)
static

Definition at line 121 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ latex_render_callback()

static void latex_render_callback ( GtkToggleButton *  radio,
RendererSettingsDialog *  dialog 
)
static

Definition at line 127 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderer_settings_dialog_class_init()

static void renderer_settings_dialog_class_init ( RendererSettingsDialogClass *  klass)
static

Definition at line 98 of file conv-settings-dialog.c.

Here is the call graph for this function:

◆ renderer_settings_dialog_get_property()

static void renderer_settings_dialog_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
)
static

Definition at line 82 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ renderer_settings_dialog_get_settings()

void renderer_settings_dialog_get_settings ( RendererSettingsDialog *  dialog,
struct render_settings settings 
)

Get the settings configured in the dialog.

Parameters
dialog
settings

Definition at line 321 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ renderer_settings_dialog_init()

static void renderer_settings_dialog_init ( RendererSettingsDialog *  self)
static

Definition at line 269 of file conv-settings-dialog.c.

Here is the call graph for this function:

◆ renderer_settings_dialog_new()

RendererSettingsDialog * renderer_settings_dialog_new ( GtkWindow *  parent)

Create a new RedererSettingsDialog GObject.

Parameters
parentParent window
Returns
Created dialog object

Definition at line 310 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ renderer_settings_dialog_set_cell_height()

void renderer_settings_dialog_set_cell_height ( RendererSettingsDialog *  dialog,
unsigned int  height 
)

renderer_settings_dialog_set_cell_height Set height for rendered cell

Parameters
dialog
heightHeight in database units

Definition at line 377 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderer_settings_dialog_set_cell_width()

void renderer_settings_dialog_set_cell_width ( RendererSettingsDialog *  dialog,
unsigned int  width 
)

renderer_settings_dialog_set_cell_width Set width for rendered cell

Parameters
dialog
widthWidth in database units

Definition at line 365 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderer_settings_dialog_set_database_unit_scale()

void renderer_settings_dialog_set_database_unit_scale ( RendererSettingsDialog *  dialog,
double  unit_in_meters 
)

renderer_settings_dialog_set_database_unit_scale Set database scale

Parameters
dialogdialog element
unit_in_metersDatabase unit in meters

Definition at line 389 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderer_settings_dialog_set_property()

static void renderer_settings_dialog_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

Definition at line 65 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ renderer_settings_dialog_set_settings()

void renderer_settings_dialog_set_settings ( RendererSettingsDialog *  dialog,
struct render_settings settings 
)

Apply settings to dialog.

Parameters
dialog
settings

Definition at line 340 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderer_settings_dialog_update_labels()

static void renderer_settings_dialog_update_labels ( RendererSettingsDialog *  self)
static

Definition at line 224 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scale_value_changed()

static void scale_value_changed ( GtkRange *  range,
gpointer  user_data 
)
static

Definition at line 260 of file conv-settings-dialog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shape_drawer_drawing_callback()

static gboolean shape_drawer_drawing_callback ( GtkWidget *  widget,
cairo_t *  cr,
gpointer  data 
)
static

Definition at line 135 of file conv-settings-dialog.c.

Here is the caller graph for this function:

◆ show_tex_options()

static void show_tex_options ( RendererSettingsDialog *  self)
static

Definition at line 114 of file conv-settings-dialog.c.

Here is the caller graph for this function:

Variable Documentation

◆ properties

GParamSpec* properties[PROP_COUNT]
static

Definition at line 63 of file conv-settings-dialog.c.