![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtNewGlobalPlanInformationDialog.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrfGuiCoreQt/DtNewGlobalPlanInformationDialogInterface.h> 00018 00019 #include <QtGui/QDialog> 00020 00021 namespace makVrv 00022 { 00023 class DtDe; 00024 } 00025 00026 class QComboBox; 00027 class QLabel; 00028 class QLineEdit; 00029 class QVBoxLayout; 00030 class QGridLayout; 00031 class QHBoxLayout; 00032 00033 namespace makVrf 00034 { 00035 class DtNewGlobalPlanInformationDialogLogic; 00036 00037 class DT_DLL_VRFGUICOREQT DtNewGlobalPlanInformationDialog 00038 : public QDialog 00039 , public DtNewGlobalPlanInformationDialogInterface 00040 { 00041 Q_OBJECT 00042 public: 00043 //CTOR 00044 DtNewGlobalPlanInformationDialog(makVrv::DtDe& de, const QString& address, const QString& planName, 00045 QWidget* parent = 0, const Qt::WindowFlags& flags = 0); 00046 00047 //DTOR 00048 virtual ~DtNewGlobalPlanInformationDialog(); 00049 00050 public: 00051 00052 virtual QString planName() const; 00053 virtual QString simulationAddress() const; 00054 00055 virtual int exec(); 00056 00057 protected: 00058 void setupGui(const QString& planName, const QString& address); 00059 00060 virtual void addBackend(const QString&); 00061 virtual void removeBackend(const QString&); 00062 00063 public: 00064 QVBoxLayout* myMainLayout; 00065 QGridLayout* myDataLayout; 00066 QLabel* myPlanLabel; 00067 QLineEdit* myPlanName; 00068 QLabel* mySimulationAddressLabel; 00069 QComboBox* mySimulationAddresses; 00070 QHBoxLayout* myButtonLayout; 00071 QPushButton* myOKButton; 00072 QPushButton* myCancelButton; 00073 00074 protected: 00075 makVrv::DtDe& myDe; 00076 DtNewGlobalPlanInformationDialogLogic* myLogic; 00077 }; 00078 }