VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtScenarioDescriptionDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2012 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #pragma once
00010 
00011 #include <vrvUtil/signalslib.h>
00012 #include <vrvUtil/DtVirtualBaseClass.h>
00013 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00014 
00015 #include <vlutil/vlString.h>
00016 #include <vrfutil/scenario.h>
00017 
00018 #include <QtGui/QDialog>
00019 
00020 class QWebView;
00021 class QTextEdit;
00022 class QCheckBox;
00023 class QPushButton;
00024 class QLayout;
00025 class DtSimMessage;
00026 class DtIfScenarioDescriptionMessage;
00027 
00028 namespace makVrv
00029 {
00030    class DtDe;
00031 }
00032 
00033 namespace makVrf
00034 {
00035    class DtScenarioPreviewWidget;
00038    class DT_DLL_VRFGUICOREQT DtScenarioDescriptionDialog : public QDialog
00039    {
00040       Q_OBJECT
00041 
00042    public:
00043       //CTOR.  If doNotDisplayIfNoDescription is true will not display dialog unless a non-empty description is returned.  If an empty description is
00045       DtScenarioDescriptionDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
00046 
00047       //DTOR
00048       virtual ~DtScenarioDescriptionDialog();
00049 
00051       virtual void setDisplayOnly(bool);
00052 
00054       virtual void setShowNeverShowAgain(bool);
00055 
00057       boost::signal<void ()> signal_closed;
00058 
00059       virtual void closeEvent(QCloseEvent*);
00060 
00061       virtual void setupGui();
00062 
00064       virtual bool neverShowAgain() const;
00065 
00067       virtual void setScenarioInformation(const DtIfScenarioDescriptionMessage*);
00068 
00069       virtual void setHideCancel(bool);
00070 
00071    protected:
00073       virtual void scenarioDescriptionCallback(DtSimMessage*);
00074 
00076       virtual void accept();
00077 
00078    public:
00079       QCheckBox* myNeverShowAgain;
00080       QPushButton* myOK;
00081       QPushButton* myCancel;
00082       DtScenarioPreviewWidget* myScenarioInformation;
00083 
00084    protected:
00085       DtScenario myScenario;
00086       makVrv::DtDe&  myDe;
00087       bool myIsEditable;
00088       bool myDoNotDisplayIfNoDescription;
00089    };
00090 
00091    class DT_DLL_VRFGUICOREQT DtScenarioDescriptionDialogCreator : public makVrv::DtVirtualBaseClass
00092    {
00093    public:
00094       static DtScenarioDescriptionDialogCreator& instance(makVrv::DtDe&);
00095       static void registerInstance(makVrv::DtDe&, DtScenarioDescriptionDialogCreator*);
00096 
00097       DtScenarioDescriptionDialog* create(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& flags = Qt::Tool, bool doNotDisplayIfNoDescription = false);
00098    };
00099 }

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)