#include "entitycontainer.h"
#include "undo.h"
-class RS_BlockList;
-class RS_LayerList;
+class BlockList;
+class LayerList;
/**
- * Base class for documents. Documents can be either graphics or
- * blocks and are typically shown in graphic views. Documents hold
- * an active pen for drawing in the Document, a file name and they
- * know whether they have been modified or not.
+ * Base class for documents. Documents can be either Drawings or Blocks and are
+ * typically shown in graphic views. Documents hold an active pen for drawing
+ * in the Document, a file name and they know whether they have been modified
+ * or not.
*
+ * @author James Hammons
* @author Andrew Mustun
*/
-class RS_Document: public RS_EntityContainer, public RS_Undo
+class Document: public EntityContainer, public Undo
{
public:
- RS_Document(RS_EntityContainer * parent = NULL);
- virtual ~RS_Document();
+ Document(EntityContainer * parent = NULL);
+ virtual ~Document();
- virtual RS_LayerList * getLayerList() = 0;
- virtual RS_BlockList * getBlockList() = 0;
+ virtual LayerList * getLayerList() = 0;
+ virtual BlockList * getBlockList() = 0;
virtual void newDoc() = 0;
virtual bool save() = 0;
virtual bool open(const QString &filename, RS2::FormatType type) = 0;
virtual bool isDocument() const;
- virtual void removeUndoable(RS_Undoable * u);
- RS_Pen getActivePen() const;
- void setActivePen(RS_Pen p);
+ virtual void removeUndoable(Undoable * u);
+ Pen getActivePen() const;
+ void setActivePen(Pen p);
QString getFilename() const;
void setFilename(const QString & fn);
virtual void setModified(bool m);
/** Flag set if the document was modified and not yet saved. */
bool modified;
/** Active pen. */
- RS_Pen activePen;
+ Pen activePen;
/** File name of the document or empty for a new document. */
QString filename;
/** Format type */