AccountStatistik.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef AccountStatistik_H
  2. #define AccountStatistik_H
  3. #include <Thread.h>
  4. #include <Tabelle.h>
  5. #include <Fenster.h>
  6. #include <AuswahlBox.h>
  7. #include <Animation.h>
  8. using namespace Framework;
  9. class AccountStatistik : public Thread
  10. {
  11. private:
  12. Schrift *schrift;
  13. Fenster *statistikF;
  14. AuswahlBox *sortSpalte;
  15. AuswahlBox *sortRichtung;
  16. Knopf *zurück;
  17. Knopf *vor;
  18. TextFeld *seiteTF;
  19. ObjTabelle *tabelle;
  20. Animation2D *laden;
  21. int seite;
  22. int maxSeite;
  23. int status;
  24. int accId;
  25. int animation;
  26. unsigned char alpha;
  27. double tickVal;
  28. bool rend;
  29. int ref;
  30. public:
  31. // Konstruktor
  32. AccountStatistik( Schrift *zSchrift );
  33. // Destruktor
  34. ~AccountStatistik();
  35. // nicht constant
  36. void reset( bool überschrift = 0 );
  37. void ladeStatistik( int accId );
  38. virtual void thread();
  39. void setSichtbar( bool sichtbar, bool nachRechts );
  40. bool vorME( MausEreignis &me );
  41. bool zurückME( MausEreignis &me );
  42. bool tick( double zeit );
  43. void doMausEreignis( MausEreignis &me );
  44. void render( Bild &zRObj );
  45. // constant
  46. int getStatus() const;
  47. // Reference Counting
  48. AccountStatistik *getThis();
  49. AccountStatistik *release();
  50. };
  51. // Ereignisse
  52. bool accountStatistikVorME( void *p, void *o, MausEreignis me );
  53. bool accountStatistikZurückME( void *p, void *o, MausEreignis me );
  54. #endif