Isis 3 Developer Reference
Isis::ViewportMainWindow Class Reference

This was called the Qisis MainWindow. More...

#include <ViewportMainWindow.h>

Inheritance diagram for Isis::ViewportMainWindow:
Inheritance graph
Collaboration diagram for Isis::ViewportMainWindow:
Collaboration graph

Public Slots

void displayWarning (std::string &pStr, const std::string &pExStr)
 Slot which receives the warning signal. More...
 
void resetWarning (void)
 Slot which receives the message to reset warning status. More...
 

Signals

void closeWindow (QCloseEvent *event=NULL)
 Signal called when the window receives a close event. More...
 

Public Member Functions

 ViewportMainWindow (QString title, QWidget *parent=0)
 Constructs a ViewportMainWindow object with windowTitle = title. More...
 
virtual ~ViewportMainWindow ()
 
Workspaceworkspace ()
 Returns the current workspace. More...
 
QToolBarpermanentToolBar ()
 Returns the permanent toolbar. More...
 
QToolBaractiveToolBar ()
 Returns the active toolbar. More...
 
ToolPadtoolPad ()
 Returns the toolpad. More...
 
QMenugetMenu (const QString &name)
 Returns the menu with menu name = name. More...
 
TrackToolgetTrackTool ()
 

Static Public Member Functions

static QString settingsFileName (QString objectTitle)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 This class is called when a close event occurs, it emits a signal and ignores the close event. More...
 
QString settingsFileName () const
 
virtual void readSettings (QSize defaultSize=QSize())
 This method ensure that the settings get written even if the Main window was only hidden, not closed. More...
 

Detailed Description

This was called the Qisis MainWindow.

Now this is being subclassed from the mainwindow class which keeps track of the size and location of the qisis windows. qview and qnet are two applications that use WiewportMainWindow.

Author
????-??-?? Stacy Alley

Constructor & Destructor Documentation

◆ ViewportMainWindow()

Isis::ViewportMainWindow::ViewportMainWindow ( QString  title,
QWidget parent = 0 
)

Constructs a ViewportMainWindow object with windowTitle = title.

Parameters
title
parent

References Isis::Tool::addTo(), and Isis::MainWindow::readSettings().

◆ ~ViewportMainWindow()

Isis::ViewportMainWindow::~ViewportMainWindow ( )
virtual

Member Function Documentation

◆ activeToolBar()

QToolBar* Isis::ViewportMainWindow::activeToolBar ( )
inline

Returns the active toolbar.

Referenced by Isis::Tool::addTo().

◆ closeEvent()

void Isis::ViewportMainWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

This class is called when a close event occurs, it emits a signal and ignores the close event.

Parameters
event

Reimplemented from Isis::MainWindow.

References Isis::MainWindow::closeEvent(), closeWindow(), and Isis::Workspace::confirmClose().

◆ closeWindow

void Isis::ViewportMainWindow::closeWindow ( QCloseEvent *  event = NULL)
signal

Signal called when the window receives a close event.

Referenced by closeEvent().

◆ displayWarning

void Isis::ViewportMainWindow::displayWarning ( std::string &  pStr,
const std::string &  pExStr 
)
slot

Slot which receives the warning signal.

Calls the Track Tool to display the warning status

Parameters
pStr- Warning message
pExStr- Propagated exception message

References Isis::TrackTool::displayWarning().

◆ getMenu()

QMenu * Isis::ViewportMainWindow::getMenu ( const QString &  name)

Returns the menu with menu name = name.

Parameters
name
Returns
QMenu*

Referenced by Isis::Tool::addTo().

◆ getTrackTool()

TrackTool* Isis::ViewportMainWindow::getTrackTool ( )
inline

◆ permanentToolBar()

QToolBar* Isis::ViewportMainWindow::permanentToolBar ( )
inline

Returns the permanent toolbar.

Referenced by Isis::Tool::addTo().

◆ readSettings()

void Isis::MainWindow::readSettings ( QSize  defaultSize = QSize())
protectedvirtualinherited

This method ensure that the settings get written even if the Main window was only hidden, not closed.

Parameters
eventThis method is called from the constructor so that when the Main window is created, it know's it's size and location.

References Isis::MainWindow::settingsFileName().

Referenced by Isis::PlotWindow::PlotWindow(), Isis::TableMainWindow::TableMainWindow(), and ViewportMainWindow().

◆ resetWarning

void Isis::ViewportMainWindow::resetWarning ( void  )
slot

Slot which receives the message to reset warning status.

References Isis::TrackTool::resetStatusWarning().

◆ settingsFileName() [1/2]

QString Isis::MainWindow::settingsFileName ( QString  objectTitle)
staticinherited

◆ settingsFileName() [2/2]

◆ toolPad()

ToolPad* Isis::ViewportMainWindow::toolPad ( )
inline

Returns the toolpad.

Referenced by Isis::Tool::addTo().

◆ workspace()

Workspace* Isis::ViewportMainWindow::workspace ( )
inline

Returns the current workspace.

Referenced by Isis::Tool::addTo().


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