VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
newTacticalGraphicEntryWidget.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 
15 
17 #include <matrix/vlVector.h>
18 
20 #include <QtGui/QWidget>
21 #include <QtGui/QBoxLayout>
22 #include <QtGui/QPushButton>
23 #include <QtGui/QLabel>
24 #include <QtGui/QLineEdit>
25 
26 namespace makVrf
27 {
28  class DtNewTacticalGraphicEntryWidgetLogic;
29 
31  {
32  Q_OBJECT
33 
34  public:
35 
37  {
40  DtObjectBeingDefined
41  };
42 
45  QWidget* parent, const Qt::WindowFlags& flags = 0);
46 
49 
52  void init();
53 
55  virtual void setObjectDefined(DtObjectDefinitionState state);
56 
58  virtual DtObjectDefinitionState objectDefined() const;
59 
62  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
63 
65  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
66 
69  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(
70  QWidget* parent, const Qt::WindowFlags& flags = 0) const;
71 
74  bool isValid() const;
75 
76  static makVrv::DtUnicode codeVariableType()
77  {
78  return makVrv::DtUnicode::tr("List of Location3Ds");
79  }
80 
81  protected:
82 
85  virtual DtNewTacticalGraphicEntryWidgetLogic* createLogic();
86 
88  virtual void setupGui();
89 
91  virtual void setupConnections();
92 
94  virtual void setRange(double top, double bottom);
95 
97  virtual void setDefaultValue(const std::string&);
98 
101  virtual void setVariableData(const std::string&);
102 
104  virtual void closeEvent(QCloseEvent* event);
105 
107  virtual void hideEvent(QHideEvent* event);
108 
109  protected slots:
110 
111  virtual void slot_onDefineButtonClicked();
112 
113  protected:
115  QHBoxLayout* myLayout;
119 
121  };
122 
126  {
127  Q_OBJECT
128 
129  public:
130  DtNewTacticalGraphicEntryVariableWidgetExtension(makVrv::DtDe&, QWidget* w, const Qt::WindowFlags& f = 0);
131 
133 
134  virtual int setFrom(const DtScriptedTaskVariable&, QGridLayout* parentLayout, int startRow);
135  virtual void setTo(DtScriptedTaskVariable&) const;
136 
137  virtual void setReadOnly(bool);
138 
139  protected slots:
140  virtual void onSelectEntityType();
141 
142  public:
143  QHBoxLayout* myLayout;
147  };
148 
150  {
151  public:
154 
156  {
157  }
158 
160  makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0)
161  {
163  new DtNewTacticalGraphicEntryWidget(de, parent, flags);
164  w->init();
165  return w;
166  }
167 
169  {
171  }
172  };
173 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)