![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: systemPropertyEditDialog.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef systemPropertyEditDialog_h 00015 #define systemPropertyEditDialog_h 00016 00017 #include <QtGui/QDialog> 00018 #include "ui_systemPropertyEditDialogUi.h" 00019 #include "vrfutil/rdrWritr.h" 00020 #include <vlutil/vlSmartPointers.h> 00021 00022 class DtComponentSystemDefinition; 00023 class DtComponentSystemDescriptor; 00024 class QPushButton; 00025 class DtUiElement; 00026 class DtUiElementEvent; 00027 00032 00033 #include "entityEditorImpl/entityEditorImplDefines.h" 00034 00035 class DT_DLL_entityeditorimpl DtSystemPropertyEditDialog : public QDialog 00036 { 00037 Q_OBJECT 00038 public: 00039 DtSystemPropertyEditDialog(QWidget* parent, Qt::WindowFlags f = 0); 00040 00041 virtual ~DtSystemPropertyEditDialog(); 00042 00043 virtual void setSystem(DtComponentSystemDescriptor* descriptor, 00044 const DtComponentSystemDefinition* definition); 00045 00046 virtual void createParameterFrame(); 00047 00048 virtual void processUiEvent(const DtUiElementEvent&); 00049 00051 virtual bool isModified() const; 00052 00055 static void registerUiTypes(); 00056 00057 virtual void accept(); 00058 virtual void reject(); 00059 00060 public: 00061 virtual int exec(); 00062 virtual void execModeless(DtUiElement*); 00063 00064 protected slots: 00065 virtual void uiEventSignaled(const DtUiElementEvent&); 00066 00067 signals: 00068 void uiEvent(const DtUiElementEvent&); 00069 void accepted(); 00070 void rejected(); 00071 00072 protected: 00073 Ui::DtSystemPropertyEditDialogUi myUiImpl; 00074 00075 DtComponentSystemDescriptor* mySystemDescriptor; 00076 const DtComponentSystemDefinition* mySystemDefinition; 00077 std::list<DtUiElement*> mySubElements; 00078 00079 static DtReaderWriterFactory theUiElementFactory; 00080 DtUiElement* myElement; 00081 bool myModeless; 00082 }; 00083 00084 typedef DtBoost::shared_ptr<DtSystemPropertyEditDialog> DtSystemPropertyEditDialogShdPtr; 00085 Q_DECLARE_METATYPE(DtSystemPropertyEditDialogShdPtr); 00086 00087 #endif