if (string(CREATION_METHOD())->value() == CREATION_METHOD_BY_SIZES()) {
theToSize = real(TO_SIZE_ID())->value();
theFromSize = real(FROM_SIZE_ID())->value();
- } if (string(CREATION_METHOD())->value() == CREATION_METHOD_BY_PLANES()) {
+ } else if (string(CREATION_METHOD())->value() == CREATION_METHOD_BY_PLANES()) {
theToSize = real(TO_OFFSET_ID())->value();
theFromSize = real(FROM_OFFSET_ID())->value();
} else {
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_BY_SIZES()
{
- static const std::string MY_CREATION_METHOD_ID("BySizes");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_BY_SIZES("BySizes");
+ return MY_CREATION_METHOD_BY_SIZES;
}
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_BY_PLANES()
{
- static const std::string MY_CREATION_METHOD_ID("ByPlanesAndOffsets");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_BY_PLANES("ByPlanesAndOffsets");
+ return MY_CREATION_METHOD_BY_PLANES;
}
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_THROUGH_ALL()
{
- static const std::string MY_CREATION_METHOD_ID("ThroughAll");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_THROUGH_ALL("ThroughAll");
+ return MY_CREATION_METHOD_THROUGH_ALL;
}
/// Attribute name of an object to which the extrusion grows.
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_THROUGH_ALL()
{
- static const std::string MY_CREATION_METHOD_ID("ThroughAll");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_THROUGH_ALL("ThroughAll");
+ return MY_CREATION_METHOD_THROUGH_ALL;
}
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_BY_ANGLES()
{
- static const std::string MY_CREATION_METHOD_ID("ByAngles");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_BY_ANGLES("ByAngles");
+ return MY_CREATION_METHOD_BY_ANGLES;
}
/// Attribute name for creation method.
inline static const std::string& CREATION_METHOD_BY_PLANES()
{
- static const std::string MY_CREATION_METHOD_ID("ByPlanesAndOffsets");
- return MY_CREATION_METHOD_ID;
+ static const std::string MY_CREATION_METHOD_BY_PLANES("ByPlanesAndOffsets");
+ return MY_CREATION_METHOD_BY_PLANES;
}
/// Attribute name of an revolution axis.
const Config_WidgetAPI* theData)
: QWidget(theParent),
myWidgetValidator(0),
- myIsEditing(false),
myState(Stored),
+ myIsEditing(false),
myIsValueStateBlocked(false),
myFlushUpdateBlocked(false)
{
/// A feature ID
std::string myFeatureId;
- /// Flag which shows that current operation is in editing mode
- bool myIsEditing;
-
/// Flag which shows whether current widget is obligatory
/// The non-obligatory widgets should not accept the focus in the property panel
bool myIsObligatory;
ValueState myState;
private:
+ /// Flag which shows that current operation is in editing mode
+ bool myIsEditing;
+
/// Value should be computed on execute, like radius for circle's constraint (can not be zero)
bool myIsComputedDefault;