Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_date_scale_draw.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_date_scale_draw.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_date_scale_draw.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 8 8 *****************************************************************************/ 9 9 10 #ifndef _QWT_DATE_SCALE_DRAW_H_11 #define _QWT_DATE_SCALE_DRAW_H_ 110 #ifndef QWT_DATE_SCALE_DRAW_H 11 #define QWT_DATE_SCALE_DRAW_H 12 12 13 13 #include "qwt_global.h" … … 16 16 17 17 /*! 18 \brief A class for drawing datetime scales 18 \brief A class for drawing datetime scales 19 19 20 QwtDateScaleDraw displays values as datetime labels. 21 The format of the labels depends on the alignment of 22 the major tick labels. 20 QwtDateScaleDraw displays values as datetime labels. 21 The format of the labels depends on the alignment of 22 the major tick labels. 23 23 24 The default format strings are: 24 The default format strings are: 25 25 26 - Millisecond\n 26 - Millisecond\n 27 27 "hh:mm:ss:zzz\nddd dd MMM yyyy" 28 - Second\n 28 - Second\n 29 29 "hh:mm:ss\nddd dd MMM yyyy" 30 - Minute\n 30 - Minute\n 31 31 "hh:mm\nddd dd MMM yyyy" 32 - Hour\n 32 - Hour\n 33 33 "hh:mm\nddd dd MMM yyyy" 34 - Day\n 34 - Day\n 35 35 "ddd dd MMM yyyy" 36 - Week\n 36 - Week\n 37 37 "Www yyyy" 38 - Month\n 38 - Month\n 39 39 "MMM yyyy" 40 - Year\n 40 - Year\n 41 41 "yyyy" 42 42 43 The format strings can be modified using setDateFormat() 44 or individually for each tick label by overloading dateFormatOfDate(), 43 The format strings can be modified using setDateFormat() 44 or individually for each tick label by overloading dateFormatOfDate(), 45 45 46 Usually QwtDateScaleDraw is used in combination with 47 QwtDateScaleEngine, that calculates scales for datetime 48 intervals. 46 Usually QwtDateScaleDraw is used in combination with 47 QwtDateScaleEngine, that calculates scales for datetime 48 intervals. 49 49 50 \sa QwtDateScaleEngine, QwtPlot::setAxisScaleDraw() 51 */ 52 class QWT_EXPORT QwtDateScaleDraw: public QwtScaleDraw 50 \sa QwtDateScaleEngine, QwtPlot::setAxisScaleDraw() 51 */ 52 class QWT_EXPORT QwtDateScaleDraw : public QwtScaleDraw 53 53 { 54 public: 55 QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime ); 54 public: 55 explicit QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime ); 56 56 virtual ~QwtDateScaleDraw(); 57 57 58 void setDateFormat( QwtDate::IntervalType, const QString & );58 void setDateFormat( QwtDate::IntervalType, const QString& ); 59 59 QString dateFormat( QwtDate::IntervalType ) const; 60 60 … … 68 68 QwtDate::Week0Type week0Type() const; 69 69 70 virtual QwtText label( double ) const; 70 virtual QwtText label( double ) const QWT_OVERRIDE; 71 71 72 72 QDateTime toDateTime( double ) const; 73 73 74 protected: 74 protected: 75 75 virtual QwtDate::IntervalType 76 intervalType( const QwtScaleDiv& ) const;76 intervalType( const QwtScaleDiv& ) const; 77 77 78 virtual QString dateFormatOfDate( const QDateTime &,78 virtual QString dateFormatOfDate( const QDateTime&, 79 79 QwtDate::IntervalType ) const; 80 80 81 private: 81 private: 82 82 class PrivateData; 83 PrivateData *d_data;83 PrivateData* m_data; 84 84 }; 85 85
Note:
See TracChangeset
for help on using the changeset viewer.
