Isis 3 Programmer Reference
ViewportMainWindow.h
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 
10 namespace Isis {
11  class Preference;
12  class ToolPad;
13  class TrackTool;
14  class Workspace;
15 
43  class ViewportMainWindow : public MainWindow {
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);
78  TrackTool *getTrackTool() {
79  return mTrackTool;
80  };
81 
82  protected:
83  virtual void closeEvent(QCloseEvent *event);
84 
85  private:
90  std::map<QString, QMenu *> p_menus;
91  std::string p_appName;
93  };
94 };
95 
96 #endif
void closeWindow(QCloseEvent *event=NULL)
Signal called when the window receives a close event.
QToolBar * activeToolBar()
Returns the active toolbar.
Workspace * p_workspace
The current workspace.
TrackTool * mTrackTool
Pointer to application&#39;s Status bar.
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
std::map< QString, QMenu * > p_menus
Map of qstrings to menus.
QToolBar * permanentToolBar()
Returns the permanent toolbar.
QToolBar * p_activeToolbar
The active toolbar.
This was called the Qisis MainWindow.
QToolBar * p_permToolbar
The permanent toolbar.
std::string p_appName
The app name.
void displayWarning(std::string &pStr, const std::string &pExStr)
Slot which receives the warning signal.
QMenu * getMenu(const QString &name)
Returns the menu with menu name = name.
ToolPad * toolPad()
Returns the toolpad.
Workspace * workspace()
Returns the current workspace.
void resetWarning(void)
Slot which receives the message to reset warning status.
virtual void closeEvent(QCloseEvent *event)
This class is called when a close event occurs, it emits a signal and ignores the close event...
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis main windows.
Definition: MainWindow.h:24
ToolPad * p_toolpad
The toolpad.
ViewportMainWindow(QString title, QWidget *parent=0)
Constructs a ViewportMainWindow object with windowTitle = title.