VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtHostilityMatrixDialogLogic.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtHostilityMatrixDialogLogic.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 
00018 #include <vlutil/vlString.h>
00019 #include <vector>
00020 
00021 class QCheckBox;
00022 
00023 namespace makVrv
00024 {
00025    class DtDe;
00026 }
00027 
00028 class DtSimMessage;
00029 
00030 namespace makVrf
00031 {
00032    class DtHostilityMatrixDialogInterface;
00033 
00034    class DT_DLL_VRFGUICOREQT DtHostilityMatrixDialogLogic
00035    {
00036    public:
00037       typedef std::vector<bool> DtHostilityVector;
00038       typedef std::vector<DtHostilityVector> DtHostilityMatrix;
00039       typedef std::vector<DtString> DtNameVector;
00040 
00041    public:
00042       //CTOR
00043       DtHostilityMatrixDialogLogic(makVrv::DtDe& de, DtHostilityMatrixDialogInterface*);
00044 
00045       //DTOR
00046       virtual ~DtHostilityMatrixDialogLogic();
00047 
00048    public:
00049       virtual void setupGui();
00050 
00051       virtual void apply();
00052       virtual void setToDefaults();
00053 
00054       virtual void hostilityChanged(int row, int col, QCheckBox*);
00055 
00056    protected:
00057       virtual void processHostilityMatrixCallback(DtSimMessage* msg);
00058 
00059    protected:
00060       makVrv::DtDe&  myDe;
00061       DtHostilityMatrixDialogInterface*  myInterface;
00062       DtHostilityMatrix myHostilityMatrix;
00063       DtNameVector myNameVector;
00064       std::vector<std::string> myForceNames;
00065    };
00066 }

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)