#define __ACTIONINTERFACE_H__
#include <QtGui>
-#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;
//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();
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();
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);
/**
* Pointer to the document (graphic or block) or NULL.
*/
- RS_Document * document;
+ Document * document;
/**
* Predecessor of this action or NULL.
ActionInterface * predecessor;
GraphicView * graphicView;
- RS_EntityContainer * container;
+ EntityContainer * container;
};
#endif // __ACTIONINTERFACE_H__