VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleLabelWidgets.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
15 #include <QtWidgets/QLabel>
16 
17 namespace makVrf
18 {
19  class DtScriptedTaskEntityTypeDataWidget;
20 
23  {
24  public:
25  DtSimpleLabelWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
26 
27  //DTOR
28  virtual ~DtSimpleLabelWidget();
29 
31  virtual void setLabel(const QString&);
32 
33  virtual QString label() const;
34 
36  virtual void setVariableData(const std::string&)
37  {
38  }
39 
41  virtual void setDefaultValue(const std::string&)
42  {
43  }
44 
46  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data)
47  {
48  }
49 
51  virtual void setRange(double, double)
52  {
53  }
54 
56  virtual DtReaderWriter* createBoundVariable(const std::string&)
57  {
58  return 0;
59  }
60 
62  virtual void setupFromBoundVariable(const DtReaderWriter*)
63  {
64  }
65 
67  virtual bool guiElementOnly() const
68  {
69  return true;
70  }
71 
73  virtual bool isValid() const
74  {
75  return true;
76  }
77 
78  static makVrv::DtUnicode codeVariableType()
79  {
80  return makVrv::DtUnicode::tr("Label");
81  }
82 
83  static std::string designerGroup()
84  {
85  return tr("VR-Forces Data Labels").toUtf8().constData();
86  }
87 
88  static std::string headerFile()
89  {
90  return tr("<vrfGuiCoreQt/simpleLabelWidgets.h>").toUtf8().constData();
91  }
92 
93  static std::string variableName()
94  {
95  return tr("label").toUtf8().constData();
96  }
97 
98  virtual void refreshLabels();
99 
101  virtual int supportsDisplayNotation() const = 0;
102  virtual makVrv::DtUnicode unitNotation() const = 0;
103 
104  protected:
105  virtual void slot_onUnitChanged(int attribute);
106 
107  public:
109 
110  protected:
111  QString myLabelText;
112  };
113 
116  {
117  public:
118  DtSimpleRangeLabel(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
119 
120  //DTOR
121  virtual ~DtSimpleRangeLabel();
122 
123  protected:
124  virtual int supportsDisplayNotation() const;
125  virtual makVrv::DtUnicode unitNotation() const;
126  };
127 
130  {
131  Q_OBJECT
132 
133  public:
134  DtSimpleAltitudeLabel(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
135 
136  //DTOR
137  virtual ~DtSimpleAltitudeLabel();
138 
139  protected:
140  virtual int supportsDisplayNotation() const;
141  virtual makVrv::DtUnicode unitNotation() const;
142  };
143 
146  {
147  Q_OBJECT
148 
149  public:
150  DtSimpleRateLabel(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
151 
152  //DTOR
153  virtual ~DtSimpleRateLabel();
154 
155  protected:
156  virtual int supportsDisplayNotation() const;
157  virtual makVrv::DtUnicode unitNotation() const;
158  };
159 
162  {
163  Q_OBJECT
164 
165  public:
166  DtSimpleTurnRateLabel(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
167 
168  //DTOR
169  virtual ~DtSimpleTurnRateLabel();
170 
171  protected:
172  virtual int supportsDisplayNotation() const;
173  virtual makVrv::DtUnicode unitNotation() const;
174  };
175 
178  {
179  Q_OBJECT
180 
181  public:
182  DtSimpleHeadingLabel(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
183 
184  //DTOR
185  virtual ~DtSimpleHeadingLabel();
186 
187  protected:
188  virtual int supportsDisplayNotation() const;
189  virtual makVrv::DtUnicode unitNotation() const;
190  };
191 
197 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)