X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCAM%2FCAM_Module.h;h=74a2b6e75cfcc2ba1fbb26d6ed853a6ccad89746;hb=e6caa123c65e3c4a3017364ec5bb4225fd898465;hp=df0019f766424407ec012c475f95c3c46894c4ce;hpb=d26f738c9c427a45409bacf3848fd8c224edf6ed;p=modules%2Fgui.git diff --git a/src/CAM/CAM_Module.h b/src/CAM/CAM_Module.h index df0019f76..74a2b6e75 100755 --- a/src/CAM/CAM_Module.h +++ b/src/CAM/CAM_Module.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -29,6 +29,8 @@ #include #include #include +#include +#include class QAction; class QMenu; @@ -99,13 +101,13 @@ public: const bool = false, QObject* = 0, const char* = 0, const QString& = QString() ); QtxActionGroup* createActionGroup( const int, const bool = true ); - int createTool( const QString& ); + int createTool( const QString&, const QString& = QString() ); int createTool( const int, const int, const int = -1 ); int createTool( const int, const QString&, const int = -1 ); int createTool( QAction*, const int, const int = -1, const int = -1 ); int createTool( QAction*, const QString&, const int = -1, const int = -1 ); - int createMenu( const QString&, const int, const int = -1, const int = -1, const int = -1 ); + int createMenu( const QString&, const int, const int = -1, const int = -1, const int = -1,QMenu * = 0); int createMenu( const QString&, const QString&, const int = -1, const int = -1, const int = -1 ); int createMenu( const int, const int, const int = -1, const int = -1 ); int createMenu( const int, const QString&, const int = -1, const int = -1 ); @@ -139,6 +141,9 @@ protected: int registerAction( const int, QAction* ); bool unregisterAction( const int ); bool unregisterAction( QAction* ); + // IMN 05/03/2015: we copied myActionMap for reset/unset actions accelerator keys + // after activate/deactivate modules + QMap, QKeySequence> myActionShortcutMap; //!< copy actions shortcut map private: CAM_Application* myApp; //!< parent application object