#ifndef axes_h__2004_06_07_10_38_begin_guarded_code #define axes_h__2004_06_07_10_38_begin_guarded_code #include "qwt3d_plot.h" using namespace Qwt3D; /***************************** * * Examples for user defined * tic labels * ******************************/ class Letter : public LinearScale { public: explicit Letter(bool uppercase = true) : uc_(uppercase) {} Scale* clone() const {return new Letter(*this);} QString ticLabel(unsigned int idx) const { if (idx 59) { if (h==23) h=0; else h+=1; m = (m+idx) % 60; } else m += idx; return QTime(h,m).toString("hh:mm")+"h"; } return QString(""); } }; #endif /* include guarded */