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
QProgressBar * m_progressBar
The mainwindow&#39;s progress bar.
void saveSettings2()
This overriden method is called when the MosaicMainWindow is closed or hidden to write the size and l...
QMenu * viewMenu() const
Returns the View menu.
void setupMenus()
Sets up the menus on the menu bar for the qmos window.
ToolPad * m_toolpad
Tool pad on this mainwindow.
void openList()
Opens a list of cube files instead of one at a time.
QToolBar * m_permToolbar
Tool bar attached to mainwindow.
void readSettings(QSize defaultSize=QSize(800, 600))
This overriden method is called from the constructor so that when the Mosaicmainwindow is created...
QToolBar * m_activeToolbar
The active toolbar.
void saveProject()
Called from the file menu to save a project file.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void open()
Calles MosaicWidget&#39;s open method which opens a cube file and displays the footprint in the graphics ...
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Base class for the Qisis main windows.
Definition: MainWindow.h:24
void loadProject()
Allows users to select a project which is then read in and displayed in the qmos window.
void saveProjectAs()
Allows the user to save a project file.