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 Description : Application containing SalomeApp module or LightApp module
44 class SALOMEAPP_EXPORT SalomeApp_Application : public LightApp_Application
49 enum { MenuToolsId = 5 };
50 enum { DumpStudyId = LightApp_Application::UserID, LoadScriptId, PropertiesId,
51 CatalogGenId, RegDisplayId, SaveGUIStateId, UserID };
54 SalomeApp_Application();
55 virtual ~SalomeApp_Application();
57 virtual void updateObjectBrowser( const bool = true );
59 virtual QString getFileFilter() const;
63 virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
65 static CORBA::ORB_var orb();
66 static SALOMEDSClient_StudyManager* studyMgr();
67 static SALOME_NamingService* namingService();
68 static SALOME_LifeCycleCORBA* lcc();
69 static QString defaultEngineIOR();
71 SUIT_ViewManager* newViewManager(const QString&);
72 void updateSavePointDataObjects( SalomeApp_Study* );
75 virtual bool onOpenDoc( const QString& );
76 virtual void onLoadDoc();
77 virtual bool onLoadDoc( const QString& );
78 virtual void onCopy();
79 virtual void onPaste();
82 void onStudySaved( SUIT_Study* );
83 void onStudyOpened( SUIT_Study* );
86 virtual void createActions();
87 virtual SUIT_Study* createNewStudy();
88 virtual QWidget* createWindow( const int );
90 virtual void updateCommandsStatus();
91 virtual void onSelectionChanged();
93 virtual void createPreferences( LightApp_Preferences* );
94 virtual void updateDesktopTitle();
97 void onDeleteInvalidReferences();
98 void onDblClick( QListViewItem* );
102 void onSaveGUIState();
103 void onDeleteGUIState();
108 void onRestoreGUIState();
109 void onRenameGUIState();
113 #pragma warning( default:4251 )