X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNewGeom%2FNewGeom_Module.h;h=7c0aa1a6eab7ca13c31f523361bfcd26bfbf7980;hb=0c64a21a042cfdd26920de8b2fbb11604547d4d0;hp=3482c12e8ad90e3d830d4325727574957cd99bcc;hpb=abab0a0689765a60fcec0d7861a3ef7893a685fa;p=modules%2Fshaper.git diff --git a/src/NewGeom/NewGeom_Module.h b/src/NewGeom/NewGeom_Module.h index 3482c12e8..7c0aa1a6e 100644 --- a/src/NewGeom/NewGeom_Module.h +++ b/src/NewGeom/NewGeom_Module.h @@ -10,6 +10,8 @@ #include #include +#include + #include #include @@ -51,6 +53,14 @@ Q_OBJECT const QKeySequence& theKeys = QKeySequence(), bool isCheckable = false); + //! Add feature (QAction) in the \a theWBName toolbar with given \a theInfo about action + virtual QAction* addFeature(const QString& theWBName, + const ActionInfo& theInfo); + + virtual QAction* addNestedFeature(const QString& theWBName, + const ActionInfo& theInfo, + const QList& theNestedActions); + virtual QAction* addDesktopCommand(const QString& theId, const QString& theTitle, const QString& theTip, const QIcon& theIcon, const QKeySequence& theKeys, bool isCheckable, @@ -60,6 +70,8 @@ Q_OBJECT virtual void addDesktopMenuSeparator(const char* theMenuSourceText, const int theMenuPosition = 10); + virtual bool addActionInToolbar( QAction* theAction, const QString& theToolBarTitle ); + virtual QMainWindow* desktop() const; virtual QString commandId(const QAction* theCmd) const;