VR-Forces 4.0.4 Class Documentation
include/bhave3DGui/bhaveEditSpawnPointDialog.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2012 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ** Created: 4/16/12 MEM
00005 *******************************************************************************/
00006 
00009 
00010 
00011 #pragma once
00012 
00013 #include "bhave3DGui/bhave3DGuiDefines.h"
00014 
00015 #include "vrfmsgs/rwSpawnData.h"
00016 #include <vrfGuiCoreQt/pointObjectDefinitionDialog.h>
00017 
00018 class makVrf::DtCreateAndEditObjectDialogInterface;
00019 class DtSimMessage;
00020 
00021 namespace BHAVE
00022 {
00023    namespace BHAVE3DGui
00024    {  
00031       class DT_DLL_bhave3DGui DtBhaveEditSpawnPointDialog : public makVrf::DtPointObjectDefinitionDialog
00032       {
00033 
00034          Q_OBJECT
00035 
00036       public:
00037 
00039          DtBhaveEditSpawnPointDialog(makVrv::DtDe& de, QWidget* parent, const std::string title="", DtDialogInteractionMode mode=DtCreationMode);
00040 
00042          virtual ~DtBhaveEditSpawnPointDialog();
00043 
00044          virtual void init();
00045          virtual const DtRwSpawnData& spawnData() const;
00046 
00047       protected:
00048          virtual void processSpawnData(DtSimMessage* rsp);
00049          virtual void displaySpawnPointParameters(bool canEdit);
00050 
00051       protected slots:
00052 
00053          virtual void slot_onEditTemplateButtonClicked();
00054 
00056          virtual void slot_editSpawnPoint(DtRwSpawnData & spawnData);
00057 
00059          virtual void slot_editSpawnTemplate(DtRwSpawnData & spawnData, bool updatePtNames);
00060 
00061       protected:
00062          DtRwSpawnData    mySpawnData;
00063          DtString       myCurrentTemplateName;
00064          QPushButton*   myEditTemplateButton;
00065       };
00066 
00067       class DT_DLL_bhave3DGui DtBhaveEditSpawnPointDialogCreator : public makVrf::DtVrfObjectModifierDialogCreator
00068       {
00069       public:
00070 
00071          virtual makVrf::DtCreateAndEditObjectDialogInterface* create(makVrv::DtDe& de, QWidget* parent, 
00072             DtEntityType entityType, const std::string title="",  makVrf::DtCreationSignalType signalCreate= makVrf::DtNoCreationSignal,
00073             makVrf::DtCreateAndEditObjectDialogInterface::DtDialogInteractionMode mode=makVrf::DtCreateAndEditObjectDialogInterface::DtCreationMode, 
00074             const makVrf::DtVrfObjectManipulationManager::DtEditingType& editType=makVrf::DtVrfObjectManipulationManager::Context);
00075       };
00076    }
00077 }
00078 
00079 

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)