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

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)