![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: DtPerformanceOptionsWidget.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include <vrvUtil/signalslib.h> 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrfGuiCoreQt/DtPerformanceOptionsWidgetInterface.h> 00018 00019 #include <QtGui/QWidget> 00020 00024 00025 namespace makVrv 00026 { 00027 class DtDe; 00028 } 00029 00030 class QHBoxLayout; 00031 class QLabel; 00032 class QSlider; 00033 class QVBoxLayout; 00034 class QCheckBox; 00035 class QSlider; 00036 class QRadioButton; 00037 class QDoubleSpinBox; 00038 class QGroupBox; 00039 00040 namespace makVrf 00041 { 00042 class DT_DLL_VRFGUICOREQT DtPerformanceOptionsWidget : public QWidget, 00043 public DtPerformanceOptionsWidgetInterface 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 00050 DtPerformanceOptionsWidget(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0); 00051 00053 virtual ~DtPerformanceOptionsWidget(); 00054 00055 protected: 00056 void setupGui(); 00057 00059 virtual void setSliderPosition(double); 00060 00062 virtual void setTranslationValue(const QString&); 00063 00065 virtual void setRotationValue(const QString&); 00066 00068 virtual void setSmoothingValue(const QString&); 00069 00071 virtual void setUserDefinedSmoothing(bool b); 00072 00074 virtual void setUserDefinedSmoothingPeriod(double); 00075 00077 virtual void setUserDefinedSmoothingEnabled(bool); 00078 00079 protected slots: 00081 virtual void onUpdateSlider(); 00082 00084 virtual void onSmoothingChoiceChanged(); 00085 00087 virtual void onUpdateSmoothingSpecifiedByUserEnabled(); 00088 virtual void onUpdateSmoothingSpecifiedByUserSpinBox(); 00089 virtual void onUpdateSmoothingSpecifiedByUserSlider(); 00090 00091 public: 00092 QVBoxLayout* myMainLayout; 00093 QHBoxLayout* myPerformanceLayout; 00094 QLabel* myMinLabel; 00095 QLabel* myMaxLabel; 00096 QSlider* myPerformanceSlider; 00097 QLabel* myTranslationValue; 00098 QLabel* myRotationValue; 00099 QRadioButton* mySmoothingValue; 00100 QRadioButton* mySpecifySmoothingValue; 00101 QGroupBox* mySmoothingGroup; 00102 QCheckBox* mySmoothingCheckbox; 00103 QSlider* mySmoothingPeriodSlider; 00104 QDoubleSpinBox* mySmoothingPeriodSpinBox; 00105 00106 protected: 00107 makVrv::DtDe& myDe; 00108 00109 private: 00111 DtPerformanceOptionsWidget(const DtPerformanceOptionsWidget& orig); 00112 00114 DtPerformanceOptionsWidget& operator=(const DtPerformanceOptionsWidget& rhs); 00115 }; 00116 }