Isis 3.0
Back | Home
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 
10 namespace Isis {
11  class Preference;
12  class ToolPad;
13  class TrackTool;
14  class Workspace;
15 
37  class ViewportMainWindow : public MainWindow {
38  Q_OBJECT
39 
40  signals:
41  void closeWindow();
42 
43  public slots:
44  void displayWarning(std::string &pStr, const std::string &pExStr);
45  void resetWarning(void);
46 
47  public:
48  ViewportMainWindow(QString title, QWidget *parent = 0);
49  virtual ~ViewportMainWindow();
50 
53  return p_workspace;
54  };
55 
58  return p_permToolbar;
59  };
60 
63  return p_activeToolbar;
64  };
65 
68  return p_toolpad;
69  };
70 
71  QMenu *getMenu(const QString &name);
73  return mTrackTool;
74  };
75 
76  protected:
77  virtual void closeEvent(QCloseEvent *event);
78 
79  private:
80  Workspace *p_workspace;
81  QToolBar *p_permToolbar;
82  QToolBar *p_activeToolbar;
83  ToolPad *p_toolpad;
84  std::map<QString, QMenu *> p_menus;
85  std::string p_appName;
86  TrackTool *mTrackTool;
87  };
88 };
89 
90 #endif
void closeWindow()
Signal called when the window receives a close event.
Definition: moc_ViewportMainWindow.cpp:140
QToolBar * activeToolBar()
Returns the active toolbar.
Definition: ViewportMainWindow.h:62
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
QToolBar * permanentToolBar()
Returns the permanent toolbar.
Definition: ViewportMainWindow.h:57
This was called the Qisis MainWindow.
Definition: ViewportMainWindow.h:37
void displayWarning(std::string &pStr, const std::string &pExStr)
Slot which receives the warning signal.
Definition: ViewportMainWindow.cpp:65
QMenu * getMenu(const QString &name)
Returns the menu with menu name = name.
Definition: ViewportMainWindow.cpp:87
ToolPad * toolPad()
Returns the toolpad.
Definition: ViewportMainWindow.h:67
Workspace * workspace()
Returns the current workspace.
Definition: ViewportMainWindow.h:52
void resetWarning(void)
Slot which receives the message to reset warning status.
Definition: ViewportMainWindow.cpp:74
virtual ~ViewportMainWindow()
Definition: ViewportMainWindow.cpp:55
Definition: Workspace.h:81
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:107
TrackTool * getTrackTool()
Definition: ViewportMainWindow.h:72
Base class for the Qisis main windows.
Definition: MainWindow.h:24
ViewportMainWindow(QString title, QWidget *parent=0)
Constructs a ViewportMainWindow object with windowTitle = title.
Definition: ViewportMainWindow.cpp:18
Definition: ToolPad.h:14

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:31:03