VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
overlayParentEntryWidget.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 
16 
17 #include <QtWidgets/QWidget>
18 
19 class QLabel;
20 class QComboBox;
21 class QHBoxLayout;
22 class QSpacerItem;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
29 namespace makVrf
30 {
33  {
34  Q_OBJECT
35 
36  public:
37  DtOverlayParentEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
38 
39  //DTOR
40  virtual ~DtOverlayParentEntryWidget();
41 
43  virtual void setLabel(const std::string&);
44 
46  virtual void setRange(double bottom, double top);
47 
50  virtual void setDefaultValue(const std::string&);
51 
53  virtual void setVariableData(const std::string&);
54 
56  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
57 
59  virtual void setToolTip(const QString&);
60 
62  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
63 
65  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
66 
68  virtual void setOverlay(const QString&);
69 
71  virtual std::string overlay() const;
72 
74  virtual QString currentText() const;
75 
77  virtual void addOverlay(const QString& name, bool translate = true);
78 
80  virtual void removeOverlay(const QString& name);
81 
83  virtual void renameOverlay(const QString& oldName, const QString& newName);
84 
86  virtual void setIndent(int);
87 
89  virtual bool isValid() const
90  {
91  return true;
92  }
93 
94  static makVrv::DtUnicode codeVariableType()
95  {
96  return makVrv::DtUnicode::tr("String (overlay)");
97  }
98 
99  boost::signal<void (int)> signal_overlaySelectionChanged;
100 
101  virtual void clearOverlays();
102  virtual void populateOverlays();
103 
104  protected:
105  virtual int indexOfOverlay(const QString&) const;
106 
108  virtual void slot_overlayAdded(const std::string&);
109 
111  virtual void slot_overlayRemoved(const std::string&);
112 
114  virtual void slot_overlayRenamed(const std::string&, const std::string&);
115 
116  protected slots:
117  virtual void activated(int);
118 
119  public:
122  QHBoxLayout* myContentLayout;
123  QSpacerItem* mySpacerItem;
124 
125  protected:
128  };
129 
131 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)