Salome HOME
bos #29467 SALOME GUI logger
[modules/gui.git] / src / CAM / CAM_Module.h
old mode 100755 (executable)
new mode 100644 (file)
index bc96dc9..3fedbfc
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -73,6 +73,10 @@ public:
 
   virtual void           putInfo( const QString&, const int = -1 );
 
+  int                    showNotification(const QString& message, const QString& title, int timeout = -1);
+  void                   hideNotification(const QString& message);
+  void                   hideNotification(int id);
+
   bool                   isActiveModule() const;
 
   virtual void           setMenuShown( const bool );
@@ -109,6 +113,7 @@ public:
   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 );
+  void                   clearTool( const QString& title );
 
   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 );
@@ -117,6 +122,10 @@ public:
   int                    createMenu( QAction*, const int, const int = -1, const int = -1, const int = -1 );
   int                    createMenu( QAction*, const QString&, const int = -1, const int = -1, const int = -1 );
 
+  virtual void           logAction( QAction* );
+  bool                   isActionLoggingEnabled() const;
+  void                   setActionLoggingEnabled( bool );
+  
   static QAction*        separator();
 
 public slots:
@@ -130,6 +139,8 @@ public slots:
 
   virtual void           onApplicationClosed( SUIT_Application* );
 
+  virtual void           moduleActionActivated();
+
 private slots:
   void                   onInfoChanged( QString );
 
@@ -159,6 +170,7 @@ private:
   QMap<int, QAction*>    myActionMap;       //!< menu actions
   bool                   myMenuShown;       //!< menu shown flag
   bool                   myToolShown;       //!< tool shown flag
+  bool                   myActionLoggingEnabled; //!< action logging enabled 
 
   friend class CAM_Application;
 };