1 // File: SalomeApp_Application.h
2 // Created: 10/22/2004 3:37:25 PM
3 // Author: Sergey LITONIN
4 // Copyright (C) CEA 2004
6 #ifndef SALOMEAPP_APPLICATION_H
7 #define SALOMEAPP_APPLICATION_H
11 #endif // _MSC_VER > 1000
13 #include "SalomeApp.h"
14 #include <LightApp_Application.h>
18 #include <SALOMEconfig.h>
19 //#include CORBA_CLIENT_HEADER(SALOMEDS)
20 #include <SALOME_NamingService.hxx>
22 #include "SALOMEDSClient.hxx"
28 class LightApp_Preferences;
29 class SalomeApp_Module;
30 class SalomeApp_Study;
32 class SALOME_LifeCycleCORBA;
37 #pragma warning( disable:4251 )
41 \class SalomeApp_Application
42 \brief Application containing SalomeApp module or LightApp module
45 class SALOMEAPP_EXPORT SalomeApp_Application : public LightApp_Application
50 enum { MenuToolsId = 5 };
51 enum { DumpStudyId = LightApp_Application::UserID, LoadScriptId, PropertiesId,
52 CatalogGenId, RegDisplayId, SaveGUIStateId, UserID };
55 SalomeApp_Application();
56 virtual ~SalomeApp_Application();
58 virtual void updateObjectBrowser( const bool = true );
60 virtual QString getFileFilter() const;
64 virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
66 static CORBA::ORB_var orb();
67 static SALOMEDSClient_StudyManager* studyMgr();
68 static SALOME_NamingService* namingService();
69 static SALOME_LifeCycleCORBA* lcc();
70 static QString defaultEngineIOR();
72 SUIT_ViewManager* newViewManager(const QString&);
73 void updateSavePointDataObjects( SalomeApp_Study* );
76 virtual bool onOpenDoc( const QString& );
77 virtual void onLoadDoc();
78 virtual bool onLoadDoc( const QString& );
79 virtual void onCopy();
80 virtual void onPaste();
81 void onSaveGUIState();// called from VISU
84 void onStudySaved( SUIT_Study* );
85 void onStudyOpened( SUIT_Study* );
88 virtual void createActions();
89 virtual SUIT_Study* createNewStudy();
90 virtual QWidget* createWindow( const int );
92 virtual void updateCommandsStatus();
93 virtual void onSelectionChanged();
95 virtual void createPreferences( LightApp_Preferences* );
96 virtual void updateDesktopTitle();
99 void onDeleteInvalidReferences();
100 void onDblClick( QListViewItem* );
105 void onDeleteGUIState();
106 void onRestoreGUIState();
107 void onRenameGUIState();
115 #pragma warning( default:4251 )