VR-Forces 4.0.4 Class Documentation
include/vrvGlStudioQt/DtCockpitSettingsWidget.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvGlStudioQt/DtGlStudioQt.h>
00013 #include <vrvGlStudioQt/DtCockpitSettingsInterface.h>
00014 #include <QtGui/QWidget>
00015 
00016 class QCheckBox;
00017 class QPushButton;
00018 class QVBoxLayout;
00019 class QSlider;
00020 class QLabel;
00021 class QDoubleSpinBox;
00022 
00023 namespace makVrv
00024 {
00025 
00030    class DT_DLL_VRVGLSTUDIO_QT DtCockpitSettingsWidget
00031       : public QWidget, public DtCockpitSettingsInterface
00032    {
00033 
00034       Q_OBJECT
00035 
00036    public:
00037 
00039       DtCockpitSettingsWidget( QWidget* parent, Qt::WindowFlags f = Qt::Widget );
00040 
00042       virtual ~DtCockpitSettingsWidget();
00043 
00047 
00049       virtual void setCockpitsEnabled( bool enabled );
00050 
00052       virtual void setSmoothingEnabled( bool enabled );
00053 
00055       virtual void setSmoothingPeriod( float period );
00056 
00058 
00059    protected:
00060 
00063       void setupGui();
00064 
00067       void connectToSignals();
00068 
00071       virtual void updateEnabledStates();
00072 
00073    protected slots:
00074 
00078 
00079       void on_enableCockpitsCheckChanged( int state );
00080       void on_smoothingCheckChanged( int state );
00081       void on_smoothingPeriodSliderChanged( int scale );
00082       void on_smoothingPeriodSpinboxChanged( double scale );
00083 
00085 
00086    protected:
00087 
00088       QCheckBox* myCockpitsEnabledCheckbox;
00089       QCheckBox* mySmoothingCheckbox;
00090       QLabel* mySmoothingPeriodLabel;
00091       QSlider* mySmoothingPeriodSlider;
00092       QDoubleSpinBox* mySmoothingPeriodSpinBox;
00093 
00094       QVBoxLayout* myMainLayout;
00095 
00096    };
00097 
00098 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)