VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
integerListEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 class QLabel;
17 class QHBoxLayout;
18 class QPushButton;
19 class QListWidget;
20 class QListWidgetItem;
21 
24 {
25  Q_OBJECT
26 
27 public:
28  DtIntegerListEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
29 
30  //DTOR
31  virtual ~DtIntegerListEntryWidget();
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 DtReaderWriter* createBoundVariable(const std::string& variableName);
47 
49  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
50 
52  {
53  return makVrv::DtUnicode::tr("Integer: integer list");
54  }
55 
56 protected slots:
58  virtual void onAdd();
59 
61  virtual void onRemove();
62 
64  virtual void onItemSelectionChanged();
65 
66 public:
68  QListWidget* myNumbers;
71  QHBoxLayout* myButtonLayout;
72 };
73 

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)