VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCockpitSettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <QtWidgets/QWidget>
15 
16 class QCheckBox;
17 class QPushButton;
18 class QVBoxLayout;
19 class QSlider;
20 class QLabel;
21 class QDoubleSpinBox;
22 
23 namespace makVrv
24 {
25 
31  : public QWidget, public DtCockpitSettingsInterface
32  {
33 
34  Q_OBJECT
35 
36  public:
37 
39  DtCockpitSettingsWidget( QWidget* parent, Qt::WindowFlags f = Qt::Widget );
40 
42  virtual ~DtCockpitSettingsWidget();
43 
47 
49  virtual void setCockpitsEnabled( bool enabled );
50 
52  virtual void setSmoothingEnabled( bool enabled );
53 
55  virtual void setSmoothingPeriod( float period );
56 
58 
59  protected:
60 
63  void setupGui();
64 
67  void connectToSignals();
68 
71  virtual void updateEnabledStates();
72 
73  protected slots:
74 
78 
79  void on_enableCockpitsCheckChanged( int state );
80  void on_smoothingCheckChanged( int state );
81  void on_smoothingPeriodSliderChanged( int scale );
82  void on_smoothingPeriodSpinboxChanged( double scale );
83 
85 
86  protected:
87 
93 
94  QVBoxLayout* myMainLayout;
95 
96  };
97 
98 }
#define DT_DLL_VRVGLSTUDIO_QT
Definition: DtGlStudioQt.h:21
DtCockpitSettingsWidget implements the DtCockpitSettingsInterface for Qt.
Definition: DtCockpitSettingsWidget.h:30
QCheckBox * mySmoothingCheckbox
Definition: DtCockpitSettingsWidget.h:89
QLabel * mySmoothingPeriodLabel
Definition: DtCockpitSettingsWidget.h:90
QVBoxLayout * myMainLayout
Definition: DtCockpitSettingsWidget.h:94
QCheckBox * myCockpitsEnabledCheckbox
Definition: DtCockpitSettingsWidget.h:88
QSlider * mySmoothingPeriodSlider
Definition: DtCockpitSettingsWidget.h:91
Interface for widget to edit cockpit settings.
Definition: DtCockpitSettingsInterface.h:25
QDoubleSpinBox * mySmoothingPeriodSpinBox
Definition: DtCockpitSettingsWidget.h:92

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)