VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtTrackHistorySettingsWidget.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 <vrvCoreQt/vrvCoreQt.h>
00013 #include <vrvCoreQt/DtTrackHistorySettingsInterface.h>
00014 #include <QtGui/QWidget>
00015 
00016 class QLabel;
00017 class QSlider;
00018 class QSpinBox;
00019 class QCheckBox;
00020 class QDoubleSpinBox;
00021 
00022 namespace makVrv
00023 {
00024 
00025    class DtDe;
00026 
00029    class DT_DLL_VRVCOREQT DtTrackHistorySettingsWidget
00030       : public QWidget, public DtTrackHistorySettingsInterface
00031    {  Q_OBJECT;
00032    public:
00033 
00035       DtTrackHistorySettingsWidget( DtDe& de, QWidget* parent,
00036          Qt::WindowFlags f = Qt::Widget );
00037 
00039       virtual ~DtTrackHistorySettingsWidget();
00040 
00043 
00045       virtual int trackHistoryRibbonLength() const;
00046 
00048       virtual void setTrackHistoryRibbonLength( int maxSamples );
00049 
00051       virtual float trackHistoryRibbonSpacing() const;
00052 
00054       virtual void setTrackHistoryRibbonSpacing( float spacing );
00055 
00057       virtual bool trackHistoryRibbonInfinite() const;
00058 
00060       virtual void setTrackHistoryRibbonInfinite( bool isInfinite );
00061 
00063 
00066       virtual void setLengthSliderDisabled( bool disabled );
00067 
00068    protected slots:
00069 
00072 
00074       void slot_onTrackHistoryRibbonLengthChanged( int maxSamples );
00075 
00077       void slot_onTrackHistoryRibbonSpacingChanged( double spacing );
00078 
00080       void slot_onTrackHistoryRibbonInfiniteChanged( int checkedState );
00081 
00083 
00084    protected:
00085 
00088       void setupGui();
00089 
00092       void connectToSignals();
00093 
00094    protected:
00095 
00096       QLabel* myLengthLabel;
00097       QSlider* myLengthSlider;
00098       QSpinBox* myLengthSpinner;
00099       QCheckBox* myInfiniteCheckBox;
00100       QDoubleSpinBox* mySpacingSpinBox;
00101 
00102       DtDe& myDe;
00103 
00104    };
00105 
00106 }

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)