Open Source 2D CAD
RPropertyEvent Class Reference

Copyright (c) 2011-2018 by Andrew Mustun. More...

#include <RPropertyEvent.h>

Inheritance diagram for RPropertyEvent:

Public Member Functions

RS::EntityType getEntityTypeFilter () const
RPropertyTypeId getPropertyTypeId () const
QVariant getValue () const
 RPropertyEvent ()
 RPropertyEvent (RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)

Private Attributes

RS::EntityType entityTypeFilter
RPropertyTypeId propertyTypeId
QVariant value

Detailed Description

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.

A property change event is fired whenever a user interface component was used to change the value of a property.

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Constructor & Destructor Documentation

◆ RPropertyEvent() [1/2]

RPropertyEvent::RPropertyEvent ( )

◆ RPropertyEvent() [2/2]

RPropertyEvent::RPropertyEvent ( RPropertyTypeId  propertyTypeId,
const QVariant &  value,
RS::EntityType  entityTypeFilter = RS::EntityAll 
propertyTypeIdID of the property that was changed.
valueNew value of the property.

Member Function Documentation

◆ getEntityTypeFilter()

RS::EntityType RPropertyEvent::getEntityTypeFilter ( ) const
Entity type filter to use for this event.

◆ getPropertyTypeId()

RPropertyTypeId RPropertyEvent::getPropertyTypeId ( ) const
The position of the event in real graphic measures.

◆ getValue()

QVariant RPropertyEvent::getValue ( ) const
true If the position of the coordinate event is valid.

Member Data Documentation

◆ entityTypeFilter

RS::EntityType RPropertyEvent::entityTypeFilter

◆ propertyTypeId

RPropertyTypeId RPropertyEvent::propertyTypeId

◆ value

QVariant RPropertyEvent::value

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