VR-Forces 4.6.1 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 
92  QDoubleSpinBox* mySmoothingPeriodSpinBox;
93 
94  QVBoxLayout* myMainLayout;
95 
96  };
97 
98 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)