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
8class QString;
9class QProgressBar;
10
11namespace Isis {
12 class Cube;
13 class MosaicController;
14 class ToolPad;
15
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
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
Base class for the Qisis main windows.
Definition MainWindow.h:24
Definition MosaicController.h:67
Definition MosaicMainWindow.h:58
~MosaicMainWindow()
Definition MosaicMainWindow.h:62
QToolBar * permanentToolBar()
Definition MosaicMainWindow.h:64
void openList()
Opens a list of cube files instead of one at a time.
Definition MosaicMainWindow.cpp:612
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
QMenu * viewMenu() const
Returns the View menu.
Definition MosaicMainWindow.h:86
QToolBar * activeToolBar()
Definition MosaicMainWindow.h:68
void open()
Calles MosaicWidget's open method which opens a cube file and displays the footprint in the graphics ...
Definition MosaicMainWindow.cpp:275
QProgressBar * progressBar()
Definition MosaicMainWindow.h:76
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed in the constructor.
Definition MosaicMainWindow.cpp:153
void saveProject()
Called from the file menu to save a project file.
Definition MosaicMainWindow.cpp:698
MosaicMainWindow(QString title, QWidget *parent=0)
Definition MosaicMainWindow.cpp:32
ToolPad * toolPad()
Definition MosaicMainWindow.h:72
void closeMosaic()
Definition MosaicMainWindow.cpp:740
Definition ToolPad.h:14
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16