summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-05 15:51:29 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-05 15:51:29 +0000
commitdbda80349e95767e390a178cda7c05787fbce1fe (patch)
tree851cb7ea9e876da0ff50665f16e2410604c79da1 /src/sp-switch.h
parentMerged Shape and subclasses. Cleaned up a bit. (diff)
downloadinkscape-dbda80349e95767e390a178cda7c05787fbce1fe.tar.gz
inkscape-dbda80349e95767e390a178cda7c05787fbce1fe.zip
Merged Group and subclasses.
(bzr r11608.1.77)
Diffstat (limited to 'src/sp-switch.h')
-rw-r--r--src/sp-switch.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/sp-switch.h b/src/sp-switch.h
index f60834a95..24a2dbae6 100644
--- a/src/sp-switch.h
+++ b/src/sp-switch.h
@@ -17,21 +17,13 @@
#include <stddef.h>
#include <sigc++/connection.h>
-G_BEGIN_DECLS
-
-#define SP_TYPE_SWITCH (sp_switch_get_type())
#define SP_SWITCH(obj) ((SPSwitch*)obj)
-#define SP_IS_SWITCH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPSwitch)))
-
-GType sp_switch_get_type() G_GNUC_CONST;
-class CSwitch;
+#define SP_IS_SWITCH(obj) (dynamic_cast<const SPSwitch*>((SPObject*)obj))
class SPSwitch : public SPGroup {
public:
SPSwitch();
- CSwitch* cswitch;
-
- static GType getType();
+ virtual ~SPSwitch();
void resetChildEvaluated() { _reevaluate(); }
@@ -45,32 +37,11 @@ public:
SPObject *_cached_item;
sigc::connection _release_connection;
-};
-
-struct SPSwitchClass : public SPGroupClass {
-};
-
-
-/*
- * Virtual methods of SPSwitch
- */
-class CSwitch : public CGroup {
-public:
- CSwitch(SPSwitch *sw);
- virtual ~CSwitch();
-
- friend class SPSwitch;
virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref);
virtual void remove_child(Inkscape::XML::Node *child);
virtual void order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref);
virtual gchar *description();
-
-protected:
- SPSwitch* spswitch;
};
-
-G_END_DECLS
-
#endif