VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTrackHistorySettingsWidget.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 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtWidgets/QWidget>
15 
16 class QLabel;
17 class QSlider;
18 class QSpinBox;
19 class QCheckBox;
20 class QDoubleSpinBox;
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26 
30  : public QWidget, public DtTrackHistorySettingsInterface
31  { Q_OBJECT;
32  public:
33 
35  DtTrackHistorySettingsWidget( DtDe& de, QWidget* parent,
36  Qt::WindowFlags f = Qt::Widget );
37 
40 
43 
45  virtual int trackHistoryRibbonLength() const;
46 
48  virtual void setTrackHistoryRibbonLength( int maxSamples );
49 
51  virtual float trackHistoryRibbonSpacing() const;
52 
54  virtual void setTrackHistoryRibbonSpacing( float spacing );
55 
57  virtual bool trackHistoryRibbonInfinite() const;
58 
60  virtual void setTrackHistoryRibbonInfinite( bool isInfinite );
61 
63 
66  virtual void setLengthSliderDisabled( bool disabled );
67 
68  protected slots:
69 
72 
74  void slot_onTrackHistoryRibbonLengthChanged( int maxSamples );
75 
77  void slot_onTrackHistoryRibbonSpacingChanged( double spacing );
78 
80  void slot_onTrackHistoryRibbonInfiniteChanged( int checkedState );
81 
83 
84  protected:
85 
88  void setupGui();
89 
92  void connectToSignals();
93 
94  protected:
95 
97  QSlider* myLengthSlider;
100  QDoubleSpinBox* mySpacingSpinBox;
101 
103 
104  };
105 
106 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)