![]() |
QCAD
Open Source 2D CAD
|
This is the abstract base class for all storage implementations. More...
#include <RStorage.h>
Public Member Functions | |
void | addModifiedListener (RModifiedListener *l) |
Adds a listener for modified status changed events. | |
virtual void | beginTransaction ()=0 |
Starts a new transaction. | |
virtual void | clear () |
Resets this storage to its initial, empty state. | |
virtual void | clearEntitySelection (QSet< RObject::Id > *affectedEntities=NULL)=0 |
Clears the selection status of all entities. | |
virtual void | commitTransaction ()=0 |
Commits the current transaction. | |
virtual int | countSelectedEntities () const |
virtual bool | deleteObject (RObject::Id objectId)=0 |
Deletes the object with the given ID. | |
virtual void | deleteTransactionsFrom (int transactionId)=0 |
Deletes all transactions with IDs from transactionId (inclusive) to the maximum transaction ID. | |
virtual int | deselectEntities (const QSet< RObject::Id > &entityIds, QSet< RObject::Id > *affectedEntities=NULL)=0 |
Deselects all entities with the given IDs. | |
virtual void | deselectEntity (RObject::Id entityId, QSet< RObject::Id > *affectedEntities=NULL)=0 |
Deselects the entity with the given ID. | |
void | endDocumentVariablesTransaction (RTransaction *transaction, bool useLocalTransaction, QSharedPointer< RDocumentVariables > docVars) |
virtual RObject::Id | getBlockId (const QString &blockName) const =0 |
virtual RObject::Id | getBlockIdAuto (const QString &blockLayoutName) const =0 |
virtual QString | getBlockName (RObject::Id blockId) const =0 |
virtual QString | getBlockNameFromHandle (RObject::Handle blockHandle) const =0 |
virtual QString | getBlockNameFromLayout (const QString &layoutName) const =0 |
virtual QString | getBlockNameFromLayout (RObject::Id layoutId) const =0 |
virtual QSet< QString > | getBlockNames (const QString &rxStr=RDEFAULT_QSTRING, bool undone=false) const =0 |
virtual RBox | getBoundingBox (bool ignoreHiddenLayers=true, bool ignoreEmpty=false) const =0 |
virtual RObject::Id | getCurrentBlockId () const |
virtual RColor | getCurrentColor () const |
virtual RObject::Id | getCurrentLayerId () const |
virtual RObject::Id | getCurrentLinetypeId () const |
virtual RLinetypePattern | getCurrentLinetypePattern () const |
virtual RLineweight::Lineweight | getCurrentLineweight () const |
virtual RObject::Id | getCurrentViewId () const |
virtual RObject::Id | getCurrentViewportId () const |
virtual QString | getDimensionFont () const |
RDocument * | getDocument () const |
virtual RBox | getEntitiesBox (QSet< RObject::Id > &ids) const =0 |
virtual QVariant | getKnownVariable (RS::KnownVariable key) const =0 |
QString | getLastModified () const |
QDateTime | getLastModifiedDateTime () const |
virtual int | getLastTransactionId () |
virtual RObject::Id | getLayer0Id () const |
virtual RObject::Id | getLayerId (const QString &layerName) const =0 |
virtual QString | getLayerName (RObject::Id layerId) const =0 |
virtual QSet< QString > | getLayerNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual RObject::Id | getLayerStateId (const QString &layerStateName) const =0 |
virtual QString | getLayerStateName (RObject::Id layerStateId) const =0 |
virtual QSet< QString > | getLayerStateNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual RObject::Id | getLayoutId (const QString &layoutName) const =0 |
virtual QString | getLayoutName (RObject::Id layoutId) const =0 |
virtual QSet< QString > | getLayoutNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual QString | getLinetypeDescription (RObject::Id linetypeId) const =0 |
virtual RObject::Id | getLinetypeId (const QString &linetypeName) const =0 |
virtual QString | getLinetypeLabel (RObject::Id linetypeId) const =0 |
virtual QString | getLinetypeName (RObject::Id linetypeId) const =0 |
virtual QSet< QString > | getLinetypeNames () const =0 |
virtual QList< RLinetypePattern > | getLinetypePatterns () const =0 |
virtual double | getLinetypeScale () const |
virtual int | getMaxDrawOrder () |
virtual RLineweight::Lineweight | getMaxLineweight () const =0 |
virtual RObject::Handle | getMaxObjectHandle () |
virtual RObject::Id | getMaxObjectId () |
virtual int | getMaxTransactionId ()=0 |
RS::Measurement | getMeasurement () const |
virtual int | getMinDrawOrder () |
virtual RObject::Id | getModelSpaceBlockId () const |
virtual RObject::Handle | getNewObjectHandle () |
virtual RObject::Id | getNewObjectId () |
bool | getNotifyListeners () const |
virtual RBox | getSelectionBox () const =0 |
virtual RTransaction | getTransaction (int transactionId)=0 |
virtual int | getTransactionGroup () const |
RS::Unit | getUnit () const |
virtual QVariant | getVariable (const QString &key) const =0 |
virtual QStringList | getVariables () const =0 |
virtual RObject::Id | getViewId (const QString &viewName) const =0 |
virtual QString | getViewName (RObject::Id viewId) const =0 |
virtual QSet< QString > | getViewNames () const =0 |
virtual bool | hasBlock (const QString &blockName) const |
virtual bool | hasBlockEntities (RObject::Id blockId) const =0 |
virtual bool | hasChildEntities (RObject::Id parentId) const =0 |
virtual bool | hasLayer (const QString &layerName) const |
virtual bool | hasLayerState (const QString &layerStateName) const |
virtual bool | hasLayerStates () const |
virtual bool | hasLayout (const QString &layoutName) const |
virtual bool | hasLinetype (const QString &linetypeName) const |
virtual bool | hasSelection () const =0 |
virtual bool | hasVariable (const QString &key) const |
virtual bool | hasView (const QString &viewName) const |
virtual bool | isBlockFrozen (RObject::Id blockId) const |
virtual bool | isEntity (RObject::Id objectId) |
virtual bool | isEntityVisible (const REntity &entity, RObject::Id blockId) const |
virtual bool | isInBackStorage (RObject::Id) |
Linked storages should return true if the given object is stored in the storage the linked storage links to. | |
virtual bool | isLayerFrozen (const RLayer &layer) const |
virtual bool | isLayerFrozen (RObject::Id layerId) const |
virtual bool | isLayerLocked (const RLayer &layer) const |
virtual bool | isLayerLocked (RObject::Id layerId) const |
virtual bool | isLayerOff (const RLayer &layer) const |
virtual bool | isLayerOff (RObject::Id layerId) const |
virtual bool | isLayerOffOrFrozen (const RLayer &layer) const |
virtual bool | isLayerOffOrFrozen (RObject::Id layerId) const |
virtual bool | isLayerPlottable (const RLayer &layer) const |
virtual bool | isLayerPlottable (RObject::Id layerId) const |
virtual bool | isLayerSnappable (const RLayer &layer) const |
virtual bool | isLayerSnappable (RObject::Id layerId) const |
virtual bool | isLayoutBlock (RObject::Id blockId) const |
bool | isModified () const |
virtual bool | isParentLayerFrozen (const RLayer &layer) const |
virtual bool | isParentLayerFrozen (RObject::Id layerId) const |
virtual bool | isParentLayerLocked (const RLayer &layer) const |
virtual bool | isParentLayerLocked (RObject::Id layerId) const |
virtual bool | isParentLayerPlottable (const RLayer &layer) const |
virtual bool | isParentLayerPlottable (RObject::Id layerId) const |
virtual bool | isParentLayerSnappable (const RLayer &layer) const |
virtual bool | isParentLayerSnappable (RObject::Id layerId) const |
virtual bool | isSelected (RObject::Id entityId) |
virtual bool | isSelectedWorkingSet (RObject::Id entityId) |
virtual QList< RObject::Id > | orderBackToFront (const QSet< RObject::Id > &entityIds) const |
virtual QSet< RObject::Id > | queryAllBlockReferences () const =0 |
virtual QSet< RObject::Id > | queryAllBlocks (bool undone=false)=0 |
virtual QSet< RObject::Id > | queryAllEntities (bool undone, bool allBlocks, QList< RS::EntityType > types)=0 |
virtual QSet< RObject::Id > | queryAllEntities (bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll)=0 |
virtual QSet< RObject::Id > | queryAllLayers (bool undone=false)=0 |
virtual QSet< RObject::Id > | queryAllLayerStates (bool undone=false) const =0 |
virtual QSet< RObject::Id > | queryAllLayoutBlocks (bool includeModelSpace=false, bool undone=false) const =0 |
virtual QSet< RObject::Id > | queryAllLayouts (bool undone=false)=0 |
virtual QSet< RObject::Id > | queryAllLinetypes ()=0 |
virtual QSet< RObject::Id > | queryAllObjects () const =0 |
virtual QSet< RObject::Id > | queryAllUcs ()=0 |
virtual QSet< RObject::Id > | queryAllViewports () const =0 |
virtual QSet< RObject::Id > | queryAllViews (bool undone=false)=0 |
virtual QSet< RObject::Id > | queryAllVisibleEntities ()=0 |
virtual QSharedPointer< RBlock > | queryBlock (const QString &blockName) const =0 |
virtual QSharedPointer< RBlock > | queryBlock (RObject::Id blockId) const =0 |
virtual QSharedPointer< RBlock > | queryBlockDirect (const QString &blockName) const |
virtual QSharedPointer< RBlock > | queryBlockDirect (RObject::Id blockId) const =0 |
virtual QSet< RObject::Id > | queryBlockEntities (RObject::Id blockId)=0 |
virtual QSet< RObject::Id > | queryBlockReferences (RObject::Id blockId) const =0 |
virtual QSet< RObject::Id > | queryChildEntities (RObject::Id parentId, RS::EntityType type=RS::EntityAll)=0 |
virtual QSharedPointer< RBlock > | queryCurrentBlock () |
virtual QSharedPointer< RLayer > | queryCurrentLayer () |
virtual QSharedPointer< RLinetype > | queryCurrentLinetype () const |
virtual QSharedPointer< RView > | queryCurrentView () |
virtual QSharedPointer< RDimStyle > | queryDimStyle () const =0 |
virtual QSharedPointer< RDimStyle > | queryDimStyleDirect () const =0 |
virtual QSharedPointer< RDocumentVariables > | queryDocumentVariables () const =0 |
virtual QSharedPointer< RDocumentVariables > | queryDocumentVariablesDirect () const =0 |
virtual QSharedPointer< REntity > | queryEntity (RObject::Id entityId) const =0 |
virtual QSharedPointer< REntity > | queryEntityDirect (RObject::Id entityId) const |
virtual QSet< RObject::Id > | queryInfiniteEntities () const =0 |
virtual QSharedPointer< RLayer > | queryLayer (const QString &layerName) const =0 |
virtual QSharedPointer< RLayer > | queryLayer (RObject::Id layerId) const =0 |
virtual QSet< RObject::Id > | queryLayerBlockEntities (RObject::Id layerId, RObject::Id blockId)=0 |
virtual QSharedPointer< RLayer > | queryLayerDirect (const QString &layerName) const |
virtual QSharedPointer< RLayer > | queryLayerDirect (RObject::Id layerId) const |
virtual QSet< RObject::Id > | queryLayerEntities (RObject::Id layerId, bool allBlocks=false)=0 |
virtual QSharedPointer< RLayerState > | queryLayerState (const QString &layerStateName) const =0 |
virtual QSharedPointer< RLayerState > | queryLayerState (RObject::Id layerStateId) const =0 |
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (const QString &layerStateName) const |
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (RObject::Id layerStateId) const |
virtual QSharedPointer< RLayout > | queryLayout (const QString &layoutName) const =0 |
virtual QSharedPointer< RLayout > | queryLayout (RObject::Id layoutId) const =0 |
virtual QSharedPointer< RLayout > | queryLayoutDirect (RObject::Id layoutId) const |
virtual QSharedPointer< RLinetype > | queryLinetype (const QString &linetypeName) const =0 |
virtual QSharedPointer< RLinetype > | queryLinetype (RObject::Id linetypeId) const =0 |
virtual QSharedPointer< RLinetype > | queryLinetypeDirect (RObject::Id linetypeId) const =0 |
virtual QSharedPointer< RObject > | queryObject (RObject::Id objectId) const =0 |
virtual QSharedPointer< RObject > | queryObjectByHandle (RObject::Handle objectHandle) const =0 |
virtual RObject * | queryObjectCC (RObject::Id objectId) const =0 |
virtual QSharedPointer< RObject > | queryObjectDirect (RObject::Id objectId) const |
virtual QSet< RObject::Id > | querySelectedEntities () const =0 |
virtual QSet< RObject::Id > | querySelectedLayerEntities (RObject::Id layerId, bool allBlocks=false)=0 |
virtual QSet< RObject::Id > | querySelectedLayers () const =0 |
virtual QSharedPointer< RUcs > | queryUcs (const QString &ucsName) const =0 |
virtual QSharedPointer< RUcs > | queryUcs (RObject::Id ucsId) const =0 |
virtual QSharedPointer< RUcs > | queryUcsDirect (RObject::Id ucsId) const |
virtual QSharedPointer< RView > | queryView (const QString &viewName) const =0 |
virtual QSharedPointer< RView > | queryView (RObject::Id viewId) const =0 |
virtual QSharedPointer< REntity > | queryVisibleEntityDirect (RObject::Id entityId) const |
virtual QSet< RObject::Id > | queryWorkingSetEntities ()=0 |
virtual bool | removeObject (QSharedPointer< RObject > object)=0 |
virtual void | removeVariable (const QString &key)=0 |
Removes the custom variable with the given key. | |
virtual void | resetTransactionStack ()=0 |
virtual void | rollbackTransaction ()=0 |
Rolls the current transaction back in order to cancel it. | |
RStorage () | |
virtual bool | saveObject (QSharedPointer< RObject > object, bool checkBlockRecursion=true, bool keepHandles=false, bool *overwrite=NULL)=0 |
Saves the given object to the storage. | |
virtual void | saveTransaction (RTransaction &transaction)=0 |
Saves the given transaction. | |
virtual void | selectAllEntities (QSet< RObject::Id > *affectedEntities=NULL)=0 |
Sets the selection status of all entities. | |
virtual int | selectEntities (const QSet< RObject::Id > &entityIds, bool add=false, QSet< RObject::Id > *affectedEntities=NULL)=0 |
Selects all entities with the given IDs. | |
virtual void | selectEntity (RObject::Id entityId, bool add=false, QSet< RObject::Id > *affectedEntities=NULL)=0 |
Selects the entity with the given ID. | |
void | setCurrentBlock (const QString &blockName) |
virtual void | setCurrentBlock (RObject::Id blockId) |
virtual void | setCurrentColor (const RColor &color) |
void | setCurrentLayer (const QString &layerName, RTransaction *transaction=NULL) |
void | setCurrentLayer (RObject::Id layerId, RTransaction *transaction=NULL) |
void | setCurrentLinetype (const QString &name) |
void | setCurrentLinetype (RObject::Id ltId) |
void | setCurrentLinetypePattern (const RLinetypePattern &p) |
void | setCurrentLineweight (RLineweight::Lineweight lw) |
void | setCurrentView (const QString &viewName) |
void | setCurrentView (RObject::Id viewId) |
virtual void | setCurrentViewport (RObject::Id viewportId) |
virtual void | setDimensionFont (const QString &f, RTransaction *transaction=NULL) |
void | setDocument (RDocument *doc) |
virtual void | setEntityParentId (REntity &entity, RObject::Id parentId) |
virtual void | setKnownVariable (RS::KnownVariable key, const QVariant &value, RTransaction *transaction=NULL)=0 |
Sets a known DXF/DWG variable for this document. | |
virtual void | setLastTransactionId (int transactionId) |
Sets the ID of the last created transaction. | |
virtual void | setLayer0Id (RObject::Id id) |
virtual void | setLinetypeScale (double v, RTransaction *transaction=NULL) |
Sets the global linetype scale of this document to the given value. | |
virtual void | setMaxDrawOrder (int m) |
void | setMeasurement (RS::Measurement m, RTransaction *transaction=NULL) |
virtual void | setModelSpaceBlockId (RObject::Id id) |
void | setModified (bool m) |
Resets the modified flag. | |
void | setNotifyListeners (bool on) |
virtual void | setObjectHandle (RObject &object, RObject::Handle objectHandle) |
virtual void | setObjectId (RObject &object, RObject::Id objectId) const |
virtual void | setUndoStatus (RObject &object, bool status) |
virtual bool | setUndoStatus (RObject::Id object, bool status)=0 |
void | setUnit (RS::Unit unit, RTransaction *transaction=NULL) |
virtual void | setVariable (const QString &key, const QVariant &value, bool overwrite=true)=0 |
Sets a custom variable in the context of this document. | |
QList< RObject::Id > | sortBlocks (const QList< RObject::Id > &blockIds) const |
QList< RObject::Id > | sortLayers (const QList< RObject::Id > &layerIds) const |
QSharedPointer< RDocumentVariables > | startDocumentVariablesTransaction (RTransaction *&transaction, bool &useLocalTransaction) |
virtual void | startTransactionGroup () |
virtual void | toggleUndoStatus (QSet< RObject::Id > &objects)=0 |
Toggles the current undo status of all given objects. | |
virtual void | toggleUndoStatus (RObject::Id object)=0 |
Toggles the current undo status of the given object. | |
virtual void | unsetCurrentViewport () |
virtual void | update () |
Clear caches: | |
virtual | ~RStorage () |
![]() | |
void | doDelete () |
Static Public Member Functions | |
static QString | getKnownVariableName (RS::KnownVariable n) |
static bool | lessThan (const QPair< RObject::Id, int > &p1, const QPair< RObject::Id, int > &p2) |
static void | registerCustomEntityType (RS::EntityType type) |
static void | unregisterCustomEntityType (RS::EntityType type) |
Protected Attributes | |
RObject::Handle | handleCounter |
QDateTime | lastModified |
bool | modified |
Static Protected Attributes | |
static QList< RS::EntityType > | customEntityTypes |
Copyright (c) 2011-2018 by Andrew Mustun. | |
Friends | |
QDebug | operator<< (QDebug dbg, RStorage &s) |
Stream operator for QDebug. | |
Additional Inherited Members | |
![]() | |
virtual | ~RRequireHeap () |
![]() | |
RNonCopyable () | |
virtual | ~RNonCopyable () |
This is the abstract base class for all storage implementations.
A storage is used to store documents (entities, layers, blocks, transactions) in memory or on disk. Every document is backed by a storage object.
A storage implementation is available in the qcaddbstorage.
RStorage::RStorage | ( | ) |
|
inlinevirtual |
void RStorage::addModifiedListener | ( | RModifiedListener * | l | ) |
Adds a listener for modified status changed events.
This can for example be a modification indication widget.
|
pure virtual |
Starts a new transaction.
This function is called before something is stored in the storage.
Implemented in RMemoryStorage.
|
virtual |
Resets this storage to its initial, empty state.
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Clears the selection status of all entities.
Implemented in RMemoryStorage.
|
pure virtual |
Commits the current transaction.
This function is called after something has been stored in the storage.
Implemented in RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Deletes the object with the given ID.
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Deletes all transactions with IDs from transactionId (inclusive) to the maximum transaction ID.
This is called if some transactions have been undone and then a redo is triggered. All undone transactions have to be deleted at this point.
Implemented in RMemoryStorage.
|
pure virtual |
Deselects all entities with the given IDs.
affected | Optional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call. |
Implemented in RMemoryStorage.
|
pure virtual |
Deselects the entity with the given ID.
affected | Optional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call. |
Implemented in RMemoryStorage.
void RStorage::endDocumentVariablesTransaction | ( | RTransaction * | transaction, |
bool | useLocalTransaction, | ||
QSharedPointer< RDocumentVariables > | docVars ) |
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
|
virtual |
Reimplemented in RLinkedStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage.
|
inlinevirtual |
|
virtual |
Reimplemented in RLinkedStorage.
|
inline |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
static |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RMemoryStorage.
|
virtual |
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage.
RS::Measurement RStorage::getMeasurement | ( | ) | const |
|
virtual |
|
inlinevirtual |
|
virtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
inline |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
RS::Unit RStorage::getUnit | ( | ) | const |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Linked storages should return true if the given object is stored in the storage the linked storage links to.
Reimplemented in RLinkedStorage.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in RMemoryStorage.
|
virtual |
Reimplemented in RMemoryStorage.
|
static |
|
virtual |
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
entityId
or NULL if no such entity exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layerName
or NULL if no such layer exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layerId
or NULL if no such layer exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layerName
or NULL if no such layer exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layerStateId
or NULL if no such layer state exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layoutName
or NULL if no such layout exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layoutId
or NULL if no such layout exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
objectId
or null pointer if the object is no available in this storage. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
ucsName
or NULL if no such UCS exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
ucsId
or NULL if no such UCS exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage, and RMemoryStorage.
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
virtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
static |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Removes the custom variable with the given key.
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Rolls the current transaction back in order to cancel it.
This function should never be called under normal circumstances.
Implemented in RMemoryStorage.
|
pure virtual |
Saves the given object to the storage.
Implemented in RMemoryStorage.
|
pure virtual |
Saves the given transaction.
Transactions need to be stored for undo / redo functionality.
Implemented in RMemoryStorage.
|
pure virtual |
Sets the selection status of all entities.
Implemented in RMemoryStorage.
|
pure virtual |
Selects all entities with the given IDs.
add | True to add the entities to the current selection. False to replace the current selection with the new entities. |
affected | Optional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call. |
Implemented in RMemoryStorage.
|
pure virtual |
Selects the entity with the given ID.
add | True to add the entity to the current selection. False to replace the current selection with the given entity. |
affected | Optional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call. |
Implemented in RMemoryStorage.
|
inline |
|
virtual |
Reimplemented in RMemoryStorage.
void RStorage::setCurrentLayer | ( | const QString & | layerName, |
RTransaction * | transaction = NULL ) |
void RStorage::setCurrentLayer | ( | RObject::Id | layerId, |
RTransaction * | transaction = NULL ) |
void RStorage::setCurrentLinetype | ( | const QString & | name | ) |
void RStorage::setCurrentLinetype | ( | RObject::Id | ltId | ) |
void RStorage::setCurrentLinetypePattern | ( | const RLinetypePattern & | p | ) |
void RStorage::setCurrentLineweight | ( | RLineweight::Lineweight | lw | ) |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
|
inline |
|
virtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Sets a known DXF/DWG variable for this document.
key | Variable key (see DXF reference) |
value | New value of the variable. |
transaction | RTransaction to use for the change or NULL (default) to create a transaction on the fly. |
Implemented in RMemoryStorage.
|
inlinevirtual |
Sets the ID of the last created transaction.
This is called when a transaction is undone or redone (the last transaction id indicates where we are in the transaction stack). The default implementation sets the variable "LastTransaction".
Reimplemented in RMemoryStorage.
|
inlinevirtual |
|
virtual |
Sets the global linetype scale of this document to the given value.
transaction | Transaction to use for the modification or NULL to create a local transaction (default). |
|
inlinevirtual |
void RStorage::setMeasurement | ( | RS::Measurement | m, |
RTransaction * | transaction = NULL ) |
|
inlinevirtual |
void RStorage::setModified | ( | bool | m | ) |
Resets the modified flag.
Modification time is stored.
|
inline |
|
virtual |
Reimplemented in RMemoryStorage.
|
virtual |
|
virtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
void RStorage::setUnit | ( | RS::Unit | unit, |
RTransaction * | transaction = NULL ) |
|
pure virtual |
Sets a custom variable in the context of this document.
key | Variable key (name) |
value | Variable value |
overwrite | True to overwrite an existing variable with the same key (default) |
Implemented in RMemoryStorage.
QList< RBlock::Id > RStorage::sortBlocks | ( | const QList< RObject::Id > & | blockIds | ) | const |
QList< RLayer::Id > RStorage::sortLayers | ( | const QList< RObject::Id > & | layerIds | ) | const |
QSharedPointer< RDocumentVariables > RStorage::startDocumentVariablesTransaction | ( | RTransaction *& | transaction, |
bool & | useLocalTransaction ) |
|
inlinevirtual |
|
pure virtual |
Toggles the current undo status of all given objects.
The undo status can for example be a boolean value that is true if the object is undone or false otherwise.
Implemented in RMemoryStorage.
|
pure virtual |
Toggles the current undo status of the given object.
Implemented in RMemoryStorage.
|
static |
|
inlinevirtual |
|
inlinevirtual |
Clear caches:
Reimplemented in RMemoryStorage.
|
friend |
Stream operator for QDebug.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprotected |
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |