X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_Application.h;h=3722c93d7645a29c58c0a009b0e3c928723848cb;hb=9a546cba3468822f879c0c829309d7b344fb22b9;hp=542b160bb3ea05dd37575dd3c43c4fb0f312dc2c;hpb=8dc06f253c1d6a0bb3cc999842fa5a7848c79f40;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_Application.h b/src/SUIT/SUIT_Application.h old mode 100755 new mode 100644 index 542b160bb..3722c93d7 --- a/src/SUIT/SUIT_Application.h +++ b/src/SUIT/SUIT_Application.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 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 @@ -33,6 +33,7 @@ class QLabel; class QString; class QAction; class QWidget; +class QKeySequence; class SUIT_Desktop; class SUIT_ViewManager; @@ -67,7 +68,7 @@ public: //! Returns main widget (Desktop) of the application (if it exists) virtual SUIT_Desktop* desktop(); - /*! Returns FALSE if application can not be closed (because of non saved data for example). + /*! Returns \c false if application can not be closed (because of non saved data for example). This method called by SUIT_Session whin closing of application was requested. */ virtual bool isPossibleToClose( bool& ); @@ -115,6 +116,8 @@ public: virtual void viewManagers( const QString&, QList& ) const = 0; QAction* action( const int ) const; + void addPostRoutine( void (*theRoutine)() ); + signals: void applicationClosed( SUIT_Application* ); void activated( SUIT_Application* ); @@ -174,6 +177,10 @@ protected: const QString&, const int, QObject* = 0, const bool = false, QObject* = 0, const char* = 0, const QString& = QString() ); + QAction* createAction( const int, const QString&, const QIcon&, const QString&, + const QString&, const QKeySequence&, QObject* = 0, + const bool = false, QObject* = 0, const char* = 0, + const QString& = QString() ); protected slots: virtual void onDesktopActivated(); @@ -186,6 +193,9 @@ private: SUIT_ShortcutMgr* myShortcutMgr; QLabel* myStatusLabel; + + typedef void (*PostRoutine)(); + QList myPostRoutines; }; //! This function must return a new application instance.