VR-Forces 4.1.1 Class Documentation
DtResourceSelectionEntryWidget.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 
16 
17 class QLabel;
18 class QHBoxLayout;
19 class QComboBox;
21 
22 namespace makVrf
23 {
26  {
27  public:
28  DtResourceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
29 
30  //DTOR
32 
34  virtual void setLabel(const std::string&);
35 
37  virtual void setRange(double bottom, double top);
38 
40  virtual void setDefaultValue(const std::string&);
41 
43  virtual void setVariableData(const std::string&);
44 
46  virtual void setupFrom(const std::vector<makVrv::DtSimEntry*>& data);
47 
49  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
50 
52  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
53 
54  static makVrv::DtUnicode codeVariableType()
55  {
56  return makVrv::DtUnicode::tr("String (resource name)");
57  }
58 
59  protected:
60  virtual void addResource(const DtResource&);
61  virtual void resourceUpdated(const DtResource&);
62  virtual void resourcesChanged();
63  virtual void resourceCheckingDisabled();
64  virtual void resourceCheckComplete();
65 
66  public:
69  QHBoxLayout* myContentLayout;
70  QString myDefaultValue;
71  };
72 
75  {
76  public:
77  DtMunitionResourceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
78 
79  //DTOR
81 
82  protected:
83  virtual void addResource(const DtResource&);
84  };
85 
88  {
89  public:
90  DtBombResourceSelectionEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
91 
92  //DTOR
94 
95  protected:
96  virtual void addResource(const DtResource&);
97  };
98 
102 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)