X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Factioninterface.h;h=5ae1d6be36505b00c7bb7faaf7b89f1dc2d6ba97;hb=bfd926cd5fd98e95b8b172fabd5340c9b1957e01;hp=7647b20438c9c1fe1fab76ce2c5eb2fcf9330d9d;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/base/actioninterface.h b/src/base/actioninterface.h index 7647b20..5ae1d6b 100644 --- a/src/base/actioninterface.h +++ b/src/base/actioninterface.h @@ -2,13 +2,13 @@ #define __ACTIONINTERFACE_H__ #include -#include "rs.h" +#include "enums.h" -class RS_CommandEvent; -class RS_Document; +class CommandEvent; +class Document; class Drawing; -class RS_Entity; -class RS_EntityContainer; +class Entity; +class EntityContainer; class GraphicView; class Vector; @@ -28,7 +28,7 @@ class ActionInterface: public QObject //mebbe... Well, that's what he says above. Though it would be just as easy to //prefix a QObject::tr in front of translated strings... public: - ActionInterface(const char * name, RS_EntityContainer &, + ActionInterface(const char * name, EntityContainer &, GraphicView &); virtual ~ActionInterface(); @@ -41,7 +41,7 @@ class ActionInterface: public QObject virtual void keyPressEvent(QKeyEvent * e); virtual void keyReleaseEvent(QKeyEvent * e); virtual void coordinateEvent(Vector *); - virtual void commandEvent(RS_CommandEvent *); + virtual void commandEvent(CommandEvent *); virtual QStringList getAvailableCommands(); virtual void setStatus(int status); virtual int getStatus(); @@ -63,8 +63,8 @@ class ActionInterface: public QObject QString msgAvailableCommands(); //built-in for now, we'll see how it goes... Vector snapPoint(QMouseEvent *); - RS_Entity * catchEntity(QMouseEvent *, RS2::ResolveLevel level = RS2::ResolveNone); - RS_Entity * catchEntity(Vector, RS2::ResolveLevel level = RS2::ResolveNone); + Entity * catchEntity(QMouseEvent *, RS2::ResolveLevel level = RS2::ResolveNone); + Entity * catchEntity(Vector, RS2::ResolveLevel level = RS2::ResolveNone); #warning "!!! The following functions are DEPRECATED and only in place to help with porting.. !!!" void drawSnapper(void); void deleteSnapper(void); @@ -81,33 +81,32 @@ class ActionInterface: public QObject * corner (status 0), and selecting the second corner (status 1). */ int status; + bool snapperVisibility; + bool previewVisibility; + int suspendCount; protected: /** Action name. Used internally for debugging */ QString name; - /** * This flag is set when the action has terminated and can be deleted. */ bool finished; - /** * Pointer to the graphic is this container is a graphic. NULL otherwise */ Drawing * graphic; - /** * Pointer to the document (graphic or block) or NULL. */ - RS_Document * document; - + Document * document; /** * Predecessor of this action or NULL. */ ActionInterface * predecessor; - + // hm. GraphicView * graphicView; - RS_EntityContainer * container; + EntityContainer * container; }; #endif // __ACTIONINTERFACE_H__