summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67b3de5)
raw | patch | inline | side by side (parent: 67b3de5)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 26 Oct 2007 05:43:30 +0000 (05:43 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 26 Oct 2007 05:43:30 +0000 (05:43 +0000) |
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 9a6b937c559b79fe8feb49752dd0bd778535ca92..a97e1f3fc4b731a4b7e5703ca8342a5c4dfdaa68 100644 (file)
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
}
void
-SPDesktop::onResized (double x, double y)
+SPDesktop::onResized (double /*x*/, double /*y*/)
{
// Nothing called here
}
void
SPDesktop::_onSelectionModified
-(Inkscape::Selection *selection, guint flags, SPDesktop *dt)
+(Inkscape::Selection */*selection*/, guint /*flags*/, SPDesktop *dt)
{
if (!dt->_widget) return;
dt->_widget->updateScrollbars (expansion(dt->_d2w));
* \todo fixme
*/
static gint
-_arena_handler (SPCanvasArena *arena, NRArenaItem *ai, GdkEvent *event, SPDesktop *desktop)
+_arena_handler (SPCanvasArena */*arena*/, NRArenaItem *ai, GdkEvent *event, SPDesktop *desktop)
{
if (ai) {
SPItem *spi = (SPItem*)NR_ARENA_ITEM_GET_DATA (ai);
/// Callback
static void
-_layer_hierarchy_changed(SPObject *top, SPObject *bottom,
+_layer_hierarchy_changed(SPObject */*top*/, SPObject *bottom,
SPDesktop *desktop)
{
desktop->_layer_changed_signal.emit (bottom);
index bb636a91aa58d95da66c0f20f7fa36afde6c6f6b..bb710a0217ce5881eeb10b9cc7f6457059d9c6e7 100644 (file)
}
static void
-sp_canvas_arena_request_update (NRArena *arena, NRArenaItem *item, void *data)
+sp_canvas_arena_request_update (NRArena */*arena*/, NRArenaItem */*item*/, void *data)
{
sp_canvas_item_request_update (SP_CANVAS_ITEM (data));
}
static void
-sp_canvas_arena_request_render (NRArena *arena, NRRectL *area, void *data)
+sp_canvas_arena_request_render (NRArena */*arena*/, NRRectL *area, void *data)
{
sp_canvas_request_redraw (SP_CANVAS_ITEM (data)->canvas, area->x0, area->y0, area->x1, area->y1);
}
index beb5c088a570e3222961b690c17a8a7e3e3cc39e..c00e2ea8fa724e8aea4ac48d7bf44f7fb2769d9e 100644 (file)
* Called when XML node attribute changed; updates dialog widgets if change was not done by widgets themselves.
*/
void
-CanvasAxonomGrid::onReprAttrChanged(Inkscape::XML::Node *repr, gchar const *key, gchar const *oldval, gchar const *newval, bool is_interactive)
+CanvasAxonomGrid::onReprAttrChanged(Inkscape::XML::Node */*repr*/, gchar const */*key*/, gchar const */*oldval*/, gchar const */*newval*/, bool /*is_interactive*/)
{
readRepr();
void
-CanvasAxonomGrid::Update (NR::Matrix const &affine, unsigned int flags)
+CanvasAxonomGrid::Update (NR::Matrix const &affine, unsigned int /*flags*/)
{
ow = origin * affine;
sw = NR::Point(fabs(affine[0]),fabs(affine[3]));
index 846d3699a9e846e6a0799df11e7fbca576484adc..e9eabad10d22891429ee897744b0f84f2c426115 100644 (file)
void
CanvasXYGrid::readRepr()
{
- char buff[100];
gchar const *value;
if ( (value = repr->attribute("originx")) ) {
sp_nv_read_length(value, SP_UNIT_ABSOLUTE | SP_UNIT_DEVICE, &origin[NR::X], &gridunit);
* Called when XML node attribute changed; updates dialog widgets if change was not done by widgets themselves.
*/
void
-CanvasXYGrid::onReprAttrChanged(Inkscape::XML::Node *repr, gchar const *key, gchar const *oldval, gchar const *newval, bool is_interactive)
+CanvasXYGrid::onReprAttrChanged(Inkscape::XML::Node */*repr*/, gchar const */*key*/, gchar const */*oldval*/, gchar const */*newval*/, bool /*is_interactive*/)
{
readRepr();
void
-CanvasXYGrid::Update (NR::Matrix const &affine, unsigned int flags)
+CanvasXYGrid::Update (NR::Matrix const &affine, unsigned int /*flags*/)
{
ow = origin * affine;
sw = spacing * affine;
index f3ffd7137f10f044e7a5193ab2fc7d209828eed7..40e37c44f8cf1d2e4c93031d846b125cb62c0d30 100644 (file)
public:
CanvasGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument *in_doc);
virtual ~CanvasGrid();
-
+
static const char * getName(GridType type);
static const char * getSVGName(GridType type);
static GridType getGridTypeFromSVGName(const char * typestr);
static GridType getGridTypeFromName(const char * typestr);
-
+
static CanvasGrid* NewGrid(SPNamedView * nv, Inkscape::XML::Node * repr, SPDocument *doc, GridType gridtype);
static void writeNewGridToRepr(Inkscape::XML::Node * repr, SPDocument * doc, GridType gridtype);
GridCanvasItem * createCanvasItem(SPDesktop * desktop);
-
+
virtual void Update (NR::Matrix const &affine, unsigned int flags) = 0;
virtual void Render (SPCanvasBuf *buf) = 0;
-
+
virtual void readRepr() {};
- virtual void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive) {};
-
+ virtual void onReprAttrChanged (Inkscape::XML::Node * /*repr*/, const gchar */*key*/, const gchar */*oldval*/, const gchar */*newval*/, bool /*is_interactive*/) {};
+
virtual Gtk::Widget & getWidget() = 0;
Inkscape::XML::Node * repr;
SPDocument *doc;
-
+
Inkscape::Snapper* snapper;
static void on_repr_attr_changed (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive, void * data);
-
+
protected:
GSList * canvasitems; // list of created canvasitems
SPNamedView * namedview;
-
+
Gtk::VBox vbox;
private:
CanvasGrid(const CanvasGrid&);
CanvasGrid& operator=(const CanvasGrid&);
-
+
};
void Update (NR::Matrix const &affine, unsigned int flags);
void Render (SPCanvasBuf *buf);
-
+
void readRepr();
void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive);
-
+
Gtk::Widget & getWidget();
NR::Point origin;
private:
CanvasXYGrid(const CanvasXYGrid&);
CanvasXYGrid& operator=(const CanvasXYGrid&);
-
+
void updateWidgets();
Gtk::Table table;
-
+
Inkscape::UI::Widget::RegisteredUnitMenu _rumg, _rums;
Inkscape::UI::Widget::RegisteredScalarUnit _rsu_ox, _rsu_oy, _rsu_sx, _rsu_sy;
Inkscape::UI::Widget::RegisteredColorPicker _rcp_gcol, _rcp_gmcol;
Inkscape::UI::Widget::RegisteredSuffixedInteger _rsi;
Inkscape::UI::Widget::RegisteredCheckButton _rcb_dotted;
-
- Inkscape::UI::Widget::Registry _wr;
-
+
+ Inkscape::UI::Widget::Registry _wr;
+
bool render_dotted;
};
public:
CanvasXYGridSnapper(CanvasXYGrid *grid, SPNamedView const *nv, NR::Coord const d);
-private:
+private:
LineList _getSnapLines(NR::Point const &p) const;
-
+
CanvasXYGrid *grid;
-};
+};
}; /* namespace Inkscape */
diff --git a/src/document.cpp b/src/document.cpp
index cfbcf95fe0926dc6bf7b0b7041eb9d05b5fb253d..0207fe5979c3e6c5824b7dbddac303e935b05117 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
}
}
-void SPDocument::reset_key (void *dummy)
+void SPDocument::reset_key (void */*dummy*/)
{
actionkey = NULL;
}
/* Helpers */
gboolean
-sp_document_resource_list_free(gpointer key, gpointer value, gpointer data)
+sp_document_resource_list_free(gpointer /*key*/, gpointer value, gpointer /*data*/)
{
g_slist_free((GSList *) value);
return TRUE;
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 7e46efce6eb672e94fc91a195ff82bc2e9a5dc47..8b84416aa8c950e2ca11a6d1a7f1fac6a96cb11d 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
}
static void
-inkscape_activate_desktop_private (Inkscape::Application *inkscape, SPDesktop *desktop)
+inkscape_activate_desktop_private (Inkscape::Application */*inkscape*/, SPDesktop *desktop)
{
desktop->set_active (true);
}
static void
-inkscape_deactivate_desktop_private (Inkscape::Application *inkscape, SPDesktop *desktop)
+inkscape_deactivate_desktop_private (Inkscape::Application */*inkscape*/, SPDesktop *desktop)
{
desktop->set_active (false);
}
static void
-inkscape_crash_handler (int signum)
+inkscape_crash_handler (int /*signum*/)
{
using Inkscape::Debug::SimpleEvent;
using Inkscape::Debug::EventTracker;
#####################*/
static bool
-inkscape_init_config (Inkscape::XML::Document *doc, const gchar *config_name, const gchar *skeleton,
+inkscape_init_config (Inkscape::XML::Document */*doc*/, const gchar *config_name, const gchar *skeleton,
unsigned int skel_size,
const gchar *e_mkdir,
const gchar *e_notdir,
* saves the preferences if appropriate, and quits.
*/
void
-inkscape_exit (Inkscape::Application *inkscape)
+inkscape_exit (Inkscape::Application */*inkscape*/)
{
g_assert (INKSCAPE);
diff --git a/src/knot.cpp b/src/knot.cpp
index 87b5c2bb908a5b58a4ab6563ba96517d2dadb815..cbb923d41a877d9b0d140687e1196758c0c85769 100644 (file)
--- a/src/knot.cpp
+++ b/src/knot.cpp
@@ -282,7 +282,7 @@ void sp_knot_start_dragging(SPKnot *knot, NR::Point p, gint x, gint y, guint32 e
/**
* Called to handle events on knots.
*/
-static int sp_knot_handler(SPCanvasItem *item, GdkEvent *event, SPKnot *knot)
+static int sp_knot_handler(SPCanvasItem */*item*/, GdkEvent *event, SPKnot *knot)
{
g_assert(knot != NULL);
g_assert(SP_IS_KNOT(knot));
diff --git a/src/selection.cpp b/src/selection.cpp
index af5db825c0c19efc905bfef8a4559a298fa10da9..e4c628d9e83df79df803682985e01b32e00e9184 100644 (file)
--- a/src/selection.cpp
+++ b/src/selection.cpp
/* Handler for selected objects "modified" signal */
-void Selection::_schedule_modified(SPObject *obj, guint flags) {
+void Selection::_schedule_modified(SPObject */*obj*/, guint flags) {
if (!this->_idle) {
/* Request handling to be run in _idle loop */
this->_idle = g_idle_add_full(SP_SELECTION_UPDATE_PRIORITY, GSourceFunc(&Selection::_emit_modified), this, NULL);
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index f76e70a51cbc9460fc7645c917d809d9001b4369..ff4769f640b0ee60a9b9d7d3d1c7a0b73dd2174b 100644 (file)
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
* \pre object points to real object
*/
SPObject *
-sp_object_href(SPObject *object, gpointer owner)
+sp_object_href(SPObject *object, gpointer /*owner*/)
{
g_return_val_if_fail(object != NULL, NULL);
g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
* \pre object points to real object and hrefcount>0
*/
SPObject *
-sp_object_hunref(SPObject *object, gpointer owner)
+sp_object_hunref(SPObject *object, gpointer /*owner*/)
{
g_return_val_if_fail(object != NULL, NULL);
g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
* Invoked whenever the given mutation event happens in the XML tree.
* \param old_ref Ignored
*/
-static void sp_object_order_changed(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref,
+static void sp_object_order_changed(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node */*old_ref*/,
Inkscape::XML::Node *new_ref)
{
SPObject *ochild = sp_object_get_child_by_repr(object, child);
* Callback for child_added node event.
*/
static void
-sp_object_repr_child_added(Inkscape::XML::Node *repr, Inkscape::XML::Node *child, Inkscape::XML::Node *ref, gpointer data)
+sp_object_repr_child_added(Inkscape::XML::Node */*repr*/, Inkscape::XML::Node *child, Inkscape::XML::Node *ref, gpointer data)
{
SPObject *object = SP_OBJECT(data);
@@ -912,7 +912,7 @@ sp_object_repr_child_added(Inkscape::XML::Node *repr, Inkscape::XML::Node *child
* Callback for remove_child node event.
*/
static void
-sp_object_repr_child_removed(Inkscape::XML::Node *repr, Inkscape::XML::Node *child, Inkscape::XML::Node *ref, gpointer data)
+sp_object_repr_child_removed(Inkscape::XML::Node */*repr*/, Inkscape::XML::Node *child, Inkscape::XML::Node */*ref*/, gpointer data)
{
SPObject *object = SP_OBJECT(data);
@@ -927,7 +927,7 @@ sp_object_repr_child_removed(Inkscape::XML::Node *repr, Inkscape::XML::Node *chi
* \todo fixme:
*/
static void
-sp_object_repr_order_changed(Inkscape::XML::Node *repr, Inkscape::XML::Node *child, Inkscape::XML::Node *old, Inkscape::XML::Node *newer, gpointer data)
+sp_object_repr_order_changed(Inkscape::XML::Node */*repr*/, Inkscape::XML::Node *child, Inkscape::XML::Node *old, Inkscape::XML::Node *newer, gpointer data)
{
SPObject *object = SP_OBJECT(data);
* Callback for attr_changed node event.
*/
static void
-sp_object_repr_attr_changed(Inkscape::XML::Node *repr, gchar const *key, gchar const *oldval, gchar const *newval, bool is_interactive, gpointer data)
+sp_object_repr_attr_changed(Inkscape::XML::Node *repr, gchar const *key, gchar const */*oldval*/, gchar const */*newval*/, bool is_interactive, gpointer data)
{
SPObject *object = SP_OBJECT(data);
@@ -1081,7 +1081,7 @@ sp_object_repr_attr_changed(Inkscape::XML::Node *repr, gchar const *key, gchar c
* Callback for content_changed node event.
*/
static void
-sp_object_repr_content_changed(Inkscape::XML::Node *repr, gchar const *oldcontent, gchar const *newcontent, gpointer data)
+sp_object_repr_content_changed(Inkscape::XML::Node */*repr*/, gchar const */*oldcontent*/, gchar const */*newcontent*/, gpointer data)
{
SPObject *object = SP_OBJECT(data);
*/
gchar const *
-sp_object_title_get(SPObject *object)
+sp_object_title_get(SPObject */*object*/)
{
return NULL;
}
gchar const *
-sp_object_description_get(SPObject *object)
+sp_object_description_get(SPObject */*object*/)
{
return NULL;
}
unsigned int
-sp_object_title_set(SPObject *object, gchar const *title)
+sp_object_title_set(SPObject */*object*/, gchar const */*title*/)
{
return FALSE;
}
unsigned int
-sp_object_description_set(SPObject *object, gchar const *desc)
+sp_object_description_set(SPObject */*object*/, gchar const */*desc*/)
{
return FALSE;
}