VR-Forces 4.1 Class Documentation
DtForceSelectionEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <QtGui/QWidget>
15 
16 class QLabel;
17 class QComboBox;
18 class QHBoxLayout;
19 class QSpacerItem;
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
26 namespace makVrf
27 {
30  {
31  public:
32  DtForceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
33 
34  //DTOR
35  virtual ~DtForceSelectionEntryWidget();
36 
38  virtual void setLabel(const std::string&);
39 
41  virtual void setRange(double bottom, double top);
42 
45  virtual void setDefaultValue(const std::string&);
46 
48  virtual void setVariableData(const std::string&);
49 
51  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
52 
54  virtual void setToolTip(const QString&);
55 
57  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
58 
60  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
61 
63  virtual void setForce(int);
64 
66  virtual int force() const;
67 
69  virtual void setIndent(int);
70 
71  static makVrv::DtUnicode codeVariableType()
72  {
73  return makVrv::DtUnicode::tr("Integer (force type)");
74  }
75 
76  public:
79  QHBoxLayout* myContentLayout;
80  QSpacerItem* mySpacerItem;
81 
82  protected:
84  };
85 
87 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)