Isis 3 Programmer Reference
MosaicMainWindow.h
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);
62  ~MosaicMainWindow() { }
63 
64  QToolBar *permanentToolBar() {
65  return m_permToolbar;
66  }
67 
68  QToolBar *activeToolBar() {
69  return m_activeToolbar;
70  }
71 
72  ToolPad *toolPad() {
73  return m_toolpad;
74  }
75 
76  QProgressBar *progressBar() {
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 
122 
125  QString m_filename;
126 
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
QWidget
QProgressBar
Isis::MosaicMainWindow::eventFilter
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Definition: MosaicMainWindow.cpp:153
QList< QAction * >
Isis::MosaicMainWindow::m_progressBar
QProgressBar * m_progressBar
The mainwindow's progress bar.
Definition: MosaicMainWindow.h:127
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
Isis::MosaicMainWindow::m_toolpad
ToolPad * m_toolpad
Tool pad on this mainwindow.
Definition: MosaicMainWindow.h:121
Isis::MosaicMainWindow::readSettings
void readSettings(QSize defaultSize=QSize(800, 600))
This overriden method is called from the constructor so that when the Mosaicmainwindow is created,...
Definition: MosaicMainWindow.cpp:651
Isis::MosaicMainWindow::viewMenu
QMenu * viewMenu() const
Returns the View menu.
Definition: MosaicMainWindow.h:86
Isis::MosaicMainWindow::saveSettings2
void saveSettings2()
This overriden method is called when the MosaicMainWindow is closed or hidden to write the size and l...
Definition: MosaicMainWindow.cpp:674
QToolBar
QStringList
Isis::MosaicController
Definition: MosaicController.h:67
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::MosaicMainWindow::saveProjectAs
void saveProjectAs()
Allows the user to save a project file.
Definition: MosaicMainWindow.cpp:681
Isis::MosaicMainWindow::setupMenus
void setupMenus()
Sets up the menus on the menu bar for the qmos window.
Definition: MosaicMainWindow.cpp:172
Isis::ToolPad
Definition: ToolPad.h:14
Isis::MosaicMainWindow::m_activeToolbar
QToolBar * m_activeToolbar
The active toolbar.
Definition: MosaicMainWindow.h:124
Isis::MosaicMainWindow::m_permToolbar
QToolBar * m_permToolbar
Tool bar attached to mainwindow.
Definition: MosaicMainWindow.h:123
Isis::MosaicMainWindow::openList
void openList()
Opens a list of cube files instead of one at a time.
Definition: MosaicMainWindow.cpp:612
Isis::MosaicMainWindow
Definition: MosaicMainWindow.h:58
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
QDockWidget
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16