PartSet_WidgetShapeSelector.h
PartSet_WidgetFileSelector.h
PartSet_Filters.h
+ PartSet_LockApplyMgr.h
PartSet_FilterInfinite.h
PartSet_SketcherMgr.h
PartSet_MenuMgr.h
PartSet_WidgetShapeSelector.cpp
PartSet_WidgetFileSelector.cpp
PartSet_Filters.cpp
+ PartSet_LockApplyMgr.cpp
PartSet_FilterInfinite.cpp
PartSet_SketcherMgr.cpp
PartSet_MenuMgr.cpp
--- /dev/null
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File: PartSet_LockApplyMgr.cpp
+// Created: 25 Jun 2015
+// Author: Natalia Ermolaeva
+
+#include "PartSet_LockApplyMgr.h"
+#include "PartSet_Module.h"
+
+#include <ModuleBase_IWorkshop.h>
+#include <ModuleBase_IViewer.h>
+
+#include <XGUI_Workshop.h>
+#include <XGUI_ViewerProxy.h>
+#include <XGUI_ModuleConnector.h>
+#include <XGUI_OperationMgr.h>
+
+PartSet_LockApplyMgr::PartSet_LockApplyMgr(QObject* theParent,
+ ModuleBase_IWorkshop* theWorkshop)
+: QObject(theParent), myWorkshop(theWorkshop)
+{
+}
+
+void PartSet_LockApplyMgr::activate()
+{
+ XGUI_ViewerProxy* aViewer = dynamic_cast<XGUI_ViewerProxy*>(myWorkshop->viewer());
+ connect(aViewer, SIGNAL(enterViewPort()), this, SLOT(onLockValidating()));
+ connect(aViewer, SIGNAL(leaveViewPort()), this, SLOT(onUnlockValidating()));
+
+ PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
+ if (aModule->isMouseOverWindow())
+ onLockValidating();
+}
+
+void PartSet_LockApplyMgr::deactivate()
+{
+ XGUI_ViewerProxy* aViewer = dynamic_cast<XGUI_ViewerProxy*>(myWorkshop->viewer());
+ disconnect(aViewer, SIGNAL(enterViewPort()), this, SLOT(onLockValidating()));
+ disconnect(aViewer, SIGNAL(leaveViewPort()), this, SLOT(onUnlockValidating()));
+
+ onUnlockValidating();
+}
+
+void PartSet_LockApplyMgr::valuesChanged()
+{
+ operationMgr()->setLockValidating(false);
+}
+
+void PartSet_LockApplyMgr::onLockValidating()
+{
+ XGUI_OperationMgr* anOperationMgr = operationMgr();
+
+ anOperationMgr->setLockValidating(true);
+ // the Ok button should be disabled in the property panel by moving the mouse point in the viewer
+ // this leads that the user does not try to click Ok and it avoids an incorrect situation that the
+ // line is moved to the cursor to the Ok button
+ //anOperationMgr->setApplyEnabled(false);
+}
+
+void PartSet_LockApplyMgr::onUnlockValidating()
+{
+ XGUI_OperationMgr* anOperationMgr = operationMgr();
+
+ // it is important to restore the validity state in the property panel after leaving the
+ // view port. Unlock the validating.
+ if (anOperationMgr->isValidationLocked()) {
+ anOperationMgr->setLockValidating(false);
+ //anOperationMgr->onValidateOperation();
+ }
+}
+
+XGUI_OperationMgr* PartSet_LockApplyMgr::operationMgr() const
+{
+ XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(myWorkshop);
+ XGUI_Workshop* aWorkshop = aConnector->workshop();
+
+ return aWorkshop->operationMgr();
+}
--- /dev/null
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File: PartSet_LockApplyMgr.h
+// Created: 25 Jun 2015
+// Author: Natalia Ermolaeva
+
+#ifndef PartSet_LockApplyMgr_H
+#define PartSet_LockApplyMgr_H
+
+#include "PartSet.h"
+
+#include <QObject>
+
+class ModuleBase_IWorkshop;
+class XGUI_OperationMgr;
+
+/**
+* \ingroup Modules
+* Customosation of ModuleBase_WidgetShapeSelector in order to provide
+* working with sketch specific objects.
+*/
+class PARTSET_EXPORT PartSet_LockApplyMgr : public QObject
+{
+ Q_OBJECT
+
+public:
+ /// Constructor
+ /// \param theExternal the external state
+ /// \param theDefaultValue the default value for the external object using
+ PartSet_LockApplyMgr(QObject* theParent,
+ ModuleBase_IWorkshop* theWorkshop);
+
+ virtual ~PartSet_LockApplyMgr() {}
+
+ void activate();
+ void deactivate();
+ void valuesChanged();
+
+protected slots:
+ // Set lock validating in the operation manager. Set apply is disabled
+ void onLockValidating();
+ // Set unlock validating in the operation manager. Call method to update the apply state.
+ void onUnlockValidating();
+
+private:
+ XGUI_OperationMgr* operationMgr() const;
+
+private:
+ ModuleBase_IWorkshop* myWorkshop; // the current application workshop
+};
+
+#endif
\ No newline at end of file
ModuleBase_ModelWidget* PartSet_Module::createWidgetByType(const std::string& theType, QWidget* theParent,
Config_WidgetAPI* theWidgetApi, std::string theParentId)
{
- XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
- XGUI_Workshop* aWorkshop = aConnector->workshop();
+ ModuleBase_IWorkshop* aWorkshop = workshop();
+ XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(aWorkshop);
+ XGUI_Workshop* aXUIWorkshop = aConnector->workshop();
ModuleBase_ModelWidget* aWgt = NULL;
if (theType == "sketch-start-label") {
PartSet_WidgetSketchLabel* aLabelWgt = new PartSet_WidgetSketchLabel(theParent,
theWidgetApi, theParentId, mySketchMgr->isConstraintsShown());
- aLabelWgt->setWorkshop(aWorkshop);
+ aLabelWgt->setWorkshop(aXUIWorkshop);
connect(aLabelWgt, SIGNAL(planeSelected(const std::shared_ptr<GeomAPI_Pln>&)),
mySketchMgr, SLOT(onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>&)));
connect(aLabelWgt, SIGNAL(showConstraintToggled(bool)),
mySketchMgr, SLOT(onShowConstraintsToggle(bool)));
aWgt = aLabelWgt;
} else if (theType == "sketch-2dpoint_selector") {
- PartSet_WidgetPoint2D* aPointWgt = new PartSet_WidgetPoint2D(theParent, theWidgetApi, theParentId);
- aPointWgt->setWorkshop(aWorkshop);
+ PartSet_WidgetPoint2D* aPointWgt = new PartSet_WidgetPoint2D(theParent, aWorkshop,
+ theWidgetApi, theParentId);
aPointWgt->setSketch(mySketchMgr->activeSketch());
connect(aPointWgt, SIGNAL(vertexSelected()), this, SLOT(onVertexSelected()));
aWgt = aPointWgt;
} else if (theType == "point2ddistance") {
- PartSet_WidgetPoint2dDistance* aDistanceWgt = new PartSet_WidgetPoint2dDistance(theParent, theWidgetApi, theParentId);
- aDistanceWgt->setWorkshop(aWorkshop);
+ PartSet_WidgetPoint2dDistance* aDistanceWgt = new PartSet_WidgetPoint2dDistance(theParent,
+ aWorkshop, theWidgetApi, theParentId);
aDistanceWgt->setSketch(mySketchMgr->activeSketch());
aWgt = aDistanceWgt;
} else if(theType == "point2dangle") {
- PartSet_WidgetPoint2dAngle* anAngleWgt = new PartSet_WidgetPoint2dAngle(theParent, theWidgetApi, theParentId);
- anAngleWgt->setWorkshop(aWorkshop);
+ PartSet_WidgetPoint2dAngle* anAngleWgt = new PartSet_WidgetPoint2dAngle(theParent,
+ aWorkshop, theWidgetApi, theParentId);
anAngleWgt->setSketch(mySketchMgr->activeSketch());
aWgt = anAngleWgt;
} else if (theType == "sketch_shape_selector") {
PartSet_WidgetShapeSelector* aShapeSelectorWgt =
- new PartSet_WidgetShapeSelector(theParent, workshop(), theWidgetApi, theParentId);
+ new PartSet_WidgetShapeSelector(theParent, aWorkshop, theWidgetApi, theParentId);
aShapeSelectorWgt->setSketcher(mySketchMgr->activeSketch());
aWgt = aShapeSelectorWgt;
} else if (theType == "sketch_multi_selector") {
PartSet_WidgetMultiSelector* aShapeSelectorWgt =
- new PartSet_WidgetMultiSelector(theParent, workshop(), theWidgetApi, theParentId);
+ new PartSet_WidgetMultiSelector(theParent, aWorkshop, theWidgetApi, theParentId);
aShapeSelectorWgt->setSketcher(mySketchMgr->activeSketch());
aWgt = aShapeSelectorWgt;
} else if (theType == WDG_DOUBLEVALUE_EDITOR) {
- aWgt = new PartSet_WidgetEditor(theParent, workshop(), theWidgetApi, theParentId);
+ aWgt = new PartSet_WidgetEditor(theParent, aWorkshop, theWidgetApi, theParentId);
} else if (theType == "export_file_selector") {
- aWgt = new PartSet_WidgetFileSelector(theParent, workshop(), theWidgetApi, theParentId);
+ aWgt = new PartSet_WidgetFileSelector(theParent, aWorkshop, theWidgetApi, theParentId);
} else if (theType == "sketch_launcher") {
aWgt = new PartSet_WidgetSketchCreator(theParent, this, theWidgetApi, theParentId);
}
#include "PartSet_WidgetPoint2d.h"
#include <PartSet_Tools.h>
#include <PartSet_Module.h>
-
-#include <XGUI_Workshop.h>
-#include <XGUI_ViewerProxy.h>
-#include <XGUI_ModuleConnector.h>
-#include <XGUI_SelectionMgr.h>
-#include <XGUI_Selection.h>
-#include <XGUI_OperationMgr.h>
+#include <PartSet_LockApplyMgr.h>
#include <ModuleBase_ParamSpinBox.h>
#include <ModuleBase_Tools.h>
+#include <ModuleBase_IViewer.h>
#include <ModuleBase_IViewWindow.h>
+#include <ModuleBase_ISelection.h>
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
- : ModuleBase_ModelWidget(theParent, theData, theParentId)
+ ModuleBase_IWorkshop* theWorkshop,
+ const Config_WidgetAPI* theData,
+ const std::string& theParentId)
+ : ModuleBase_ModelWidget(theParent, theData, theParentId), myWorkshop(theWorkshop)
{
+ myLockApplyMgr = new PartSet_LockApplyMgr(theParent, myWorkshop);
+
// the control should accept the focus, so the boolen flag is corrected to be true
myIsObligatory = true;
//myOptionParam = theData->getProperty(PREVIOUS_FEATURE_PARAM);
void PartSet_WidgetPoint2D::activateCustom()
{
- XGUI_ViewerProxy* aViewer = myWorkshop->viewer();
+ ModuleBase_IViewer* aViewer = myWorkshop->viewer();
connect(aViewer, SIGNAL(mouseMove(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*)));
connect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
- connect(aViewer, SIGNAL(enterViewPort()), this, SLOT(onLockValidating()));
- connect(aViewer, SIGNAL(leaveViewPort()), this, SLOT(onUnlockValidating()));
QIntList aModes;
aModes << TopAbs_VERTEX;
aModes << TopAbs_EDGE;
- myWorkshop->moduleConnector()->activateSubShapesSelection(aModes);
+ myWorkshop->activateSubShapesSelection(aModes);
- PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
- if (aModule->isMouseOverWindow())
- onLockValidating();
+ myLockApplyMgr->activate();
}
void PartSet_WidgetPoint2D::deactivate()
{
ModuleBase_IViewer* aViewer = myWorkshop->viewer();
- disconnect(aViewer, SIGNAL(mouseMove(ModuleBase_IViewWindow*, QMouseEvent*)),
+ disconnect(aViewer, SIGNAL(mouseMove(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*)));
disconnect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
- disconnect(aViewer, SIGNAL(enterViewPort()), this, SLOT(onLockValidating()));
- disconnect(aViewer, SIGNAL(leaveViewPort()), this, SLOT(onUnlockValidating()));
- myWorkshop->moduleConnector()->deactivateSubShapesSelection();
- onUnlockValidating();
+ myWorkshop->deactivateSubShapesSelection();
+
+ myLockApplyMgr->deactivate();
}
bool PartSet_WidgetPoint2D::getPoint2d(const Handle(V3d_View)& theView,
if (theEvent->button() != Qt::LeftButton)
return;
- XGUI_Selection* aSelection = myWorkshop->selector()->selection();
+ ModuleBase_ISelection* aSelection = myWorkshop->selection();
Handle(V3d_View) aView = theWnd->v3dView();
// TODO: This fragment doesn't work because bug in OCC Viewer. It can be used after fixing.
NCollection_List<TopoDS_Shape> aShapes;
setPoint(aX, anY);
}
-void PartSet_WidgetPoint2D::onLockValidating()
-{
- XGUI_OperationMgr* anOperationMgr = myWorkshop->operationMgr();
- anOperationMgr->setLockValidating(true);
- // the Ok button should be disabled in the property panel by moving the mouse point in the viewer
- // this leads that the user does not try to click Ok and it avoids an incorrect situation that the
- // line is moved to the cursor to the Ok button
- anOperationMgr->setApplyEnabled(false);
-}
-
-void PartSet_WidgetPoint2D::onUnlockValidating()
-{
- // it is important to restore the validity state in the property panel after leaving the
- // view port. Unlock the validating.
- XGUI_OperationMgr* anOperationMgr = myWorkshop->operationMgr();
- if (anOperationMgr->isValidationLocked()) {
- anOperationMgr->setLockValidating(false);
- anOperationMgr->onValidateOperation();
- }
-}
-
double PartSet_WidgetPoint2D::x() const
{
return myXSpin->value();
void PartSet_WidgetPoint2D::onValuesChanged()
{
- myWorkshop->operationMgr()->setLockValidating(false);
+ myLockApplyMgr->valuesChanged();
emit valuesChanged();
}
class ModuleBase_ParamSpinBox;
class ModuleBase_IViewWindow;
class GeomAPI_Pnt2d;
-class XGUI_Workshop;
+class ModuleBase_IWorkshop;
+class PartSet_LockApplyMgr;
class QGroupBox;
class QMouseEvent;
public:
/// Constructor
/// \param theParent the parent object
+ /// \param theWorkshop a current workshop
/// \param theData the widget configuation. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
- PartSet_WidgetPoint2D(QWidget* theParent, const Config_WidgetAPI* theData,
+ PartSet_WidgetPoint2D(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
+ const Config_WidgetAPI* theData,
const std::string& theParentId);
/// Destructor
virtual ~PartSet_WidgetPoint2D();
/// The methiod called when widget is deactivated
virtual void deactivate();
- /// Return workshop
- XGUI_Workshop* workshop() const { return myWorkshop; }
-
- /// Set workshop
- void setWorkshop(XGUI_Workshop* theWork) { myWorkshop = theWork; }
-
/// \returns the sketch instance
CompositeFeaturePtr sketch() const { return mySketch; }
/// \param theEvent a mouse event
void onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent);
- // Set lock validating in the operation manager. Set apply is disabled
- void onLockValidating();
-
- // Set unlock validating in the operation manager. Call method to update the apply state.
- void onUnlockValidating();
-
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
bool getPoint2d(const Handle(V3d_View)& theView, const TopoDS_Shape& theShape,
double& theX, double& theY) const;
- XGUI_Workshop* myWorkshop;
+ ModuleBase_IWorkshop* myWorkshop;
+ PartSet_LockApplyMgr* myLockApplyMgr; ///< a manager to lock/unlock Apply button in PP
QGroupBox* myGroupBox; ///< the parent group box for all intenal widgets
ModuleBase_ParamSpinBox* myXSpin; ///< the spin box for the X coordinate
#define PI 3.1415926535897932
PartSet_WidgetPoint2dAngle::PartSet_WidgetPoint2dAngle(QWidget* theParent,
+ ModuleBase_IWorkshop* theWorkshop,
const Config_WidgetAPI* theData,
const std::string& theParentId)
-: PartSet_WidgetPoint2dDistance(theParent, theData, theParentId)
+: PartSet_WidgetPoint2dDistance(theParent, theWorkshop, theData, theParentId)
{
}
#include <ModelAPI_Feature.h>
+class ModuleBase_IWorkshop;
+
class GeomAPI_Pnt2d;
/**
public:
/// Constructor
/// \param theParent the parent object
+ /// \param theWorkshop a current workshop
/// \param theData the widget configuation. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
- PartSet_WidgetPoint2dAngle(QWidget* theParent, const Config_WidgetAPI* theData,
- const std::string& theParentId);
+ PartSet_WidgetPoint2dAngle(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
+ const Config_WidgetAPI* theData, const std::string& theParentId);
virtual ~PartSet_WidgetPoint2dAngle();
#include "PartSet_WidgetPoint2dDistance.h"
#include "PartSet_Tools.h"
+#include "PartSet_LockApplyMgr.h"
#include <ModuleBase_ParamSpinBox.h>
+#include <ModuleBase_IWorkshop.h>
#include <ModuleBase_IViewWindow.h>
+#include <ModuleBase_IViewer.h>
#include <ModuleBase_Tools.h>
-#include <XGUI_ViewerProxy.h>
-#include <XGUI_Workshop.h>
-#include <XGUI_PropertyPanel.h>
-#include <XGUI_OperationMgr.h>
-
#include <GeomAPI_Pnt2d.h>
#include <Config_WidgetAPI.h>
#include <GeomDataAPI_Point2D.h>
#include <QMouseEvent>
PartSet_WidgetPoint2dDistance::PartSet_WidgetPoint2dDistance(QWidget* theParent,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
- : ModuleBase_WidgetDoubleValue(theParent, theData, theParentId)
+ ModuleBase_IWorkshop* theWorkshop,
+ const Config_WidgetAPI* theData,
+ const std::string& theParentId)
+ : ModuleBase_WidgetDoubleValue(theParent, theData, theParentId), myWorkshop(theWorkshop)
{
+ myLockApplyMgr = new PartSet_LockApplyMgr(theParent, myWorkshop);
+
myFirstPntName = theData->getProperty("first_point");
// Reconnect to local slot
void PartSet_WidgetPoint2dDistance::activateCustom()
{
- XGUI_ViewerProxy* aViewer = myWorkshop->viewer();
- connect(aViewer, SIGNAL(mouseMove(ModuleBase_IViewWindow*, QMouseEvent*)),
+ ModuleBase_IViewer* aViewer = myWorkshop->viewer();
+ connect(aViewer, SIGNAL(mouseMove(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*)));
connect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
+
+ myLockApplyMgr->activate();
}
void PartSet_WidgetPoint2dDistance::deactivate()
this, SLOT(onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*)));
disconnect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
- myWorkshop->operationMgr()->setLockValidating(false);
+
+ myLockApplyMgr->deactivate();
}
void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
if (mySpinBox->hasVariable())
return;
- myWorkshop->operationMgr()->setLockValidating(true);
- myWorkshop->operationMgr()->setApplyEnabled(false);
-
gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), theWnd->v3dView());
double aX, aY;
void PartSet_WidgetPoint2dDistance::onValuesChanged()
{
- myWorkshop->operationMgr()->setLockValidating(false);
+ myLockApplyMgr->valuesChanged();
emit valuesChanged();
}
#include <ModelAPI_CompositeFeature.h>
+class PartSet_LockApplyMgr;
class GeomAPI_Pnt2d;
-class XGUI_Workshop;
+class ModuleBase_IWorkshop;
class ModuleBase_IViewWindow;
class QMouseEvent;
public:
/// Constructor
/// \param theParent the parent object
+ /// \param theWorkshop a current workshop
/// \param theData the widget configuation. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
- PartSet_WidgetPoint2dDistance(QWidget* theParent, const Config_WidgetAPI* theData,
- const std::string& theParentId);
+ PartSet_WidgetPoint2dDistance(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
+ const Config_WidgetAPI* theData,
+ const std::string& theParentId);
virtual ~PartSet_WidgetPoint2dDistance();
/// The methiod called when widget is deactivated
virtual void deactivate();
- /// Returns workshop
- XGUI_Workshop* workshop() const { return myWorkshop; }
-
- /// Set workshop
- /// \param theWork a pointer to workshop
- void setWorkshop(XGUI_Workshop* theWork) { myWorkshop = theWork; }
-
/// \returns the sketch instance
CompositeFeaturePtr sketch() const { return mySketch; }
void onValuesChanged();
protected:
- XGUI_Workshop* myWorkshop;
- std::string myFirstPntName;
+ ModuleBase_IWorkshop* myWorkshop;
+ PartSet_LockApplyMgr* myLockApplyMgr; ///< a manager to lock/unlock Apply button in PP
+ std::string myFirstPntName;
CompositeFeaturePtr mySketch;
};
if (!hasOperation())
return;
ModuleBase_Operation* anOperation = currentOperation();
- if(anOperation && (!myIsValidationLock)) {
- setApplyEnabled(anOperation->isValid());
+ if(anOperation) {
+ setApplyEnabled(!myIsValidationLock && anOperation->isValid());
}
}
+void XGUI_OperationMgr::setLockValidating(bool toLock)
+{
+ myIsValidationLock = toLock;
+ onValidateOperation();
+}
+
void XGUI_OperationMgr::setApplyEnabled(const bool theEnabled)
{
myIsApplyEnabled = theEnabled;
/// Blocking/unblocking enabling of Ok button in property panel.
/// It is used when operation can not be validated even all attributes are valid
- void setLockValidating(bool toLock) { myIsValidationLock = toLock; }
+ void setLockValidating(bool toLock);
/// Returns state of validation locking
bool isValidationLocked() const { return myIsValidationLock; }
- /// Sets apply state to the value and emit signal about this state is changed
- /// \param theEnabled the state value
- void setApplyEnabled(const bool theEnabled);
-
/// Returns enable apply state
/// \return theEnabled a boolean value
bool isApplyEnabled() const;
void keyEnterReleased();
protected:
+ /// Sets apply state to the value and emit signal about this state is changed
+ /// \param theEnabled the state value
+ void setApplyEnabled(const bool theEnabled);
+
/// Commits the current operatin if it is valid
bool commitOperation();