VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtReceivedTextMessageConditional.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtReceivedTextMessageConditional.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 QRadioButton;
00023 class QGroupBox;
00024 
00025 namespace makVrf
00026 {
00028    class DT_DLL_VRFGUICOREQT DtReceivedTextMessageConditionalCreator : 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 DtReceivedTextMessageConditionalLogic : public DtConditionExpressionLogic
00037    {
00038    public:
00039       DtReceivedTextMessageConditionalLogic(makVrv::DtDe&, DtConditionalExpressionInterface*);
00040 
00041       virtual QString matchingText() const;
00042       virtual void setMatchingText(QString);
00043 
00044       virtual bool allowContaining() const;
00045       virtual void setAllowContaining(bool);
00046 
00047    protected:
00048       virtual void createConditional(DtConditionalExpressionViewInterface* parentView,
00049          const std::vector<makVrv::DtSimEntry*>& data);
00050       virtual bool isComplete() const;
00051       virtual DtSimCondExpr* conditionalExpression() const;
00052       virtual void setupConditional(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data);
00053    };
00054 
00055    class DT_DLL_VRFGUICOREQT DtReceivedTextMessageConditional : public DtBaseConditionalExpressionDialog
00056    {
00057       Q_OBJECT
00058    public:
00059       //CTOR
00060       DtReceivedTextMessageConditional(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00061 
00062       //DtReceivedTextMessage
00063       virtual ~DtReceivedTextMessageConditional();
00064 
00065       virtual QString matchingText() const;
00066       virtual void setMatchingText(QString);
00067 
00068       virtual bool allowContaining() const;
00069       virtual void setAllowContaining(bool);
00070 
00071    protected:
00072       virtual QWidget* contents();
00073       virtual QString value() const;
00074 
00075       virtual void setValue(const QString&);
00076 
00077       virtual void setupConditional(const DtSimCondExpr*, const std::vector<makVrv::DtSimEntry*>& data);
00078 
00079    public:
00080       QWidget*       myCanvas;
00081       QLabel*        myLabel;
00082       QVBoxLayout*   myLayout;
00083       QLineEdit*     myText;
00084       QGroupBox*     myGroupBox;
00085       QVBoxLayout*   myGroupLayout;
00086       QRadioButton*  myMatches;
00087       QRadioButton*  myContains;
00088    };
00089 }

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)