VAPOR3 3.9.4
AnnotationEventRouter.h
Go to the documentation of this file.
1//************************************************************************
2// *
3// Copyright (C) 2006 *
4// University Corporation for Atmospheric Research *
5// All Rights Reserved *
6// *
7//************************************************************************/
8//
9// File: AnnotationEventRouter.h
10//
11// Author: Alan Norton
12// National Center for Atmospheric Research
13// PO 3000, Boulder, Colorado
14//
15// Date: June, 2015
16//
17// Description: Defines the AnnotationEventRouter class.
18// This class handles events for the Annotation params
19//
20#ifndef ANNOTATIONEVENTROUTER_H
21#define ANNOTATIONEVENTROUTER_H
22
23#include <qobject.h>
24#include "EventRouter.h"
25#include <vapor/MyBase.h>
26#include "RangeCombos.h"
27#include "VaporTable.h"
29
30QT_USE_NAMESPACE
31
32namespace VAPoR {
33class ControlExec;
34}
35
36class PGroup;
37class PSection;
38class VComboBox;
39class VPushButton;
40
41class AnnotationEventRouter : public QWidget, public EventRouter {
42 Q_OBJECT
43
44public:
46
48
49 virtual void hookUpTab(){};
50
52 virtual void wheelEvent(QWheelEvent *) {}
53
54 // Get static string identifier for this router class
55 //
56 static string GetClassType() { return ("Annotation"); }
57 string GetType() const { return GetClassType(); }
58
59 virtual void _confirmText(){};
60
61private:
62 Combo *_textSizeCombo;
63 Combo *_digitsCombo;
64 Combo *_ticWidthCombo;
65
66 std::map<std::string, std::string> _visNames;
67 std::map<std::string, std::string> _renTypeNames;
68
70
71 virtual void _updateTab();
72
73 std::vector<PGroup *> _groups;
74 std::vector<PGroup *> _axisGroups;
75};
76
77#endif // ANNOTATIONEVENTROUTER_H
virtual ~AnnotationEventRouter()
virtual void wheelEvent(QWheelEvent *)
Ignore wheel event in tab (to avoid confusion)
AnnotationEventRouter(QWidget *parent, VAPoR::ControlExec *ce)
Definition: Combo.h:22
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI.
Definition: EventRouter.h:107
Definition: PGroup.h:14
Provides API for VAPOR visualizer User Interfaces (UIs)