#include "PartSet.h"
#include <PartSet_OperationSketchBase.h>
+
+#include <SketchPlugin_Line.h>
+
#include <QObject>
class GeomDataAPI_Point2D;
public:
/// Returns the operation type key
- static std::string Type() { return "SketchLine"; }
+ static std::string Type() { return SKETCH_LINE_KIND; }
public:
/// Constructor
/// Destructor
virtual ~PartSet_OperationSketchLine();
- /// Returns that this operator can be started above already running one.
+ /// Verifies whether this operator can be commited.
+ /// \return Returns TRUE if current operation can be committed, e.g. all parameters are filled
+ virtual bool canBeCommitted() const;
+
+ /// Returns that this operator can be started above already running one.
/// The runned operation should be the sketch feature modified operation
/// \param theOperation the previous running operation
virtual bool isGranted(ModuleBase_IOperation* theOperation) const;