Isis 3.0 Object Programmers' Reference |
Home |
This was called the Qisis MainWindow. More...
#include <ViewportMainWindow.h>
Public Slots | |
void | displayWarning (std::string &pStr, const std::string &pExStr) |
Slot which receives the warning signal. | |
void | resetWarning (void) |
Slot which receives the message to reset warning status. | |
Signals | |
void | closeWindow () |
Signal called when the window receives a close event. | |
Public Member Functions | |
ViewportMainWindow (QString title, QWidget *parent=0) | |
Constructs a ViewportMainWindow object with windowTitle = title. | |
Workspace * | workspace () |
Returns the current workspace. | |
QToolBar * | permanentToolBar () |
Returns the permanent toolbar. | |
QToolBar * | activeToolBar () |
Returns the active toolbar. | |
ToolPad * | toolPad () |
Returns the toolpad. | |
QMenu * | getMenu (const QString &name) |
Returns the menu with menu name = name. | |
TrackTool * | getTrackTool () |
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. | |
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. | |
Private Attributes | |
Workspace * | p_workspace |
The current workspace. | |
QToolBar * | p_permToolbar |
The permanent toolbar. | |
QToolBar * | p_activeToolbar |
The active toolbar. | |
ToolPad * | p_toolpad |
The toolpad. | |
std::map< QString, QMenu * > | p_menus |
Map of qstrings to menus. | |
std::string | p_appName |
The app name. | |
TrackTool * | mTrackTool |
Pointer to application's Status bar. | |
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.
2008-06-19 Noah Hilt - Added a method for sending a signal to qview when this window recieves a close event. This signal calls the file tool's exit method and ignores this class's close method.
2010-18-03 Sharmila Prasad - Added ability to handle exception and display warning status when exception occured
2012-05-29 Steven Lambright - Updated closeEvent() to ask the user to save any unsaved modifications to the opened cube. References #854.
Definition at line 37 of file ViewportMainWindow.h.
Isis::ViewportMainWindow::ViewportMainWindow | ( | QString | title, |
QWidget * | parent = 0 |
||
) |
Constructs a ViewportMainWindow object with windowTitle = title.
title | |
parent |
Definition at line 18 of file ViewportMainWindow.cpp.
References Isis::Tool::addTo(), mTrackTool, p_activeToolbar, p_permToolbar, p_toolpad, p_workspace, and Isis::MainWindow::readSettings().
|
inline |
Returns the active toolbar.
Definition at line 62 of file ViewportMainWindow.h.
References p_activeToolbar.
Referenced by Isis::Tool::addTo().
|
protectedvirtual |
This class is called when a close event occurs, it emits a signal and ignores the close event.
event |
Reimplemented from Isis::MainWindow.
Definition at line 107 of file ViewportMainWindow.cpp.
References Isis::MainWindow::closeEvent(), closeWindow(), and p_workspace.
|
signal |
Signal called when the window receives a close event.
Referenced by closeEvent().
|
slot |
Slot which receives the warning signal.
Calls the Track Tool to display the warning status
pStr | - Warning message |
pExStr | - Propagated exception message |
Definition at line 65 of file ViewportMainWindow.cpp.
References Isis::TrackTool::displayWarning(), and mTrackTool.
QMenu * Isis::ViewportMainWindow::getMenu | ( | const QString & | name | ) |
Returns the menu with menu name = name.
name |
Definition at line 87 of file ViewportMainWindow.cpp.
References p_menus.
Referenced by Isis::Tool::addTo().
|
inline |
Returns the permanent toolbar.
Definition at line 57 of file ViewportMainWindow.h.
References p_permToolbar.
Referenced by Isis::Tool::addTo().
|
protectedvirtualinherited |
This method ensure that the settings get written even if the Main window was only hidden, not closed.
event | This method is called from the constructor so that when the Main window is created, it know's it's size and location. |
Definition at line 79 of file MainWindow.cpp.
Referenced by Isis::PlotWindow::PlotWindow(), Isis::MosaicMainWindow::readSettings(), Isis::TableMainWindow::TableMainWindow(), and ViewportMainWindow().
|
slot |
Slot which receives the message to reset warning status.
Definition at line 74 of file ViewportMainWindow.cpp.
References mTrackTool, and Isis::TrackTool::resetStatusWarning().
|
inline |
Returns the toolpad.
Definition at line 67 of file ViewportMainWindow.h.
References p_toolpad.
Referenced by Isis::Tool::addTo().
|
inline |
Returns the current workspace.
Definition at line 52 of file ViewportMainWindow.h.
References p_workspace.
Referenced by Isis::Tool::addTo().
|
private |
Pointer to application's Status bar.
Definition at line 86 of file ViewportMainWindow.h.
Referenced by displayWarning(), resetWarning(), and ViewportMainWindow().
|
private |
The active toolbar.
Definition at line 82 of file ViewportMainWindow.h.
Referenced by activeToolBar(), and ViewportMainWindow().
|
private |
The app name.
Definition at line 85 of file ViewportMainWindow.h.
|
private |
Map of qstrings to menus.
Definition at line 84 of file ViewportMainWindow.h.
Referenced by getMenu().
|
private |
The permanent toolbar.
Definition at line 81 of file ViewportMainWindow.h.
Referenced by permanentToolBar(), and ViewportMainWindow().
|
private |
The toolpad.
Definition at line 83 of file ViewportMainWindow.h.
Referenced by toolPad(), and ViewportMainWindow().
|
private |
The current workspace.
Definition at line 80 of file ViewportMainWindow.h.
Referenced by closeEvent(), ViewportMainWindow(), and workspace().