Isis 3 Programmer Reference
Isis::MosaicMainWindow Class Reference

#include <MosaicMainWindow.h>

Inheritance diagram for Isis::MosaicMainWindow:
Inheritance graph
Collaboration diagram for Isis::MosaicMainWindow:
Collaboration graph

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)
 
QToolBarpermanentToolBar ()
 
QToolBaractiveToolBar ()
 
ToolPadtoolPad ()
 
QProgressBarprogressBar ()
 
QMenuviewMenu () 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.
 

Private Slots

void enterWhatsThisMode ()
 
void showHelp ()
 
void updateMenuVisibility ()
 

Private Member Functions

void readSettings (QSize defaultSize=QSize(800, 600))
 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 setupMenus ()
 Sets up the menus on the menu bar for the qmos window.
 
void setupPvlToolBar ()
 
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 ()
 
virtual void writeSettings () const
 This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory.
 

Private Attributes

bool m_controllerVisible
 
ToolPadm_toolpad
 Tool pad on this mainwindow.
 
QToolBarm_permToolbar
 Tool bar attached to mainwindow.
 
QToolBarm_activeToolbar
 The active toolbar.
 
QString m_filename
 
QProgressBarm_progressBar
 The mainwindow's progress bar.
 
QMenum_viewMenu
 
QMenum_settingsMenu
 
QMenum_fileMenu
 
QMenum_exportMenu
 
MosaicControllerm_mosaicController
 
QList< QAction * > m_actionsRequiringOpen
 
QList< QAction * > m_actionsRequiringClosed
 
QList< Cube * > m_openCubes
 
QFileInfo m_lastOpenedFile
 
QSettings m_settings
 
QDockWidgetm_fileListDock
 
QDockWidgetm_mosaicPreviewDock
 

Detailed Description

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

2010-05-10 Christopher Austin - added cnet connectivity functionality

2011-08-08 Steven Lambright - Refectored for new qmos. Mosaic controller is now always visible.

2011-09-26 Steven Lambright - Command line arguments are now parsed here.

2011-09-27 Steven Lambright - Improved user documentation

2011-11-21 Steven Lambright - View menu actions come from more places now. Fixes #568

2012-03-13 Steven Lambright - m_lastOpenedFile wasn't being initialized or set properly causing the file open dialogs to always open to '/' which was undesired behavior. This has been fixed by initializing it to '.' and updating its value when a cube is opened. Fixes #752.

2012-06-18 Steven Lambright - m_lastOpenedFile was being overly aggresively when remembering paths from previously opened files - it followed the cube paths inside of file lists. This is now corrected so that it'll remember the path to the file list instead of the path to the files in the file list. Fixes #848.

2012-08-28 Tracie Sucharski - Moved the toolpad and active toolbar creation to MosaicSceneWidget.

2012-09-17 Steven Lambright - Restored the toolpad and active toolbar creation... creation is now in both places, internalization into the scne is for ipce only. This allows movement of toolbars/appropriate placements of other widgets (progress bar, tracking in status, etc) for qmos (aka this class).

2013-03-19 Steven Lambright - Fixed a problem where Open Project would close the current project, even if cancelled. Also removed the closed project state. Fixes #998.

2017-06-27 Cole Neubauer - Added search capability for file list Dock widgets Fixes #1556

Definition at line 58 of file MosaicMainWindow.h.

Constructor & Destructor Documentation

◆ MosaicMainWindow()

Isis::MosaicMainWindow::MosaicMainWindow ( QString title,
QWidget * parent = 0 )

Definition at line 32 of file MosaicMainWindow.cpp.

◆ ~MosaicMainWindow()

Isis::MosaicMainWindow::~MosaicMainWindow ( )
inline

Definition at line 62 of file MosaicMainWindow.h.

Member Function Documentation

◆ activeToolBar()

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

Definition at line 68 of file MosaicMainWindow.h.

◆ closeEvent()

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

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.

Definition at line 37 of file MainWindow.cpp.

References Isis::MainWindow::writeSettings().

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

◆ closeMosaic

void Isis::MosaicMainWindow::closeMosaic ( )
slot

Definition at line 740 of file MosaicMainWindow.cpp.

◆ createController()

void Isis::MosaicMainWindow::createController ( )
private

Definition at line 498 of file MosaicMainWindow.cpp.

◆ displayController()

void Isis::MosaicMainWindow::displayController ( )
private

Definition at line 517 of file MosaicMainWindow.cpp.

◆ enterWhatsThisMode

void Isis::MosaicMainWindow::enterWhatsThisMode ( )
privateslot

Definition at line 291 of file MosaicMainWindow.cpp.

◆ eventFilter()

bool Isis::MosaicMainWindow::eventFilter ( QObject * o,
QEvent * e )
protected

This event filter is installed in the constructor.

Parameters
o
e
Returns
bool

Definition at line 153 of file MosaicMainWindow.cpp.

◆ loadProject [1/2]

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 713 of file MosaicMainWindow.cpp.

◆ loadProject() [2/2]

void Isis::MosaicMainWindow::loadProject ( QString filename)

Definition at line 727 of file MosaicMainWindow.cpp.

◆ open

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 275 of file MosaicMainWindow.cpp.

◆ openFiles()

void Isis::MosaicMainWindow::openFiles ( QStringList cubeNames)
private

Definition at line 656 of file MosaicMainWindow.cpp.

◆ openList

void Isis::MosaicMainWindow::openList ( )
slot

Opens a list of cube files instead of one at a time.

Definition at line 612 of file MosaicMainWindow.cpp.

◆ permanentToolBar()

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

Definition at line 64 of file MosaicMainWindow.h.

◆ progressBar()

QProgressBar * Isis::MosaicMainWindow::progressBar ( )
inline

Definition at line 76 of file MosaicMainWindow.h.

◆ readSettings()

void Isis::MosaicMainWindow::readSettings ( QSize defaultSize = QSize(800, 600))
privatevirtual

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.

Reimplemented from Isis::MainWindow.

Definition at line 651 of file MosaicMainWindow.cpp.

◆ saveProject

void Isis::MosaicMainWindow::saveProject ( )
slot

Called from the file menu to save a project file.

Definition at line 698 of file MosaicMainWindow.cpp.

◆ saveProjectAs

void Isis::MosaicMainWindow::saveProjectAs ( )
slot

Allows the user to save a project file.

Definition at line 681 of file MosaicMainWindow.cpp.

◆ saveSettings2()

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 674 of file MosaicMainWindow.cpp.

◆ settingsFileName() [1/2]

QString Isis::MainWindow::settingsFileName ( ) const
protectedinherited

Definition at line 96 of file MainWindow.cpp.

◆ settingsFileName() [2/2]

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

Definition at line 43 of file MainWindow.cpp.

◆ setupMenus()

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 172 of file MosaicMainWindow.cpp.

References Isis::FileName::expanded().

◆ showHelp

void Isis::MosaicMainWindow::showHelp ( )
privateslot

Definition at line 296 of file MosaicMainWindow.cpp.

◆ toolPad()

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

Definition at line 72 of file MosaicMainWindow.h.

◆ updateMenuVisibility [1/2]

void Isis::MosaicMainWindow::updateMenuVisibility ( )
privateslot

Definition at line 484 of file MosaicMainWindow.cpp.

◆ updateMenuVisibility() [2/2]

bool Isis::MosaicMainWindow::updateMenuVisibility ( QMenu * menu)
private

Definition at line 578 of file MosaicMainWindow.cpp.

◆ viewMenu()

QMenu * Isis::MosaicMainWindow::viewMenu ( ) const
inline

Returns the View menu.

Returns
QMenu*

Definition at line 86 of file MosaicMainWindow.h.

◆ writeSettings()

void Isis::MainWindow::writeSettings ( ) const
privatevirtualinherited

This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory.

Definition at line 124 of file MainWindow.cpp.

Referenced by Isis::MainWindow::closeEvent().

Member Data Documentation

◆ m_actionsRequiringClosed

QList<QAction *> Isis::MosaicMainWindow::m_actionsRequiringClosed
private

Definition at line 136 of file MosaicMainWindow.h.

◆ m_actionsRequiringOpen

QList<QAction *> Isis::MosaicMainWindow::m_actionsRequiringOpen
private

Definition at line 135 of file MosaicMainWindow.h.

◆ m_activeToolbar

QToolBar* Isis::MosaicMainWindow::m_activeToolbar
private

The active toolbar.

Definition at line 124 of file MosaicMainWindow.h.

◆ m_controllerVisible

bool Isis::MosaicMainWindow::m_controllerVisible
private

Definition at line 119 of file MosaicMainWindow.h.

◆ m_exportMenu

QMenu* Isis::MosaicMainWindow::m_exportMenu
private

Definition at line 132 of file MosaicMainWindow.h.

◆ m_fileListDock

QDockWidget* Isis::MosaicMainWindow::m_fileListDock
private

Definition at line 140 of file MosaicMainWindow.h.

◆ m_fileMenu

QMenu* Isis::MosaicMainWindow::m_fileMenu
private

Definition at line 131 of file MosaicMainWindow.h.

◆ m_filename

QString Isis::MosaicMainWindow::m_filename
private

Definition at line 125 of file MosaicMainWindow.h.

◆ m_lastOpenedFile

QFileInfo Isis::MosaicMainWindow::m_lastOpenedFile
private

Definition at line 138 of file MosaicMainWindow.h.

◆ m_mosaicController

MosaicController* Isis::MosaicMainWindow::m_mosaicController
private

Definition at line 134 of file MosaicMainWindow.h.

◆ m_mosaicPreviewDock

QDockWidget* Isis::MosaicMainWindow::m_mosaicPreviewDock
private

Definition at line 141 of file MosaicMainWindow.h.

◆ m_openCubes

QList<Cube *> Isis::MosaicMainWindow::m_openCubes
private

Definition at line 137 of file MosaicMainWindow.h.

◆ m_permToolbar

QToolBar* Isis::MosaicMainWindow::m_permToolbar
private

Tool bar attached to mainwindow.

Definition at line 123 of file MosaicMainWindow.h.

◆ m_progressBar

QProgressBar* Isis::MosaicMainWindow::m_progressBar
private

The mainwindow's progress bar.

Definition at line 127 of file MosaicMainWindow.h.

◆ m_settings

QSettings Isis::MosaicMainWindow::m_settings
private

Definition at line 139 of file MosaicMainWindow.h.

◆ m_settingsMenu

QMenu* Isis::MosaicMainWindow::m_settingsMenu
private

Definition at line 130 of file MosaicMainWindow.h.

◆ m_toolpad

ToolPad* Isis::MosaicMainWindow::m_toolpad
private

Tool pad on this mainwindow.

Definition at line 121 of file MosaicMainWindow.h.

◆ m_viewMenu

QMenu* Isis::MosaicMainWindow::m_viewMenu
private

Definition at line 129 of file MosaicMainWindow.h.


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