VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtObjectsCountTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvVrlQt/vrvVrlQt.h>
12 
13 #if !defined(Q_MOC_RUN)
16 #endif
17 
18 #include <QtWidgets/QWidget>
19 
20 class QTreeWidget;
21 class QLabel;
22 
23 namespace makVrv
24 {
25  class DtObjectsCountTreeLogic;
26 
30  class DT_DLL_VRVVRLQT DtObjectsCountTreeWidget : public QWidget,
32  {
33  Q_OBJECT
34 
35  public:
36 
38  DtObjectsCountTreeWidget(DtDe& de, QWidget* parent);
39 
41  virtual ~DtObjectsCountTreeWidget();
42 
43  void refresh_widget();
44 
46  void addEntityCounts(const int individuals, const int aggregates);
48  void subtractEntityCounts(const int individuals, const int aggregates);
49  void addDestroyedCounts(const int destroyedEntities, const int destroyedAggregates);
50  void subtractDestroyedCounts(const int individualsDestroyed, const int aggregatesDestroyed);
51  void addTacticalCounts(const int waypoints, const int routes, const int areas, const int obstacles,
52  const int disareas, const int phaselines);
53  void subtractTacticalCount(const DtElementID& id, const DtObjectsCountTreeInterface::TacticalGraphicType tacticalType);
55 
56  protected:
57  void slot_resize(const QRect* size);
58  void subtractOneTactical(const QString& itemName);
59 
60  protected:
68  };
69 }
70 
QTreeWidget * entityListWidget
Definition: DtObjectsCountTreeWidget.h:63
voidpf void uLong size
Definition: ioapi.h:39
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Contains DLL export macros.
QLabel * controlLabel
Definition: DtObjectsCountTreeWidget.h:66
The objects count widget displays count lists for entity and control objects that exist in the attach...
Definition: DtObjectsCountTreeWidget.h:30
Contains makVrv::DtObjectsCountTreeInterface class.
TacticalGraphicType
Enumeration for specifying different types of tactical graphics controls.
Definition: DtObjectsCountTreeInterface.h:27
QLabel * entityLabel
Definition: DtObjectsCountTreeWidget.h:65
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
QWidget * entityContainerWidget
Definition: DtObjectsCountTreeWidget.h:61
Contains makVrv::DtObjectsCountTreeLogic class.
DtSignalConnectionManager myManager
Definition: DtObjectsCountTreeWidget.h:67
The interface used by the DtObjectsCountTreeWidget and the DtObjectsCountTreeLogic.
Definition: DtObjectsCountTreeInterface.h:23
QWidget * controlContainerWidget
Definition: DtObjectsCountTreeWidget.h:62
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QTreeWidget * controlListWidget
Definition: DtObjectsCountTreeWidget.h:64

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)