QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPropertyListener Class Reference

Abstract base class for classes that are interested in properties of the current selection or the current action. More...

#include <RPropertyListener.h>

Inheritance diagram for RPropertyListener:
RPropertyEditor PropertyEditorImpl

List of all members.

Public Member Functions

virtual void clearEditor ()=0
 This method is called to signal that no properties are currently relevant.
virtual void updateFromDocument (RDocument *document, bool onlyChanges, RS::EntityType entityTypeFilter=RS::EntityAll, bool manual=false)=0
 This method is called whenever the relevant combined properties of the objects in document have changed.
virtual void updateFromObject (RObject *object, RDocument *document=NULL)=0
 This method is called if only the properties of the given property owner are currently relevant.
virtual ~RPropertyListener ()

Detailed Description

Abstract base class for classes that are interested in properties of the current selection or the current action.

For example a property browser or editor.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

virtual RPropertyListener::~RPropertyListener ( )
inlinevirtual

Member Function Documentation

virtual void RPropertyListener::clearEditor ( )
pure virtual

This method is called to signal that no properties are currently relevant.

For example that no entities are selected in a document or that nothing is being drawn at the moment.

Implemented in RPropertyEditor.

virtual void RPropertyListener::updateFromDocument ( RDocument document,
bool  onlyChanges,
RS::EntityType  entityTypeFilter = RS::EntityAll,
bool  manual = false 
)
pure virtual

This method is called whenever the relevant combined properties of the objects in document have changed.

For example this can mean that the selection in a document has changed and the combined properties of the selected entities should be displayed in a property browser or editor.

Parameters:
onlyChangesOnly changes of entities, the set of entities has not changed (no deletes, no additions).

Implemented in RPropertyEditor.

virtual void RPropertyListener::updateFromObject ( RObject object,
RDocument document = NULL 
)
pure virtual

This method is called if only the properties of the given property owner are currently relevant.

For example this can be the case when an entity is being drawn and only the properties of that entity should be displayed, so that the user can adjust properties before or while drawing the entity.

Implemented in RPropertyEditor.


The documentation for this class was generated from the following file: