return myExecStatus;
}
-/*!
- * \brief Returns XML representation of the operation's widget.
- * \return XML QString
- *
- * Returns XML representation of the operation's widget.
- */
-const QString& ModuleBase_Operation::xmlRepresentation() const
-{
- return myXmlRepr;
-}
-
-/*!
- * \brief Sets XML representation of the operation's widget.
- * \param xmlRepr - XML QString
- *
- * Sets XML representation of the operation's widget.
- */
-void ModuleBase_Operation::setXmlRepresentation(const QString& xmlRepr)
-{
- myXmlRepr = xmlRepr;
-}
-
/*!
* \brief Starts operation
*
emit stopped();
}
+/*
+ * \brief Alias for start/abort slots
+ *
+ * Public slot. Aborts operation if false, else does nothing.
+ * Provided for S/S compatibility with QAction's toggle(bool)
+ */
+void ModuleBase_Operation::setRunning(bool on)
+{
+ if (!on) {
+ abort();
+ }
+}
+
/*!
* \brief Stores a real value in model.
* \param theValue - to store