VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stealthViewModesWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
16 
17 class QComboBox;
18 class QHBoxLayout;
19 
20 namespace makVrf
21 {
25  {
26  Q_OBJECT
27 
28  public:
29  DtStealthViewModesWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
30 
31  //DTOR
32  virtual ~DtStealthViewModesWidget() override;
33 
36  virtual void setLabel(const QString&) override;
37  virtual QString label() const override;
38 
41  virtual void setRange(double, double) override {};
42 
44  virtual void setDefaultValue(const std::string&) override;
46 
48  virtual std::string viewMode() const;
49 
51  virtual void setViewMode(const std::string&);
52 
54  virtual DtReaderWriter* createBoundVariable(const std::string& variableName) override;
55 
57  virtual void setupFromBoundVariable(const DtReaderWriter* variableName) override;
58 
60  {
61  return makVrv::DtUnicode::tr("String");
62  }
63 
64  static std::string designerGroup()
65  {
66  return tr("VR-Forces Stealth Control").toUtf8().constData();
67  }
68 
69  static std::string headerFile()
70  {
71  return tr("<vrfGuiDataEntryWidgets/stealthViewModesWidget.h>").toUtf8().constData();
72  }
73 
74  static std::string variableName()
75  {
76  return tr("viewMode").toUtf8().constData();
77  }
78 
79  public:
82  QHBoxLayout* myContentLayout;
83  };
84 
86 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
CreationFlags
Definition: taskSetVariableWidget.h:118
Definition: readerWriter.h:85
static makVrv::DtUnicode codeVariableType()
Definition: stealthViewModesWidget.h:59
QComboBox * myStealthModes
Definition: stealthViewModesWidget.h:80
QLabel * myStealthModesLabel
Definition: stealthViewModesWidget.h:81
static std::string designerGroup()
Definition: stealthViewModesWidget.h:64
Basic implementation that has a label at the top.
Definition: taskSetVariableWidget.h:231
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt&#39;s translation tools. This will simply call ...
Definition: DtUnicode.h:92
Definition: taskSetVariableWidget.h:422
virtual void setRange(double, double) override
No-Op.
Definition: stealthViewModesWidget.h:41
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:22
Combo box that will allow the user to select a stealth view mode to put the stealth into for a stealt...
Definition: stealthViewModesWidget.h:24
QHBoxLayout * myContentLayout
Definition: stealthViewModesWidget.h:82
static std::string variableName()
Definition: stealthViewModesWidget.h:74
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
static std::string headerFile()
Definition: stealthViewModesWidget.h:69
DtTaskSetVariableWidgetCreator< DtStealthViewModesWidget > DtStealthViewModesWidgetCreator
Definition: stealthViewModesWidget.h:85

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)