1 // 2 // Copyright (c) 1996 by Massimiliano Ghilardi ( ghilardi@cibs.sns.it ) 3 // 2007 by Samuel Thibault ( samuel.thibault@ens-lyon.org ) 4 // 5 // This file may be distributed under terms of the GPL 6 // 7 8 #ifndef _PAGEMETER_H_ 9 #define _PAGEMETER_H_ 10 11 #include "fieldmetergraph.h" 12 13 class PageMeter : public FieldMeterGraph { 14 public: 15 PageMeter( XOSView *parent, float max ); 16 ~PageMeter( void ); 17 18 const char *name( void ) const { return "PageMeter"; } 19 void checkevent( void ); 20 21 void checkResources( void ); 22 protected: 23 float pageinfo_[2][2]; 24 int pageindex_; 25 float maxspeed_; 26 27 void getpageinfo( void ); 28 void updateinfo(void); 29 private: 30 }; 31 32 #endif