1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
#ifndef VIEWOPERATIONS_H
#define VIEWOPERATIONS_H
#include <qobject.h>
#include <qlist.h>
#include <qaction.h>
#include <AIS_InteractiveContext.hxx>
class ViewOperations : public QObject
{
Q_OBJECT
public:
enum ViewActions { /*MagViewId, AxoViewId, PerViewId,*/ ToolWireframeId, ToolShadingId };
enum Action { ViewFitAllId, ViewFitAreaId, ViewZoomId, ViewPanId,
ViewGlobalPanId, ViewFrontId, ViewBackId,
ViewTopId, ViewBottomId, ViewLeftId, ViewRightId,ViewAxoId,
ViewRotationId, ViewResetId };
ViewOperations( QObject * parent=0 ) ;
ViewOperations( Handle(AIS_InteractiveContext) theContext, QObject * parent=0 ) ;
~ViewOperations();
QList<QAction*> getViewActions();
QList<QAction*> getToolActions();
void initActions();
int getDisplayMode();
signals:
void setCursor( const QCursor& );
private slots:
void onActionActivated();
public slots:
void onWireframe();
void onShading();
void onToolAction();
void updateToggled( bool );
void onNoActiveActions();
private:
void initCursors();
void initViewActions();
void initToolActions();
private:
Handle_AIS_InteractiveContext myContext;
QList<QAction*> myViewActions;
QList<QAction*> myToolActions;
};
#endif