diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-05 15:51:29 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-05 15:51:29 +0000 |
| commit | dbda80349e95767e390a178cda7c05787fbce1fe (patch) | |
| tree | 851cb7ea9e876da0ff50665f16e2410604c79da1 /src/sp-switch.h | |
| parent | Merged Shape and subclasses. Cleaned up a bit. (diff) | |
| download | inkscape-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.h | 33 |
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 |
