VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateInformationPageItems.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 
17 
18 class QComboBox;
19 class QHBoxLayout;
20 class DtRwProperties;
21 
22 namespace makVrf
23 {
24  class DtVrfStateViewCollectionManager;
25 
26  namespace makVrfGuiObjectInformationQt
27  {
28  class DtInformationDialogPageLogic;
29  class DtLevelBar;
30 
32  {
33  public:
36  {
37  }
38 
41  {
42  }
43 
44  virtual QVariant value(int col, int role, const QTreeWidgetItem*,
46  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
47 
48  virtual bool mouseReleaseEvent();
49 
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  {
79  public:
82  {
83  }
84 
87  {
88  }
89 
90  static std::string creatorName();
91 
92  protected:
95  };
96 
98  {
99  public:
100 
103  {
104  }
105 
108  {
109  }
110 
111  static std::string creatorName();
112 
113  protected:
116  };
117 
119  {
120  public:
123  {
124  }
125 
128  {
129  }
130 
131  virtual bool shouldBeHidden() const;
132 
133  static std::string creatorName();
134 
135  protected:
138  };
139 
141  {
142  public:
145  {
146  }
147 
150  {
151  }
152 
153  static std::string creatorName();
154 
155  protected:
158  };
159 
161  {
162  public:
165  {
166  }
167 
170  {
171  }
172 
173  static std::string creatorName();
174 
175  protected:
178  };
179 
181  {
182  public:
185  {
186  }
187 
190  {
191  }
192 
193  static std::string creatorName();
194 
195  protected:
198  };
199 
201  {
202  public:
205  {
206  }
207 
210  {
211  }
212 
213  static std::string creatorName();
214 
215  protected:
218  };
219 
221  {
222  public:
225  {
226  }
227 
230  {
231  }
232 
233  static std::string creatorName();
234 
235  protected:
238  };
239 
241  {
242  public:
245  {
246  }
247 
250  {
251  }
252 
253  static std::string creatorName();
254 
255  protected:
258  };
259 
261  {
262  public:
263 
266  {
267  }
268 
271  {
272  }
273 
274  static std::string creatorName();
275 
276  protected:
279  };
280 
282  {
283  public:
284 
287  {
288  }
289 
292  {
293  }
294 
295  static std::string creatorName();
296 
297  protected:
300  };
301 
303  {
304  public:
307  , myManager(0)
308  {
309  }
310 
312 
313  virtual void setLogic(DtInformationDialogPageLogic* l);
314 
315  protected:
317  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&) = 0;
318 
319  protected:
321  };
322 
324  {
325  public:
326 
329  {
330  }
331 
334  {
335  }
336 
337  static std::string creatorName();
338 
339  protected:
340  virtual QString value(const makVrv::DtStateView<DtVrfObjectDataState>&);
342  };
343 
345  {
346  public:
349  {
350  }
351 
353 
354  static std::string creatorName();
355 
356  protected:
359  };
360 
362  {
363  public:
366  , myHealthLevel(0)
367  {
368  }
369 
372  , myHealthLevel(0)
373  {
374  }
375 
376  static std::string creatorName();
377  virtual bool shouldBeHidden() const;
378 
379  virtual bool needsPageLogicForWidgetRepresentation() const;
380 
381  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
382 
383  protected:
386  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
387 
388  public:
389  QHBoxLayout* myLayout;
391  };
392 
394  {
395  public:
398 
399  static std::string creatorName();
400  virtual bool shouldBeHidden() const;
401 
402  virtual bool needsPageLogicForWidgetRepresentation() const;
403 
404  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
405 
406  protected:
409  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
410 
411  virtual void loadIcon(QPixmap& icon, const DtFilename& filename) const;
412  virtual void setCategoryIcon(const DtString& category, const QPixmap& icon);
413  virtual const QPixmap& categoryIcon(const DtString& category) const;
414 
415  public:
416  std::vector<QLabel*> myPrimaryEquipment;
417  std::map<DtString, QPixmap> myCategoryIcons;
418  QPixmap myGenericIcon;
419 
421 
424  };
425 
427  {
428  public:
431  {
432  }
433 
436  {
437  }
438 
439  static std::string creatorName();
440  virtual bool shouldBeHidden() const;
441 
442  protected:
445  };
446 
448  {
449  public:
452  {
453  }
454 
457  {
458  }
459 
460  static std::string creatorName();
461  virtual bool shouldBeHidden() const;
462 
463  protected:
466  };
467 
469  {
470  public:
473  {
474  }
475 
478  {
479  }
480 
481  virtual bool shouldBeHidden() const;
482 
483  static std::string creatorName();
484 
485  protected:
488  };
489 
491  {
492  public:
495  , myLastUpdateTime(0)
496  {
497  }
498 
501  , myLastUpdateTime(0)
502  {
503  }
504 
505  virtual bool shouldBeHidden() const;
506  static std::string creatorName();
507 
508  protected:
511 
514  virtual void slot_tick();
515 
516  protected:
519  };
520 
522  {
523  public:
526  {
527  }
528 
531  {
532  }
533 
534  virtual bool shouldBeHidden() const;
535  static std::string creatorName();
536 
537  protected:
540  };
541 
543  {
544  public:
547  {
548  }
549 
552  {
553  }
554 
555  virtual bool shouldBeHidden() const;
556  static std::string creatorName();
557 
558  protected:
561  };
562 
564  {
565  public:
568  {
569  }
570 
573  {
574  }
575 
576  virtual bool shouldBeHidden() const;
577  static std::string creatorName();
578 
579  protected:
582  };
583 
585  {
586  public:
589  {
590  }
591 
594  {
595  }
596 
597  virtual bool shouldBeHidden() const;
598  static std::string creatorName();
599 
600  protected:
603  };
604 
606  {
607  public:
610  {
611  }
612 
615  {
616  }
617 
618  virtual bool shouldBeHidden() const;
619  static std::string creatorName();
620 
621  protected:
624  };
625 
627  {
628  public:
629 
632  {
633  }
634 
637  {
638  }
639 
640  virtual bool shouldBeHidden() const;
641  static std::string creatorName();
642 
643  protected:
646  };
647 
649  {
650  public:
653  {
654  }
655 
658  {
659  }
660 
661  virtual bool shouldBeHidden() const;
662  static std::string creatorName();
663 
664  protected:
667  };
668 
670  {
671  public:
674  , mySelectedSection(0)
675  {
676  }
677 
680  , mySelectedSection(0)
681  {
682  }
683 
684  static std::string creatorName();
685 
686  virtual bool shouldBeHidden() const;
687 
688  protected:
689  virtual QVariant value(int col, int role, const QTreeWidgetItem*,
691  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
693  virtual void updateCombatEffectivenessIcon(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
694  virtual void updateStatusIcon(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
695 
696  virtual bool valueNeedsUpdate(int col, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
697  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
698  virtual void updateIcons(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
699  virtual bool eventFilter(QObject*, QEvent*);
700  virtual void adjustWidgetForColumnSpan(int colSpan);
701  virtual void adjustWidgetForRowSpan(int rowSpan);
702 
703  static QString getCombatEffectiveness(const DtRwProperties& props);
704  static QString getPersonnelStatus(const DtRwProperties& props);
705  static QString getPolStatus(const DtRwProperties& props);
706  static QString getAmmunitionStatus(const DtRwProperties& props);
707  static QString getWeaponsStatus(const DtRwProperties& props);
708 
709  protected:
712  QString myPolStatus;
715 
717  QString myPolToolTip;
720 
722 
729 
730  };
731 
733 
735  {
736  public:
737 
740  {
741  }
742 
744 
745  static std::string creatorName();
746 
747  protected:
748  virtual void stateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
749  };
750 
779  }
780 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)