Isis Developer Reference
MosaicMainWindow.h
Go to the documentation of this file.
1 #ifndef MosaicMainWindow_h
2 #define MosaicMainWindow_h
3 
4 #include <iostream>
5 
6 #include "MainWindow.h"
7 
8 class QString;
9 class QProgressBar;
10 
11 namespace Isis {
12  class Cube;
13  class MosaicController;
14  class ToolPad;
15 
58  class MosaicMainWindow : public MainWindow {
59  Q_OBJECT
60  public:
61  MosaicMainWindow(QString title, QWidget *parent = 0);
63 
65  return m_permToolbar;
66  }
67 
69  return m_activeToolbar;
70  }
71 
73  return m_toolpad;
74  }
75 
77  return m_progressBar;
78  }
79 
86  QMenu *viewMenu() const {
87  return m_viewMenu;
88  };
89 
90  void saveSettings();
91  void loadProject(QString filename);
92 
93  public slots:
94  void open();
95  void openList();
96  void saveProject();
97  void saveProjectAs();
98  void loadProject();
99  void closeMosaic();
100 
101  private slots:
102  void enterWhatsThisMode();
103  void showHelp();
104  void updateMenuVisibility();
105 
106  protected:
107  bool eventFilter(QObject *o, QEvent *e);
108 
109  private:
110  void readSettings(QSize defaultSize = QSize(800, 600));
111  void setupMenus();
112  void setupPvlToolBar();
113  void saveSettings2();
114  void openFiles(QStringList cubeNames);
115  bool updateMenuVisibility(QMenu *menu);
116  void createController();
117  void displayController();
118 
119  bool m_controllerVisible;
120 
121  ToolPad *m_toolpad;
122 
123  QToolBar *m_permToolbar;
124  QToolBar *m_activeToolbar;
125  QString m_filename;
126 
127  QProgressBar *m_progressBar;
128 
129  QMenu *m_viewMenu;
130  QMenu *m_settingsMenu;
131  QMenu *m_fileMenu;
132  QMenu *m_exportMenu;
133 
134  MosaicController *m_mosaicController;
135  QList<QAction *> m_actionsRequiringOpen;
136  QList<QAction *> m_actionsRequiringClosed;
137  QList<Cube *> m_openCubes;
138  QFileInfo m_lastOpenedFile;
139  QSettings m_settings;
140  QDockWidget *m_fileListDock;
141  QDockWidget *m_mosaicPreviewDock;
142  };
143 };
144 
145 #endif
Isis::MosaicSceneWidget::getProgress
QProgressBar * getProgress()
Definition: MosaicSceneWidget.cpp:520
ProjectionFactory.h
QWidget
QProgressBar
MosaicMainWindow.h
Isis::MosaicMainWindow::eventFilter
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Definition: MosaicMainWindow.cpp:153
MosaicSceneWidget.h
QList< QAction * >
Isis::MosaicController::getSettingsActions
QList< QAction * > getSettingsActions()
Definition: MosaicController.cpp:131
Isis::MosaicController::saveProject
void saveProject()
ImageFileListWidget.h
Isis::ImageFileListWidget::getProgress
QProgressBar * getProgress()
This method returns the progress bar.
Definition: ImageFileListWidget.cpp:108
Isis::ImageFileListWidget::getLongHelp
static QWidget * getLongHelp(QWidget *fileListContainer=NULL)
This method creates a QWidget that displays a long help message explaining the tool.
Definition: ImageFileListWidget.cpp:268
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::MosaicSceneWidget::getGridHelp
static QWidget * getGridHelp(QWidget *gridToolContainer=NULL)
Definition: MosaicSceneWidget.cpp:938
Isis::ImageFileListWidget::getViewActions
QList< QAction * > getViewActions()
This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns.
Definition: ImageFileListWidget.cpp:240
MainWindow.h
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::MosaicSceneWidget::getLongHelp
static QWidget * getLongHelp(QWidget *mosaicSceneContainer=NULL)
Definition: MosaicSceneWidget.cpp:1030
QMenu
Isis::MosaicMainWindow::loadProject
void loadProject()
Allows users to select a project which is then read in and displayed in the qmos window.
Definition: MosaicMainWindow.cpp:713
ImageTreeWidgetItem.h
Isis::TextFile
Provides access to sequential ASCII stream I/O.
Definition: TextFile.h:38
Isis::MosaicSceneWidget::getPreviewHelp
static QWidget * getPreviewHelp(QWidget *worldViewContainer=NULL)
Definition: MosaicSceneWidget.cpp:1236
Isis::TextFile::GetLine
bool GetLine(QString &line, const bool skipComments=true)
Gets next line from file.
Definition: TextFile.cpp:411
Isis::MosaicSceneWidget::getControlNetHelp
static QWidget * getControlNetHelp(QWidget *cnetToolContainer=NULL)
Definition: MosaicSceneWidget.cpp:864
ToolPad.h
Isis::MosaicMainWindow::viewMenu
QMenu * viewMenu() const
Returns the View menu.
Definition: MosaicMainWindow.h:86
QToolBar
QStringList
Isis::MosaicMainWindow::MosaicMainWindow
MosaicMainWindow(QString title, QWidget *parent=0)
Definition: MosaicMainWindow.cpp:32
IString.h
Isis::IException::what
const char * what() const
Returns a string representation of this exception in its current state.
Definition: IException.cpp:375
Isis::MosaicController
Definition: MosaicController.h:67
Isis::MosaicSceneWidget::addTo
void addTo(QMenu *menu)
Definition: MosaicSceneWidget.cpp:421
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::MosaicMainWindow::open
void open()
Calles MosaicWidget's open method which opens a cube file and displays the footprint in the graphics ...
Definition: MosaicMainWindow.cpp:275
Isis::MosaicController::getMosaicScene
MosaicSceneWidget * getMosaicScene()
Definition: MosaicController.h:74
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::MosaicMainWindow::saveProjectAs
void saveProjectAs()
Allows the user to save a project file.
Definition: MosaicMainWindow.cpp:681
FileDialog.h
Isis::MosaicMainWindow::permanentToolBar
QToolBar * permanentToolBar()
Definition: MosaicMainWindow.h:64
TextFile.h
Isis::MosaicController::getMosaicWorldScene
MosaicSceneWidget * getMosaicWorldScene()
Definition: MosaicController.h:78
Isis::MosaicController::saveSettings
void saveSettings(QSettings &settings)
Definition: MosaicController.cpp:146
Isis::MosaicController::openImages
void openImages(QStringList filenames)
Handle opening cubes by filename.
Definition: MosaicController.cpp:157
Isis::MosaicSceneWidget::addToPermanent
void addToPermanent(QToolBar *toolBar)
Definition: MosaicSceneWidget.cpp:379
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::MosaicMainWindow::activeToolBar
QToolBar * activeToolBar()
Definition: MosaicMainWindow.h:68
Camera.h
Isis::MosaicMainWindow::~MosaicMainWindow
~MosaicMainWindow()
Definition: MosaicMainWindow.h:62
Isis::MainWindow::readSettings
virtual void readSettings(QSize defaultSize=QSize())
This method ensure that the settings get written even if the Main window was only hidden,...
Definition: MainWindow.cpp:80
Isis::ToolPad
Definition: ToolPad.h:14
Isis::MosaicSceneWidget::getViewActions
QList< QAction * > getViewActions()
Definition: MosaicSceneWidget.cpp:797
Isis::MosaicMainWindow::toolPad
ToolPad * toolPad()
Definition: MosaicMainWindow.h:72
Isis::MosaicController::readProject
void readProject(QString filename)
Definition: MosaicController.cpp:235
Isis::MosaicMainWindow::saveSettings
void saveSettings()
Isis::MosaicMainWindow::openList
void openList()
Opens a list of cube files instead of one at a time.
Definition: MosaicMainWindow.cpp:612
MosaicController.h
Projection.h
Isis::MosaicMainWindow::closeMosaic
void closeMosaic()
Definition: MosaicMainWindow.cpp:740
Isis::MosaicController::getProgress
QProgressBar * getProgress()
Definition: MosaicController.cpp:109
QDialog
Isis::MosaicMainWindow
Definition: MosaicMainWindow.h:58
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
Isis::MainWindow
Base class for the Qisis main windows.
Definition: MainWindow.h:24
QObject
Isis::MosaicMainWindow::saveProject
void saveProject()
Called from the file menu to save a project file.
Definition: MosaicMainWindow.cpp:698
QAction
QDockWidget
Isis::MosaicController::addExportActions
void addExportActions(QMenu &fileMenu)
Add actions that are export-related to the menu.
Definition: MosaicController.cpp:91
Isis::MosaicController::getImageFileList
ImageFileListWidget * getImageFileList()
Definition: MosaicController.h:82
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicMainWindow::progressBar
QProgressBar * progressBar()
Definition: MosaicMainWindow.h:76
Isis::MosaicSceneWidget::getMapHelp
static QWidget * getMapHelp(QWidget *mapContainer=NULL)
Definition: MosaicSceneWidget.cpp:1080