USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::MainWindow Class Reference

Base class for the Qisis main windows. More...

#include <MainWindow.h>

Inherits QMainWindow.

Inherited by Isis::MosaicMainWindow, Isis::PlotWindow, Isis::TableMainWindow, and Isis::ViewportMainWindow.

Public Member Functions

 MainWindow (QString title, QWidget *parent=0, Qt::WFlags flags=0)
 Mainwindow constructor.
 
virtual ~MainWindow ()
 Free allocated memory by from this instance.
 

Static Public Member Functions

static QString settingsFileName (QString objectTitle)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 This method is overridden so that we can be sure to write the current settings of the Main window.
 
virtual void readSettings (QSize defaultSize=QSize())
 This method ensure that the settings get written even if the Main window was only hidden, not closed.
 
QString settingsFileName () const
 

Detailed Description

Base class for the Qisis main windows.

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

Constructor & Destructor Documentation

Isis::MainWindow::MainWindow ( QString  title,
QWidget parent = 0,
Qt::WFlags  flags = 0 
)

Mainwindow constructor.

Parameters
title
parent
flags
Isis::MainWindow::~MainWindow ( )
virtual

Free allocated memory by from this instance.

Member Function Documentation

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

This method is overridden so that we can be sure to write the current settings of the Main window.

Parameters
event

Reimplemented in Isis::TableMainWindow, and Isis::ViewportMainWindow.

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

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

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 settingsFileName().

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

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

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