![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2010 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 ********************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: .h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef HlaBounceOptionsDialog_H_ 00010 #define HlaBounceOptionsDialog_H_ 00011 00012 #include <qdialog.h> 00013 00014 class QLabel; 00015 class QDialogButtonBox; 00016 class QGridLayout; 00017 class QLineEdit; 00018 class QCheckBox; 00019 00020 // Dialog to set federate options 00021 class HlaBounceOptionsDialog : public QDialog 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 00027 HlaBounceOptionsDialog(QWidget* parent = 0, Qt::WindowFlags f=0); 00028 virtual ~HlaBounceOptionsDialog(); 00029 00030 // Retrieve values 00031 const QString& federationName() const { return myFederationName; } 00032 const QString& federateType() const { return myFederateType; } 00033 const QString& federateName() const { return myFederateName; } 00034 bool includeInteractionExtension() const { return myIncludeInteractionExt; } 00035 00036 // Allow GUI to enable or disable certain options 00037 void disableFederationName(const QString& reason); 00038 void disableFederateType(const QString& reason); 00039 void disableFederateName(const QString& reason); 00040 void disableIncludeInteractionExtension(const QString& reason); 00041 void enableFederateName(); 00042 void enableIncludeInteractionExtension(); 00043 00044 public slots: 00045 00046 void acceptChosen(); 00047 void rejectChosen(); 00048 00049 protected: 00050 00051 QString myFederationName; 00052 QString myFederateType; 00053 QString myFederateName; 00054 bool myIncludeInteractionExt; 00055 00056 QLabel* myFederationNameLabel; 00057 QLabel* myFederateTypeLabel; 00058 QLabel* myFederateNameLabel; 00059 QLineEdit* myFederationNameLineEdit; 00060 QLineEdit* myFederateTypeLineEdit; 00061 QLineEdit* myFederateNameLineEdit; 00062 QCheckBox* myIncludeInteractionCheckBox; 00063 00064 QDialogButtonBox* myButtonBox; 00065 00066 QGridLayout* myLayout; 00067 }; 00068 00069 #endif