Compare commits
3 Commits
f60150e8c7
...
7492764666
Author | SHA1 | Date | |
---|---|---|---|
7492764666 | |||
6c840b8bd1 | |||
3489b74027 |
@ -32,7 +32,7 @@ set(SOURCE
|
|||||||
${LAYER_SELECTOR_SOURCES}
|
${LAYER_SELECTOR_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_compile_options(-Wall -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized)
|
add_compile_options(-Wall -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/resources/resources.c)
|
add_executable(${PROJECT_NAME} ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/resources/resources.c)
|
||||||
add_dependencies(${PROJECT_NAME} glib-resources)
|
add_dependencies(${PROJECT_NAME} glib-resources)
|
||||||
|
@ -42,6 +42,7 @@ enum {
|
|||||||
|
|
||||||
void lib_cell_renderer_init(LibCellRenderer *self)
|
void lib_cell_renderer_init(LibCellRenderer *self)
|
||||||
{
|
{
|
||||||
|
(void)self;
|
||||||
/* Nothing to do */
|
/* Nothing to do */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,6 +112,8 @@ static void lib_cell_renderer_get_property(GObject *object,
|
|||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
|
(void)value;
|
||||||
|
|
||||||
switch (param_id) {
|
switch (param_id) {
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec);
|
||||||
|
@ -1999,7 +1999,7 @@ MAN_LINKS = NO
|
|||||||
# captures the structure of the code including all documentation.
|
# captures the structure of the code including all documentation.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
GENERATE_XML = NO
|
GENERATE_XML = YES
|
||||||
|
|
||||||
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @defgroup LaTeX-Renderer LaTeX/TikZ Renderer
|
* @defgroup LaTeX-Renderer LaTeX / TikZ Renderer
|
||||||
* @ingroup GdsOutputRenderer
|
* @ingroup GdsOutputRenderer
|
||||||
*
|
*
|
||||||
* This is the class implementing the Latex / tikz output rendering
|
* This is the class implementing the \f$\mbox{\LaTeX}\f$ / TikZ output rendering
|
||||||
|
|
||||||
* @subsection LaTeXRendererProps Properties
|
* @subsection LaTeXRendererProps Properties
|
||||||
* This class inherits all properties from its parent @ref GdsOutputRenderer.
|
* This class inherits all properties from its parent @ref GdsOutputRenderer.
|
||||||
|
@ -86,6 +86,7 @@ G_DEFINE_TYPE(GdsRenderGui, gds_render_gui, G_TYPE_OBJECT)
|
|||||||
static gboolean on_window_close(gpointer window, GdkEvent *event, gpointer user)
|
static gboolean on_window_close(gpointer window, GdkEvent *event, gpointer user)
|
||||||
{
|
{
|
||||||
GdsRenderGui *self;
|
GdsRenderGui *self;
|
||||||
|
(void)event;
|
||||||
|
|
||||||
self = RENDERER_GUI(user);
|
self = RENDERER_GUI(user);
|
||||||
/* Don't close window in case of error */
|
/* Don't close window in case of error */
|
||||||
|
@ -91,6 +91,17 @@ void bounding_box_prepare_empty(union bounding_box *box)
|
|||||||
box->vectors.upper_right.y = -DBL_MAX;
|
box->vectors.upper_right.y = -DBL_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Calculate path miter points for a pathwith a \p width and the anchors \p a \p b \p c.
|
||||||
|
* @param[in] a
|
||||||
|
* @param[in] b
|
||||||
|
* @param[in] c
|
||||||
|
* @param[out] m1
|
||||||
|
* @param[out] m2
|
||||||
|
* @param[in] width
|
||||||
|
* @return Miter points in \p m1 and \p m2
|
||||||
|
* @note This function is currently unused (and untested). Ignore any compiler warning regarding this function.
|
||||||
|
*/
|
||||||
static void calculate_path_miter_points(struct vector_2d *a, struct vector_2d *b, struct vector_2d *c,
|
static void calculate_path_miter_points(struct vector_2d *a, struct vector_2d *b, struct vector_2d *c,
|
||||||
struct vector_2d *m1, struct vector_2d *m2, double width)
|
struct vector_2d *m1, struct vector_2d *m2, double width)
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/** @addtogroup CairoRenderer
|
/** @addtogroup Cairo-Renderer
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -158,6 +158,14 @@ static void layer_selector_drag_data_received(GtkWidget *widget, GdkDragContext
|
|||||||
GtkWidget *source;
|
GtkWidget *source;
|
||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
|
/* Handle unused parameters */
|
||||||
|
(void)context;
|
||||||
|
(void)x;
|
||||||
|
(void)y;
|
||||||
|
(void)info;
|
||||||
|
(void)time;
|
||||||
|
(void)data;
|
||||||
|
|
||||||
row_before = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-before"));
|
row_before = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-before"));
|
||||||
row_after = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-after"));
|
row_after = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-after"));
|
||||||
|
|
||||||
@ -196,6 +204,10 @@ static gboolean layer_selector_drag_motion(GtkWidget *widget, GdkDragContext *co
|
|||||||
GtkWidget *drag_row;
|
GtkWidget *drag_row;
|
||||||
GtkWidget *row_before;
|
GtkWidget *row_before;
|
||||||
GtkWidget *row_after;
|
GtkWidget *row_after;
|
||||||
|
(void)context;
|
||||||
|
(void)x;
|
||||||
|
(void)y;
|
||||||
|
(void)time;
|
||||||
|
|
||||||
row = GTK_WIDGET(gtk_list_box_get_row_at_y(GTK_LIST_BOX(widget), y));
|
row = GTK_WIDGET(gtk_list_box_get_row_at_y(GTK_LIST_BOX(widget), y));
|
||||||
|
|
||||||
@ -249,6 +261,8 @@ static void layer_selector_drag_leave(GtkWidget *widget, GdkDragContext *context
|
|||||||
GtkWidget *drag_row;
|
GtkWidget *drag_row;
|
||||||
GtkWidget *row_before;
|
GtkWidget *row_before;
|
||||||
GtkWidget *row_after;
|
GtkWidget *row_after;
|
||||||
|
(void)context;
|
||||||
|
(void)time;
|
||||||
|
|
||||||
drag_row = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "drag-row"));
|
drag_row = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "drag-row"));
|
||||||
row_before = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-before"));
|
row_before = GTK_WIDGET(g_object_get_data(G_OBJECT(widget), "row-before"));
|
||||||
@ -664,6 +678,7 @@ static void layer_selector_load_mapping_clicked(GtkWidget *button, gpointer user
|
|||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
gint res;
|
gint res;
|
||||||
gchar *file_name;
|
gchar *file_name;
|
||||||
|
(void)button;
|
||||||
|
|
||||||
sel = LAYER_SELECTOR(user_data);
|
sel = LAYER_SELECTOR(user_data);
|
||||||
|
|
||||||
@ -723,6 +738,7 @@ static void layer_selector_save_mapping_clicked(GtkWidget *button, gpointer user
|
|||||||
gint res;
|
gint res;
|
||||||
gchar *file_name;
|
gchar *file_name;
|
||||||
LayerSelector *sel;
|
LayerSelector *sel;
|
||||||
|
(void)button;
|
||||||
|
|
||||||
sel = LAYER_SELECTOR(user_data);
|
sel = LAYER_SELECTOR(user_data);
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @author Mario Hüttel <mario.huettel@gmx.net>
|
* @author Mario Hüttel <mario.huettel@gmx.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @addtogroup CairoRenderer
|
/** @addtogroup Cairo-Renderer
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -321,6 +321,8 @@ static void gds_output_renderer_async_wrapper(GTask *task,
|
|||||||
GdsOutputRenderer *renderer;
|
GdsOutputRenderer *renderer;
|
||||||
GdsOutputRendererPrivate *priv;
|
GdsOutputRendererPrivate *priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
(void)task_data;
|
||||||
|
(void)cancellable;
|
||||||
|
|
||||||
renderer = GDS_RENDER_OUTPUT_RENDERER(source_object);
|
renderer = GDS_RENDER_OUTPUT_RENDERER(source_object);
|
||||||
priv = gds_output_renderer_get_instance_private(renderer);
|
priv = gds_output_renderer_get_instance_private(renderer);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @file latex-output.c
|
* @file latex-output.c
|
||||||
* @brief LaTeX output renderer
|
* @brief LaTeX Output Renderer
|
||||||
* @author Mario Hüttel <mario.huettel@gmx.net>
|
* @author Mario Hüttel <mario.huettel@gmx.net>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user