• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

PlotTracker.h

Go to the documentation of this file.
00001 #ifndef PLOT_TRACKER_H
00002 #define PLOT_TRACKER_H
00003 
00004 #include <QDateTime>
00005 
00006 #include <qwt_plot_canvas.h>
00007 #include <qwt_plot_picker.h>
00008 
00009 class PlotTracker : public QwtPlotPicker
00010 {
00011   Q_OBJECT
00012 
00013   //=====================================================================================
00014   // Enums
00015   //=====================================================================================
00016 
00017   //=====================================================================================
00018   // Constructors and destructor
00019   //=====================================================================================
00020   public:
00021     PlotTracker( QwtPlotCanvas* canvas );
00022     virtual ~PlotTracker();
00023 
00024   //=====================================================================================
00025   // Signals
00026   //=====================================================================================
00027 
00028   //=====================================================================================
00029   // Slots
00030   //=====================================================================================
00031 
00032   //=====================================================================================
00033   // Methods
00034   //=====================================================================================
00035   public:
00036     void enableDateTracker( bool flag ) { m_dateTrackerEnabled = flag; };
00037     void setBaseDate( QDate date ) { m_baseDate = date; };
00038     void enableDateTimeTracker( bool flag ) { m_dateTimeTrackerEnabled = flag; };
00039     void setBaseDateTime( QDateTime dateTime ) { m_baseDateTime = dateTime; };
00040 
00041   protected:
00042     virtual QwtText trackerText( const QwtDoublePoint& pos ) const;
00043 
00044   //=====================================================================================
00045   // Members
00046   //=====================================================================================
00047   private:
00048     bool            m_dateTrackerEnabled;
00049     QDate           m_baseDate;
00050     bool            m_dateTimeTrackerEnabled;
00051     QDateTime       m_baseDateTime;
00052 };
00053 
00054 #endif

Generated on Tue Aug 24 2010 15:58:55 for Smartlet by  doxygen 1.7.1