VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtConditionalDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtConditionalDialog.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrfGuiCoreQt/DtConditionalDialogInterface.h>
00018 
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class QPushButton;
00022 
00023 namespace makVrf
00024 {
00025    class DtConditionalLogic;
00026    class DtConditionalExpressionViewInterface;
00027    class DtConditionalEpxressionInterface;
00028 
00029    class DT_DLL_VRFGUICOREQT DtConditionalDialog : public DtConditionalDialogInterface
00030    {
00031       Q_OBJECT
00032 
00033    public:
00034       //CTOR
00035       DtConditionalDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00036 
00037       //DTOR
00038       virtual ~DtConditionalDialog();
00039 
00041       virtual void run(const std::vector<makVrv::DtSimEntry*>& data);
00042 
00043    protected:
00045       virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
00046       virtual DtConditionalExpressionViewInterface* createConditionalExpressionView();
00047 
00048       virtual void slot_conditionComplete();
00049 
00051       virtual DtSimCondExpr* conditionalExpression() const;
00052 
00054       virtual void enable();
00055 
00057       virtual void disable();
00058 
00059    protected slots:
00060       virtual void onOk();
00061       virtual void onCancel();
00062 
00063    protected:
00064       virtual bool editExpression(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data);
00065 
00066    public:
00067       QVBoxLayout*   myMainLayout;
00068       QHBoxLayout*   myButtonLayout;
00069       QPushButton*   myOKButton;
00070       QPushButton*   myCancelButton;
00071       DtConditionalExpressionViewInterface*  myConditionalExpressionView;
00072 
00073    protected:
00074       DtConditionalLogic*  myLogic;
00075       bool                 myOKEnabled;
00076    };
00077 }

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)