1 // File : SALOMEGUI_Application.h
2 // Created : Thu Jun 14 12:01:23 2001
3 // Author : Nicolas REJNERI
6 // Copyright : Open CASCADE
9 #ifndef SALOMEGUI_APPLICATION_H
10 #define SALOMEGUI_APPLICATION_H
12 #include "QAD_Application.h"
13 #include "QAD_ViewFrame.h"
16 #include <SALOMEconfig.h>
17 #include CORBA_SERVER_HEADER(SALOMEDS)
18 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
25 #include <qpopupmenu.h>
27 class SALOMEGUI_Application : public QAD_Application
30 enum { ViewToolBarId = 100 };
32 enum { ViewDumpId, ViewTrihedronId, ViewFitAllId, ViewFitAreaId,
33 ViewZoomId, ViewPanId, ViewRotateId, ViewGlobalPanId,
34 ViewFrontId, ViewBackId, ViewTopId, ViewBottomId, ViewLeftId,
35 ViewRightId, ViewResetId };
37 SALOMEGUI_Application ( const QString& format,
38 const QString& description,
39 const QString& filters);
40 ~SALOMEGUI_Application();
42 // Common display services
47 /* application management */
48 bool initApp( SALOME_NamingService* name_service );
49 bool createDesktop( SALOME_NamingService* name_service );
54 /* document management */
55 void onStudyCreated( QAD_Study* );
56 void onStudyOpened( QAD_Study* );
57 void onActiveStudyChanged( QAD_Study* oldActiveStudy,
58 QAD_Study* newActiveStudy );
59 void onStudyShown( QAD_Study* );
62 int onUpdateViewActions ( QPopupMenu*, bool add, int index );
65 void onDesktopCreated();
68 void connectToViewer( QAD_ViewFrame* );
69 void disconnectFromViewer( QAD_ViewFrame* );
74 QList<QAction> myViewActions;
75 QAD_Operation* myCurOperation;