![]() |
MAK RTIspy API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 2006 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: genericConfigWidget.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #ifndef genericConfigWidget_H_ 00010 #define genericConfigWidget_H_ 00011 00012 #include <rtiMsConfig.h> 00013 #include <QtGui/QWidget> 00014 #include "commonWidgets/propertyEditView.h" 00015 00016 class Ui_genericConfigWidgetUi; 00017 using MAKCommonWidgets::DtProperty; 00018 00019 00024 class DT_DLL_ASSISTANTAPP DtGenericConfigWidget : public QWidget 00025 { 00026 Q_OBJECT 00027 00028 public: 00029 00031 DtGenericConfigWidget(bool viewOnly, QWidget* parent = 0); 00032 00034 ~DtGenericConfigWidget(); 00035 00037 void addProperty(const DtProperty& p); 00038 00040 void addToProperty( const DtProperty& p ); 00041 00042 void setProperty(QString prop, int value); 00043 void setProperty(QString prop, QString value); 00044 void setProperty(QString prop, bool value); 00045 void setProperty(QString prop, double value); 00046 void setProperty(QString prop, const QStringList& value); 00047 00048 virtual bool property(QString name,int& value) const; 00049 virtual bool property(QString name,QString& value) const; 00050 virtual bool property(QString name,double& value) const; 00051 virtual bool property(QString name,bool& value) const; 00052 virtual bool property(QString name,QStringList& value) const; 00053 virtual bool property(QString name) const; 00054 00056 MAKCommonWidgets::DtPropertyEditView* propertyEditView(); 00057 const MAKCommonWidgets::DtPropertyEditView* propertyEditView() const; 00058 00059 00060 protected: 00061 MAKCommonWidgets::DtPropertyEditView* myPropertyEditView; 00062 bool myViewOnly; 00063 00065 virtual void init(); 00066 00067 Ui_genericConfigWidgetUi* myImpl; 00068 }; 00069 00070 #endif