From: nds Date: Thu, 14 Jan 2016 10:04:11 +0000 (+0300) Subject: 3.9 Clean the history. Compilation correction. X-Git-Tag: V_2.2.0~215 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0ec83a1fab9027579ea60c3fb9a59f44aa655c3;p=modules%2Fshaper.git 3.9 Clean the history. Compilation correction. --- diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index 9f02d4462..5bb898533 100755 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -168,6 +168,11 @@ Q_OBJECT //! Delete features void deleteObjects(); + //! Searches for selected features unused in other (not selected) features. If one or several + //! selected features are found, a warning message proposes to delete them. It contains + //! the list of features to be deleted. + void cleanHistory(); + //! Returns true if the selected feature can be moved to the position after the current feature //! \return boolean value bool canMoveFeature(); @@ -434,6 +439,15 @@ private: //! \param theSlot - onUndo(int) or onRedo(int) SLOT void addHistoryMenu(QObject* theObject, const char* theSignal, const char* theSlot); + + /// Calls removeFeature of the document for each object in the list + //! \param theList an objects to be deleted + //! \param theIgnoredFeatures a list of features to be ignored during delete + //! \param theActionId an action command key to find context menu object types enabled for remove + bool removeFeatures(const QObjectPtrList& theList, + const std::set& theIgnoredFeatures, + const QString& theActionId); + //! Creates list of actions (commands) by given history list from session QList processHistoryList(const std::list&) const;