Regression: Apply is always disable during mirror operation when the cursor is over property panel. Using myIsResetCurrentValue instead of myIsPropertyPanelValueChanged.
virtual void disconnectSignals() {};
/// Fills the widget with default values
- virtual void reset() {};
+ /// \return true if the widget current value is reset
+ virtual bool reset() { return false; };
/// Returns the state whether the attribute of the feature is initialized
/// \param theObject a model feature to be checked
virtual ~ModuleBase_WidgetDoubleValue();
/// Fills the widget with default values
- virtual void reset();
+ virtual bool reset();
//! Read value of corresponded attribute from data model to the input control
// \return True in success
{
}
-// It is not clear a necesity of this method also it contradicts to scenario defined in parent class
-//void PartSet_WidgetPoint2dDistance::reset()
-//{
-// bool isOk;
-// double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
-//
-// ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
-// storeValueCustom();
-//}
-
void PartSet_WidgetPoint2dDistance::setPoint(FeaturePtr theFeature,
const std::shared_ptr<GeomAPI_Pnt2d>& thePnt)
{
virtual ~PartSet_WidgetPoint2dDistance();
- /// Fills the widget with default values
- //virtual void reset();
-
/// The methiod called when widget is deactivated
virtual void deactivate();