VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtLifeformSurrenderedConditional.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtLifeformSurrenderedConditional.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/DtBaseEntityConditionalExpressionDialog.h>
00017 #include <vrfGuiCoreQt/DtBaseEntityConditionalExpressionLogic.h>
00018 
00019 class QHBoxLayout;
00020 class QWidget;
00021 class QComboBox;
00022 class QLabel;
00023 class QGroupBox;
00024 
00025 namespace makVrf
00026 {
00028    class DT_DLL_VRFGUICOREQT DtLifeformSurrenderedConditionalCreator : public DtVrfConditionalExpressionCreator
00029    {
00030    public:
00031       virtual DtConditionalExpressionInterface* create(makVrv::DtDe&, QWidget* parent);
00032       virtual QString title() const ;
00033       virtual bool canEditType(int) const;
00034    };
00035 
00036    class DT_DLL_VRFGUICOREQT DtLifeformSurrenderedConditionalLogic : public DtBaseEntityConditionalExpressionLogic
00037    {
00038    public:
00039       DtLifeformSurrenderedConditionalLogic(makVrv::DtDe&, DtConditionalExpressionInterface*);
00040 
00041       virtual ~DtLifeformSurrenderedConditionalLogic();
00042 
00043    public:
00044       virtual void createConditional(DtConditionalExpressionViewInterface* parentView,
00045          const std::vector<makVrv::DtSimEntry*>& data);
00046 
00047       virtual DtSimCondExpr* conditionalExpression() const;
00048       virtual void setupConditional(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data);
00049 
00050    protected:
00051       virtual bool surrendered() const;
00052       virtual void setSurrendered(bool);
00053       virtual void initializeSelectionFilters();
00054    };
00055 
00056    class DT_DLL_VRFGUICOREQT DtLifeformSurrenderedConditional : public DtBaseEntityConditionalExpressionDialog
00057    {
00058       Q_OBJECT
00059    public:
00060       //CTOR
00061       DtLifeformSurrenderedConditional(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00062 
00063       //DTOR
00064       virtual ~DtLifeformSurrenderedConditional();
00065 
00066       virtual bool surrendered() const;
00067       virtual void setSurrendered(bool);
00068 
00069    protected:
00070       virtual QWidget*  expressionExtension();
00071 
00072       virtual QString value() const;
00073       virtual void setValue(const QString&);
00074       virtual void setupConditional(const DtSimCondExpr* expr, const std::vector<makVrv::DtSimEntry*>& data);
00075 
00076    public:
00077       QHBoxLayout*   myExtensionLayout;
00078       QGroupBox*     myExtension;
00079 
00080       QLabel*        mySurrenderedLabel;
00081       QComboBox*     mySurrendered;
00082    };
00083 }

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)