Fix issues:
+ improve formatting + remove superfluous semicolons + comment unused parameters + rename Initialisation to Initialization + rename Deinitialisation to Finalization + remove spaces
This commit is contained in:
@@ -79,7 +79,7 @@ namespace Gui { namespace PropertyEditor {
|
||||
}
|
||||
}
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyItem, Base::BaseClass);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyItem, Base::BaseClass)
|
||||
|
||||
PropertyItem::PropertyItem() : parentItem(0), readonly(false), cleared(false)
|
||||
{
|
||||
@@ -475,7 +475,7 @@ void PropertyItem::bind(const App::Property& prop) {
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyStringItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyStringItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyStringItem::PropertyStringItem()
|
||||
{
|
||||
@@ -521,7 +521,7 @@ QVariant PropertyStringItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFontItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFontItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyFontItem::PropertyFontItem()
|
||||
{
|
||||
@@ -571,7 +571,7 @@ QVariant PropertyFontItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertySeparatorItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertySeparatorItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
QWidget* PropertySeparatorItem::createEditor(QWidget* parent, const QObject* receiver, const char* method) const
|
||||
{
|
||||
@@ -583,7 +583,7 @@ QWidget* PropertySeparatorItem::createEditor(QWidget* parent, const QObject* rec
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyIntegerItem::PropertyIntegerItem()
|
||||
{
|
||||
@@ -650,7 +650,7 @@ QVariant PropertyIntegerItem::toString(const QVariant& v) const {
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerConstraintItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerConstraintItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyIntegerConstraintItem::PropertyIntegerConstraintItem()
|
||||
{
|
||||
@@ -733,7 +733,7 @@ QVariant PropertyIntegerConstraintItem::toString(const QVariant& v) const {
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyFloatItem::PropertyFloatItem()
|
||||
{
|
||||
@@ -802,7 +802,7 @@ QVariant PropertyFloatItem::editorData(QWidget *editor) const
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyUnitItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyUnitItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyUnitItem::PropertyUnitItem()
|
||||
{
|
||||
@@ -876,7 +876,7 @@ QVariant PropertyUnitItem::editorData(QWidget *editor) const
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyUnitConstraintItem, Gui::PropertyEditor::PropertyUnitItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyUnitConstraintItem, Gui::PropertyEditor::PropertyUnitItem)
|
||||
|
||||
PropertyUnitConstraintItem::PropertyUnitConstraintItem()
|
||||
{
|
||||
@@ -912,7 +912,7 @@ void PropertyUnitConstraintItem::setEditorData(QWidget *editor, const QVariant&
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatConstraintItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatConstraintItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyFloatConstraintItem::PropertyFloatConstraintItem()
|
||||
{
|
||||
@@ -994,7 +994,7 @@ QVariant PropertyFloatConstraintItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyAngleItem, Gui::PropertyEditor::PropertyFloatItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyAngleItem, Gui::PropertyEditor::PropertyFloatItem)
|
||||
|
||||
PropertyAngleItem::PropertyAngleItem()
|
||||
{
|
||||
@@ -1036,7 +1036,7 @@ QVariant PropertyAngleItem::toString(const QVariant& prop) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyBoolItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyBoolItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyBoolItem::PropertyBoolItem()
|
||||
{
|
||||
@@ -1084,7 +1084,7 @@ QVariant PropertyBoolItem::editorData(QWidget *editor) const
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyVectorItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyVectorItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyVectorItem::PropertyVectorItem()
|
||||
{
|
||||
@@ -1197,7 +1197,7 @@ void PropertyVectorItem::propertyBound() {
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyVectorDistanceItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyVectorDistanceItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyVectorDistanceItem::PropertyVectorDistanceItem()
|
||||
{
|
||||
@@ -1312,7 +1312,7 @@ void PropertyVectorDistanceItem::propertyBound() {
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMatrixItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMatrixItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyMatrixItem::PropertyMatrixItem()
|
||||
{
|
||||
@@ -1733,7 +1733,7 @@ void PlacementEditor::updateValue(const QVariant& v, bool incr, bool data)
|
||||
}
|
||||
}
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyPlacementItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyPlacementItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyPlacementItem::PropertyPlacementItem() : init_axis(false), changed_value(false), rot_angle(0), rot_axis(0,0,1)
|
||||
{
|
||||
@@ -1952,7 +1952,7 @@ void PropertyPlacementItem::propertyBound() {
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyEnumItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyEnumItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyEnumItem::PropertyEnumItem()
|
||||
{
|
||||
@@ -2037,7 +2037,7 @@ QVariant PropertyEnumItem::editorData(QWidget *editor) const
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyStringListItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyStringListItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyStringListItem::PropertyStringListItem()
|
||||
{
|
||||
@@ -2109,7 +2109,7 @@ void PropertyStringListItem::setValue(const QVariant& value)
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatListItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFloatListItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyFloatListItem::PropertyFloatListItem()
|
||||
{
|
||||
@@ -2183,7 +2183,7 @@ void PropertyFloatListItem::setValue(const QVariant& value)
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerListItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyIntegerListItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyIntegerListItem::PropertyIntegerListItem()
|
||||
{
|
||||
@@ -2258,7 +2258,7 @@ void PropertyIntegerListItem::setValue(const QVariant& value)
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyColorItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyColorItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyColorItem::PropertyColorItem()
|
||||
{
|
||||
@@ -2345,7 +2345,7 @@ namespace Gui { namespace PropertyEditor {
|
||||
|
||||
Q_DECLARE_METATYPE(Gui::PropertyEditor::Material)
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMaterialItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMaterialItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyMaterialItem::PropertyMaterialItem()
|
||||
{
|
||||
@@ -2657,7 +2657,7 @@ QVariant PropertyMaterialItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMaterialListItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyMaterialListItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyMaterialListItem::PropertyMaterialListItem()
|
||||
{
|
||||
@@ -3122,7 +3122,7 @@ QVariant PropertyMaterialListItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFileItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyFileItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyFileItem::PropertyFileItem()
|
||||
{
|
||||
@@ -3173,7 +3173,7 @@ QVariant PropertyFileItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyPathItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyPathItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyPathItem::PropertyPathItem()
|
||||
{
|
||||
@@ -3225,7 +3225,7 @@ QVariant PropertyPathItem::editorData(QWidget *editor) const
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyTransientFileItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyTransientFileItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyTransientFileItem::PropertyTransientFileItem()
|
||||
{
|
||||
@@ -3346,7 +3346,7 @@ void LinkLabel::onLinkActivated (const QString& s)
|
||||
}
|
||||
}
|
||||
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyLinkItem, Gui::PropertyEditor::PropertyItem);
|
||||
TYPESYSTEM_SOURCE(Gui::PropertyEditor::PropertyLinkItem, Gui::PropertyEditor::PropertyItem)
|
||||
|
||||
PropertyLinkItem::PropertyLinkItem()
|
||||
{
|
||||
@@ -3376,12 +3376,13 @@ QVariant PropertyLinkItem::value(const App::Property* prop) const
|
||||
// no object assigned
|
||||
// the document name
|
||||
if (c->getTypeId().isDerivedFrom(App::DocumentObject::getClassTypeId())) {
|
||||
App::DocumentObject* obj = static_cast<App::DocumentObject*>(c);
|
||||
App::DocumentObject* obj = static_cast<App::DocumentObject*>(c);
|
||||
list << QString::fromLatin1(obj->getDocument()->getName());
|
||||
}
|
||||
else
|
||||
else {
|
||||
list << QString::fromLatin1("");
|
||||
|
||||
}
|
||||
|
||||
// the internal object name
|
||||
list << QString::fromLatin1("Null");
|
||||
// the object label
|
||||
@@ -3393,8 +3394,9 @@ QVariant PropertyLinkItem::value(const App::Property* prop) const
|
||||
App::DocumentObject* obj = static_cast<App::DocumentObject*>(c);
|
||||
list << QString::fromLatin1(obj->getNameInDocument());
|
||||
}
|
||||
else
|
||||
else {
|
||||
list << QString::fromLatin1("Null");
|
||||
}
|
||||
|
||||
return QVariant(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user