1 #ifndef VIEWOPERATIONS_H
2 #define VIEWOPERATIONS_H
8 #include <AIS_InteractiveContext.hxx>
10 class ViewOperations : public QObject
15 enum ViewActions { /*MagViewId, AxoViewId, PerViewId,*/ ToolWireframeId, ToolShadingId };
17 enum Action { ViewFitAllId, ViewFitAreaId, ViewZoomId, ViewPanId,
18 ViewGlobalPanId, ViewFrontId, ViewBackId,
19 ViewTopId, ViewBottomId, ViewLeftId, ViewRightId,ViewAxoId,
20 ViewRotationId, ViewResetId };
22 ViewOperations( QObject * parent=0 ) ;
23 ViewOperations( Handle(AIS_InteractiveContext) theContext, QObject * parent=0 ) ;
26 QList<QAction*> getViewActions();
27 QList<QAction*> getToolActions();
32 void setCursor( const QCursor& );
35 void onActionActivated();
41 void updateToggled( bool );
42 void onNoActiveActions();
46 void initViewActions();
47 void initToolActions();
50 Handle_AIS_InteractiveContext myContext;
51 QList<QAction*> myViewActions;
52 QList<QAction*> myToolActions;