Isis 3.0 Programmer Reference
Back | Home
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 
56  class MosaicMainWindow : public MainWindow {
57  Q_OBJECT
58  public:
59  MosaicMainWindow(QString title, QWidget *parent = 0);
60  ~MosaicMainWindow() { }
61 
62  QToolBar *permanentToolBar() {
63  return m_permToolbar;
64  }
65 
66  QToolBar *activeToolBar() {
67  return m_activeToolbar;
68  }
69 
70  ToolPad *toolPad() {
71  return m_toolpad;
72  }
73 
74  QProgressBar *progressBar() {
75  return m_progressBar;
76  }
77 
84  QMenu *viewMenu() const {
85  return m_viewMenu;
86  };
87 
88  void saveSettings();
89  void loadProject(QString filename);
90 
91  public slots:
92  void open();
93  void openList();
94  void saveProject();
95  void saveProjectAs();
96  void loadProject();
97  void closeMosaic();
98 
99  private slots:
100  void enterWhatsThisMode();
101  void showHelp();
102  void updateMenuVisibility();
103 
104  protected:
105  bool eventFilter(QObject *o, QEvent *e);
106 
107  private:
108  void readSettings(QSize defaultSize = QSize(800, 600));
109  void setupMenus();
110  void setupPvlToolBar();
111  void saveSettings2();
112  void openFiles(QStringList cubeNames);
113  bool updateMenuVisibility(QMenu *menu);
114  void createController();
115  void displayController();
116 
117  bool m_controllerVisible;
118 
120 
123  QString m_filename;
124 
126 
127  QMenu *m_viewMenu;
128  QMenu *m_settingsMenu;
129  QMenu *m_fileMenu;
130  QMenu *m_exportMenu;
131 
132  MosaicController *m_mosaicController;
133  QList<QAction *> m_actionsRequiringOpen;
134  QList<QAction *> m_actionsRequiringClosed;
135  QList<Cube *> m_openCubes;
136  QFileInfo m_lastOpenedFile;
137  QSettings m_settings;
138  QDockWidget *m_fileListDock;
139  QDockWidget *m_mosaicPreviewDock;
140  };
141 };
142 
143 #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...
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.
QMenu * viewMenu() const
Returns the View menu.
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.
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.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:24:03