X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Factioninterface.h;fp=src%2Fbase%2Factioninterface.h;h=a88ee89fa1855d7a7ec6043f0404ac0475b7115b;hb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;hp=7647b20438c9c1fe1fab76ce2c5eb2fcf9330d9d;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/actioninterface.h b/src/base/actioninterface.h index 7647b20..a88ee89 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); @@ -99,7 +99,7 @@ class ActionInterface: public QObject /** * Pointer to the document (graphic or block) or NULL. */ - RS_Document * document; + Document * document; /** * Predecessor of this action or NULL. @@ -107,7 +107,7 @@ class ActionInterface: public QObject ActionInterface * predecessor; GraphicView * graphicView; - RS_EntityContainer * container; + EntityContainer * container; }; #endif // __ACTIONINTERFACE_H__