Isis 3 Programmer Reference
TrackTool.h
1 #ifndef Qisis_TrackTool_h
2 #define Qisis_TrackTool_h
3 
4 // This is the only include allowed in this file!
5 #include "Tool.h"
6 
7 
8 class QLabel;
9 class QStatusBar;
10 
11 namespace Isis {
12  class MdiCubeViewport;
13  class WarningWidget;
14 
42  class TrackTool : public Tool {
43  Q_OBJECT
44 
45  public:
46  TrackTool(QStatusBar *parent);
47  void displayWarning(std::string &pStr, const std::string &pExStr);
48  void resetStatusWarning(void);
49  QStatusBar *getStatusBar(void);
50 
51  public slots:
52  virtual void mouseMove(QPoint p);
53  virtual void mouseLeave();
54 
55  protected:
58 
59  private slots:
60  void locateCursor();
61 
62  private:
63  void updateLabels(QPoint p);
64  void clearLabels();
65 
66  QStatusBar *p_sbar;
67  QLabel *p_sampLabel;
68  QLabel *p_lineLabel;
69  QLabel *p_latLabel;
70  QLabel *p_lonLabel;
71  QLabel *p_grayLabel;
72  QLabel *p_redLabel;
73  QLabel *p_grnLabel;
74  QLabel *p_bluLabel;
76  };
77 };
78 
79 #endif
Cube display widget for certain Isis MDI applications.
void displayWarning(std::string &pStr, const std::string &pExStr)
Display the Warning icon in case of an exception, sent from the tool where the exception occured...
Definition: TrackTool.cpp:97
WarningWidget * mWarningWidget
Warning Widget.
Definition: TrackTool.h:75
QLabel * p_sampLabel
Sample label.
Definition: TrackTool.h:67
QLabel * p_lonLabel
Lon label.
Definition: TrackTool.h:70
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
void clearLabels()
Clears the labels.
Definition: TrackTool.cpp:325
QLabel * p_bluLabel
Blue label.
Definition: TrackTool.h:74
virtual void mouseMove(QPoint p)
Updates the labels anytime the mouse moves.
Definition: TrackTool.cpp:116
QLabel * p_grnLabel
Green label.
Definition: TrackTool.h:73
QLabel * p_redLabel
Red label.
Definition: TrackTool.h:72
QStatusBar * p_sbar
Status bar.
Definition: TrackTool.h:66
QLabel * p_latLabel
Lat label.
Definition: TrackTool.h:69
void locateCursor()
Finds the cursor position.
Definition: TrackTool.cpp:341
QLabel * p_lineLabel
Line label.
Definition: TrackTool.h:68
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
Definition: TrackTool.cpp:131
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
Definition: WarningWidget.h:51
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the given viewport.
Definition: TrackTool.cpp:358
void updateLabels(QPoint p)
Updates the tracking labels.
Definition: TrackTool.cpp:142
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
void resetStatusWarning(void)
Resets the warning status on the status bar to default.
Definition: TrackTool.cpp:104
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the given viewport.
Definition: TrackTool.cpp:370
TrackTool(QStatusBar *parent)
TrackTool constructor.
Definition: TrackTool.cpp:26
QLabel * p_grayLabel
Gray label.
Definition: TrackTool.h:71