GDS-Render v1.2.1
Graphical User Interface
Collaboration diagram for Graphical User Interface:

Modules

 LayerSelector Object
 
 LibCellRenderer GObject
 
 Custom GTK Widgets
 

Data Structures

struct  gui_button_states
 
struct  _GdsRenderGui
 

Macros

#define RENDERER_TYPE_GUI   (gds_render_gui_get_type())
 

Enumerations

enum  cell_store_columns { CELL_SEL_LIBRARY = 0 , CELL_SEL_CELL , CELL_SEL_CELL_ERROR_STATE , CELL_SEL_COLUMN_COUNT }
 Columns of selection tree view. More...
 
enum  gds_render_gui_signal_sig_ids { SIGNAL_WINDOW_CLOSED = 0 , SIGNAL_COUNT }
 

Functions

static gboolean on_window_close (gpointer window, GdkEvent *event, gpointer user)
 Main window close event. More...
 
static gboolean tree_sel_func (GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer data)
 This function only allows valid cells to be selected. More...
 
static void cell_tree_view_change_filter (GtkWidget *entry, gpointer data)
 Trigger refiltering of cell filter. More...
 
static gboolean cell_store_filter_visible_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
 cell_store_filter_visible_func Decides whether an element of the tree model model is visible. More...
 
int gds_render_gui_setup_cell_selector (GdsRenderGui *self)
 Setup a GtkTreeView with the necessary columns. More...
 
static void on_load_gds (gpointer button, gpointer user)
 Callback function of Load GDS button. More...
 
static void process_button_state_changes (GdsRenderGui *self)
 
static void on_auto_color_clicked (gpointer button, gpointer user)
 Callback for auto coloring button. More...
 
static void async_rendering_finished_callback (GdsOutputRenderer *renderer, gpointer gui)
 
static void async_rendering_status_update_callback (GdsOutputRenderer *renderer, const char *status_message, gpointer data)
 
static void on_convert_clicked (gpointer button, gpointer user)
 Convert button callback. More...
 
static void cell_tree_view_activated (gpointer tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user)
 cell_tree_view_activated Callback for 'double click' on cell selector element More...
 
static void cell_selection_changed (GtkTreeSelection *sel, GdsRenderGui *self)
 Callback for cell-selection change event. More...
 
static void sort_up_callback (GtkWidget *widget, gpointer user)
 
static void sort_down_callback (GtkWidget *widget, gpointer user)
 
static void gds_render_gui_dispose (GObject *gobject)
 
static void gds_render_gui_class_init (GdsRenderGuiClass *klass)
 
static void on_select_all_layers_clicked (GtkWidget *button, gpointer user_data)
 Callback for the 'select all layers'-button. More...
 
static gboolean auto_naming_ask_for_override (GdsRenderGui *gui)
 
static void auto_naming_clicked (GtkWidget *button, gpointer user_data)
 
GtkWindow * gds_render_gui_get_main_window (GdsRenderGui *gui)
 Get main window. More...
 
static void gds_render_gui_init (GdsRenderGui *self)
 
GdsRenderGui * gds_render_gui_new ()
 Create new GdsRenderGui Object. More...
 
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE (GdsRenderGui, gds_render_gui, RENDERER, GUI, GObject)
 

Variables

static guint gds_render_gui_signals [SIGNAL_COUNT]
 

Detailed Description

Macro Definition Documentation

◆ RENDERER_TYPE_GUI

#define RENDERER_TYPE_GUI   (gds_render_gui_get_type())

Definition at line 40 of file gds-render-gui.h.

Enumeration Type Documentation

◆ cell_store_columns

Columns of selection tree view.

Enumerator
CELL_SEL_LIBRARY 
CELL_SEL_CELL 
CELL_SEL_CELL_ERROR_STATE 

Used for cell color and selectability

CELL_SEL_COLUMN_COUNT 

Not a column. Used to determine count of columns.

Definition at line 47 of file gds-render-gui.c.

◆ gds_render_gui_signal_sig_ids

Enumerator
SIGNAL_WINDOW_CLOSED 
SIGNAL_COUNT 

Definition at line 54 of file gds-render-gui.c.

Function Documentation

◆ async_rendering_finished_callback()

static void async_rendering_finished_callback ( GdsOutputRenderer *  renderer,
gpointer  gui 
)
static

Definition at line 395 of file gds-render-gui.c.

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

◆ async_rendering_status_update_callback()

static void async_rendering_status_update_callback ( GdsOutputRenderer *  renderer,
const char *  status_message,
gpointer  data 
)
static

Definition at line 408 of file gds-render-gui.c.

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

◆ auto_naming_ask_for_override()

static gboolean auto_naming_ask_for_override ( GdsRenderGui *  gui)
static

Definition at line 694 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ auto_naming_clicked()

static void auto_naming_clicked ( GtkWidget *  button,
gpointer  user_data 
)
static

Definition at line 720 of file gds-render-gui.c.

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

◆ cell_selection_changed()

static void cell_selection_changed ( GtkTreeSelection *  sel,
GdsRenderGui *  self 
)
static

Callback for cell-selection change event.

This function activates/deactivates the convert button depending on whether a cell is selected for conversion or not

Parameters
sel
self

Definition at line 594 of file gds-render-gui.c.

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

◆ cell_store_filter_visible_func()

static gboolean cell_store_filter_visible_func ( GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data 
)
static

cell_store_filter_visible_func Decides whether an element of the tree model model is visible.

Parameters
modelTree model
iterCurrent element / iter in Model to check
dataData. Set to static stores variable
Returns
TRUE if visible, else FALSE
Note
TODO: Maybe implement Damerau-Levenshtein distance matching

Definition at line 174 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ cell_tree_view_activated()

static void cell_tree_view_activated ( gpointer  tree_view,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
gpointer  user 
)
static

cell_tree_view_activated Callback for 'double click' on cell selector element

Parameters
tree_viewThe tree view the event occured in
pathpath to the selected row
columnThe clicked column
userpointer to GdsRenderGui object

Definition at line 576 of file gds-render-gui.c.

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

◆ cell_tree_view_change_filter()

static void cell_tree_view_change_filter ( GtkWidget *  entry,
gpointer  data 
)
static

Trigger refiltering of cell filter.

Parameters
entryUnused widget, that emitted the signal
dataGdsrenderGui self instance

Definition at line 158 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ G_DECLARE_FINAL_TYPE()

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE ( GdsRenderGui  ,
gds_render_gui  ,
RENDERER  ,
GUI  ,
GObject   
)

◆ gds_render_gui_class_init()

static void gds_render_gui_class_init ( GdsRenderGuiClass *  klass)
static

Definition at line 662 of file gds-render-gui.c.

Here is the call graph for this function:

◆ gds_render_gui_dispose()

static void gds_render_gui_dispose ( GObject *  gobject)
static

Definition at line 631 of file gds-render-gui.c.

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

◆ gds_render_gui_get_main_window()

GtkWindow * gds_render_gui_get_main_window ( GdsRenderGui *  gui)

Get main window.

This function returns the main window of the GUI, which can later be displayed. All handling of hte GUI is taken care of inside the GdsRenderGui Object

Returns
The generated main window

Definition at line 739 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ gds_render_gui_init()

static void gds_render_gui_init ( GdsRenderGui *  self)
static

Definition at line 744 of file gds-render-gui.c.

Here is the call graph for this function:

◆ gds_render_gui_new()

GdsRenderGui * gds_render_gui_new ( )

Create new GdsRenderGui Object.

Returns
New object

Definition at line 847 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ gds_render_gui_setup_cell_selector()

int gds_render_gui_setup_cell_selector ( GdsRenderGui *  self)

Setup a GtkTreeView with the necessary columns.

Parameters
selfCurrent GUI object

Definition at line 218 of file gds-render-gui.c.

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

◆ on_auto_color_clicked()

static void on_auto_color_clicked ( gpointer  button,
gpointer  user 
)
static

Callback for auto coloring button.

Parameters
button
user

Definition at line 386 of file gds-render-gui.c.

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

◆ on_convert_clicked()

static void on_convert_clicked ( gpointer  button,
gpointer  user 
)
static

Convert button callback.

Parameters
button
user

Definition at line 425 of file gds-render-gui.c.

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

◆ on_load_gds()

static void on_load_gds ( gpointer  button,
gpointer  user 
)
static

Callback function of Load GDS button.

Parameters
button
userGdsRenderGui instance

Definition at line 263 of file gds-render-gui.c.

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

◆ on_select_all_layers_clicked()

static void on_select_all_layers_clicked ( GtkWidget *  button,
gpointer  user_data 
)
static

Callback for the 'select all layers'-button.

Parameters
buttonButton that triggered the event
user_datathe GdsrenderGui object containing the main-window the button is placed in

Definition at line 685 of file gds-render-gui.c.

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

◆ on_window_close()

static gboolean on_window_close ( gpointer  window,
GdkEvent *  event,
gpointer  user 
)
static

Main window close event.

Parameters
windowGtkWindow which is closed
eventunused event
userGdsRenderGui instance
Returns
Status of the event handling. Always true.

Definition at line 95 of file gds-render-gui.c.

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

◆ process_button_state_changes()

static void process_button_state_changes ( GdsRenderGui *  self)
static

Definition at line 364 of file gds-render-gui.c.

Here is the caller graph for this function:

◆ sort_down_callback()

static void sort_down_callback ( GtkWidget *  widget,
gpointer  user 
)
static

Definition at line 620 of file gds-render-gui.c.

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

◆ sort_up_callback()

static void sort_up_callback ( GtkWidget *  widget,
gpointer  user 
)
static

Definition at line 609 of file gds-render-gui.c.

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

◆ tree_sel_func()

static gboolean tree_sel_func ( GtkTreeSelection *  selection,
GtkTreeModel *  model,
GtkTreePath *  path,
gboolean  path_currently_selected,
gpointer  data 
)
static

This function only allows valid cells to be selected.

Parameters
selection
model
path
path_currently_selected
data
Returns
TRUE if element is selectable, FALSE if not

Definition at line 126 of file gds-render-gui.c.

Here is the caller graph for this function:

Variable Documentation

◆ gds_render_gui_signals

guint gds_render_gui_signals[SIGNAL_COUNT]
static

Definition at line 56 of file gds-render-gui.c.