1 #include "ViewportMdiSubWindow.h" 5 #include <QProgressBar> 19 widget()->setLayout(
new QVBoxLayout());
25 progressBar->setRange(0, 100);
26 progressBar->setValue(0);
28 connect(
m_viewport, SIGNAL(progressChanged(
int)),
29 progressBar, SLOT(setValue(
int)));
30 connect(
m_viewport, SIGNAL(progressComplete()), progressBar, SLOT(hide()));
33 widget()->layout()->addWidget(progressBar);
35 setOption(QMdiSubWindow::RubberBandResize,
true);
36 setOption(QMdiSubWindow::RubberBandMove,
true);
56 QMdiSubWindow::closeEvent(e);
Cube display widget for certain Isis MDI applications.
ViewportMdiSubWindow(Cube *cubeToView, QWidget *parent=NULL)
Constrctor for the ViewportMdiSubWindow.
Widget to display Isis cubes for qt apps.
~ViewportMdiSubWindow()
Deconstructor for ViewportMdiSubWindow.
void closeViewport(CubeViewport *vp)
This method closes the viewport.
MdiCubeViewport * viewport()
Grabs the viewport.
virtual void closeEvent(QCloseEvent *e)
This method is called as the closeEvent.
QPointer< MdiCubeViewport > m_viewport
Pointer to the MdiCubeViewports.
Namespace for ISIS/Bullet specific routines.
IO Handler for Isis Cubes.