VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entityInformationPageItems.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
15 
16 #include <QPixmap>
17 
18 class QComboBox;
20 
21 namespace makVrf
22 {
23  class DtVrfStateViewCollectionManager;
24 
25  namespace makVrfGuiObjectInformationQt
26  {
27  class DtInformationDialogPageLogic;
28 
30  {
31  public:
34  {
35  }
36 
39  {
40  }
41 
42  virtual QVariant value(int col, int role, const QTreeWidgetItem*,
44  virtual QVariant widgetValue(int col, int role, QTreeWidgetItem* item, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
45  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
46 
48  virtual QString widgetValue(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
50  virtual bool mouseReleaseEvent();
51  virtual bool needsPageLogicForWidgetRepresentation() const;
52 
53  protected:
54  QString myCurrentValue;
55  };
56 
58  {
59  public:
62  {
63  }
64 
67  {
68  }
69 
70  static std::string creatorName();
71 
72  protected:
75  };
76 
78 
80  {
81  public:
84  {
85  }
86 
89  {
90  }
91 
92  static std::string creatorName();
93 
94  protected:
97  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
98  };
99 
101 
103  {
104  Q_OBJECT
105 
106  public:
109  {
110  }
111 
114  {
115  }
116 
117  static std::string creatorName();
118 
119  virtual void adjustWidgetForRowSpan(int rowSpan);
120  virtual void adjustWidgetForColumnSpan(int colSpan);
121 
122  protected:
123  virtual bool mouseReleaseEvent();
124 
125  protected:
126  virtual QVariant value(int col, int role, const QTreeWidgetItem*,
128  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
130  virtual QString iconKey(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*) const;
131 
132  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
133  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
134 
135  protected:
136  QString myIconKey;
137  QPixmap myIcon;
138  };
139 
141 
142  /*
143  class DT_DLL_VRFGUIOBJECTINFORMATIONQT DtEntityEmbarkedOnItem : public DtItemUpdateFunction
144  {
145  public:
146  DtEntityEmbarkedOnItem(makVrv::DtDe& de)
147  : DtItemUpdateFunction(de)
148  {
149  }
150 
151  DtEntityEmbarkedOnItem(DtInformationDialogPageLogic* l)
152  : DtItemUpdateFunction(l)
153  {
154  }
155 
156  static std::string creatorName();
157 
158  virtual bool mouseReleaseEvent();
159 
160  protected:
161  virtual QVariant value(int col, int role, const QTreeWidgetItem*,
162  makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
163  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
164  virtual QString title(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
165  virtual QString iconKey(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*) const;
166 
167  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
168  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
169 
170  protected:
171  QString myIconKey;
172  QPixmap myIcon;
173  };
174 
175  typedef DtItemUpdateFunctionCreator<DtEntityEmbarkedOnItem> DtEntityEmbarkedOnItemCreator;
176 
177  */
178 
180  {
181  public:
184  {
185  }
186 
189  {
190  }
191 
192  static std::string creatorName();
193 
194  virtual bool needsPageLogicForWidgetRepresentation() const;
195 
196  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
197 
198  protected:
201  };
202 
204 
206  {
207  public:
210  , myManager(0)
211  {
212  }
213 
215 
216  virtual void setLogic(DtInformationDialogPageLogic* l);
217 
218  protected:
220  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
221 
222  protected:
224  };
225 
227  {
228  public:
231  {
232  }
233 
236  {
237  }
238 
239  static std::string creatorName();
240 
241  protected:
242  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
244  };
245 
247 
249  {
250  public:
253  {
254  }
255 
258  {
259  }
260 
261  static std::string creatorName();
262 
263  protected:
266  };
267 
269 
271  {
272  public:
273 
276  {
277  }
278 
280 
281  static std::string creatorName();
282 
283  protected:
286  };
287 
289 
291  {
292  public:
293 
296  {
297  }
298 
300 
301  static std::string creatorName();
302 
303  virtual void setValue(const QString&);
304  virtual void setIndex(int);
305 
306  protected:
309 
310  protected:
311  QString myValue;
312  int myIndex;
313  };
314 
316  {
317  public:
318 
321  {
322  }
323 
325 
326  static std::string creatorName();
327 
328  protected:
329  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
331  };
332 
334 
336  {
337  public:
338 
341  {
342  }
343 
345 
346  static std::string creatorName();
347 
348  protected:
349  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
351  };
352 
354 
356  {
357  public:
360  {
361  }
362 
364 
365  virtual ~DtObjectStateExtendedLabels();
366 
367  virtual void clearExtendedLabels();
368 
369  protected:
370  virtual bool shouldBeHidden() const;
371  virtual void updateFrom(const DtRwIntegerAttributeList&, const std::string& before);
375  virtual void slot_extendedLabelsChanged();
376 
377  protected:
378  std::map<std::string, DtEntityExtendedLabelItem*> myExtendedLabels;
379  };
380 
382  {
383  public:
384 
387  {
388  }
389 
391 
392  static std::string creatorName();
393 
394  protected:
395  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
396  };
397 
399 
401  {
402  public:
403 
406  {
407  }
408 
411  {
412  }
413 
414  static std::string creatorName();
415 
416  protected:
419  };
420 
422 
424  {
425  public:
428  {
429  }
430 
433  {
434  }
435 
436  static std::string creatorName();
437 
438  protected:
439  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
441  };
442 
444 
446  {
447  public:
450  {
451  }
452 
455  {
456  }
457 
458  static std::string creatorName();
459 
460  protected:
461  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
463  };
464 
466 
468  {
469  public:
472  {
473  }
474 
477  {
478  }
479 
480  static std::string creatorName();
481 
482  protected:
483  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
485  };
486 
488 
490  {
491  public:
494  {
495  }
496 
499  {
500  }
501 
502  static std::string creatorName();
503 
504  protected:
505  virtual bool shouldBeHidden() const;
506  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
508 
509  };
510 
512 
515  {
516  public:
519  {
520  }
521 
524  {
525  }
526 
527  static std::string creatorName();
528 
529  protected:
530  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
532  };
533 
535 
538  {
539  public:
542  {
543  }
544 
547  {
548  }
549 
550  static std::string creatorName();
551 
552  protected:
553  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
555  };
556 
558 
560  {
561  public:
564  {
565  }
566 
569  {
570  }
571 
572  static std::string creatorName();
573 
574  protected:
577  };
578 
580 
582  {
583  public:
586  {
587  }
588 
591  {
592  }
593 
594  static std::string creatorName();
595 
596  protected:
599  };
600 
602 
604  {
605  public:
608  {
609  }
610 
613  {
614  }
615 
616  static std::string creatorName();
617 
618  protected:
621  };
622 
624 
626  {
627  public:
628 
631  {
632  }
633 
636  {
637  }
638 
639  static std::string creatorName();
640 
641  protected:
644  };
645 
647 
649  {
650  public:
651 
654  {
655  }
656 
659  {
660  }
661 
662  static std::string creatorName();
663 
664  protected:
667  };
668 
670  }
671 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)