Isis 3.0 Object Programmers' Reference |
Home |
#include <MosaicMainWindow.h>
Public Slots | |
void | open () |
Calles MosaicWidget's open method which opens a cube file and displays the footprint in the graphics view. | |
void | openList () |
Opens a list of cube files instead of one at a time. | |
void | saveProject () |
Called from the file menu to save a project file. | |
void | saveProjectAs () |
Allows the user to save a project file. | |
void | loadProject () |
Allows users to select a project which is then read in and displayed in the qmos window. | |
void | closeMosaic () |
Public Member Functions | |
MosaicMainWindow (QString title, QWidget *parent=0) | |
QToolBar * | permanentToolBar () |
QToolBar * | activeToolBar () |
ToolPad * | toolPad () |
QProgressBar * | progressBar () |
QMenu * | viewMenu () const |
Returns the View menu. | |
void | saveSettings () |
void | loadProject (QString filename) |
Static Public Member Functions | |
static QString | settingsFileName (QString objectTitle) |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
This event filter is installed in the constructor. | |
QString | settingsFileName () const |
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. | |
Private Slots | |
void | enterWhatsThisMode () |
void | showHelp () |
void | updateMenuVisibility () |
Private Member Functions | |
void | setupMenus () |
Sets up the menus on the menu bar for the qmos window. | |
void | setupPvlToolBar () |
void | readSettings () |
This overriden method is called from the constructor so that when the Mosaicmainwindow is created, it know's it's size and location and the tool bar location. | |
void | saveSettings2 () |
This overriden method is called when the MosaicMainWindow is closed or hidden to write the size and location settings (and tool bar location) to a config file in the user's home directory. | |
void | openFiles (QStringList cubeNames) |
bool | updateMenuVisibility (QMenu *menu) |
void | createController () |
void | displayController () |
Private Attributes | |
bool | m_controllerVisible |
ToolPad * | m_toolpad |
Tool pad on this mainwindow. | |
QToolBar * | m_permToolbar |
Tool bar attached to mainwindow. | |
QToolBar * | m_activeToolbar |
The active toolbar. | |
QString | m_filename |
QProgressBar * | m_progressBar |
The mainwindow's progress bar. | |
QMenu * | m_viewMenu |
QMenu * | m_settingsMenu |
QMenu * | m_fileMenu |
QMenu * | m_exportMenu |
MosaicController * | m_mosaicController |
QList< QAction * > | m_actionsRequiringOpen |
QList< QAction * > | m_actionsRequiringClosed |
QList< Cube * > | m_openCubes |
QFileInfo | m_lastOpenedFile |
QSettings | m_settings |
QDockWidget * | m_fileListDock |
QDockWidget * | m_mosaicPreviewDock |
Definition at line 45 of file MosaicMainWindow.h.
void Isis::MainWindow::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual, inherited] |
This method is overridden so that we can be sure to write the current settings of the Main window.
event |
Reimplemented in Isis::TableMainWindow, and Isis::ViewportMainWindow.
Definition at line 36 of file MainWindow.cpp.
References Isis::MainWindow::writeSettings().
bool Isis::MosaicMainWindow::eventFilter | ( | QObject * | o, |
QEvent * | e | ||
) | [protected] |
This event filter is installed in the constructor.
o | |
e |
Definition at line 145 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::loadProject | ( | ) | [slot] |
Allows users to select a project which is then read in and displayed in the qmos window.
Definition at line 701 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::open | ( | ) | [slot] |
Calles MosaicWidget's open method which opens a cube file and displays the footprint in the graphics view.
Definition at line 268 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::openList | ( | ) | [slot] |
Opens a list of cube files instead of one at a time.
Definition at line 600 of file MosaicMainWindow.cpp.
References _FILEINFO_, Isis::TextFile::GetLine(), and Isis::IException::Unknown.
void Isis::MainWindow::readSettings | ( | QSize | defaultSize = QSize() | ) | [protected, virtual, inherited] |
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(), readSettings(), Isis::TableMainWindow::TableMainWindow(), and Isis::ViewportMainWindow::ViewportMainWindow().
void Isis::MosaicMainWindow::readSettings | ( | ) | [private] |
This overriden method is called from the constructor so that when the Mosaicmainwindow is created, it know's it's size and location and the tool bar location.
Definition at line 639 of file MosaicMainWindow.cpp.
References Isis::MainWindow::readSettings().
void Isis::MosaicMainWindow::saveProject | ( | ) | [slot] |
Called from the file menu to save a project file.
Definition at line 686 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::saveProjectAs | ( | ) | [slot] |
Allows the user to save a project file.
Definition at line 669 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::saveSettings2 | ( | ) | [private] |
This overriden method is called when the MosaicMainWindow is closed or hidden to write the size and location settings (and tool bar location) to a config file in the user's home directory.
Definition at line 662 of file MosaicMainWindow.cpp.
void Isis::MosaicMainWindow::setupMenus | ( | ) | [private] |
Sets up the menus on the menu bar for the qmos window.
This should be the job of the widgets this application uses... inheritance off of something that says it has menu options probably. This should probably have open project, save project, close project, and exit. Projects need to be an accumulated file also, if we want them.
Definition at line 164 of file MosaicMainWindow.cpp.
References exit().
QMenu* Isis::MosaicMainWindow::viewMenu | ( | ) | const [inline] |
QToolBar* Isis::MosaicMainWindow::m_activeToolbar [private] |
The active toolbar.
Definition at line 111 of file MosaicMainWindow.h.
QToolBar* Isis::MosaicMainWindow::m_permToolbar [private] |
Tool bar attached to mainwindow.
Definition at line 110 of file MosaicMainWindow.h.
The mainwindow's progress bar.
Definition at line 114 of file MosaicMainWindow.h.
ToolPad* Isis::MosaicMainWindow::m_toolpad [private] |
Tool pad on this mainwindow.
Definition at line 108 of file MosaicMainWindow.h.