QCAD
Open Source 2D CAD
|
Copyright (c) 2011-2018 by Andrew Mustun. More...
#include <RPropertyTypeId.h>
Public Member Functions | |
void | generateId (const std::type_info &classInfo, const QString &groupTitle, const QString &title, bool forceNew=false, RPropertyAttributes::Options options=RPropertyAttributes::NoOptions) |
void | generateId (const std::type_info &classInfo, const RPropertyTypeId &other) |
QString | getCustomPropertyName () const |
QString | getCustomPropertyTitle () const |
long int | getId () const |
QString | getPropertyGroupTitle () const |
QString | getPropertyTitle () const |
bool | isCustom () const |
bool | isValid () const |
bool | operator!= (const RPropertyTypeId &other) const |
!= operator More... | |
bool | operator< (const RPropertyTypeId &other) const |
< operator More... | |
bool | operator== (const RPropertyTypeId &other) const |
== operator More... | |
RPropertyTypeId (const QString &customPropertyName) | |
RPropertyTypeId (const QString &customPropertyTitle, const QString &customPropertyName) | |
\ nonscriptable More... | |
RPropertyTypeId (const RPropertyTypeId &other) | |
RPropertyTypeId (long int id=INVALID_ID) | |
void | setCustomPropertyName (const QString &n) |
void | setCustomPropertyTitle (const QString &t) |
void | setId (long int id) |
Static Public Member Functions | |
static RPropertyTypeId | getPropertyTypeId (const QString &groupTitle, const QString &title) |
static QSet< RPropertyTypeId > | getPropertyTypeIds (const std::type_info &classInfo, RPropertyAttributes::Option=RPropertyAttributes::NoOptions) |
Gets all property type IDs that where registered for the given class. More... | |
static bool | hasPropertyType (const std::type_info &classInfo, RPropertyTypeId propertyTypeId) |
Static Public Attributes | |
static const long int | INVALID_ID = -1 |
Private Attributes | |
QString | customPropertyName |
QString | customPropertyTitle |
long int | id |
RPropertyAttributes::Options | options |
Static Private Attributes | |
static QList< RPropertyAttributes::Option > | cachedOptionList |
static long int | counter = 0 |
Copyright (c) 2011-2018 by Andrew Mustun. More... | |
static QMap< long int, QPair< QString, QString > > | idToTitleMap |
static QMap< QString, QSet< RPropertyTypeId > > | propertyTypeByObjectMap |
static QMap< QPair< QString, RPropertyAttributes::Option >, QSet< RPropertyTypeId > > | propertyTypeByObjectOptionMap |
static QMap< QString, QMap< QString, RPropertyTypeId > > | titleToIdMap |
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. Represents unique property type IDs. Every property type an object can have has such an unique ID.
E.g. all objects of type car may have a property type called brand. This property type is uniquely identified by an instance of this class. All instances of this class are automatically unique.
RPropertyTypeId::RPropertyTypeId | ( | const QString & | customPropertyTitle, |
const QString & | customPropertyName | ||
) |
\ nonscriptable
\ nonscriptable
RPropertyTypeId::RPropertyTypeId | ( | const QString & | customPropertyName | ) |
RPropertyTypeId::RPropertyTypeId | ( | const RPropertyTypeId & | other | ) |
RPropertyTypeId::RPropertyTypeId | ( | long int | id = INVALID_ID | ) |
void RPropertyTypeId::generateId | ( | const std::type_info & | classInfo, |
const QString & | groupTitle, | ||
const QString & | title, | ||
bool | forceNew = false , |
||
RPropertyAttributes::Options | options = RPropertyAttributes::NoOptions |
||
) |
void RPropertyTypeId::generateId | ( | const std::type_info & | classInfo, |
const RPropertyTypeId & | other | ||
) |
QString RPropertyTypeId::getCustomPropertyName | ( | ) | const |
QString RPropertyTypeId::getCustomPropertyTitle | ( | ) | const |
long int RPropertyTypeId::getId | ( | ) | const |
QString RPropertyTypeId::getPropertyGroupTitle | ( | ) | const |
QString RPropertyTypeId::getPropertyTitle | ( | ) | const |
|
static |
|
static |
Gets all property type IDs that where registered for the given class.
classInfo | The class info, e.g. typeid(ObjectA) |
geometryOnly | Only return geometric properties |
|
static |
true | if the given class has the given property |
bool RPropertyTypeId::isCustom | ( | ) | const |
bool RPropertyTypeId::isValid | ( | ) | const |
bool RPropertyTypeId::operator!= | ( | const RPropertyTypeId & | other | ) | const |
!= operator
bool RPropertyTypeId::operator< | ( | const RPropertyTypeId & | other | ) | const |
< operator
bool RPropertyTypeId::operator== | ( | const RPropertyTypeId & | other | ) | const |
== operator
void RPropertyTypeId::setCustomPropertyName | ( | const QString & | n | ) |
void RPropertyTypeId::setCustomPropertyTitle | ( | const QString & | t | ) |
void RPropertyTypeId::setId | ( | long int | id | ) |
|
staticprivate |
|
staticprivate |
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 |
|
private |
|
private |
|
staticprivate |
|
static |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |