![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: checkSmsOutputDialog.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef checkSmsOutputDialog_h 00015 #define checkSmsOutputDialog_h 00016 00017 #include "entityEditorImpl/entityEditorImplDefines.h" 00018 #include "ui_checkSmsOutputDialogUi.h" 00019 #include <map> 00020 #include <vlutil/vlString.h> 00021 #include <vrfExtProtocol/objType.h> 00022 #include <QtCore/QString> 00023 00024 class DtMtlParameterDbEntry; 00025 class DtObjectType; 00026 00030 class DT_DLL_entityeditorimpl DtCheckSmsOutputDialog : public QDialog 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 struct ParameterEntryInfo 00036 { 00037 ParameterEntryInfo() {hasOpeFile = false; referencedFromMst = false;} ; 00038 00039 bool hasOpeFile; 00040 bool referencedFromMst; 00041 }; 00042 00043 typedef std::map<QString, bool> DtOpeFileMap; 00044 typedef std::map<DtMtlParameterDbEntry*, ParameterEntryInfo> DtParameterEntryMap; 00045 00047 DtCheckSmsOutputDialog(QWidget* parent = 0, const Qt::WindowFlags& flags = 0); 00048 00050 virtual ~DtCheckSmsOutputDialog(); 00051 00052 protected: 00053 00054 protected slots: 00055 virtual void displayBrokenItemsOnlyToggle(bool value); 00056 00057 private: 00059 DtCheckSmsOutputDialog(const DtCheckSmsOutputDialog& orig); 00060 00062 DtCheckSmsOutputDialog& operator=(const DtCheckSmsOutputDialog& orig); 00063 00064 public: 00065 virtual void checkSms(); 00066 00067 protected: 00068 Ui::CheckSmsOutputDialog myUiImpl; 00069 }; 00070 00071 class DtMtlParameterDbEntry; 00072 00073 struct DtSmsSummaryEntry 00074 { 00075 DtSmsSummaryEntry() { mstName = DtString::nullString(); opdObjectType = DtObjectType::nullType(); opeFile = "";}; 00076 00077 DtString mstName; 00078 DtObjectType opdObjectType; 00079 QString opeFile; 00080 }; 00081 00082 class DtSmsSummary 00083 { 00084 public: 00085 DtSmsSummary(); 00086 virtual ~DtSmsSummary(); 00087 00088 virtual void addMstEntry(const DtString& entityName, const DtObjectType& opdObjectType); 00089 virtual void addOpeEntry(const DtObjectType& opdObjectType, const QString& opeFile); 00090 virtual void addOpeFile(const QString& opeFile); 00091 00092 virtual std::list<DtSmsSummaryEntry>& entryList(); 00093 00094 protected: 00095 std::list<DtSmsSummaryEntry> myEntryList; 00096 }; 00097 00098 #endif