Isis 3 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
ToolPad * toolPad()
Definition: MosaicMainWindow.h:72
QMenu * viewMenu() const
Returns the View menu.
Definition: MosaicMainWindow.h:86
Definition: MosaicMainWindow.h:58
QToolBar * permanentToolBar()
Definition: MosaicMainWindow.h:64
QProgressBar * progressBar()
Definition: MosaicMainWindow.h:76
~MosaicMainWindow()
Definition: MosaicMainWindow.h:62
void openList()
Opens a list of cube files instead of one at a time.
Definition: MosaicMainWindow.cpp:612
MosaicMainWindow(QString title, QWidget *parent=0)
Definition: MosaicMainWindow.cpp:32
Definition: MosaicController.h:67
void saveProject()
Called from the file menu to save a project file.
Definition: MosaicMainWindow.cpp:698
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void closeMosaic()
Definition: MosaicMainWindow.cpp:740
void open()
Calles MosaicWidget&#39;s open method which opens a cube file and displays the footprint in the graphics ...
Definition: MosaicMainWindow.cpp:275
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Definition: MosaicMainWindow.cpp:153
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.
Definition: MosaicMainWindow.cpp:713
void saveProjectAs()
Allows the user to save a project file.
Definition: MosaicMainWindow.cpp:681
QToolBar * activeToolBar()
Definition: MosaicMainWindow.h:68
Definition: ToolPad.h:14