AccountSuchen.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef AccountSuchen_H
  2. #define AccountSuchen_H
  3. #include <Knopf.h>
  4. #include <Tabelle.h>
  5. #include <AuswahlBox.h>
  6. #include <Animation.h>
  7. #include <Thread.h>
  8. using namespace Framework;
  9. class AccountSuchen : public Thread
  10. {
  11. private:
  12. Schrift *schrift;
  13. Punkt pos;
  14. Punkt gr;
  15. Animation2D *laden;
  16. TextFeld *accountName;
  17. Knopf *suchen;
  18. AuswahlBox *sortSpalte;
  19. AuswahlBox *sortRichtung;
  20. Knopf *zurück;
  21. TextFeld *seite;
  22. Knopf *vor;
  23. ObjTabelle *liste;
  24. Critical cs;
  25. int auswahl;
  26. double tickVal;
  27. bool sichtbar;
  28. int jetztSeite;
  29. int maxSeite;
  30. unsigned char alpha;
  31. bool rend;
  32. // privat
  33. void lock();
  34. void unlock();
  35. void tabelleLehren( bool überschrift );
  36. public:
  37. // Konstruktor
  38. AccountSuchen( Schrift *schrift );
  39. // Destruktor
  40. ~AccountSuchen();
  41. // nicht constant
  42. void setSichtbar( bool sichtbar );
  43. void thread();
  44. bool detailsKlick( Knopf *zKnopf, MausEreignis &me );
  45. void doPublicMausEreignis( MausEreignis &me );
  46. void doTastaturEreignis( TastaturEreignis &te );
  47. bool tick( double tickVal );
  48. void render( Bild &zRObj );
  49. int getAuswahlAccountId();
  50. // löscht das objekt wenn es nicht mehr gebraucht wird und beendet den Thread
  51. Thread *release() override;
  52. };
  53. // Nachrichten
  54. bool accountSuchenDetailsKlick( void *p, void *obj, MausEreignis me );
  55. #endif