-#ifndef RS_GRAPHIC_H
-#define RS_GRAPHIC_H
+#ifndef __GRAPHIC_H__
+#define __GRAPHIC_H__
-#include "rs_blocklist.h"
-#include "rs_layerlist.h"
-#include "rs_variabledict.h"
-#include "rs_document.h"
+#include "blocklist.h"
+#include "layerlist.h"
+#include "variabledict.h"
+#include "document.h"
#ifdef RS_CAM
-#include "rs_camdata.h"
+#include "camdata.h"
#endif
//class RS_CamData;
*
* @author Andrew Mustun
*/
-class Drawing: public RS_Document
+class Drawing: public Document
{
public:
- Drawing(RS_EntityContainer * parent = NULL);
+ Drawing(EntityContainer * parent = NULL);
virtual ~Drawing();
virtual RS2::EntityType rtti() const;
- virtual unsigned long int countLayerEntities(RS_Layer * layer);
- virtual RS_LayerList * getLayerList();
- virtual RS_BlockList * getBlockList();
+ virtual unsigned long int countLayerEntities(Layer * layer);
+ virtual LayerList * getLayerList();
+ virtual BlockList * getBlockList();
virtual void newDoc();
virtual bool save();
virtual bool saveAs(const QString& filename, RS2::FormatType type);
// Wrappers for Layer functions:
void clearLayers();
uint countLayers() const;
- RS_Layer * layerAt(uint i);
+ Layer * layerAt(uint i);
void activateLayer(const QString & name);
- void activateLayer(RS_Layer * layer);
- RS_Layer * getActiveLayer();
- virtual void addLayer(RS_Layer * layer);
- virtual void removeLayer(RS_Layer * layer);
- virtual void editLayer(RS_Layer * layer, const RS_Layer & source);
- RS_Layer * findLayer(const QString & name);
+ void activateLayer(Layer * layer);
+ Layer * getActiveLayer();
+ virtual void addLayer(Layer * layer);
+ virtual void removeLayer(Layer * layer);
+ virtual void editLayer(Layer * layer, const Layer & source);
+ Layer * findLayer(const QString & name);
void toggleLayer(const QString & name);
- void toggleLayer(RS_Layer * layer);
- void toggleLayerLock(RS_Layer * layer);
+ void toggleLayer(Layer * layer);
+ void toggleLayerLock(Layer * layer);
void freezeAllLayers(bool freeze);
-// void addLayerListListener(RS_LayerListListener * listener);
-// void removeLayerListListener(RS_LayerListListener * listener);
+// void addLayerListListener(LayerListListener * listener);
+// void removeLayerListListener(LayerListListener * listener);
// Wrapper for block functions:
void clearBlocks();
uint countBlocks();
- RS_Block * blockAt(uint i);
+ Block * blockAt(uint i);
void activateBlock(const QString & name);
- void activateBlock(RS_Block * block);
- RS_Block * getActiveBlock();
- virtual bool addBlock(RS_Block * block, bool notify = true);
+ void activateBlock(Block * block);
+ Block * getActiveBlock();
+ virtual bool addBlock(Block * block, bool notify = true);
virtual void addBlockNotification();
- virtual void removeBlock(RS_Block * block);
- RS_Block * findBlock(const QString & name);
+ virtual void removeBlock(Block * block);
+ Block * findBlock(const QString & name);
QString newBlockName();
void toggleBlock(const QString & name);
- void toggleBlock(RS_Block * block);
+ void toggleBlock(Block * block);
void freezeAllBlocks(bool freeze);
-// void addBlockListListener(RS_BlockListListener * listener);
-// void removeBlockListListener(RS_BlockListListener * listener);
+// void addBlockListListener(BlockListListener * listener);
+// void removeBlockListListener(BlockListListener * listener);
// Wrappers for variable functions:
void clearVariables();
int getVariableInt(const QString & key, int def);
double getVariableDouble(const QString & key, double def);
void removeVariable(const QString & key);
- // Q3Dict<RS_Variable> & getVariableDict();
- QMultiHash<QString, RS_Variable *> & getVariableDict();
+ // Q3Dict<Variable> & getVariableDict();
+ QMultiHash<QString, Variable *> & getVariableDict();
RS2::LinearFormat getLinearFormat();
int getLinearPrecision();
friend std::ostream & operator<<(std::ostream & os, Drawing & g);
private:
- RS_LayerList layerList;
- RS_BlockList blockList;
- RS_VariableDict variableDict;
+ LayerList layerList;
+ BlockList blockList;
+ VariableDict variableDict;
#ifdef RS_CAM
RS_CamData camData;
#endif