#include "SUIT_ToolButton.h"
#include "SUIT_MessageBox.h"
+#include "SUIT_ViewWindow.h"
#include "SUIT_Tools.h"
#include "SUIT_ResourceMgr.h"
SVTK_MainWindow
::SVTK_MainWindow(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr) :
- QMainWindow(theParent,theName,0)
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow) :
+ QMainWindow(theParent,theName,0),
+ myViewWindow(theViewWindow)
{
myToolBar = new QToolBar(this);
myToolBar->setCloseMode(QDockWindow::Undocked);
theResourceMgr->loadPixmap( "VTKViewer", tr( "ICON_VTKVIEWER_VIEW_DUMP" ) ),
tr( "MNU_DUMP_VIEW" ), 0, this);
anAction->setStatusTip(tr("DSC_DUMP_VIEW"));
- connect(anAction, SIGNAL(activated()), this, SLOT(onDumpView()));
+ connect(anAction, SIGNAL(activated()), myViewWindow, SLOT(onDumpView()));
myActionsMap[ DumpId ] = anAction;
// FitAll
GetRenderer()->OnAdjustCubeAxes();
}
-//----------------------------------------------------------------------------
-void
-SVTK_MainWindow
-::onDumpView()
-{}
-
//----------------------------------------------------------------------------
QImage
SVTK_MainWindow
class vtkRenderWindowInteractor;
class SUIT_ResourceMgr;
+class SUIT_ViewWindow;
class SVTK_RenderWindowInteractor;
class SVTK_NonIsometricDlg;
public:
SVTK_MainWindow(QWidget* theParent,
const char* theName,
- SUIT_ResourceMgr* theResourceMgr);
+ SUIT_ResourceMgr* theResourceMgr,
+ SUIT_ViewWindow* theViewWindow);
//! To initialize the class
virtual
void onAdjustTrihedron();
void onAdjustCubeAxes();
- void onDumpView();
-
public:
QImage dumpView();
ViewTrihedronId, NonIsometric, GraduatedAxes};
typedef QMap<int, QtxAction*> TActionsMap;
+ SUIT_ViewWindow* myViewWindow;
+
SVTK_NonIsometricDlg* myNonIsometricDlg;
SVTK_CubeAxesDlg* myCubeAxesDlg;