VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtFalseConditional.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtFalseConditional.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrvUtil/signalslib.h>
00017 #include <vrfGuiCoreQt/DtConditionalExpressionInterface.h>
00018 
00019 namespace makVrf
00020 {
00022    class DT_DLL_VRFGUICOREQT DtFalseConditionalCreator : public DtVrfConditionalExpressionCreator
00023    {
00024    public:
00025       virtual DtConditionalExpressionInterface* create(makVrv::DtDe&, QWidget* parent);
00026       virtual QString title() const ;
00027       virtual bool canEditType(int) const;
00028    };
00029 
00030    class DT_DLL_VRFGUICOREQT DtFalseConditionalLogic : public DtConditionExpressionLogic
00031    {
00032    public:
00033       DtFalseConditionalLogic(makVrv::DtDe&, DtConditionalExpressionInterface*);
00034 
00035    protected:
00036       virtual void createConditional(DtConditionalExpressionViewInterface* parentView,
00037          const std::vector<makVrv::DtSimEntry*>& data);
00038       virtual bool isComplete() const;
00039       virtual DtSimCondExpr* conditionalExpression() const;
00040 
00041       void setupConditional(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data)
00042       {
00043       }
00044    };
00045 
00046    class DT_DLL_VRFGUICOREQT DtFalseConditional : public DtConditionalExpressionInterface
00047    {
00048    public:
00049       //CTOR
00050       DtFalseConditional(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00051 
00052       //DtFalse
00053       virtual ~DtFalseConditional();
00054 
00055    protected:
00057       virtual void run(DtConditionalExpressionViewInterface*, const std::vector<makVrv::DtSimEntry*>& data);
00058       virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
00059       virtual bool isComplete() const;
00060 
00062       virtual void setupConditional(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data)
00063       {
00064       }
00065 
00066       bool bringsUpDialog() const
00067       {
00068          return false;
00069       }
00070 
00071       void setValue(const QString&)
00072       {
00073       }
00074 
00075       QString value() const
00076       {
00077          return "False";
00078       }
00079    };
00080 }

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)