]> Shamusworld >> Repos - architektonas/blobdiff - src/base/drawing.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / drawing.h
index 1190f71038eaf2de2fdbb4f7869236bb9c5fcdaf..3163070798c9216f211a9b9d6721becad9a9fdce 100644 (file)
  *
  * @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);
@@ -34,38 +34,38 @@ class Drawing: public RS_Document
                // 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();
@@ -79,8 +79,8 @@ class Drawing: public RS_Document
                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();
@@ -112,9 +112,9 @@ class Drawing: public RS_Document
                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