20#ifndef RPROPERTYEDITOR_H
21#define RPROPERTYEDITOR_H
29#if QT_VERSION >= 0x060000
59#if QT_VERSION >= 0x060000
64#if QT_VERSION >= 0x060000
77#if QT_VERSION >= 0x060000
87#if QT_VERSION >= 0x060000
107 void propertyChanged(
RPropertyTypeId propertyTypeId, QVariant propertyValue,
110 int index, QVariant propertyValue);
112 QStringList getGroupTitles();
113 QStringList getPropertyTitles(
const QString& group);
115 QVariant getPropertyValue(
const QString& group,
const QString& title);
118 RPropertyAttributes getCustomPropertyAttributes(
const QString& group,
const QString& title);
119 QList<RS::EntityType> getTypes();
123 entityTypeFilter = type;
127 return entityTypeFilter;
134 static void makeReadOnly(QWidget* control,
bool on);
140 virtual void updateEditor(
RObject&
object,
const QList<RPropertyTypeId>& propertyTypeIds,
bool doUpdateGui,
RDocument* document =
NULL,
bool showOnRequest =
false);
148 Q_UNUSED(onlyChanges)
155 static void computePropertyValue(
RProperty& property);
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Interface for interaction between a graphics document and a user.
Definition RDocumentInterface.h:97
Abstract base class for classes that are interested in being notified whenever a layer has been added...
Definition RLayerListener.h:39
virtual void updateLayers(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)=0
This method is called whenever at least one layer in the given document has changed.
virtual void clearLayers()=0
This method is called to signal that no document is currently active.
Abstract base class for all objects.
Definition RObject.h:64
int Id
Definition RObject.h:69
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyAttributes.h:42
Option
Definition RPropertyAttributes.h:44
Base class for property editors.
Definition RPropertyEditor.h:62
QMap< RS::EntityType, int > combinedTypes
Definition RPropertyEditor.h:166
bool guiUpToDate
Definition RPropertyEditor.h:167
virtual QStringList getAppProperties()
Definition RPropertyEditor.h:130
bool terminate
Definition RPropertyEditor.h:176
RS::EntityType getEntityTypeFilter() const
Definition RPropertyEditor.h:126
QMap< QString, QStringList > propertyOrder
Definition RPropertyEditor.h:164
QMap< QString, RPropertyMap > RPropertyGroupMap
group key / key,value,attributes
Definition RPropertyEditor.h:161
RS::EntityType entityTypeFilter
Definition RPropertyEditor.h:170
static RPropertyEditor * instance
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyEditor.h:172
bool updatesDisabled
Definition RPropertyEditor.h:168
RPropertyGroupMap combinedProperties
Definition RPropertyEditor.h:165
void setEntityTypeFilter(RS::EntityType type)
Definition RPropertyEditor.h:122
virtual QStringList getFixedCustomPropertyNames(const QList< RS::EntityType > &objectTypes)
Definition RPropertyEditor.h:98
virtual void updateGui(bool onlyChanges=false)
Updates the user interface of this property editor.
Definition RPropertyEditor.h:147
QMap< QString, QPair< QVariant, RPropertyAttributes > > RPropertyMap
key / value / attributes
Definition RPropertyEditor.h:159
QStringList groupOrder
Definition RPropertyEditor.h:163
Property with type ID, value and attributes.
Definition RProperty.h:16
Abstract base class for classes that are interested in properties of the current selection or the cur...
Definition RPropertyListener.h:43
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, bool showOnRequest=false)=0
This method is called whenever the relevant combined properties of the objects in document have chang...
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.
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ EntityUnknown
Unknown entity.
Definition RS.h:242
MetaType
Definition RS.h:156
@ UnknownType
Definition RS.h:161
#define QCADCORE_EXPORT
Definition core_global.h:10
void setCurrentLayer(void layerName)
Sets the current layer to the given layer.
Definition simple_create.js:127
void sleep(void d)
Sleeps for the indicated time in milliseconds.
Definition simple.js:44
#define NULL
Definition opennurbs_system.h:256