RightTools.h 811 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <AuswahlBox.h>
  3. #include "../../Netzwerk/EditorKlient.h"
  4. using namespace Framework;
  5. class RightTool : public Zeichnung
  6. {
  7. private:
  8. int ref;
  9. public:
  10. RightTool();
  11. virtual ~RightTool();
  12. RightTool *getThis();
  13. RightTool *release();
  14. };
  15. class RightTools : public ZeichnungHintergrund
  16. {
  17. private:
  18. AuswahlBox * toolAuswahl;
  19. RCArray< RightTool > *tools;
  20. Punkt maxSize;
  21. int ref;
  22. public:
  23. RightTools( Schrift *zSchrift, Punkt maxSize );
  24. ~RightTools();
  25. void addTool( RightTool *tool, char *name );
  26. void doMausEreignis( MausEreignis &me ) override;
  27. void doTastaturEreignis( TastaturEreignis &te ) override;
  28. bool tick( double tickVal ) override;
  29. void render( Bild &rObj ) override;
  30. RightTools *getThis();
  31. RightTools *release();
  32. };