VR-Forces 4.0.4 Class Documentation
include/vrvVrlQt/DtObjectsCountTreeWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile:  $ $Revision:  $ $State:  $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvVrlQt/vrvVrlQt.h> 
00015 #include <vrvVrlQt/DtObjectsCountTreeInterface.h>
00016 #include <vrvVrlQt/DtObjectsCountTreeLogic.h>
00017 #include <QtGui/QWidget>
00018 
00019 class QTreeWidget;
00020 class QLabel;
00021 
00022 namespace makVrv
00023 {
00024    class DtObjectsCountTreeLogic;
00025 
00029    class DT_DLL_VRVVRLQT DtObjectsCountTreeWidget : public QWidget, 
00030       public DtObjectsCountTreeInterface
00031    {
00032       Q_OBJECT
00033 
00034    public:
00035 
00037       DtObjectsCountTreeWidget(DtDe& de, QWidget* parent);
00038 
00040       virtual ~DtObjectsCountTreeWidget();
00041 
00042       void refresh_widget();
00043 
00045 
00046       void addEntityCounts(const int individuals, const int aggregates);
00047       void subtractEntityCounts(const int individuals, const int aggregates);
00048       void addDestroyedCounts(const int destroyedEntities, const int destroyedAggregates);
00049       void subtractDestroyedCounts(const int individualsDestroyed, const int aggregatesDestroyed);
00050       void addTacticalCounts(const int waypoints, const int routes, const int areas, const int obstacles, 
00051          const int disareas, const int phaselines);
00052       void subtractTacticalCount(const DtElementID& id, const DtObjectsCountTreeInterface::TacticalGraphicType tacticalType);
00054 
00055    protected:
00056       void slot_resize(const QRect* size);
00057       void subtractOneTactical(const QString itemName);
00058 
00059    protected:
00060       QWidget* entityContainerWidget;
00061       QWidget* controlContainerWidget;
00062       QTreeWidget* entityListWidget;
00063       QTreeWidget* controlListWidget;
00064       QLabel* entityLabel;
00065       QLabel* controlLabel;
00066       DtSignalConnectionManager myManager;
00067    };
00068 }
00069 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)