VAPoR  3.0.0
arroweventrouter.h
Go to the documentation of this file.
1 #ifndef ARROWEVENTROUTER_H
2 #define ARROWEVENTROUTER_H
3 
4 
5 #include <qobject.h>
6 #include "params.h"
7 #include "arrowparams.h"
8 #include "eventrouter.h"
9 #include <vapor/MyBase.h>
10 
11 #include "tabmanager.h"
12 #include "barbAppearance.h"
13 #include "variablesWidget.h"
14 #include "layoutWidget.h"
15 
16 
17 using namespace VetsUtil;
18 using namespace VAPoR;
19 QT_USE_NAMESPACE
20 
21 namespace VAPoR {
22 
23 
24 class XmlNode;
25 class ParamNode;
26 class Params;
27 
38 
39 class ArrowEventRouter : public QTabWidget, public EventRouter {
40 
41  Q_OBJECT
42 
43 public:
44 
45  ArrowEventRouter(QWidget* parent);
46  virtual ~ArrowEventRouter();
49  TabManager* tMgr = TabManager::getInstance();
50  QWidget* parent = tMgr->getSubTabWidget(0);
51  return (EventRouter*)(new ArrowEventRouter(parent));
52  }
54  virtual void hookUpTab();
55 
57  virtual void captureMouseUp();
60  virtual void captureMouseDown(int button);
65  virtual void SetDimension(int dim);
66 protected:
68  virtual void _confirmText(Params* p);
70  virtual void _updateTab(Params* p);
71 
74  virtual void _reinitTab(bool doOverride);
75 private:
78  class ArrowAppearance : public QWidget, public Ui_barbAppearance {
79  public:
80  ArrowAppearance(QWidget* parent): QWidget(parent), Ui_barbAppearance(){
81  setupUi(this);
82  }
83  };
84 
85 private slots:
86 
88  void setArrowTextChanged(const QString& qs);
90  void arrowReturnPressed();
92  void moveScaleSlider(int);
94  void selectColor();
96  void releaseScaleSlider();
97 
98 
99 private:
101  virtual void wheelEvent(QWheelEvent*) {}
102 
103  VariablesWidget *_variables;
104  ArrowAppearance * _appearance;
105  LayoutWidget * _layout;
106  static const char* _webHelpText[];
107  static const char* _webHelpURL[];
108 
109  };
110 
111 };
112 
113 #endif //ARROWEVENTROUTER_H
114 
115 
116 
A Widget that can be reused to provide a variable selection tab in any renderer EventRouter class...
A pure virtual class for managing parameters used in visualization.
Definition: params.h:129
An EventRouter subclass that handles the Barbs tab in the GUI.
static EventRouter * CreateTab()
Static Create method, just invokes constructor.
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI...
Definition: eventrouter.h:101
QWidget * getSubTabWidget(int widType)
Definition: tabmanager.h:78
Definition: DC.h:10
An Xml tree.
Definition: ParamNode.h:30
A class that manages the contents of the parameter tabs in VAPOR GUI.
Definition: tabmanager.h:60