00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef SENSORSTREAMWIDGET_H_ 00024 #define SENSORSTREAMWIDGET_H_ 00025 00026 #include <sensorstream/SensorStream.h> 00027 00028 #include <QtGui/QGridLayout> 00029 #include <QtGui/QPushButton> 00030 #include <QtGui/QSlider> 00031 #include <QtGui/QFrame> 00032 #include <QtGui/QSpinBox> 00033 00034 class SensorStreamWidget: public QFrame{ 00035 Q_OBJECT 00036 00037 public: 00038 SensorStreamWidget(QWidget * _parent = 0); 00039 virtual ~SensorStreamWidget(); 00040 00041 signals: 00042 void newReading(); 00043 void newReading(int _position); 00044 00045 public slots: 00046 void seekPosition(int _position); 00047 void nextPosition(); 00048 void seekable(bool seek, unsigned int _size = 0); 00049 void streamReady(); 00050 00051 protected: 00052 void buildGui(); 00053 00054 bool m_isSeekable; 00055 unsigned int m_position; 00056 QGridLayout *m_layout; 00057 QPushButton *m_nextButton; 00058 QSlider *m_sensorSlider; 00059 QSpinBox *m_sensorBox; 00060 }; 00061 00062 #endif 00063