Isis Developer Reference
ViewportMainWindow.h
Go to the documentation of this file.
1#ifndef ViewportMainWindow_h
2#define ViewportMainWindow_h
3
4#include <map>
5#include <QToolBar>
6#include <QMenu>
7#include "FileName.h"
8#include "MainWindow.h"
9
10namespace Isis {
11 class Preference;
12 class ToolPad;
13 class TrackTool;
14 class Workspace;
15
44 Q_OBJECT
45
46 signals:
47 void closeWindow(QCloseEvent *event = NULL);
48
49 public slots:
50 void displayWarning(std::string &pStr, const std::string &pExStr);
51 void resetWarning(void);
52
53 public:
54 ViewportMainWindow(QString title, QWidget *parent = 0);
55 virtual ~ViewportMainWindow();
56
59 return p_workspace;
60 };
61
64 return p_permToolbar;
65 };
66
69 return p_activeToolbar;
70 };
71
74 return p_toolpad;
75 };
76
77 QMenu *getMenu(const QString &name);
79 return mTrackTool;
80 };
81
82 protected:
83 virtual void closeEvent(QCloseEvent *event);
84
85 private:
86 Workspace *p_workspace;
87 QToolBar *p_permToolbar;
88 QToolBar *p_activeToolbar;
89 ToolPad *p_toolpad;
90 std::map<QString, QMenu *> p_menus;
91 std::string p_appName;
92 TrackTool *mTrackTool;
93 };
94};
95
96#endif
Base class for the Qisis main windows.
Definition MainWindow.h:24
Definition ToolPad.h:14
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition TrackTool.h:43
This was called the Qisis MainWindow.
Definition ViewportMainWindow.h:43
TrackTool * getTrackTool()
Definition ViewportMainWindow.h:78
virtual ~ViewportMainWindow()
Definition ViewportMainWindow.cpp:55
QToolBar * permanentToolBar()
Returns the permanent toolbar.
Definition ViewportMainWindow.h:63
void closeWindow(QCloseEvent *event=NULL)
Signal called when the window receives a close event.
virtual void closeEvent(QCloseEvent *event)
This class is called when a close event occurs, it emits a signal and ignores the close event.
Definition ViewportMainWindow.cpp:115
ToolPad * toolPad()
Returns the toolpad.
Definition ViewportMainWindow.h:73
Workspace * workspace()
Returns the current workspace.
Definition ViewportMainWindow.h:58
QToolBar * activeToolBar()
Returns the active toolbar.
Definition ViewportMainWindow.h:68
ViewportMainWindow(QString title, QWidget *parent=0)
Constructs a ViewportMainWindow object with windowTitle = title.
Definition ViewportMainWindow.cpp:18
void resetWarning(void)
Slot which receives the message to reset warning status.
Definition ViewportMainWindow.cpp:74
QMenu * getMenu(const QString &name)
Returns the menu with menu name = name.
Definition ViewportMainWindow.cpp:87
void displayWarning(std::string &pStr, const std::string &pExStr)
Slot which receives the warning signal.
Definition ViewportMainWindow.cpp:65
Definition Workspace.h:78
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16