class XGUI_ViewWindow;
/**
-* Proxy class which repersents or XGUI_Viewer or Salome Viewer
-* dependently on current launching environment.
-* It is reccomennded to use this class in operation for accessing to viewer
-* functionality instead of direct access to a viewer
-*/
-class XGUI_EXPORT XGUI_ViewerProxy: public XGUI_SalomeViewer
+ * Proxy class which repersents or XGUI_Viewer or Salome Viewer
+ * dependently on current launching environment.
+ * It is reccomennded to use this class in operation for accessing to viewer
+ * functionality instead of direct access to a viewer
+ */
+class XGUI_EXPORT XGUI_ViewerProxy : public XGUI_SalomeViewer
{
- Q_OBJECT
-public:
+Q_OBJECT
+ public:
XGUI_ViewerProxy(XGUI_Workshop* theParent);
//! Returns AIS_InteractiveContext from current OCCViewer
/// Connects to a viewer according to current environment
void connectToViewer();
-private slots:
+ private slots:
void onMousePress(XGUI_ViewWindow*, QMouseEvent*);
void onMouseRelease(XGUI_ViewWindow*, QMouseEvent*);
void onMouseDoubleClick(XGUI_ViewWindow*, QMouseEvent*);
void onKeyPress(XGUI_ViewWindow*, QKeyEvent*);
void onKeyRelease(XGUI_ViewWindow*, QKeyEvent*);
-private:
+ private:
XGUI_Workshop* myWorkshop;
};