Isis 3 Programmer Reference
Isis::ViewportMdiSubWindow Class Reference

This is an actual viewport window in qview/qnet/etc. More...

#include <ViewportMdiSubWindow.h>

Inheritance diagram for Isis::ViewportMdiSubWindow:
Inheritance graph
Collaboration diagram for Isis::ViewportMdiSubWindow:
Collaboration graph

Signals

void closeViewport (CubeViewport *vp)
 This method closes the viewport.
 

Public Member Functions

 ViewportMdiSubWindow (Cube *cubeToView, QWidget *parent=NULL)
 Constrctor for the ViewportMdiSubWindow.
 
 ~ViewportMdiSubWindow ()
 Deconstructor for ViewportMdiSubWindow.
 
MdiCubeViewportviewport ()
 Grabs the viewport.
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 This method is called as the closeEvent.
 

Private Member Functions

 Q_DISABLE_COPY (ViewportMdiSubWindow)
 Disables copy.
 

Private Attributes

QPointer< MdiCubeViewportm_viewport
 Pointer to the MdiCubeViewports.
 

Detailed Description

This is an actual viewport window in qview/qnet/etc.

Author
2012-05-29 Steven Lambright
History

2012-05-29 Steven Lambright - Original implementation

2012-07-27 Tracie Sucharski - Added closeViewport signal and connect to the CubeViewport's viewportClosed signal. This was done so that tools can respond to the user closing a viewport rather than when the application exits.

Definition at line 25 of file ViewportMdiSubWindow.h.

Constructor & Destructor Documentation

◆ ViewportMdiSubWindow()

Isis::ViewportMdiSubWindow::ViewportMdiSubWindow ( Cube * cubeToView,
QWidget * parent = NULL )

Constrctor for the ViewportMdiSubWindow.

Parameters
cubeToViewThe cube to open
parentThe parent container

Definition at line 13 of file ViewportMdiSubWindow.cpp.

References closeViewport(), and m_viewport.

◆ ~ViewportMdiSubWindow()

Isis::ViewportMdiSubWindow::~ViewportMdiSubWindow ( )

Deconstructor for ViewportMdiSubWindow.

Definition at line 40 of file ViewportMdiSubWindow.cpp.

References m_viewport.

Member Function Documentation

◆ closeEvent()

void Isis::ViewportMdiSubWindow::closeEvent ( QCloseEvent * e)
protectedvirtual

This method is called as the closeEvent.

Parameters
eThe closeEvent

Definition at line 50 of file ViewportMdiSubWindow.cpp.

References closeViewport(), and m_viewport.

◆ closeViewport

void Isis::ViewportMdiSubWindow::closeViewport ( CubeViewport * vp)
signal

This method closes the viewport.

Parameters
vpThe viewport to close.

Referenced by closeEvent(), and ViewportMdiSubWindow().

◆ Q_DISABLE_COPY()

Isis::ViewportMdiSubWindow::Q_DISABLE_COPY ( ViewportMdiSubWindow )
private

Disables copy.

◆ viewport()

MdiCubeViewport * Isis::ViewportMdiSubWindow::viewport ( )

Grabs the viewport.

Returns
the viewport to return

Definition at line 45 of file ViewportMdiSubWindow.cpp.

References m_viewport.

Member Data Documentation

◆ m_viewport

QPointer<MdiCubeViewport> Isis::ViewportMdiSubWindow::m_viewport
private

Pointer to the MdiCubeViewports.

Definition at line 75 of file ViewportMdiSubWindow.h.

Referenced by closeEvent(), viewport(), ViewportMdiSubWindow(), and ~ViewportMdiSubWindow().


The documentation for this class was generated from the following files: