Przeglądaj źródła

rename Zeichnung into Drawable

Kolja Strohm 1 tydzień temu
rodzic
commit
6119b0a147
50 zmienionych plików z 767 dodań i 767 usunięć
  1. 3 3
      AlphaField.cpp
  2. 2 2
      AlphaField.h
  3. 12 12
      Animation.cpp
  4. 2 2
      Animation.h
  5. 5 5
      Border.cpp
  6. 3 3
      Border.h
  7. 6 6
      Button.cpp
  8. 4 4
      Button.h
  9. 6 6
      Camera2D.cpp
  10. 1 1
      Camera2D.h
  11. 38 38
      Diagram.cpp
  12. 4 4
      Diagram.h
  13. 131 131
      Drawing.cpp
  14. 21 21
      Drawing.h
  15. 31 31
      Drawing3D.cpp
  16. 3 3
      Drawing3D.h
  17. 9 9
      Image.cpp
  18. 3 3
      Image.h
  19. 3 3
      JsonEditor.cpp
  20. 1 1
      JsonEditor.h
  21. 69 69
      List.cpp
  22. 10 10
      List.h
  23. 4 4
      M2DPreview.cpp
  24. 3 3
      M2DPreview.h
  25. 3 3
      Model2D.cpp
  26. 2 2
      Model2D.h
  27. 3 3
      Model3D.cpp
  28. 1 1
      Model3D.h
  29. 6 6
      Progress.cpp
  30. 2 2
      Progress.h
  31. 15 15
      Screen.cpp
  32. 12 12
      Screen.h
  33. 9 9
      SelectionBox.cpp
  34. 3 3
      SelectionBox.h
  35. 3 3
      Slider.cpp
  36. 1 1
      Slider.h
  37. 81 81
      Table.cpp
  38. 16 16
      Table.h
  39. 31 31
      TextField.cpp
  40. 3 3
      TextField.h
  41. 16 16
      ToolTip.cpp
  42. 7 7
      ToolTip.h
  43. 4 4
      UIDialog.cpp
  44. 2 2
      UIDialog.h
  45. 86 86
      UIMLView.cpp
  46. 52 52
      UIMLView.h
  47. 20 20
      Window.cpp
  48. 8 8
      Window.h
  49. 4 4
      World3D.cpp
  50. 3 3
      World3D.h

+ 3 - 3
AlphaField.cpp

@@ -11,7 +11,7 @@ using namespace Framework;
 // Content of the AlphaFeld class from AlphaField.h
 // Constructor
 AlphaFeld::AlphaFeld()
-    : Zeichnung(),
+    : Drawable(),
       strength(5),
       farbe(0x9B000000)
 {}
@@ -33,7 +33,7 @@ void AlphaFeld::setFarbe(int f) // sets the color
 
 void AlphaFeld::render(Bild& zRObj) // draws to zRObj
 {
-    Zeichnung::render(zRObj);
+    Drawable::render(zRObj);
     int br = gr.x - 1;
     int hi = gr.y - 1;
     int xp = pos.x, yp = pos.y;
@@ -90,7 +90,7 @@ int AlphaFeld::getFarbe() const // returns the color
     return farbe;
 }
 
-Zeichnung* AlphaFeld::dublizieren() const // copies the drawing object
+Drawable* AlphaFeld::dublizieren() const // copies the drawing object
 {
     AlphaFeld* obj = new AlphaFeld();
     obj->setPosition(pos);

+ 2 - 2
AlphaField.h

@@ -10,7 +10,7 @@ namespace Framework
 
     //! A 2D GUI Framework drawing that represents a color gradient
     //! towards a rectangle
-    class AlphaFeld : public Zeichnung
+    class AlphaFeld : public Drawable
     {
     private:
         int strength;
@@ -37,7 +37,7 @@ namespace Framework
         DLLEXPORT int getFarbe() const;
         //! Copies the alpha field so that it can be used
         //! without affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework
 

+ 12 - 12
Animation.cpp

@@ -191,7 +191,7 @@ bool Animation2DData::istTransparent() const
 // Contents of the Animation2D class from Animation.h
 // Constructor
 Animation2D::Animation2D()
-    : Zeichnung(),
+    : Drawable(),
       data(0),
       jetzt(0),
       ausgleich(0),
@@ -236,11 +236,11 @@ void Animation2D::setRahmenFarbe(int f)
 
 void Animation2D::setAnimationDataZ(Animation2DData* data)
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->data) this->data->release();
     this->data = data;
     if (alpha) rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void Animation2D::setAlphaMaske(unsigned char alpha)
@@ -260,12 +260,12 @@ void Animation2D::setSichtbar(bool sichtbar)
 
 bool Animation2D::tick(double zeit)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!data || (!alpha && !sichtbar))
     {
         bool ret = rend;
         rend = 0;
-        unlockZeichnung();
+        unlockDrawable();
         return ret;
     }
     if (sichtbar && alpha < maxAlpha)
@@ -301,19 +301,19 @@ bool Animation2D::tick(double zeit)
     }
     data->unlock();
     if (tmp != jetzt) rend = 1;
-    unlockZeichnung();
-    return Zeichnung::tick(zeit);
+    unlockDrawable();
+    return Drawable::tick(zeit);
 }
 
 void Animation2D::render(Bild& zRObj)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!data)
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
-    Zeichnung::render(zRObj);
+    Drawable::render(zRObj);
     data->lock();
     if (data->zBild(jetzt))
     {
@@ -331,7 +331,7 @@ void Animation2D::render(Bild& zRObj)
         zRObj.releaseAlpha();
     }
     data->unlock();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // constant
@@ -385,7 +385,7 @@ int Animation2D::getRahmenFarbe() const
     return ram ? ram->getFarbe() : 0;
 }
 
-Zeichnung* Animation2D::dublizieren() const
+Drawable* Animation2D::dublizieren() const
 {
     Animation2D* ret = new Animation2D();
     ret->setPosition(pos);

+ 2 - 2
Animation.h

@@ -78,7 +78,7 @@ namespace Framework
     };
 
     //! A drawing that renders a video animation
-    class Animation2D : public Zeichnung
+    class Animation2D : public Drawable
     {
     private:
         Animation2DData* data;
@@ -151,7 +151,7 @@ namespace Framework
         DLLEXPORT int getRahmenFarbe() const;
         //! Copies the animation so that it can be modified without
         //! affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework
 

+ 5 - 5
Border.cpp

@@ -11,7 +11,7 @@ using namespace Framework;
 // Contents of the Rahmen class from Border.h
 // Constructor
 Rahmen::Rahmen()
-    : Zeichnung(),
+    : Drawable(),
       br(1),
       farbe(0xFF000000),
       alpha(0),
@@ -103,7 +103,7 @@ LRahmen::~LRahmen() {}
 
 void LRahmen::render(Bild& Obj) // Draws the border into the render object
 {
-    Zeichnung::render(Obj);
+    Drawable::render(Obj);
     int x = 0;
     int y = 0;
     int b = gr.x - 1;
@@ -212,7 +212,7 @@ void LRahmen::render(Bild& Obj) // Draws the border into the render object
     Obj.releaseDrawOptions();
 }
 
-Zeichnung* LRahmen::dublizieren() const // Copies the drawing
+Drawable* LRahmen::dublizieren() const // Copies the drawing
 {
     Rahmen* obj = new LRahmen();
     obj->setPosition(pos);
@@ -244,7 +244,7 @@ Rahmen3D::~Rahmen3D() {}
 
 void Rahmen3D::render(Bild& Obj) // Draws the border into the render object
 {
-    Zeichnung::render(Obj);
+    Drawable::render(Obj);
     int x = 0;
     int y = 0;
     int b = gr.x - 1;
@@ -354,7 +354,7 @@ void Rahmen3D::render(Bild& Obj) // Draws the border into the render object
     Obj.releaseDrawOptions();
 }
 
-Zeichnung* Rahmen3D::dublizieren() const // Copies the drawing
+Drawable* Rahmen3D::dublizieren() const // Copies the drawing
 {
     Rahmen* obj = new Rahmen3D();
     obj->setPosition(pos);

+ 3 - 3
Border.h

@@ -7,7 +7,7 @@ namespace Framework
 {
     class Bild; //! Image.h
 
-    class Rahmen : public Zeichnung
+    class Rahmen : public Drawable
     {
     protected:
         int br;
@@ -71,7 +71,7 @@ namespace Framework
         DLLEXPORT void render(Bild& zRObj) override;
         //! Copies the border so that it can be modified without affecting
         //! the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 
     class Rahmen3D : public Rahmen
@@ -86,7 +86,7 @@ namespace Framework
         DLLEXPORT void render(Bild& zRObj) override;
         //! Copies the border so that it can be modified without affecting
         //! the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework
 

+ 6 - 6
Button.cpp

@@ -212,7 +212,7 @@ int Knopf::getKBStrength() const // returns the click buffer strength
     return klickBuffer->getStrength();
 }
 
-Zeichnung*
+Drawable*
 Knopf::dublizieren() const // creates a copy of the drawing and returns it
 {
     Knopf* obj = new Knopf();
@@ -260,7 +260,7 @@ Knopf::dublizieren() const // creates a copy of the drawing and returns it
 // Contents of the KontrollKnopf class from Button.h
 // Constructor
 KontrollKnopf::KontrollKnopf()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       txt(0),
       sTxt(0),
       sBgF(0),
@@ -507,11 +507,11 @@ void KontrollKnopf::render(Bild& zRObj) // renders into zRObj
 {
     if (!hatStyle(Style::Sichtbar)) return;
     removeStyle(Style::VScroll | Style::HScroll);
-    ZeichnungHintergrund::render(zRObj);
-    lockZeichnung();
+    DrawableBackground::render(zRObj);
+    lockDrawable();
     if (!zRObj.setDrawOptions(innenPosition, innenSize))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     if (hatStyle(Style::MausKlick))
@@ -681,7 +681,7 @@ void KontrollKnopf::render(Bild& zRObj) // renders into zRObj
         }
     }
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // constant

+ 4 - 4
Button.h

@@ -19,7 +19,7 @@ namespace Framework
     class Knopf : public TextFeld
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! Specifies whether the button text may have multiple colors
@@ -105,15 +105,15 @@ namespace Framework
         DLLEXPORT int getKBStrength() const;
         //! Copies the button so it can be modified without affecting the
         //! original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 
     //! A 2D GUI Framework drawing that renders a selectable checkbox
     //! with label
-    class KontrollKnopf : public ZeichnungHintergrund
+    class KontrollKnopf : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! Specifies whether the checkbox is selected

+ 6 - 6
Camera2D.cpp

@@ -7,7 +7,7 @@
 using namespace Framework;
 
 Kamera2D::Kamera2D()
-    : ZeichnungHintergrund()
+    : DrawableBackground()
 {
     setStyle(Style::Sichtbar);
     welt = 0;
@@ -85,18 +85,18 @@ void Kamera2D::setWelt(Welt2D* welt, bool tick)
 bool Kamera2D::tick(double time)
 {
     if (welt && tickWelt) rend |= welt->tick(time);
-    return ZeichnungHintergrund::tick(time);
+    return DrawableBackground::tick(time);
 }
 
 void Kamera2D::render(Bild& zRObj)
 {
     if (hatStyleNicht(Style::Sichtbar)) return;
-    ZeichnungHintergrund::render(zRObj);
+    DrawableBackground::render(zRObj);
     if (!welt) return;
-    lockZeichnung();
+    lockDrawable();
     if (!zRObj.setDrawOptions(innenPosition, innenSize))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     matrix = Mat3<float>::translation((Vertex)gr / 2)
@@ -104,7 +104,7 @@ void Kamera2D::render(Bild& zRObj)
            * Mat3<float>::translation(-wPos);
     welt->render(matrix, gr, zRObj, *name);
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 Vertex Kamera2D::getWorldCoordinates(Punkt screenPos)

+ 1 - 1
Camera2D.h

@@ -9,7 +9,7 @@ namespace Framework
     class Welt2D;
     class Object2D;
 
-    class Kamera2D : public ZeichnungHintergrund
+    class Kamera2D : public DrawableBackground
     {
     protected:
         Welt2D* welt;

+ 38 - 38
Diagram.cpp

@@ -16,7 +16,7 @@ using namespace Framework;
 // Contents of the SLDiag class from Diagram.h
 // Constructor
 SLDiag::SLDiag()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       gF(0xFF000000),
       lFarbe(new Array<int>()),
       lName(new RCArray<Text>()),
@@ -134,12 +134,12 @@ void SLDiag::render(Bild& zRObj) // draws to zRObj
 {
     if (hatStyle(Style::Sichtbar))
     {
-        lockZeichnung();
+        lockDrawable();
         removeStyle(Style::VScroll | Style::HScroll);
-        ZeichnungHintergrund::render(zRObj);
+        DrawableBackground::render(zRObj);
         if (!zRObj.setDrawOptions(innenPosition, innenSize))
         {
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
         int hv = getHighestValue();
@@ -207,7 +207,7 @@ void SLDiag::render(Bild& zRObj) // draws to zRObj
             }
         }
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
     }
 }
 
@@ -1157,7 +1157,7 @@ bool BaseDiag::hatWertStyleNicht(int wNum, int style) const
 // Contents of the LDiag class from Diagram.h
 // Constructor
 LDiag::LDiag()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       BaseDiag(&cs),
       textRd(0),
       dRam(new LRahmen()),
@@ -1168,7 +1168,7 @@ LDiag::LDiag()
       hIntervallRB(new Bild()),
       schriftGr(12)
 {
-    style = Style::MELockZeichnung;
+    style = Style::MELockDrawable;
     vertikalScrollBar = new VScrollBar();
     horizontalScrollBar = new HScrollBar();
 }
@@ -1211,68 +1211,68 @@ void LDiag::doMausEreignis(MausEreignis& me, bool userRet)
 // non-constant
 void LDiag::setTextRendererZ(TextRenderer* textRd)
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->textRd) this->textRd->release();
     this->textRd = textRd;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void LDiag::setSchriftZ(Schrift* schrift) // Sets the font
 {
-    lockZeichnung();
+    lockDrawable();
     if (!this->textRd)
         textRd = new TextRenderer(schrift);
     else
         textRd->setSchriftZ(schrift);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void LDiag::setSchriftSize(int gr)
 {
-    lockZeichnung();
+    lockDrawable();
     if (schriftGr != gr) rend = 1;
     schriftGr = gr;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void LDiag::setDatenRahmenZ(
     Rahmen* ram) // Sets the inner border around the actual diagram
 {
-    lockZeichnung();
+    lockDrawable();
     if (dRam) dRam->release();
     dRam = ram;
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
 }
 
 void LDiag::setDatenRahmen(Rahmen* ram)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dRam) dRam = new LRahmen();
     dRam->setAlpha(ram->hatAlpha());
     dRam->setFarbe(ram->getFarbe());
     dRam->setRamenBreite(ram->getRBreite());
-    unlockZeichnung();
+    unlockDrawable();
     ram->release();
     rend = 1;
 }
 
 void LDiag::setDatenRahmenBreite(int br)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dRam) dRam = new LRahmen();
     if (dRam->getRBreite() != br) rend = 1;
     dRam->setRamenBreite(br);
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void LDiag::setDatenRahmenFarbe(int f)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dRam) dRam = new LRahmen();
     dRam->setFarbe(f);
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
 }
 
@@ -1285,20 +1285,20 @@ void LDiag::setDatenHintergrundFarbe(
 
 void LDiag::setDatenHintergrundBildZ(Bild* b)
 {
-    lockZeichnung();
+    lockDrawable();
     if (dBgB) dBgB->release();
     dBgB = b;
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
 }
 
 void LDiag::setDatenHintergrundBild(Bild* b)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dBgB) dBgB = new Bild();
     dBgB->neuBild(b->getBreite(), b->getHeight(), 0);
     dBgB->drawBild(0, 0, b->getBreite(), b->getHeight(), *b);
-    unlockZeichnung();
+    unlockDrawable();
     b->release();
     rend = 1;
 }
@@ -1306,48 +1306,48 @@ void LDiag::setDatenHintergrundBild(Bild* b)
 void LDiag::setDatenAlphaFeldZ(
     AlphaFeld* af) // Sets the AlphaFeld of the actual diagram
 {
-    lockZeichnung();
+    lockDrawable();
     if (dAf) dAf->release();
     dAf = af;
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
 }
 
 void LDiag::setDatenAlphaFeld(AlphaFeld* af)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dAf) dAf = new AlphaFeld();
     dAf->setFarbe(af->getFarbe());
     dAf->setStrength(af->getStrength());
-    unlockZeichnung();
+    unlockDrawable();
     af->release();
     rend = 1;
 }
 
 void LDiag::setDatenAlphaFeldFarbe(int f)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dAf) dAf = new AlphaFeld();
     dAf->setFarbe(f);
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
 }
 
 void LDiag::setDatenAlphaFeldStrength(int st)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!dAf) dAf = new AlphaFeld();
     if (dAf->getStrength() != st) rend = 1;
     dAf->setStrength(st);
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void LDiag::render(Bild& zRObj)
 {
     if (!hatDatenStyle(DiagDaten::Style::Sichtbar)) return;
-    ZeichnungHintergrund::render(zRObj);
+    DrawableBackground::render(zRObj);
     if (!zRObj.setDrawOptions(innenPosition, innenSize)) return;
-    lockZeichnung();
+    lockDrawable();
     int dgy = 0;
     int dgbr = innenSize.x;
     int dghi = innenSize.y;
@@ -1612,7 +1612,7 @@ void LDiag::render(Bild& zRObj)
     if (!zRObj.setDrawOptions(0, dgy, dgbr, dghi))
     {
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     dgy = 0;
@@ -1627,7 +1627,7 @@ void LDiag::render(Bild& zRObj)
     {
         zRObj.releaseDrawOptions();
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     if (hatStyle(Style::DatenHintergrund))
@@ -1879,7 +1879,7 @@ void LDiag::render(Bild& zRObj)
     zRObj.releaseDrawOptions();
     zRObj.releaseDrawOptions();
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // constant

+ 4 - 4
Diagram.h

@@ -18,10 +18,10 @@ namespace Framework
     class TextRenderer;
 
     //! A 2D GUI Framework drawing that draws a live diagram of values
-    class SLDiag : public ZeichnungHintergrund
+    class SLDiag : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! A grid is drawn in the diagram for orientation
@@ -528,11 +528,11 @@ namespace Framework
 
     //! A 2D GUI Framework drawing that displays diagram data as
     //! line graphs
-    class LDiag : public ZeichnungHintergrund,
+    class LDiag : public DrawableBackground,
                   public BaseDiag
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! Determines whether a border is drawn around the data

+ 131 - 131
Drawing.cpp

@@ -19,9 +19,9 @@
 
 using namespace Framework;
 
-// Contents of the Zeichnung class from Drawing.h
+// Contents of the Drawable class from Drawing.h
 // Constructor
-Zeichnung::Zeichnung()
+Drawable::Drawable()
     : ReferenceCounter(),
       pos(0, 0),
       gr(0, 0),
@@ -42,23 +42,23 @@ Zeichnung::Zeichnung()
 {}
 
 // Destructor
-Zeichnung::~Zeichnung()
+Drawable::~Drawable()
 {
     if (toolTip) toolTip->release();
 }
 
-void Zeichnung::doMausEreignis(MausEreignis& me, bool userRet)
+void Drawable::doMausEreignis(MausEreignis& me, bool userRet)
 {
     me.verarbeitet = userRet;
 }
 
 // non-constant
-void Zeichnung::setRender()
+void Drawable::setRender()
 {
     rend = 1;
 }
 
-void Zeichnung::setToolTipText(
+void Drawable::setToolTipText(
     const char* txt, Bildschirm* zScreen, Schrift* zSchrift)
 {
     if (!txt)
@@ -68,10 +68,10 @@ void Zeichnung::setToolTipText(
         if (!toolTip)
         {
             toolTip = new ToolTip(zScreen);
-            toolTip->addStyle(ZeichnungHintergrund::Style::Hintergrund
-                              | ZeichnungHintergrund::Style::HAlpha
-                              | ZeichnungHintergrund::Style::Rahmen
-                              | ZeichnungHintergrund::Style::Sichtbar);
+            toolTip->addStyle(DrawableBackground::Style::Hintergrund
+                              | DrawableBackground::Style::HAlpha
+                              | DrawableBackground::Style::Rahmen
+                              | DrawableBackground::Style::Sichtbar);
             toolTip->setHintergrundFarbe(0xA0000000);
             toolTip->setRahmenFarbe(0xFFFFFFFF);
             toolTip->setRahmenBreite(1);
@@ -90,15 +90,15 @@ void Zeichnung::setToolTipText(
 // sets a function that creates a tooltip on first use
 // if one does not exist yet
 //  initToolTip: the function
-void Zeichnung::setNeedToolTipEvent(
-    std::function<bool(Zeichnung*, Punkt localPos)> onNeedToolTip)
+void Drawable::setNeedToolTipEvent(
+    std::function<bool(Drawable*, Punkt localPos)> onNeedToolTip)
 {
     this->onNeedToolTip = onNeedToolTip;
 }
 
 // sets the tooltip
 // tt: the tooltip
-void Zeichnung::setToolTipZ(ToolTip* tt)
+void Drawable::setToolTipZ(ToolTip* tt)
 {
     if (toolTip) toolTip->release();
     toolTip = tt;
@@ -106,34 +106,34 @@ void Zeichnung::setToolTipZ(ToolTip* tt)
     toolTipRequested = 0;
 }
 
-void Zeichnung::lockZeichnung()
+void Drawable::lockDrawable()
 {
     cs.lock();
 }
 
-void Zeichnung::unlockZeichnung()
+void Drawable::unlockDrawable()
 {
     cs.unlock();
 }
 
-void Zeichnung::setMausEreignisParameter(
+void Drawable::setMausEreignisParameter(
     void* p) // sets the mouse event parameter
 {
     makParam = p;
 }
 
-void Zeichnung::setTastaturEreignisParameter(
+void Drawable::setTastaturEreignisParameter(
     void* p) // sets the keyboard event parameter
 {
     takParam = p;
 }
 
-void Zeichnung::setMausEreignis(MausAktion ak) // sets the mouse event
+void Drawable::setMausEreignis(MausAktion ak) // sets the mouse event
 {
     mak = ak;
 }
 
-void Framework::Zeichnung::addMausEreignis(MausAktion ak)
+void Framework::Drawable::addMausEreignis(MausAktion ak)
 {
     if (!mak)
     {
@@ -148,13 +148,13 @@ void Framework::Zeichnung::addMausEreignis(MausAktion ak)
     }
 }
 
-void Zeichnung::setTastaturEreignis(
+void Drawable::setTastaturEreignis(
     TastaturAktion ak) // sets the keyboard event
 {
     tak = ak;
 }
 
-void Framework::Zeichnung::addTastaturEreignis(TastaturAktion ak)
+void Framework::Drawable::addTastaturEreignis(TastaturAktion ak)
 {
     if (!tak)
     {
@@ -169,33 +169,33 @@ void Framework::Zeichnung::addTastaturEreignis(TastaturAktion ak)
     }
 }
 
-void Zeichnung::setNMausEreignisParameter(
+void Drawable::setNMausEreignisParameter(
     void* p) // sets the mouse event parameter
 {
     nmakParam = p;
 }
 
-void Zeichnung::setNTastaturEreignisParameter(
+void Drawable::setNTastaturEreignisParameter(
     void* p) // sets the keyboard event parameter
 {
     ntakParam = p;
 }
 
-void Zeichnung::setNMausEreignis(MausAktion ak) // sets the mouse event
+void Drawable::setNMausEreignis(MausAktion ak) // sets the mouse event
 {
     nMak = ak;
 }
 
-void Zeichnung::setNTastaturEreignis(
+void Drawable::setNTastaturEreignis(
     TastaturAktion ak) // sets the keyboard event
 {
     nTak = ak;
 }
 
-void Zeichnung::doPublicMausEreignis(MausEreignis& me) // calls Mak
+void Drawable::doPublicMausEreignis(MausEreignis& me) // calls Mak
 {
-    bool lock = hatStyle(Style::MELockZeichnung);
-    if (lock) lockZeichnung();
+    bool lock = hatStyle(Style::MELockDrawable);
+    if (lock) lockDrawable();
     bool inside = istPunktInnen(me.mx, me.my);
     if (!me.insideParent || me.verarbeitet || !inside)
     {
@@ -219,7 +219,7 @@ void Zeichnung::doPublicMausEreignis(MausEreignis& me) // calls Mak
         || (hatStyleNicht(Style::Sichtbar)
             && hatStyleNicht(Style::MEIgnoreSichtbar)))
     {
-        if (lock) unlockZeichnung();
+        if (lock) unlockDrawable();
         return;
     }
     if (inside && me.id == ME_PLinks) addStyle(Style::Fokus);
@@ -264,88 +264,88 @@ void Zeichnung::doPublicMausEreignis(MausEreignis& me) // calls Mak
             me.verarbeitet = nMak(nmakParam, this, me);
     }
     me.mx = old.x, me.my = old.y;
-    if (lock) unlockZeichnung();
+    if (lock) unlockDrawable();
 }
 
-void Zeichnung::doTastaturEreignis(TastaturEreignis& te) // calls Tak
+void Drawable::doTastaturEreignis(TastaturEreignis& te) // calls Tak
 {
     if (te.verarbeitet) return;
     if (tak) te.verarbeitet |= tak(takParam, this, te);
     if (nTak && te.verarbeitet) te.verarbeitet = nTak(ntakParam, this, te);
 }
 
-void Zeichnung::setPosition(const Punkt& pos) // sets the position
+void Drawable::setPosition(const Punkt& pos) // sets the position
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->pos != pos) rend = 1;
     this->pos = pos;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void Zeichnung::setX(int xPos)
+void Drawable::setX(int xPos)
 {
-    lockZeichnung();
+    lockDrawable();
     if (pos.x != xPos)
     {
         rend = 1;
         pos.x = xPos;
     }
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void Zeichnung::setY(int yPos)
+void Drawable::setY(int yPos)
 {
-    lockZeichnung();
+    lockDrawable();
     if (pos.y != yPos)
     {
         rend = 1;
         pos.y = yPos;
     }
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void Zeichnung::setSize(const Punkt& gr) // sets the size
+void Drawable::setSize(const Punkt& gr) // sets the size
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->gr != gr) rend = 1;
     this->gr = gr;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void Zeichnung::setPosition(int x, int y) // sets the position
+void Drawable::setPosition(int x, int y) // sets the position
 {
     setPosition(Punkt(x, y));
 }
 
-void Zeichnung::setSize(int x, int y) // sets the size
+void Drawable::setSize(int x, int y) // sets the size
 {
     setSize(Punkt(x, y));
 }
 
-void Zeichnung::setWidth(int width)
+void Drawable::setWidth(int width)
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->gr.x != width) rend = 1;
     gr.x = width;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void Zeichnung::setHeight(int height)
+void Drawable::setHeight(int height)
 {
-    lockZeichnung();
+    lockDrawable();
     if (this->gr.y != height) rend = 1;
     gr.y = height;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-bool Zeichnung::tick(double tickval)
+bool Drawable::tick(double tickval)
 {
     bool r = rend;
     rend = 0;
     return r;
 }
 
-void Zeichnung::setStyle(__int64 style) // sets the style of the text field
+void Drawable::setStyle(__int64 style) // sets the style of the text field
 {
     if (this->style != style)
     {
@@ -354,7 +354,7 @@ void Zeichnung::setStyle(__int64 style) // sets the style of the text field
     }
 }
 
-void Zeichnung::setStyle(__int64 style, bool add_remove)
+void Drawable::setStyle(__int64 style, bool add_remove)
 {
     if (add_remove && (this->style | style) != this->style)
     {
@@ -370,7 +370,7 @@ void Zeichnung::setStyle(__int64 style, bool add_remove)
     }
 }
 
-void Zeichnung::addStyle(__int64 style)
+void Drawable::addStyle(__int64 style)
 {
     if ((this->style | style) != this->style)
     {
@@ -379,7 +379,7 @@ void Zeichnung::addStyle(__int64 style)
     }
 }
 
-void Zeichnung::removeStyle(__int64 style)
+void Drawable::removeStyle(__int64 style)
 {
     if ((this->style & ~style) != this->style)
     {
@@ -390,60 +390,60 @@ void Zeichnung::removeStyle(__int64 style)
     }
 }
 
-void Zeichnung::render(Bild& zRObj)
+void Drawable::render(Bild& zRObj)
 {
     if (toolTip && (style | Style::Sichtbar) == style) toolTip->setZeichnen();
 }
 
 // constant
-bool Zeichnung::hatMausEreignis() const // checks if Mak is set
+bool Drawable::hatMausEreignis() const // checks if Mak is set
 {
     return mak != 0;
 }
 
-bool Zeichnung::hatTastaturEreignis() const // checks if Tak is set
+bool Drawable::hatTastaturEreignis() const // checks if Tak is set
 {
     return tak != 0;
 }
 
-const Punkt& Zeichnung::getPosition() const // returns the position
+const Punkt& Drawable::getPosition() const // returns the position
 {
     return pos;
 }
 
-const Punkt& Zeichnung::getSize() const // returns the size
+const Punkt& Drawable::getSize() const // returns the size
 {
     return gr;
 }
 
-int Zeichnung::getBreite() const // returns the width
+int Drawable::getBreite() const // returns the width
 {
     return gr.x;
 }
 
-int Zeichnung::getHeight() const // returns the height
+int Drawable::getHeight() const // returns the height
 {
     return gr.y;
 }
 
 // Returns the width of the interior area of the drawing in pixels
-int Zeichnung::getInnenBreite() const
+int Drawable::getInnenBreite() const
 {
     return gr.x;
 }
 
 // Returns the height of the interior area of the drawing in pixels
-int Zeichnung::getInnenHeight() const
+int Drawable::getInnenHeight() const
 {
     return gr.y;
 }
 
-int Zeichnung::getX() const // returns X
+int Drawable::getX() const // returns X
 {
     return pos.x;
 }
 
-int Zeichnung::getY() const // returns Y
+int Drawable::getY() const // returns Y
 {
     return pos.y;
 }
@@ -451,7 +451,7 @@ int Zeichnung::getY() const // returns Y
 // Checks if a point is inside this object
 //  p: the point
 //  return: 1 if the point is inside, 0 otherwise
-bool Zeichnung::istPunktInnen(Punkt p) const
+bool Drawable::istPunktInnen(Punkt p) const
 {
     return istPunktInnen(p.x, p.y);
 }
@@ -460,40 +460,40 @@ bool Zeichnung::istPunktInnen(Punkt p) const
 //  x: the x coordinate of the point
 //  y: the y coordinate of the point
 //  return: 1 if the point is inside, 0 otherwise
-bool Zeichnung::istPunktInnen(int x, int y) const
+bool Drawable::istPunktInnen(int x, int y) const
 {
     return x >= pos.x && x <= pos.x + gr.x && y >= pos.y && y <= pos.y + gr.y;
 }
 
-ToolTip* Zeichnung::getToolTip() const // returns the ToolTip text
+ToolTip* Drawable::getToolTip() const // returns the ToolTip text
 {
     return dynamic_cast<ToolTip*>(toolTip->getThis());
 }
 
-ToolTip* Zeichnung::zToolTip() const
+ToolTip* Drawable::zToolTip() const
 {
     return toolTip;
 }
 
-bool Zeichnung::hatStyle(__int64 style) const // checks if style is present
+bool Drawable::hatStyle(__int64 style) const // checks if style is present
 {
     return (this->style | style) == this->style;
 }
 
-bool Zeichnung::hatStyleNicht(
+bool Drawable::hatStyleNicht(
     __int64 style) const // checks if style is not present
 {
     return (this->style | style) != this->style;
 }
 
-__int64 Framework::Zeichnung::getStyles() const
+__int64 Framework::Drawable::getStyles() const
 {
     return style;
 }
 
-Zeichnung* Zeichnung::dublizieren() const // Creates a copy of the drawing
+Drawable* Drawable::dublizieren() const // Creates a copy of the drawing
 {
-    Zeichnung* obj = new Zeichnung();
+    Drawable* obj = new Drawable();
     obj->setPosition(pos);
     obj->setSize(gr);
     obj->setMausEreignisParameter(makParam);
@@ -504,10 +504,10 @@ Zeichnung* Zeichnung::dublizieren() const // Creates a copy of the drawing
     return obj;
 }
 
-// Contents of the ZeichnungHintergrund class from Drawing.h
+// Contents of the DrawableBackground class from Drawing.h
 // Constructor
-ZeichnungHintergrund::ZeichnungHintergrund()
-    : Zeichnung()
+DrawableBackground::DrawableBackground()
+    : Drawable()
 {
     hintergrundFarbe = 0xFF000000;
     rahmen = 0;
@@ -522,7 +522,7 @@ ZeichnungHintergrund::ZeichnungHintergrund()
 }
 
 // Destructor
-ZeichnungHintergrund::~ZeichnungHintergrund()
+DrawableBackground::~DrawableBackground()
 {
     if (rahmen) rahmen->release();
     if (hintergrundBild) hintergrundBild->release();
@@ -531,7 +531,7 @@ ZeichnungHintergrund::~ZeichnungHintergrund()
     if (vertikalScrollBar) vertikalScrollBar->release();
 }
 
-void ZeichnungHintergrund::doMausEreignis(MausEreignis& me, bool userRet)
+void DrawableBackground::doMausEreignis(MausEreignis& me, bool userRet)
 {
     if (userRet)
     {
@@ -554,7 +554,7 @@ void ZeichnungHintergrund::doMausEreignis(MausEreignis& me, bool userRet)
     me.verarbeitet = userRet;
 }
 
-void ZeichnungHintergrund::setHintergrundBild(
+void DrawableBackground::setHintergrundBild(
     Bild* bild) // sets the background image
 {
     if (!hintergrundBild) hintergrundBild = new Bild();
@@ -567,7 +567,7 @@ void ZeichnungHintergrund::setHintergrundBild(
     rend = 1;
 }
 
-void ZeichnungHintergrund::setHintergrundBildZ(
+void DrawableBackground::setHintergrundBildZ(
     Bild* bild) // sets a pointer to the background image
 {
     if (hintergrundBild != bild)
@@ -578,7 +578,7 @@ void ZeichnungHintergrund::setHintergrundBildZ(
     }
 }
 
-void ZeichnungHintergrund::setHintergrundFarbe(
+void DrawableBackground::setHintergrundFarbe(
     int fc) // sets the background color
 {
     if (hintergrundFarbe != fc)
@@ -588,7 +588,7 @@ void ZeichnungHintergrund::setHintergrundFarbe(
     }
 }
 
-void ZeichnungHintergrund::setAlphaFeldZ(
+void DrawableBackground::setAlphaFeldZ(
     AlphaFeld* buff) // sets a pointer to the background buffer
 {
     if (hintergrundFeld != buff)
@@ -599,7 +599,7 @@ void ZeichnungHintergrund::setAlphaFeldZ(
     }
 }
 
-void ZeichnungHintergrund::setAlphaFeldStrength(
+void DrawableBackground::setAlphaFeldStrength(
     int st) // sets the strength of the background buffer
 {
     if (!hintergrundFeld)
@@ -614,7 +614,7 @@ void ZeichnungHintergrund::setAlphaFeldStrength(
     }
 }
 
-void ZeichnungHintergrund::setAlphaFeldFarbe(
+void DrawableBackground::setAlphaFeldFarbe(
     int fc) // sets the color of the background buffer
 {
     if (!hintergrundFeld)
@@ -629,7 +629,7 @@ void ZeichnungHintergrund::setAlphaFeldFarbe(
     }
 }
 
-void ZeichnungHintergrund::setRahmenZ(
+void DrawableBackground::setRahmenZ(
     Rahmen* ram) // sets a pointer to the border
 {
     if (rahmen != ram)
@@ -640,7 +640,7 @@ void ZeichnungHintergrund::setRahmenZ(
     }
 }
 
-void ZeichnungHintergrund::setRahmenBreite(int br) // sets the border width
+void DrawableBackground::setRahmenBreite(int br) // sets the border width
 {
     if (!rahmen)
     {
@@ -654,7 +654,7 @@ void ZeichnungHintergrund::setRahmenBreite(int br) // sets the border width
     }
 }
 
-void ZeichnungHintergrund::setRahmenFarbe(int fc) // sets the border color
+void DrawableBackground::setRahmenFarbe(int fc) // sets the border color
 {
     if (!rahmen)
     {
@@ -668,7 +668,7 @@ void ZeichnungHintergrund::setRahmenFarbe(int fc) // sets the border color
     }
 }
 
-void ZeichnungHintergrund::setVertikalKlickScroll(
+void DrawableBackground::setVertikalKlickScroll(
     int ks) // sets the vertical scroll speed
 {
     if (!vertikalScrollBar)
@@ -683,7 +683,7 @@ void ZeichnungHintergrund::setVertikalKlickScroll(
     }
 }
 
-void ZeichnungHintergrund::setVertikalScrollPos(
+void DrawableBackground::setVertikalScrollPos(
     int pos) // sets the vertical scroll position
 {
     if (!vertikalScrollBar)
@@ -698,7 +698,7 @@ void ZeichnungHintergrund::setVertikalScrollPos(
     }
 }
 
-void ZeichnungHintergrund::setVertikalScrollFarbe(
+void DrawableBackground::setVertikalScrollFarbe(
     int f, int bgF) // sets the scroll color
 {
     if (!vertikalScrollBar)
@@ -716,7 +716,7 @@ void ZeichnungHintergrund::setVertikalScrollFarbe(
     }
 }
 
-void ZeichnungHintergrund::setHorizontalKlickScroll(
+void DrawableBackground::setHorizontalKlickScroll(
     int ks) // sets the horizontal scroll speed
 {
     if (!horizontalScrollBar)
@@ -731,7 +731,7 @@ void ZeichnungHintergrund::setHorizontalKlickScroll(
     }
 }
 
-void ZeichnungHintergrund::setHorizontalScrollPos(
+void DrawableBackground::setHorizontalScrollPos(
     int pos) // sets the horizontal scroll position
 {
     if (!horizontalScrollBar)
@@ -746,7 +746,7 @@ void ZeichnungHintergrund::setHorizontalScrollPos(
     }
 }
 
-void ZeichnungHintergrund::setHorizontalScrollFarbe(
+void DrawableBackground::setHorizontalScrollFarbe(
     int f, int bgF) // sets the scroll color
 {
     if (!horizontalScrollBar)
@@ -764,29 +764,29 @@ void ZeichnungHintergrund::setHorizontalScrollFarbe(
     }
 }
 
-bool ZeichnungHintergrund::tick(double tickVal)
+bool DrawableBackground::tick(double tickVal)
 {
     if (vertikalScrollBar && hatStyle(Style::VScroll))
         rend |= vertikalScrollBar->getRend();
     if (horizontalScrollBar && hatStyle(Style::HScroll))
         rend |= horizontalScrollBar->getRend();
-    return Zeichnung::tick(tickVal);
+    return Drawable::tick(tickVal);
 }
 
-void ZeichnungHintergrund::render(Bild& rObj)
+void DrawableBackground::render(Bild& rObj)
 {
     innenPosition.x = pos.x;
     innenPosition.y = pos.y;
     innenSize.x = gr.x;
     innenSize.y = gr.y;
     if (hatStyleNicht(Style::Sichtbar)) return;
-    lockZeichnung();
+    lockDrawable();
     if (!rObj.setDrawOptions(pos.x, pos.y, gr.x, gr.y))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
-    Zeichnung::render(rObj);
+    Drawable::render(rObj);
     int rbr = 0;
     if (hatStyle(Style::Rahmen) && rahmen)
     {
@@ -801,7 +801,7 @@ void ZeichnungHintergrund::render(Bild& rObj)
     if (!rObj.setDrawOptions(rbr, rbr, gr.x - rbr * 2, gr.y - rbr * 2))
     {
         rObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     bool vs = vertikalScrollBar && hatStyle(Style::VScroll);
@@ -821,7 +821,7 @@ void ZeichnungHintergrund::render(Bild& rObj)
             {
                 rObj.releaseDrawOptions();
                 rObj.releaseDrawOptions();
-                unlockZeichnung();
+                unlockDrawable();
                 return;
             }
             horizontalScrollBar->update(
@@ -833,7 +833,7 @@ void ZeichnungHintergrund::render(Bild& rObj)
             {
                 rObj.releaseDrawOptions();
                 rObj.releaseDrawOptions();
-                unlockZeichnung();
+                unlockDrawable();
                 return;
             }
         }
@@ -849,7 +849,7 @@ void ZeichnungHintergrund::render(Bild& rObj)
         {
             rObj.releaseDrawOptions();
             rObj.releaseDrawOptions();
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
     }
@@ -893,133 +893,133 @@ void ZeichnungHintergrund::render(Bild& rObj)
     if (vs || hs) rObj.releaseDrawOptions();
     rObj.releaseDrawOptions();
     rObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // Returns the width of the interior area of the drawing in pixels
-int ZeichnungHintergrund::getInnenBreite() const
+int DrawableBackground::getInnenBreite() const
 {
     return getBreite() - 2 * getRahmenBreite();
 }
 
 // Returns the height of the interior area of the drawing in pixels
-int ZeichnungHintergrund::getInnenHeight() const
+int DrawableBackground::getInnenHeight() const
 {
     return getHeight() - 2 * getRahmenBreite();
 }
 
-Bild* ZeichnungHintergrund::getHintergrundBild()
+Bild* DrawableBackground::getHintergrundBild()
     const // returns the background image
 {
     if (!hintergrundBild) return 0;
     return dynamic_cast<Bild*>(hintergrundBild->getThis());
 }
 
-Bild* ZeichnungHintergrund::zHintergrundBild()
+Bild* DrawableBackground::zHintergrundBild()
     const // returns the background image without increased reference counter
 {
     return hintergrundBild;
 }
 
-int ZeichnungHintergrund::getHintergrundFarbe()
+int DrawableBackground::getHintergrundFarbe()
     const // returns the background color
 {
     return hintergrundFarbe;
 }
 
 AlphaFeld*
-ZeichnungHintergrund::getAlphaFeld() const // returns the background buffer
+DrawableBackground::getAlphaFeld() const // returns the background buffer
 {
     if (!hintergrundFeld) return 0;
     return dynamic_cast<AlphaFeld*>(hintergrundFeld->getThis());
 }
 
-AlphaFeld* ZeichnungHintergrund::zAlphaFeld()
+AlphaFeld* DrawableBackground::zAlphaFeld()
     const // returns the background buffer without increased reference counter
 {
     return hintergrundFeld;
 }
 
-int ZeichnungHintergrund::getAlphaFeldStrength()
+int DrawableBackground::getAlphaFeldStrength()
     const // returns the strength of the background buffer
 {
     if (!hintergrundFeld) return 0;
     return hintergrundFeld->getStrength();
 }
 
-int ZeichnungHintergrund::getAlphaFeldFarbe()
+int DrawableBackground::getAlphaFeldFarbe()
     const // returns the color of the background buffer
 {
     return hintergrundFeld->getFarbe();
 }
 
-Rahmen* ZeichnungHintergrund::getRahmen() const // returns the border
+Rahmen* DrawableBackground::getRahmen() const // returns the border
 {
     if (!rahmen) return 0;
     return dynamic_cast<Rahmen*>(rahmen->getThis());
 }
 
-Rahmen* ZeichnungHintergrund::zRahmen()
+Rahmen* DrawableBackground::zRahmen()
     const // returns the border without increased reference counter
 {
     return rahmen;
 }
 
-int ZeichnungHintergrund::getRahmenBreite() const // returns the border width
+int DrawableBackground::getRahmenBreite() const // returns the border width
 {
     if (!rahmen || hatStyleNicht(Style::Rahmen)) return 0;
     return rahmen->getRBreite();
 }
 
-int ZeichnungHintergrund::getRahmenFarbe() const // returns the border color
+int DrawableBackground::getRahmenFarbe() const // returns the border color
 {
     return rahmen->getFarbe();
 }
 
-int ZeichnungHintergrund::getVertikalKlickScroll() const
+int DrawableBackground::getVertikalKlickScroll() const
 {
     return vertikalScrollBar ? vertikalScrollBar->getKlickScroll() : 0;
 }
 
-int ZeichnungHintergrund::getVertikalScrollPos() const
+int DrawableBackground::getVertikalScrollPos() const
 {
     return vertikalScrollBar ? vertikalScrollBar->getScroll() : 0;
 }
 
-int ZeichnungHintergrund::getVertikalScrollFarbe() const
+int DrawableBackground::getVertikalScrollFarbe() const
 {
     return vertikalScrollBar ? vertikalScrollBar->getFarbe() : 0;
 }
 
-int ZeichnungHintergrund::getVertikalScrollHintergrund() const
+int DrawableBackground::getVertikalScrollHintergrund() const
 {
     return vertikalScrollBar ? vertikalScrollBar->getBgFarbe() : 0;
 }
 
-int ZeichnungHintergrund::getHorizontalKlickScroll() const
+int DrawableBackground::getHorizontalKlickScroll() const
 {
     return horizontalScrollBar ? horizontalScrollBar->getKlickScroll() : 0;
 }
 
-int ZeichnungHintergrund::getHorizontalScrollPos() const
+int DrawableBackground::getHorizontalScrollPos() const
 {
     return horizontalScrollBar ? horizontalScrollBar->getScroll() : 0;
 }
 
-int ZeichnungHintergrund::getHorizontalScrollFarbe() const
+int DrawableBackground::getHorizontalScrollFarbe() const
 {
     return horizontalScrollBar ? horizontalScrollBar->getFarbe() : 0;
 }
 
-int ZeichnungHintergrund::getHorizontalScrollHintergrund() const
+int DrawableBackground::getHorizontalScrollHintergrund() const
 {
     return horizontalScrollBar ? horizontalScrollBar->getBgFarbe() : 0;
 }
 
-Zeichnung*
-ZeichnungHintergrund::dublizieren() const // Creates a copy of the drawing
+Drawable*
+DrawableBackground::dublizieren() const // Creates a copy of the drawing
 {
-    ZeichnungHintergrund* obj = new ZeichnungHintergrund();
+    DrawableBackground* obj = new DrawableBackground();
     obj->setPosition(pos);
     obj->setSize(gr);
     obj->setMausEreignisParameter(makParam);

+ 21 - 21
Drawing.h

@@ -1,5 +1,5 @@
-#ifndef Zeichnung_H
-#define Zeichnung_H
+#ifndef Drawable_H
+#define Drawable_H
 
 #include <functional>
 
@@ -14,7 +14,7 @@ namespace Framework
     struct MausEreignis;     //! MouseEvent.h
     struct TastaturEreignis; //! KeyboardEvent.h
     class Bild;              //! Image.h
-    class Zeichnung;         //! From this file
+    class Drawable;         //! From this file
     class ToolTip;           //! ToolTip.h
     class Bildschirm;        //! Screen.h
     class Rahmen;            //! Border.h
@@ -24,7 +24,7 @@ namespace Framework
     class Schrift;
 
     //! A drawing element for the 2D GUI Framework
-    class Zeichnung : public virtual ReferenceCounter
+    class Drawable : public virtual ReferenceCounter
     {
     public:
         class Style
@@ -41,7 +41,7 @@ namespace Framework
             static const __int64 MEIgnoreSichtbar = 0x0800000000000000;
             //! If this style is set, the thread locks the object while
             //! the mouse event is being processed
-            static const __int64 MELockZeichnung = 0x1000000000000000;
+            static const __int64 MELockDrawable = 0x1000000000000000;
             //! If this style is set, mouse events are processed even when
             //! they are outside the drawing
             static const __int64 MEIgnoreInside = 0x2000000000000000;
@@ -69,7 +69,7 @@ namespace Framework
         ToolTip* toolTip;
         __int64 style;
         bool rend;
-        std::function<bool(Zeichnung*, Punkt localPos)> onNeedToolTip;
+        std::function<bool(Drawable*, Punkt localPos)> onNeedToolTip;
         bool toolTipRequested;
 
         //! Processes a mouse event. Called automatically by the framework.
@@ -79,9 +79,9 @@ namespace Framework
 
     public:
         //! Constructor
-        DLLEXPORT Zeichnung();
+        DLLEXPORT Drawable();
         //! Destructor
-        DLLEXPORT virtual ~Zeichnung();
+        DLLEXPORT virtual ~Drawable();
         //! Specifies whether the drawing has changed since the last frame
         //! and needs to be redrawn
         DLLEXPORT void setRender();
@@ -95,18 +95,18 @@ namespace Framework
         //! Sets a function called when a tooltip is needed and none has
         //! been set yet \param initToolTip The function
         DLLEXPORT void setNeedToolTipEvent(
-            std::function<bool(Zeichnung*, Punkt localPos)> onNeedTooltip);
+            std::function<bool(Drawable*, Punkt localPos)> onNeedTooltip);
         //! Sets the tooltip
         //! \param tt The tooltip
         DLLEXPORT void setToolTipZ(ToolTip* tt);
         //! This is necessary if multiple threads use the drawing simultaneously.
-        //! If lockZeichnung() is called by two threads, the last one waits
-        //! until the first has called unlockZeichnung().
-        DLLEXPORT void lockZeichnung();
+        //! If lockDrawable() is called by two threads, the last one waits
+        //! until the first has called unlockDrawable().
+        DLLEXPORT void lockDrawable();
         //! This is necessary if multiple threads use the drawing simultaneously.
-        //! If lockZeichnung() is called by two threads, the last one waits
-        //! until the first has called unlockZeichnung().
-        DLLEXPORT void unlockZeichnung();
+        //! If lockDrawable() is called by two threads, the last one waits
+        //! until the first has called unlockDrawable().
+        DLLEXPORT void unlockDrawable();
         //! Sets the parameter passed to the callback function on a mouse event
         //! \param p The parameter
         DLLEXPORT void setMausEreignisParameter(void* p);
@@ -264,15 +264,15 @@ namespace Framework
         DLLEXPORT __int64 getStyles() const;
         //! Copies the complete drawing so it can be modified without
         //! affecting the original
-        DLLEXPORT virtual Zeichnung* dublizieren() const;
+        DLLEXPORT virtual Drawable* dublizieren() const;
     };
 
     //! A drawing element for the 2D GUI Framework with background, border
     //! and scroll bars
-    class ZeichnungHintergrund : public Zeichnung
+    class DrawableBackground : public Drawable
     {
     public:
-        class Style : public Zeichnung::Style
+        class Style : public Drawable::Style
         {
         public:
             //! If this flag is set, the drawing gets a border
@@ -312,9 +312,9 @@ namespace Framework
 
     public:
         //! Constructor
-        DLLEXPORT ZeichnungHintergrund();
+        DLLEXPORT DrawableBackground();
         //! Destructor
-        DLLEXPORT virtual ~ZeichnungHintergrund();
+        DLLEXPORT virtual ~DrawableBackground();
         //! Sets the background image (requires drawing flag:
         //! Style::Hintergrund, HBild) \param bild The image is copied and used
         //! as background image
@@ -425,7 +425,7 @@ namespace Framework
         DLLEXPORT int getHorizontalScrollHintergrund() const;
         //! Creates a copy of the drawing that can be modified without
         //! affecting the original
-        DLLEXPORT virtual Zeichnung* dublizieren() const;
+        DLLEXPORT virtual Drawable* dublizieren() const;
     };
 } // namespace Framework
 

+ 31 - 31
Drawing3D.cpp

@@ -2,10 +2,10 @@
 
 using namespace Framework;
 
-// Contents of the Zeichnung3D class
+// Contents of the Drawable3D class
 
 // Constructor
-Zeichnung3D::Zeichnung3D()
+Drawable3D::Drawable3D()
     : ReferenceCounter()
 {
     welt = welt.identity();
@@ -17,11 +17,11 @@ Zeichnung3D::Zeichnung3D()
     size = 1.f;
 }
 
-Zeichnung3D::~Zeichnung3D() {}
+Drawable3D::~Drawable3D() {}
 
 // Sets the position of the drawing in the world
 //  p: The position
-void Zeichnung3D::setPosition(const Vec3<float>& p)
+void Drawable3D::setPosition(const Vec3<float>& p)
 {
     pos = p;
     rend = 1;
@@ -31,7 +31,7 @@ void Zeichnung3D::setPosition(const Vec3<float>& p)
 //  x: The x position
 //  y: The y position
 //  z: The z position
-void Zeichnung3D::setPosition(float x, float y, float z)
+void Drawable3D::setPosition(float x, float y, float z)
 {
     pos.x = x;
     pos.y = y;
@@ -41,7 +41,7 @@ void Zeichnung3D::setPosition(float x, float y, float z)
 
 // Sets the position of the drawing in the world
 //  x: The x position
-void Zeichnung3D::setX(float x)
+void Drawable3D::setX(float x)
 {
     pos.x = x;
     rend = 1;
@@ -49,7 +49,7 @@ void Zeichnung3D::setX(float x)
 
 // Sets the position of the drawing in the world
 //  y: The y position
-void Zeichnung3D::setY(float y)
+void Drawable3D::setY(float y)
 {
     pos.y = y;
     rend = 1;
@@ -57,7 +57,7 @@ void Zeichnung3D::setY(float y)
 
 // Sets the position of the drawing in the world
 //  z: The z position
-void Zeichnung3D::setZ(float z)
+void Drawable3D::setZ(float z)
 {
     pos.z = z;
     rend = 1;
@@ -65,7 +65,7 @@ void Zeichnung3D::setZ(float z)
 
 // Sets the rotation of the drawing in the world
 //  d: The rotation around the x, y and z axis
-void Zeichnung3D::setDrehung(const Vec3<float>& d)
+void Drawable3D::setDrehung(const Vec3<float>& d)
 {
     angle = d;
     rend = 1;
@@ -75,7 +75,7 @@ void Zeichnung3D::setDrehung(const Vec3<float>& d)
 //  xWinkel: The rotation around the x axis
 //  yWinkel: The rotation around the y axis
 //  zWinkel: The rotation around the z axis
-void Zeichnung3D::setDrehung(float xWinkel, float yWinkel, float zWinkel)
+void Drawable3D::setDrehung(float xWinkel, float yWinkel, float zWinkel)
 {
     angle.x = xWinkel;
     angle.y = yWinkel;
@@ -85,7 +85,7 @@ void Zeichnung3D::setDrehung(float xWinkel, float yWinkel, float zWinkel)
 
 // Sets the rotation of the drawing in the world
 //  winkel: The rotation around the x axis
-void Zeichnung3D::setDrehungX(float winkel)
+void Drawable3D::setDrehungX(float winkel)
 {
     angle.x = winkel;
     rend = 1;
@@ -93,7 +93,7 @@ void Zeichnung3D::setDrehungX(float winkel)
 
 // Sets the rotation of the drawing in the world
 //  winkel: The rotation around the y axis
-void Zeichnung3D::setDrehungY(float winkel)
+void Drawable3D::setDrehungY(float winkel)
 {
     angle.y = winkel;
     rend = 1;
@@ -101,7 +101,7 @@ void Zeichnung3D::setDrehungY(float winkel)
 
 // Sets the rotation of the drawing in the world
 //  winkel: The rotation around the z axis
-void Zeichnung3D::setDrehungZ(float winkel)
+void Drawable3D::setDrehungZ(float winkel)
 {
     angle.z = winkel;
     rend = 1;
@@ -109,14 +109,14 @@ void Zeichnung3D::setDrehungZ(float winkel)
 
 // Sets whether the object contains partially or fully transparent areas
 //  a: true if partially or fully transparent areas are present
-void Zeichnung3D::setAlpha(bool a)
+void Drawable3D::setAlpha(bool a)
 {
     alpha = a;
     rend = 1;
 }
 
 //! Sets the scaling
-void Zeichnung3D::setSize(float size)
+void Drawable3D::setSize(float size)
 {
     this->size = size;
     rend = 1;
@@ -126,7 +126,7 @@ void Zeichnung3D::setSize(float size)
 //  viewProj: The multiplied camera matrices
 //  matBuffer: An array of matrices to be filled
 //  return: The number of matrices the drawing requires
-int Zeichnung3D::errechneMatrizen(
+int Drawable3D::errechneMatrizen(
     const Mat4<float>& viewProj, Mat4<float>* matBuffer)
 {
     matBuffer[0] = viewProj * welt;
@@ -135,17 +135,17 @@ int Zeichnung3D::errechneMatrizen(
 
 // Processes a mouse event
 //  me: The mouse event to be processed
-void Zeichnung3D::doMausEreignis(MausEreignis3D& me) {}
+void Drawable3D::doMausEreignis(MausEreignis3D& me) {}
 
 // Processes a keyboard event
 //  te: The keyboard event to be processed
-void Zeichnung3D::doTastaturEreignis(TastaturEreignis& te) {}
+void Drawable3D::doTastaturEreignis(TastaturEreignis& te) {}
 
 // Processes the elapsed time
 //  tickval: The time in seconds since the last call of the function
 //  return: true if the object has changed, false
 //  otherwise.
-bool Zeichnung3D::tick(double tickval)
+bool Drawable3D::tick(double tickval)
 {
     if (rend)
     {
@@ -159,75 +159,75 @@ bool Zeichnung3D::tick(double tickval)
 }
 
 // Returns whether the object contains partially or fully transparent areas
-bool Zeichnung3D::hatAlpha() const
+bool Drawable3D::hatAlpha() const
 {
     return alpha;
 }
 
 // Returns the radius of a sphere that encloses the entire model
-float Zeichnung3D::getRadius() const
+float Drawable3D::getRadius() const
 {
     return radius;
 }
 
 // Returns a point representing the position of the drawing in the world
-const Vec3<float>& Zeichnung3D::getPos() const
+const Vec3<float>& Drawable3D::getPos() const
 {
     return pos;
 }
 
 // Returns the X position of the drawing in the world
-float Zeichnung3D::getX() const
+float Drawable3D::getX() const
 {
     return pos.x;
 }
 
 // Returns the Y position of the drawing in the world
-float Zeichnung3D::getY() const
+float Drawable3D::getY() const
 {
     return pos.y;
 }
 
 // Returns the Z position of the drawing in the world
-float Zeichnung3D::getZ() const
+float Drawable3D::getZ() const
 {
     return pos.z;
 }
 
 // Returns a vector representing the rotation of the drawing in the world.
 // x is the rotation around the X axis in radians, etc.
-const Vec3<float>& Zeichnung3D::getDrehung() const
+const Vec3<float>& Drawable3D::getDrehung() const
 {
     return angle;
 }
 
 // Returns the rotation around the X axis in radians
-float Zeichnung3D::getXDrehung() const
+float Drawable3D::getXDrehung() const
 {
     return angle.x;
 }
 
 // Returns the rotation around the Y axis in radians
-float Zeichnung3D::getYDrehung() const
+float Drawable3D::getYDrehung() const
 {
     return angle.y;
 }
 
 // Returns the rotation around the Z axis in radians
-float Zeichnung3D::getZDrehung() const
+float Drawable3D::getZDrehung() const
 {
     return angle.z;
 }
 
 // Returns the matrix that translates the drawing into world space
-const Mat4<float>& Zeichnung3D::getMatrix() const
+const Mat4<float>& Drawable3D::getMatrix() const
 {
     return welt;
 }
 
 //! Calculates for a point in local drawing coordinates the point in
 //! world coordinates by applying rotation, scaling and translation
-Vec3<float> Zeichnung3D::applyWorldTransformation(
+Vec3<float> Drawable3D::applyWorldTransformation(
     const Vec3<float>& modelPos) const
 {
     return welt * modelPos;

+ 3 - 3
Drawing3D.h

@@ -10,7 +10,7 @@ namespace Framework
     class Render3D; //! Render3D.h
 
     //! An object that can be drawn by the Bildschirm3D class.
-    class Zeichnung3D : public virtual ReferenceCounter
+    class Drawable3D : public virtual ReferenceCounter
     {
     protected:
         Vec3<float> pos;   //! Position of the object
@@ -24,8 +24,8 @@ namespace Framework
 
     public:
         //! Constructor
-        DLLEXPORT Zeichnung3D();
-        DLLEXPORT virtual ~Zeichnung3D();
+        DLLEXPORT Drawable3D();
+        DLLEXPORT virtual ~Drawable3D();
         //! Sets the position of the drawing in the world
         //! \param p The position
         DLLEXPORT void setPosition(const Vec3<float>& p);

+ 9 - 9
Image.cpp

@@ -2923,10 +2923,10 @@ int Bild::getAverageColor() const
 // Contents of the BildZ class from Image.h
 // Constructor
 BildZ::BildZ()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       bild(0)
 {
-    style = Style::MELockZeichnung;
+    style = Style::MELockDrawable;
     mak = _ret1ME;
 }
 
@@ -2989,18 +2989,18 @@ void BildZ::setBild(Bild* b)
 
 bool BildZ::tick(double tickVal) // tick
 {
-    return ZeichnungHintergrund::tick(tickVal);
+    return DrawableBackground::tick(tickVal);
 }
 
 void BildZ::render(Bild& zRObj) // draws to zRObj
 {
     if (hatStyle(Style::Sichtbar))
     {
-        ZeichnungHintergrund::render(zRObj);
-        lockZeichnung();
+        DrawableBackground::render(zRObj);
+        lockDrawable();
         if (!zRObj.setDrawOptions(innenPosition, innenSize))
         {
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
         if (bild)
@@ -3032,7 +3032,7 @@ void BildZ::render(Bild& zRObj) // draws to zRObj
                 if (!zRObj.setDrawOptions(x, y, br, hi))
                 {
                     zRObj.releaseDrawOptions();
-                    unlockZeichnung();
+                    unlockDrawable();
                     return;
                 }
                 if (hatStyle(Style::Alpha))
@@ -3051,7 +3051,7 @@ void BildZ::render(Bild& zRObj) // draws to zRObj
             }
         }
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
     }
 }
 
@@ -3067,7 +3067,7 @@ Bild* BildZ::zBild() const
     return bild;
 }
 
-Zeichnung* BildZ::dublizieren() const // creates a copy of the drawing
+Drawable* BildZ::dublizieren() const // creates a copy of the drawing
 {
     BildZ* obj = new BildZ();
     obj->setPosition(pos);

+ 3 - 3
Image.h

@@ -475,10 +475,10 @@ namespace Framework
     };
 
     //! A 2D GUI Framework drawing that displays an image.
-    class BildZ : public ZeichnungHintergrund
+    class BildZ : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! If this flag is set, alpha blending is used when drawing
@@ -526,7 +526,7 @@ namespace Framework
         DLLEXPORT Bild* zBild() const;
         //! Copies the complete drawing so it can be modified without
         //! affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 
 #ifdef WIN32

+ 3 - 3
JsonEditor.cpp

@@ -1664,7 +1664,7 @@ EditableJsonElement* Framework::JSON::EditableJsonElement::zAfter(
 }
 
 JsonEditor::JsonEditor(UIInit uiInit)
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       uiInit(uiInit)
 {
     valueValidator = Regex::parse("^-?[0-9]+(\\.[0-9]+)?([eE][+-]?[0-9]+)?$");
@@ -2672,7 +2672,7 @@ bool Framework::JSON::JsonEditor::tick(double tickVal)
     rend |= drawCursor != (time < 0.5);
     drawCursor = time < 0.5;
     errorDescription->tick(tickVal);
-    return ZeichnungHintergrund::tick(tickVal);
+    return DrawableBackground::tick(tickVal);
 }
 
 void Framework::JSON::JsonEditor::render(Bild& rObj)
@@ -2681,7 +2681,7 @@ void Framework::JSON::JsonEditor::render(Bild& rObj)
     renderings++;
     renderedLines = 0;
     errorDescription->removeStyle(TextFeld::Style::Sichtbar);
-    ZeichnungHintergrund::render(rObj);
+    DrawableBackground::render(rObj);
     if (textRenderer->zSchrift() && content
         && rObj.setDrawOptions(
             pos + Punkt(getRahmenBreite(), getRahmenBreite()),

+ 1 - 1
JsonEditor.h

@@ -184,7 +184,7 @@ namespace Framework
             Bottom
         };
 
-        class JsonEditor : public ZeichnungHintergrund
+        class JsonEditor : public DrawableBackground
         {
         private:
             Regex::Automata<char>* valueValidator;

+ 69 - 69
List.cpp

@@ -17,7 +17,7 @@ using namespace Framework;
 // Contents of the AuswahlListe class from List.h
 // Constructor
 AuswahlListe::AuswahlListe()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       tfListe(0),
       auswahl(-1),
       ahFarbe(0xFF000000),
@@ -54,10 +54,10 @@ AuswahlListe::~AuswahlListe()
 void AuswahlListe::doMausEreignis(MausEreignis& me, bool userRet)
 {
     if (!userRet || hatStyleNicht(Style::Erlaubt)) return;
-    if (ZeichnungHintergrund::hatStyle(Style::VScroll) && vertikalScrollBar)
+    if (DrawableBackground::hatStyle(Style::VScroll) && vertikalScrollBar)
     {
         int rbr = 0;
-        if (rahmen && ZeichnungHintergrund::hatStyle(Style::Rahmen))
+        if (rahmen && DrawableBackground::hatStyle(Style::Rahmen))
             rbr = rahmen->getRBreite();
         if (((me.mx > gr.x - 15 - rbr) || me.id == ME_UScroll
                 || me.id == ME_DScroll)
@@ -140,12 +140,12 @@ void AuswahlListe::update() // updates the selection list
     }
     if (hatStyleNicht(Style::MultiStyled) && tfListe)
     {
-        bool FeldRahmen = ZeichnungHintergrund::hatStyle(Style::FeldRahmen);
+        bool FeldRahmen = DrawableBackground::hatStyle(Style::FeldRahmen);
         bool FeldHintergrund
-            = ZeichnungHintergrund::hatStyle(Style::FeldHintergrund);
-        bool FeldHBild = ZeichnungHintergrund::hatStyle(Style::FeldHBild);
-        bool FeldHAlpha = ZeichnungHintergrund::hatStyle(Style::FeldHAlpha);
-        bool FeldBuffer = ZeichnungHintergrund::hatStyle(Style::FeldBuffer);
+            = DrawableBackground::hatStyle(Style::FeldHintergrund);
+        bool FeldHBild = DrawableBackground::hatStyle(Style::FeldHBild);
+        bool FeldHAlpha = DrawableBackground::hatStyle(Style::FeldHAlpha);
+        bool FeldBuffer = DrawableBackground::hatStyle(Style::FeldBuffer);
         for (TextFeld* tf : *tfListe)
         {
             tf->setStyle(TextFeld::Style::Rahmen, FeldRahmen);
@@ -157,7 +157,7 @@ void AuswahlListe::update() // updates the selection list
                 tf->setSchriftZ(dynamic_cast<Schrift*>(schrift->getThis()));
         }
     }
-    if (ZeichnungHintergrund::hatStyle(Style::MultiStyled) && tfListe && styles)
+    if (DrawableBackground::hatStyle(Style::MultiStyled) && tfListe && styles)
     {
         auto style = styles->begin();
         for (auto tf = tfListe->begin(); tf; tf++, style++)
@@ -343,7 +343,7 @@ void AuswahlListe::updateVScroll() // scrolls to cursor position or
         vertikalScrollBar->update(y,
             gr.y
                 - ((rahmen
-                       && ZeichnungHintergrund::hatStyle(
+                       && DrawableBackground::hatStyle(
                            TextFeld::Style::Rahmen))
                         ? rahmen->getRBreite()
                         : 0));
@@ -604,23 +604,23 @@ void AuswahlListe::doTastaturEreignis(TastaturEreignis& te)
 
 void AuswahlListe::render(Bild& zRObj) // draws to zRObj
 {
-    if (!ZeichnungHintergrund::hatStyle(Style::Sichtbar)) return;
+    if (!DrawableBackground::hatStyle(Style::Sichtbar)) return;
     removeStyle(Style::HScroll);
-    ZeichnungHintergrund::render(zRObj);
-    lockZeichnung();
+    DrawableBackground::render(zRObj);
+    lockDrawable();
     if (!zRObj.setDrawOptions(innenPosition, innenSize))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     int rbr = 0;
-    if (rahmen && ZeichnungHintergrund::hatStyle(Style::Rahmen))
+    if (rahmen && DrawableBackground::hatStyle(Style::Rahmen))
         rbr = rahmen->getRBreite();
     if (tfListe)
     {
         int maxHeight = 0;
         int dx = 0, dy = 0;
-        if (vertikalScrollBar && ZeichnungHintergrund::hatStyle(Style::VScroll))
+        if (vertikalScrollBar && DrawableBackground::hatStyle(Style::VScroll))
             dy -= vertikalScrollBar->getScroll();
         int mdy = innenSize.y + rbr;
         auto style = styles ? styles->begin() : Array<__int64>().begin();
@@ -629,13 +629,13 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
         {
             if (dy + tf->getHeight() > mdy
                 && !(vertikalScrollBar
-                     && ZeichnungHintergrund::hatStyle(Style::VScroll)))
+                     && DrawableBackground::hatStyle(Style::VScroll)))
                 break;
             tf->setPosition(dx, dy);
             tf->setSize(innenSize.x, tf->getHeight());
             maxHeight += tf->getHeight();
             bool selected = 0;
-            if (ZeichnungHintergrund::hatStyle(Style::MultiSelect) && styles)
+            if (DrawableBackground::hatStyle(Style::MultiSelect) && styles)
                 selected = hatStyle(style, Style::Selected);
             else
                 selected = auswahl == i;
@@ -652,7 +652,7 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
             {
                 if (hatStyleNicht(Style::MultiStyled) || !styles)
                 {
-                    if (ZeichnungHintergrund::hatStyle(Style::AuswahlBuffer)
+                    if (DrawableBackground::hatStyle(Style::AuswahlBuffer)
                         && aBuffer)
                     {
                         tmpBuffer = tf->getAlphaFeld();
@@ -660,18 +660,18 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
                             dynamic_cast<AlphaFeld*>(aBuffer->getThis()));
                         tmpB = tf->hatStyle(TextFeld::Style::Buffered);
                         tf->setStyle(TextFeld::Style::Buffered,
-                            ZeichnungHintergrund::hatStyle(
+                            DrawableBackground::hatStyle(
                                 Style::AuswahlBuffer));
                     }
-                    if (ZeichnungHintergrund::hatStyle(
+                    if (DrawableBackground::hatStyle(
                             Style::AuswahlHintergrund))
                     {
                         tmpH = tf->hatStyle(TextFeld::Style::Hintergrund);
                         tmpHFarbe = tf->getHintergrundFarbe();
                         tf->setHintergrundFarbe(ahFarbe);
                         tf->setStyle(TextFeld::Style::Hintergrund,
-                            ZeichnungHintergrund::hatStyle(Style::Hintergrund));
-                        if (ZeichnungHintergrund::hatStyle(Style::AuswahlHBild)
+                            DrawableBackground::hatStyle(Style::Hintergrund));
+                        if (DrawableBackground::hatStyle(Style::AuswahlHBild)
                             && ahBild)
                         {
                             tmpHBild = tf->getHintergrundBild();
@@ -679,18 +679,18 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
                                 dynamic_cast<Bild*>(ahBild->getThis()));
                             tmpHB = tf->hatStyle(TextFeld::Style::HBild);
                             tf->setStyle(TextFeld::Style::HBild,
-                                ZeichnungHintergrund::hatStyle(Style::HBild));
+                                DrawableBackground::hatStyle(Style::HBild));
                         }
-                        if (ZeichnungHintergrund::hatStyle(
+                        if (DrawableBackground::hatStyle(
                                 Style::AuswahlHAlpha))
                         {
                             tmpHAlpha = tf->hatStyle(TextFeld::Style::HAlpha);
                             tf->setStyle(TextFeld::Style::HAlpha,
-                                ZeichnungHintergrund::hatStyle(
+                                DrawableBackground::hatStyle(
                                     Style::AuswahlHAlpha));
                         }
                     }
-                    if (ZeichnungHintergrund::hatStyle(Style::AuswahlRahmen)
+                    if (DrawableBackground::hatStyle(Style::AuswahlRahmen)
                         && aRahmen)
                     {
                         tmpRahmen = tf->getRahmen();
@@ -698,7 +698,7 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
                             dynamic_cast<Rahmen*>(aRahmen->getThis()));
                         tmpR = tf->hatStyle(TextFeld::Style::Rahmen);
                         tf->setStyle(TextFeld::Style::Rahmen,
-                            ZeichnungHintergrund::hatStyle(
+                            DrawableBackground::hatStyle(
                                 Style::AuswahlRahmen));
                     }
                 }
@@ -752,26 +752,26 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
             {
                 if (hatStyleNicht(Style::MultiStyled) || !styles)
                 {
-                    if (ZeichnungHintergrund::hatStyle(Style::AuswahlBuffer))
+                    if (DrawableBackground::hatStyle(Style::AuswahlBuffer))
                     {
                         tf->setAlphaFeldZ(tmpBuffer);
                         tf->setStyle(TextFeld::Style::Buffered, tmpB);
                     }
-                    if (ZeichnungHintergrund::hatStyle(
+                    if (DrawableBackground::hatStyle(
                             Style::AuswahlHintergrund))
                     {
                         tf->setHintergrundFarbe(tmpHFarbe);
                         tf->setStyle(TextFeld::Style::Hintergrund, tmpH);
-                        if (ZeichnungHintergrund::hatStyle(Style::AuswahlHBild))
+                        if (DrawableBackground::hatStyle(Style::AuswahlHBild))
                         {
                             tf->setHintergrundBildZ(tmpHBild);
                             tf->setStyle(TextFeld::Style::HBild, tmpHB);
                         }
-                        if (ZeichnungHintergrund::hatStyle(
+                        if (DrawableBackground::hatStyle(
                                 Style::AuswahlHAlpha))
                             tf->setStyle(TextFeld::Style::HAlpha, tmpHAlpha);
                     }
-                    if (ZeichnungHintergrund::hatStyle(Style::AuswahlRahmen))
+                    if (DrawableBackground::hatStyle(Style::AuswahlRahmen))
                     {
                         tf->setRahmenZ(tmpRahmen);
                         tf->setStyle(TextFeld::Style::Rahmen, tmpR);
@@ -810,14 +810,14 @@ void AuswahlListe::render(Bild& zRObj) // draws to zRObj
             vertikalScrollBar->getScrollData()->max = maxHeight;
     }
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 int AuswahlListe::getKlickEintrag(int my)
 {
     if (!tfListe) return -1;
     int y = 0;
-    if (ZeichnungHintergrund::hatStyle(Style::VScroll) && vertikalScrollBar)
+    if (DrawableBackground::hatStyle(Style::VScroll) && vertikalScrollBar)
         y -= vertikalScrollBar->getScroll();
     int i = 0;
     for (auto tf = tfListe->begin(); tf; tf++, i++)
@@ -1010,7 +1010,7 @@ bool AuswahlListe::hatMsStyleNicht(int pos,
 
 //! Constructor
 ZListe::ZListe()
-    : ZeichnungHintergrund()
+    : DrawableBackground()
 {
     entrySeperatorSize = 1;
     entrySeperatorColor = 0xFFFFFFFF;
@@ -1026,10 +1026,10 @@ ZListe::~ZListe() {}
 //! \param me The event triggered by the mouse input
 void ZListe::doMausEreignis(MausEreignis& me, bool userRet)
 {
-    if (ZeichnungHintergrund::hatStyle(Style::VScroll) && vertikalScrollBar)
+    if (DrawableBackground::hatStyle(Style::VScroll) && vertikalScrollBar)
     {
         int rbr = 0;
-        if (rahmen && ZeichnungHintergrund::hatStyle(Style::Rahmen))
+        if (rahmen && DrawableBackground::hatStyle(Style::Rahmen))
             rbr = rahmen->getRBreite();
         if (((me.mx > gr.x - 15 - rbr) || me.id == ME_UScroll
                 || me.id == ME_DScroll)
@@ -1041,15 +1041,15 @@ void ZListe::doMausEreignis(MausEreignis& me, bool userRet)
         }
         me.my += vertikalScrollBar->getScroll();
     }
-    me.my -= (rahmen && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen))
+    me.my -= (rahmen && DrawableBackground::hatStyle(TextFeld::Style::Rahmen))
                ? rahmen->getRBreite() * 2
                : 0;
-    me.mx -= (rahmen && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen))
+    me.mx -= (rahmen && DrawableBackground::hatStyle(TextFeld::Style::Rahmen))
                ? rahmen->getRBreite() * 2
                : 0;
     int ySum = 0;
     int index = 0;
-    for (Zeichnung* entry : list)
+    for (Drawable* entry : list)
     {
         entry->doPublicMausEreignis(me);
         ySum += entry->getHeight();
@@ -1057,11 +1057,11 @@ void ZListe::doMausEreignis(MausEreignis& me, bool userRet)
         if (index < list.getLastIndex())
         {
             ySum
-                += ZeichnungHintergrund::hatStyle(ZListe::Style::EntrySeperator)
+                += DrawableBackground::hatStyle(ZListe::Style::EntrySeperator)
                      ? entrySeperatorSize
                      : 0;
             me.my
-                -= ZeichnungHintergrund::hatStyle(ZListe::Style::EntrySeperator)
+                -= DrawableBackground::hatStyle(ZListe::Style::EntrySeperator)
                      ? entrySeperatorSize
                      : 0;
         }
@@ -1070,19 +1070,19 @@ void ZListe::doMausEreignis(MausEreignis& me, bool userRet)
     me.my
         += ySum
                  + (rahmen
-                     && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen))
+                     && DrawableBackground::hatStyle(TextFeld::Style::Rahmen))
              ? rahmen->getRBreite() * 2
              : 0;
-    me.mx += (rahmen && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen))
+    me.mx += (rahmen && DrawableBackground::hatStyle(TextFeld::Style::Rahmen))
                ? rahmen->getRBreite() * 2
                : 0;
-    if (ZeichnungHintergrund::hatStyle(Style::VScroll) && vertikalScrollBar)
+    if (DrawableBackground::hatStyle(Style::VScroll) && vertikalScrollBar)
         me.my -= vertikalScrollBar->getScroll();
 }
 
 //! Adds an entry
 //! \param entry The drawing to add
-void ZListe::addEintrag(Zeichnung* entry)
+void ZListe::addEintrag(Drawable* entry)
 {
     rend = 1;
     list.add(entry);
@@ -1091,7 +1091,7 @@ void ZListe::addEintrag(Zeichnung* entry)
 //! Changes an entry
 //! \param pos The index of the entry
 //! \param entry The new drawing
-void ZListe::setEintrag(int pos, Zeichnung* entry)
+void ZListe::setEintrag(int pos, Drawable* entry)
 {
     rend = 1;
     list.set(entry, pos);
@@ -1128,11 +1128,11 @@ void ZListe::setVScrollZuEintrag(int eintrag)
         if (eintrag > list.getLastIndex()) eintrag = list.getLastIndex();
         int y = 0;
         int index = 0;
-        for (Zeichnung* entry : list)
+        for (Drawable* entry : list)
         {
             y += entry->getHeight();
             if (index < list.getLastIndex())
-                y += ZeichnungHintergrund::hatStyle(
+                y += DrawableBackground::hatStyle(
                          ZListe::Style::EntrySeperator)
                        ? entrySeperatorSize
                        : 0;
@@ -1149,11 +1149,11 @@ void ZListe::updateVScroll()
     {
         int y = 0;
         int index = 0;
-        for (Zeichnung* entry : list)
+        for (Drawable* entry : list)
         {
             y += entry->getHeight();
             if (index < list.getLastIndex())
-                y += ZeichnungHintergrund::hatStyle(
+                y += DrawableBackground::hatStyle(
                          ZListe::Style::EntrySeperator)
                        ? entrySeperatorSize
                        : 0;
@@ -1162,7 +1162,7 @@ void ZListe::updateVScroll()
         vertikalScrollBar->update(y,
             gr.y
                 - ((rahmen
-                       && ZeichnungHintergrund::hatStyle(
+                       && DrawableBackground::hatStyle(
                            TextFeld::Style::Rahmen))
                         ? rahmen->getRBreite() * 2
                         : 0));
@@ -1185,7 +1185,7 @@ void ZListe::setEntrySeperatorColor(int color)
 //! \param te The event
 void ZListe::doTastaturEreignis(TastaturEreignis& te)
 {
-    for (Zeichnung* entry : list)
+    for (Drawable* entry : list)
         entry->doTastaturEreignis(te);
 }
 
@@ -1194,8 +1194,8 @@ void ZListe::doTastaturEreignis(TastaturEreignis& te)
 //! function \return 1 if the drawing has changed since the last call
 bool ZListe::tick(double tickVal)
 {
-    bool ret = ZeichnungHintergrund::tick(tickVal);
-    for (Zeichnung* entry : list)
+    bool ret = DrawableBackground::tick(tickVal);
+    for (Drawable* entry : list)
         ret |= entry->tick(tickVal);
     return ret;
 }
@@ -1204,9 +1204,9 @@ bool ZListe::tick(double tickVal)
 //! \param zRObj The image to draw into
 void ZListe::render(Bild& rObj)
 {
-    ZeichnungHintergrund::render(rObj);
+    DrawableBackground::render(rObj);
     int index = 0;
-    int rbr = rahmen && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen)
+    int rbr = rahmen && DrawableBackground::hatStyle(TextFeld::Style::Rahmen)
                 ? rahmen->getRBreite()
                 : 0;
     bool vs = vertikalScrollBar && hatStyle(Style::VScroll);
@@ -1214,13 +1214,13 @@ void ZListe::render(Bild& rObj)
             gr - Punkt(rbr, rbr) * 2 - Punkt(vs ? 15 : 0, 0)))
     {
         if (vs) rObj.addScrollOffset(0, vertikalScrollBar->getScroll());
-        for (Zeichnung* entry : list)
+        for (Drawable* entry : list)
         {
             entry->setWidth(gr.x - rbr * 2 - (vs ? 15 : 0));
             entry->render(rObj);
             rObj.addScrollOffset(0, -entry->getHeight());
             if (index < list.getLastIndex()
-                && ZeichnungHintergrund::hatStyle(
+                && DrawableBackground::hatStyle(
                     ZListe::Style::EntrySeperator))
             {
                 for (int i = 0; i < entrySeperatorSize; i++)
@@ -1244,12 +1244,12 @@ int ZListe::getKlickEintrag(int my)
     if (my < 0) return -1;
     int index = 0;
     int y = 0;
-    for (Zeichnung* entry : list)
+    for (Drawable* entry : list)
     {
         if (my < y) return index;
         y += entry->getHeight();
         if (index < list.getLastIndex())
-            y += ZeichnungHintergrund::hatStyle(ZListe::Style::EntrySeperator)
+            y += DrawableBackground::hatStyle(ZListe::Style::EntrySeperator)
                    ? entrySeperatorSize
                    : 0;
         index++;
@@ -1265,10 +1265,10 @@ int ZListe::getEintragAnzahl() const
 
 //! Returns the index of an entry
 //! \param zEntry The drawing
-int ZListe::getEintragPos(Zeichnung* zEntry)
+int ZListe::getEintragPos(Drawable* zEntry)
 {
     int index = 0;
-    for (Zeichnung* entry : list)
+    for (Drawable* entry : list)
     {
         if (zEntry == entry) return index;
         index++;
@@ -1278,14 +1278,14 @@ int ZListe::getEintragPos(Zeichnung* zEntry)
 
 //! Returns an entry
 //! \param pos The index of the entry
-Zeichnung* ZListe::getEintrag(int pos) const
+Drawable* ZListe::getEintrag(int pos) const
 {
     return list.get(pos);
 }
 
 //! Returns an entry without increased reference counter
 //! \param pos The index of the entry
-Zeichnung* ZListe::zEintrag(int pos) const
+Drawable* ZListe::zEintrag(int pos) const
 {
     return list.get(pos);
 }
@@ -1293,15 +1293,15 @@ Zeichnung* ZListe::zEintrag(int pos) const
 //! Returns the needed height
 int ZListe::getNeededHeight() const
 {
-    int y = (rahmen && ZeichnungHintergrund::hatStyle(TextFeld::Style::Rahmen))
+    int y = (rahmen && DrawableBackground::hatStyle(TextFeld::Style::Rahmen))
               ? rahmen->getRBreite() * 2
               : 0;
     int index = 0;
-    for (Zeichnung* entry : list)
+    for (Drawable* entry : list)
     {
         y += entry->getHeight();
         if (index < list.getLastIndex())
-            y += ZeichnungHintergrund::hatStyle(ZListe::Style::EntrySeperator)
+            y += DrawableBackground::hatStyle(ZListe::Style::EntrySeperator)
                    ? entrySeperatorSize
                    : 0;
         index++;

+ 10 - 10
List.h

@@ -19,10 +19,10 @@ namespace Framework
 
     //! A drawing of the 2D GUI Framework that displays a list from which
     //! the user can select and deselect elements
-    class AuswahlListe : public ZeichnungHintergrund
+    class AuswahlListe : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! Specifies whether the list entries have a border
@@ -309,10 +309,10 @@ namespace Framework
         DLLEXPORT inline bool hatMsStyleNicht(int pos, __int64 style) const;
     };
 
-    class ZListe : public ZeichnungHintergrund
+    class ZListe : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! draws a seperation line between the entries
@@ -326,7 +326,7 @@ namespace Framework
     private:
         int entrySeperatorSize;
         int entrySeperatorColor;
-        RCArray<Zeichnung> list;
+        RCArray<Drawable> list;
 
     protected:
         //! Processes mouse messages
@@ -340,11 +340,11 @@ namespace Framework
         DLLEXPORT virtual ~ZListe();
         //! Adds an entry
         //! \param entry The drawing to add
-        DLLEXPORT void addEintrag(Zeichnung* entry);
+        DLLEXPORT void addEintrag(Drawable* entry);
         //! Changes an entry
         //! \param pos The index of the entry
         //! \param entry The new drawing
-        DLLEXPORT void setEintrag(int pos, Zeichnung* entry);
+        DLLEXPORT void setEintrag(int pos, Drawable* entry);
         //! Swaps the positions of two entries
         //! \param vpos The index of the first entry
         //! \param npos The index of the second entry
@@ -384,13 +384,13 @@ namespace Framework
         DLLEXPORT int getEintragAnzahl() const;
         //! Returns the index of an entry
         //! \param zEntry The drawing
-        DLLEXPORT int getEintragPos(Zeichnung* zEntry);
+        DLLEXPORT int getEintragPos(Drawable* zEntry);
         //! Returns an entry
         //! \param pos The index of the entry
-        DLLEXPORT Zeichnung* getEintrag(int pos) const;
+        DLLEXPORT Drawable* getEintrag(int pos) const;
         //! Returns an entry without increased reference counter
         //! \param pos The index of the entry
-        DLLEXPORT Zeichnung* zEintrag(int pos) const;
+        DLLEXPORT Drawable* zEintrag(int pos) const;
         //! Returns the needed height
         DLLEXPORT int getNeededHeight() const;
         //! returns the size of the entry seperator

+ 4 - 4
M2DPreview.cpp

@@ -13,7 +13,7 @@ using namespace Framework;
 // Contents of the M2DVorschau class from M2DPreview.h
 // Constructor
 M2DVorschau::M2DVorschau()
-    : ZeichnungHintergrund()
+    : DrawableBackground()
 {
     mdl = 0;
     mx = -1;
@@ -93,14 +93,14 @@ bool M2DVorschau::tick(double tv)
     rend |= mdl ? mdl->tick(tv) : 0;
     rend |= af ? af->tick(tv) : 0;
     rend |= ram ? ram->tick(tv) : 0;
-    return ZeichnungHintergrund::tick(tv);
+    return DrawableBackground::tick(tv);
 }
 
 void M2DVorschau::render(Bild& rb)
 {
     removeStyle(Style::VScroll | Style::HScroll);
     if (hatStyleNicht(Style::Sichtbar)) return;
-    ZeichnungHintergrund::render(rb);
+    DrawableBackground::render(rb);
     if (!rb.setDrawOptions(innenPosition, innenSize)) return;
     if (mdl)
     {
@@ -122,7 +122,7 @@ Model2D* M2DVorschau::getModel() const
     return mdl ? dynamic_cast<Model2D*>(mdl->getThis()) : 0;
 }
 
-Zeichnung* M2DVorschau::dublizieren() const
+Drawable* M2DVorschau::dublizieren() const
 {
     M2DVorschau* ret = new M2DVorschau();
     if (mdl) ret->setModel2D(mdl->getModel());

+ 3 - 3
M2DPreview.h

@@ -11,10 +11,10 @@ namespace Framework
     struct MausEreignis; //! MouseEvent.h
 
     //! A 2D GUI framework drawing that displays a 2D model
-    class M2DVorschau : public ZeichnungHintergrund
+    class M2DVorschau : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! If this style is set, the user can scale the model
@@ -64,6 +64,6 @@ namespace Framework
         DLLEXPORT Model2D* getModel() const;
         //! Creates a copy of the drawing that can be used without affecting the
         //! original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework

+ 3 - 3
Model2D.cpp

@@ -1068,7 +1068,7 @@ Model2DData* Model2DObject::zModel() const
 // Contents of the Model2D class from Model2D.h
 // Constructor
 Model2D::Model2D()
-    : Zeichnung()
+    : Drawable()
 {
     farbe = 0;
     style = 0;
@@ -1154,14 +1154,14 @@ void Model2D::setFarbe(int f)
 
 bool Model2D::tick(double tickVal)
 {
-    return Zeichnung::tick(tickVal);
+    return Drawable::tick(tickVal);
 }
 
 void Model2D::render(Bild& zRObj)
 {
     if (!rData || hatStyleNicht(Model2D::Style::Sichtbar) || !rData->polygons)
         return;
-    Zeichnung::render(zRObj);
+    Drawable::render(zRObj);
     int num = 0;
     for (auto p : *rData->vListen)
     {

+ 2 - 2
Model2D.h

@@ -175,10 +175,10 @@ namespace Framework
     };
 
     //! A drawing of a model
-    class Model2D : public Zeichnung
+    class Model2D : public Drawable
     {
     public:
-        class Style : public Zeichnung::Style
+        class Style : public Drawable::Style
         {
         public:
             static const __int64 Textur

+ 3 - 3
Model3D.cpp

@@ -725,7 +725,7 @@ Textur* Model3DTextur::zPolygonTextur(int i) const
 // Contents of the Model3D class
 // Constructor
 Model3D::Model3D()
-    : Zeichnung3D()
+    : Drawable3D()
 {
     model = 0;
     textur = 0;
@@ -800,7 +800,7 @@ int Model3D::errechneMatrizen(
         ret = skelett->calculateMatrix(welt, matBuffer, size, viewProj);
     else if (model)
         ret = model->kalkulateMatrix(welt, matBuffer, size, viewProj);
-    if (!ret) return Zeichnung3D::errechneMatrizen(viewProj, matBuffer);
+    if (!ret) return Drawable3D::errechneMatrizen(viewProj, matBuffer);
     return ret;
 }
 
@@ -814,7 +814,7 @@ bool Model3D::tick(double tickval)
     {
         radius += skelett->getRadius();
     }
-    return Zeichnung3D::tick(tickval);
+    return Drawable3D::tick(tickval);
 }
 
 //! for updating shader data

+ 1 - 1
Model3D.h

@@ -291,7 +291,7 @@ namespace Framework
 
     //! A drawing of the 3D framework that can display a 3D model with
     //! texture and animation
-    class Model3D : public Zeichnung3D
+    class Model3D : public Drawable3D
     {
     protected:
         Skeleton* skelett;

+ 6 - 6
Progress.cpp

@@ -12,7 +12,7 @@ using namespace Framework;
 // Contents of the FBalken class from Progress.h
 // Constructor
 FBalken::FBalken()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       maxAk(0),
       ak(0),
       fRahmen(0),
@@ -152,12 +152,12 @@ void FBalken::setSSize(unsigned char gr) // sets the font size
 void FBalken::render(Bild& zRObj) // renders into zRObj
 {
     if (!hatStyle(Style::Sichtbar)) return;
-    lockZeichnung();
+    lockDrawable();
     removeStyle(Style::VScroll | Style::HScroll);
-    ZeichnungHintergrund::render(zRObj);
+    DrawableBackground::render(zRObj);
     if (!zRObj.setDrawOptions(pos, gr))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     int xx = 0;
@@ -182,7 +182,7 @@ void FBalken::render(Bild& zRObj) // renders into zRObj
     if (!zRObj.setDrawOptions(xx, yy, b, h))
     {
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     int rbr = 0;
@@ -253,7 +253,7 @@ void FBalken::render(Bild& zRObj) // renders into zRObj
             schriftFarbe);
     }
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // constant

+ 2 - 2
Progress.h

@@ -13,10 +13,10 @@ namespace Framework
     class TextRenderer;
 
     //! A 2D GUI framework drawing that renders a progress bar
-    class FBalken : public ZeichnungHintergrund
+    class FBalken : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! Determines whether a percentage is drawn

+ 15 - 15
Screen.cpp

@@ -33,12 +33,12 @@ Bildschirm::Bildschirm(WFenster* f)
     : ReferenceCounter(),
       api(0),
       fenster(f),
-      members(new RCArray<Zeichnung>()),
+      members(new RCArray<Drawable>()),
       fillColor(0xFF000000),
       deckFarbe(0),
       onTop(0),
       renderOnTop(0),
-      renderZeichnungen(1),
+      renderDrawables(1),
       rendering(0),
       renderZeit(new ZeitMesser()),
       tips(new RCArray<ToolTip>()),
@@ -105,11 +105,11 @@ bool tr) // specifies whether to check for updates before rendering
     testRend = tr;
 }
 
-void Bildschirm::setRenderZeichnungen(
+void Bildschirm::setRenderDrawables(
 bool rO) // specifies whether drawings are rendered
 {
     lock();
-    renderZeichnungen = rO;
+    renderDrawables = rO;
     rend = 1;
     unlock();
 }
@@ -121,7 +121,7 @@ bool onTop) // specifies whether the onTop drawing is rendered
     rend = 1;
 }
 
-void Bildschirm::setOnTopZeichnung(Zeichnung* obj) // sets the onTop drawing
+void Bildschirm::setOnTopDrawable(Drawable* obj) // sets the onTop drawing
 {
     lock();
     if (onTop) onTop->release();
@@ -136,7 +136,7 @@ void Bildschirm::setdeckFarbe(int f) // sets the overlay color
     rend = 1;
 }
 
-void Bildschirm::addMember(Zeichnung* obj) // Adds a drawing
+void Bildschirm::addMember(Drawable* obj) // Adds a drawing
 {
     lock();
     members->add(obj);
@@ -144,7 +144,7 @@ void Bildschirm::addMember(Zeichnung* obj) // Adds a drawing
     unlock();
 }
 
-void Bildschirm::removeMember(Zeichnung* zObj) // Removes a drawing
+void Bildschirm::removeMember(Drawable* zObj) // Removes a drawing
 {
     lock();
     for (int i = 0; i < members->getEintragAnzahl(); i++)
@@ -192,7 +192,7 @@ void Bildschirm::tick(double tickval)
             i->tick(tickval);
             if (i->getReferenceCount() == 1) i.remove();
         }
-        for (Zeichnung* i : *members)
+        for (Drawable* i : *members)
             rend |= i->tick(tickval);
     }
     else if (onTop)
@@ -294,7 +294,7 @@ Bild* Bildschirm::zRenderBild() const
     return api->zUIRenderBild();
 }
 
-ArrayIterator<Zeichnung*>
+ArrayIterator<Drawable*>
 Bildschirm::getMembers() const // returns the drawings
 {
     return members->begin();
@@ -417,19 +417,19 @@ void Bildschirm2D::render() // Draws the image
         lock();
         renderZeit->messungStart();
         api->beginFrame(fill && (rend || !testRend), 0, fillColor);
-        if (renderZeichnungen)
+        if (renderDrawables)
         {
             if (renderOnTop && deckFarbe
                 && (deckFarbe & (fillColor | 0xFF000000)) == deckFarbe)
             {
                 ui->setAlpha(255 - (unsigned char)(deckFarbe >> 24));
-                for (Zeichnung* z : *members)
+                for (Drawable* z : *members)
                     z->render(*ui); // draw to intermediate buffer
                 ui->releaseAlpha();
             }
             else
             {
-                for (Zeichnung* z : *members)
+                for (Drawable* z : *members)
                     z->render(*ui); // draw to intermediate buffer
                 if (renderOnTop && deckFarbe)
                     ui->alphaRegion(
@@ -609,19 +609,19 @@ void Bildschirm3D::render() // Draws the image
     Bild* ui = api->zUIRenderBild();
     if ((rend || !testRend) && ui)
     {
-        if (renderZeichnungen)
+        if (renderDrawables)
         {
             if (renderOnTop && deckFarbe
                 && (deckFarbe & (fillColor | 0xFF000000)) == deckFarbe)
             {
                 ui->setAlpha(255 - (unsigned char)(deckFarbe >> 24));
-                for (Zeichnung* z : *members)
+                for (Drawable* z : *members)
                     z->render(*ui); // draw to intermediate buffer
                 ui->releaseAlpha();
             }
             else
             {
-                for (Zeichnung* z : *members)
+                for (Drawable* z : *members)
                     z->render(*ui); // draw to intermediate buffer
                 if (renderOnTop && deckFarbe)
                     ui->alphaRegion(

+ 12 - 12
Screen.h

@@ -36,8 +36,8 @@ namespace Framework
     class Bild;              //! Image.h
     class WFenster;          //! Window.h
     class Bildschirm;        //! from this file
-    class Zeichnung;         //! Drawing.h
-    class Zeichnung3D;       //! Drawing3D.h
+    class Drawable;         //! Drawing.h
+    class Drawable3D;       //! Drawing3D.h
     class ZeitMesser;        //! Time.h
     struct MausEreignis;     //! MouseEvent.h
     struct TastaturEreignis; //! KeyboardEvent.h
@@ -76,12 +76,12 @@ namespace Framework
     protected:
         GraphicsApi* api;
         WFenster* fenster;
-        RCArray<Zeichnung>* members;
+        RCArray<Drawable>* members;
         int fillColor;
         int deckFarbe;
-        Zeichnung* onTop;
+        Drawable* onTop;
         bool renderOnTop;
-        bool renderZeichnungen;
+        bool renderDrawables;
         bool rendering;
         ZeitMesser* renderZeit;
         Critical cs;
@@ -130,7 +130,7 @@ namespace Framework
         DLLEXPORT virtual void setTestRend(bool tr);
         //! Specifies whether 2D GUI drawings should be drawn
         //! (set by default) \param rO 1 if drawings should be drawn
-        DLLEXPORT virtual void setRenderZeichnungen(bool rO);
+        DLLEXPORT virtual void setRenderDrawables(bool rO);
         //! Specifies whether a drawing should be drawn above all other drawings
         //! (not set by default) \param onTop 1 if a drawing should be drawn
         //! above everything
@@ -138,20 +138,20 @@ namespace Framework
         //! Sets the drawing to be drawn above everything, if setOnTop(1) was
         //! set
         //! \param obj The drawing
-        DLLEXPORT virtual void setOnTopZeichnung(Zeichnung* obj);
+        DLLEXPORT virtual void setOnTopDrawable(Drawable* obj);
         //! Sets a color that is alpha-blended over the entire image after
         //! drawing, if setOnTop(1) was set. The drawing set with
-        //! setOnTopZeichnung() is not affected \param f The color in A8R8G8B8
+        //! setOnTopDrawable() is not affected \param f The color in A8R8G8B8
         //! format
         DLLEXPORT virtual void setdeckFarbe(int f);
         //! Adds a drawing to the image that is always drawn when
-        //! setRenderZeichnungen(1) was set. \param obj The drawing
-        DLLEXPORT virtual void addMember(Zeichnung* obj);
+        //! setRenderDrawables(1) was set. \param obj The drawing
+        DLLEXPORT virtual void addMember(Drawable* obj);
         //! Removes a drawing from the image. Must not be called while
         //! doMausEreignis(), doTastaturEreignis(), tick() or render() is
         //! being called. \param obj The drawing (without increased reference
         //! counter)
-        DLLEXPORT virtual void removeMember(Zeichnung* zObj);
+        DLLEXPORT virtual void removeMember(Drawable* zObj);
         //! Draws an image and presents it on the screen
         DLLEXPORT virtual void render();
         //! Sets the color used to fill the image before drawing, if
@@ -191,7 +191,7 @@ namespace Framework
         //! the 2D GUI drawings of the framework are drawn
         DLLEXPORT virtual Bild* zRenderBild() const;
         //! Returns an array of 2D GUI drawings in the image
-        DLLEXPORT virtual ArrayIterator<Zeichnung*> getMembers() const;
+        DLLEXPORT virtual ArrayIterator<Drawable*> getMembers() const;
         //! Returns the color in A8R8G8B8 format used to fill the image
         //! before drawing
         DLLEXPORT virtual int getFillFarbe() const;

+ 9 - 9
SelectionBox.cpp

@@ -17,7 +17,7 @@ using namespace Framework;
 // Contents of the AuswahlBox class from SelectionBox.h
 // Constructor
 AuswahlBox::AuswahlBox()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       textRd(0),
       msStyle(0),
       members(new RCArray<TextFeld>()),
@@ -840,7 +840,7 @@ bool AuswahlBox::tick(double tickVal) // tick
     rend |= ausfahren->tick(tickVal);
     this->tickval += tickVal * 300;
     int val = (int)this->tickval;
-    if (val < 1) return ZeichnungHintergrund::tick(tickVal);
+    if (val < 1) return DrawableBackground::tick(tickVal);
     this->tickval -= val;
     int maxHeight = rahmen ? rahmen->getRBreite() : 0;
     if (hatStyleNicht(Style::MultiStyled))
@@ -884,7 +884,7 @@ bool AuswahlBox::tick(double tickVal) // tick
         else
             members->z(i)->tick(tickVal);
     }
-    return ZeichnungHintergrund::tick(tickVal);
+    return DrawableBackground::tick(tickVal);
 }
 
 void AuswahlBox::doTastaturEreignis(TastaturEreignis& te) // Keyboard
@@ -923,14 +923,14 @@ void AuswahlBox::render(Bild& zRObj) // renders into zRObj
 {
     if (hatStyle(Style::Sichtbar))
     {
-        lockZeichnung();
+        lockDrawable();
         int br = gr.x;
         int hi = gr.y + ausklappHeight;
         if ((ausklappHeight
                 && !zRObj.setDrawOptionsErzwingen(pos.x, pos.y, br, hi))
             || (!ausklappHeight && !zRObj.setDrawOptions(pos.x, pos.y, br, hi)))
         {
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
         int rbr = 0;
@@ -947,7 +947,7 @@ void AuswahlBox::render(Bild& zRObj) // renders into zRObj
                 && !zRObj.setDrawOptions(rbr, rbr, br - rbr * 2, hi - rbr * 2)))
         {
             zRObj.releaseDrawOptions();
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
         if (hatStyle(Style::Hintergrund))
@@ -1177,7 +1177,7 @@ void AuswahlBox::render(Bild& zRObj) // renders into zRObj
             {
                 zRObj.releaseDrawOptions();
                 zRObj.releaseDrawOptions();
-                unlockZeichnung();
+                unlockDrawable();
                 return;
             }
             int maxHeight = 0;
@@ -1509,7 +1509,7 @@ void AuswahlBox::render(Bild& zRObj) // renders into zRObj
         }
         zRObj.releaseDrawOptions();
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
     }
 }
 
@@ -2024,7 +2024,7 @@ bool AuswahlBox::hatMsStyleNicht(
     return (msStyle->get(i) | abStyle) != msStyle->get(i);
 }
 
-Zeichnung* AuswahlBox::dublizieren() const // Creates a copy of the drawing
+Drawable* AuswahlBox::dublizieren() const // Creates a copy of the drawing
 {
     AuswahlBox* obj = new AuswahlBox();
     obj->setPosition(pos);

+ 3 - 3
SelectionBox.h

@@ -17,10 +17,10 @@ namespace Framework
 
     //! A 2D GUI Framework drawing. Represents a box from which
     //! the user can select different values by expanding it
-    class AuswahlBox : public ZeichnungHintergrund
+    class AuswahlBox : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! If this flag is set, each value in the list has a border
@@ -605,7 +605,7 @@ namespace Framework
         //! the MultiStyled flag \param i The index of the entry
         //! \param abStyle The style
         DLLEXPORT inline bool hatMsStyleNicht(int i, __int64 abStyle) const;
-        DLLEXPORT Zeichnung*
+        DLLEXPORT Drawable*
         dublizieren() const override; //! Creates a copy of the drawing
     };
 } // namespace Framework

+ 3 - 3
Slider.cpp

@@ -6,7 +6,7 @@
 using namespace Framework;
 
 Slider::Slider()
-    : ZeichnungHintergrund()
+    : DrawableBackground()
 {
     value = 50;
 }
@@ -37,7 +37,7 @@ void Slider::doMausEreignis(MausEreignis& me, bool userRet)
         if (value > 100) value = 100;
         rend |= 1;
     }
-    ZeichnungHintergrund::doMausEreignis(me, userRet);
+    DrawableBackground::doMausEreignis(me, userRet);
 }
 
 // renders the drawing into a specific image
@@ -46,7 +46,7 @@ void Slider::render(Bild& zRObj)
 {
     if (hatStyle(Style::Sichtbar))
     {
-        ZeichnungHintergrund::render(zRObj);
+        DrawableBackground::render(zRObj);
         if (zRObj.setDrawOptions(pos, gr))
         {
             zRObj.drawLinieH(10, gr.y / 2, gr.x - 20, 0xFFFFFFFF);

+ 1 - 1
Slider.h

@@ -4,7 +4,7 @@
 
 namespace Framework
 {
-    class Slider : public ZeichnungHintergrund
+    class Slider : public DrawableBackground
     {
     private:
         float value;

+ 81 - 81
Table.cpp

@@ -14,8 +14,8 @@ using namespace Framework;
 // Contents of the ObjTabelle class from Table.h
 // Constructor
 ObjTabelle::ObjTabelle()
-    : ZeichnungHintergrund(),
-      members(new RCArray<RCArray<Zeichnung>>()),
+    : DrawableBackground(),
+      members(new RCArray<RCArray<Drawable>>()),
       spaltenNamen(new RCArray<Text>()),
       zeilenNamen(new RCArray<Text>()),
       spaltenBreite(new Array<int>()),
@@ -93,7 +93,7 @@ void ObjTabelle::doMausEreignis(
             {
                 for (int j = 0; j < spaltenAnzahl; ++j)
                 {
-                    Zeichnung* obj = zZeichnung(j, i);
+                    Drawable* obj = zDrawable(j, i);
                     if (obj) obj->doPublicMausEreignis(me);
                 }
             }
@@ -123,7 +123,7 @@ void ObjTabelle::doMausEreignis(
     me.my -= ((vertikalScrollBar && hatStyle(Style::VScroll))
                   ? vertikalScrollBar->getScroll()
                   : 0);
-    lockZeichnung();
+    lockDrawable();
     if (!me.verarbeitet && !aufScroll)
     {
         double ox
@@ -258,14 +258,14 @@ void ObjTabelle::doMausEreignis(
             for (int j = 0; j < spaltenAnzahl; ++j)
             {
                 bool b = me.verarbeitet;
-                Zeichnung* obj = zZeichnung(j, i);
+                Drawable* obj = zDrawable(j, i);
                 if (obj) obj->doPublicMausEreignis(me);
                 if (!b && me.verarbeitet && me.id == ME_PLinks)
                     selected = Punkt(j, i);
             }
         }
     }
-    unlockZeichnung();
+    unlockDrawable();
     me.verarbeitet = 1;
     me.mx = tmx;
     me.my = tmy;
@@ -285,8 +285,8 @@ void ObjTabelle::addSpalte(Text* name)
 void ObjTabelle::addSpalte(int sNum, const char* name) // insert column at sNum
 {
     if (sNum > spaltenAnzahl) return;
-    lockZeichnung();
-    members->add(new RCArray<Zeichnung>(), sNum);
+    lockDrawable();
+    members->add(new RCArray<Drawable>(), sNum);
     spaltenNamen->add(new Text(name), sNum);
     spaltenBreite->add(100, sNum);
     minSpaltenBreite->add(0, sNum);
@@ -303,7 +303,7 @@ void ObjTabelle::addSpalte(int sNum, const char* name) // insert column at sNum
     }
     ++spaltenAnzahl;
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::addSpalte(int sNum, Text* name)
@@ -325,7 +325,7 @@ void ObjTabelle::addZeile(Text* name)
 void ObjTabelle::addZeile(int zNum, const char* name) // insert row at zNum
 {
     if (zNum > zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     zeilenNamen->add(new Text(name), zNum);
     zeilenHeight->add(20, zNum);
     minZeilenHeight->add(0, zNum);
@@ -339,7 +339,7 @@ void ObjTabelle::addZeile(int zNum, const char* name) // insert row at zNum
     }
     ++zeilenAnzahl;
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::addZeile(int zNum, Text* name)
@@ -351,7 +351,7 @@ void ObjTabelle::addZeile(int zNum, Text* name)
 void ObjTabelle::removeSpalte(int sNum) // delete column
 {
     if (sNum >= spaltenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     members->remove(sNum);
     spaltenNamen->remove(sNum);
     spaltenBreite->remove(sNum);
@@ -364,7 +364,7 @@ void ObjTabelle::removeSpalte(int sNum) // delete column
     styles->remove(sNum);
     --spaltenAnzahl;
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::removeSpalte(const char* name)
@@ -380,7 +380,7 @@ void ObjTabelle::removeSpalte(Text* name)
 void ObjTabelle::removeZeile(int zNum) // delete row
 {
     if (zNum >= zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     zeilenNamen->remove(zNum);
     zeilenHeight->remove(zNum);
     minZeilenHeight->remove(zNum);
@@ -394,7 +394,7 @@ void ObjTabelle::removeZeile(int zNum) // delete row
     }
     --zeilenAnzahl;
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::removeZeile(const char* name)
@@ -427,7 +427,7 @@ void ObjTabelle::setSpaltePosition(int sNum, int pos)
         ++delPos;
     else
         ++insertPos;
-    lockZeichnung();
+    lockDrawable();
     members->add(members->get(sNum), insertPos);
     members->remove(delPos);
     spaltenNamen->add(spaltenNamen->get(sNum), insertPos);
@@ -446,7 +446,7 @@ void ObjTabelle::setSpaltePosition(int sNum, int pos)
     styles->add(styles->get(sNum), insertPos);
     styles->remove(delPos);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setZeilePosition(
@@ -469,7 +469,7 @@ void ObjTabelle::setZeilePosition(int zNum, int pos)
         ++delPos;
     else
         ++insertPos;
-    lockZeichnung();
+    lockDrawable();
     zeilenNamen->add(zeilenNamen->get(zNum), insertPos);
     zeilenNamen->remove(delPos);
     zeilenHeight->add(
@@ -511,15 +511,15 @@ void ObjTabelle::setZeilePosition(int zNum, int pos)
         }
     }
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void ObjTabelle::setZeichnungZ(
-    int sNum, int zNum, Zeichnung* obj) // sets a drawing
+void ObjTabelle::setDrawableZ(
+    int sNum, int zNum, Drawable* obj) // sets a drawing
 {
     if (sNum >= spaltenAnzahl || zNum >= zeilenAnzahl) return;
-    lockZeichnung();
-    if (!members->z(sNum)) members->set(new RCArray<Zeichnung>(), sNum);
+    lockDrawable();
+    if (!members->z(sNum)) members->set(new RCArray<Drawable>(), sNum);
     while (members->z(sNum)->getEintragAnzahl() <= zNum)
         members->z(sNum)->add(0);
     members->z(sNum)->set(obj, zNum);
@@ -532,30 +532,30 @@ void ObjTabelle::setZeichnungZ(
         obj->setHeight(zeilenHeight->get(zNum));
     }
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
-void ObjTabelle::setZeichnungZ(
-    const char* spaltenName, const char* zeilenName, Zeichnung* zZeichnung)
+void ObjTabelle::setDrawableZ(
+    const char* spaltenName, const char* zeilenName, Drawable* zDrawable)
 {
-    setZeichnungZ(
-        getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), zZeichnung);
+    setDrawableZ(
+        getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), zDrawable);
 }
 
-void ObjTabelle::setZeichnungZ(
-    Text* spaltenName, Text* zeilenName, Zeichnung* zZeichnung)
+void ObjTabelle::setDrawableZ(
+    Text* spaltenName, Text* zeilenName, Drawable* zDrawable)
 {
-    setZeichnungZ(
-        getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), zZeichnung);
+    setDrawableZ(
+        getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), zDrawable);
 }
 
 void ObjTabelle::setSpaltenBreite(int sNum, int br) // sets the column width
 {
     if (sNum >= spaltenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     spaltenBreite->set(br, sNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setSpaltenBreite(const char* name, int br)
@@ -571,10 +571,10 @@ void ObjTabelle::setSpaltenBreite(Text* name, int br)
 void ObjTabelle::setZeilenHeight(int zNum, int hi) // sets the row height
 {
     if (zNum >= zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     zeilenHeight->set(hi, zNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setZeilenHeight(const char* name, int hi)
@@ -591,10 +591,10 @@ void ObjTabelle::setMinSpaltenBreite(
     int sNum, int minBr) // sets the minimum column width
 {
     if (sNum >= spaltenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     minSpaltenBreite->set(minBr, sNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setMinSpaltenBreite(const char* name, int minBr)
@@ -611,10 +611,10 @@ void ObjTabelle::setMaxSpaltenBreite(
     int sNum, int maxBr) // sets the maximum column width
 {
     if (sNum >= spaltenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     maxSpaltenBreite->set(maxBr, sNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setMaxSpaltenBreite(const char* name, int maxBr)
@@ -631,10 +631,10 @@ void ObjTabelle::setMinZeilenHeight(
     int zNum, int minHi) // sets the minimum row height
 {
     if (zNum >= zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     minZeilenHeight->set(minHi, zNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setMinZeilenHeight(const char* name, int minHi)
@@ -651,10 +651,10 @@ void ObjTabelle::setMaxZeilenHeight(
     int zNum, int maxHi) // sets the maximum row height
 {
     if (zNum >= zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     maxZeilenHeight->set(maxHi, zNum);
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setMaxZeilenHeight(const char* name, int maxHi)
@@ -671,11 +671,11 @@ void ObjTabelle::setAuswahl(
     int sNum, int zNum) // selects the corresponding field
 {
     if (sNum >= spaltenAnzahl || zNum >= zeilenAnzahl) return;
-    lockZeichnung();
+    lockDrawable();
     selected.x = sNum;
     selected.y = zNum;
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void ObjTabelle::setAuswahl(const char* spaltenName, const char* zeilenName)
@@ -1005,17 +1005,17 @@ void ObjTabelle::removeMsStyle(
 
 bool ObjTabelle::tick(double tickVal) // tick Message
 {
-    lockZeichnung();
+    lockDrawable();
     for (int i = 0; i < zeilenAnzahl; ++i)
     {
         for (int j = 0; j < spaltenAnzahl; ++j)
         {
-            Zeichnung* obj = zZeichnung(j, i);
+            Drawable* obj = zDrawable(j, i);
             if (obj) rend |= obj->tick(tickVal);
         }
     }
-    unlockZeichnung();
-    return ZeichnungHintergrund::tick(tickVal);
+    unlockDrawable();
+    return DrawableBackground::tick(tickVal);
 }
 
 void ObjTabelle::doTastaturEreignis(TastaturEreignis& te)
@@ -1026,10 +1026,10 @@ void ObjTabelle::doTastaturEreignis(TastaturEreignis& te)
         return;
     if (tak && (te.verarbeitet || tak(takParam, this, te)))
     {
-        lockZeichnung();
-        if (zZeichnung(selected.x, selected.y))
+        lockDrawable();
+        if (zDrawable(selected.x, selected.y))
         {
-            zZeichnung(selected.x, selected.y)->doTastaturEreignis(te);
+            zDrawable(selected.x, selected.y)->doTastaturEreignis(te);
             if (!te.verarbeitet && te.id == TE_Press)
             {
                 if (te.virtualKey == T_Oben)
@@ -1054,7 +1054,7 @@ void ObjTabelle::doTastaturEreignis(TastaturEreignis& te)
                 }
             }
         }
-        unlockZeichnung();
+        unlockDrawable();
     }
     te.verarbeitet = 1;
     if (ntakc && te.verarbeitet && nTak)
@@ -1064,11 +1064,11 @@ void ObjTabelle::doTastaturEreignis(TastaturEreignis& te)
 void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
 {
     if (hatStyleNicht(Style::Sichtbar)) return;
-    ZeichnungHintergrund::render(zRObj);
-    lockZeichnung();
+    DrawableBackground::render(zRObj);
+    lockDrawable();
     if (!zRObj.setDrawOptions(innenPosition, innenSize))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     int xPos = 0;
@@ -1080,9 +1080,9 @@ void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
         int yPos = 0;
         if (vertikalScrollBar && hatStyle(Style::VScroll))
             yPos -= vertikalScrollBar->getScroll();
-        RCArray<Zeichnung>* tmp_zZeichnungs = members->z(s);
-        if (!tmp_zZeichnungs) continue;
-        for (int z = 0; z < zeilenAnzahl && tmp_zZeichnungs; ++z)
+        RCArray<Drawable>* tmp_zDrawables = members->z(s);
+        if (!tmp_zDrawables) continue;
+        for (int z = 0; z < zeilenAnzahl && tmp_zDrawables; ++z)
         {
             int zHi = zeilenHeight->hat(z) ? zeilenHeight->get(z) : 0;
             if (hatStyle(Style::Raster)) yPos += rasterBreite;
@@ -1092,7 +1092,7 @@ void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
                 vertikalScrollBar->getScrollData()->max
                     = yPos + vertikalScrollBar->getScroll();
         }
-        for (int z = zeilenAnzahl - 1; z >= 0 && tmp_zZeichnungs; z--)
+        for (int z = zeilenAnzahl - 1; z >= 0 && tmp_zDrawables; z--)
         {
             int zHi = zeilenHeight->hat(z) ? zeilenHeight->get(z) : 0;
             yPos -= zHi;
@@ -1103,8 +1103,8 @@ void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
                     zRObj.drawLinieHAlpha(
                         xPos, yPos + zHi + i, sBr, rasterFarbe);
             }
-            Zeichnung* obj
-                = tmp_zZeichnungs->hat(z) ? tmp_zZeichnungs->z(z) : 0;
+            Drawable* obj
+                = tmp_zDrawables->hat(z) ? tmp_zDrawables->z(z) : 0;
             if (obj)
             {
                 obj->setPosition(xPos, yPos);
@@ -1155,7 +1155,7 @@ void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
         horizontalScrollBar->getScrollData()->max
             = xPos + horizontalScrollBar->getScroll();
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // constant
@@ -1225,62 +1225,62 @@ Text* ObjTabelle::zZeilenName(int num) const
     return zeilenNamen->z(num);
 }
 
-Punkt ObjTabelle::getZeichnungPosition(
-    Zeichnung* zObj) const // returns the position of a drawing
+Punkt ObjTabelle::getDrawablePosition(
+    Drawable* zObj) const // returns the position of a drawing
 {
     for (int x = 0; x < spaltenAnzahl; ++x)
     {
         for (int y = 0; y < zeilenAnzahl; ++y)
         {
-            if (zZeichnung(x, y) == zObj) return Punkt(x, y);
+            if (zDrawable(x, y) == zObj) return Punkt(x, y);
         }
     }
     return Punkt(-1, -1);
 }
 
-Zeichnung* ObjTabelle::zZeichnung(
+Drawable* ObjTabelle::zDrawable(
     int sNum, int zNum) const // returns the drawing at the position
 {
     if (sNum < 0 || zNum < 0 || sNum >= spaltenAnzahl || zNum >= zeilenAnzahl)
         return 0;
     if (!members->z(sNum)) return 0;
-    RCArray<Zeichnung>* tmp = members->z(sNum);
+    RCArray<Drawable>* tmp = members->z(sNum);
     if (!tmp->hat(zNum)) return 0;
     return tmp ? tmp->z(zNum) : 0;
 }
 
-Zeichnung* ObjTabelle::zZeichnung(
+Drawable* ObjTabelle::zDrawable(
     const char* spaltenName, const char* zeilenName) const
 {
-    return zZeichnung(
+    return zDrawable(
         getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
 }
 
-Zeichnung* ObjTabelle::zZeichnung(Text* spaltenName, Text* zeilenName) const
+Drawable* ObjTabelle::zDrawable(Text* spaltenName, Text* zeilenName) const
 {
-    return zZeichnung(
+    return zDrawable(
         getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
 }
 
-Zeichnung* ObjTabelle::getZeichnung(
+Drawable* ObjTabelle::getDrawable(
     int sNum, int zNum) const // returns the drawing at the position
 {
     if (!members->z(sNum)) return 0;
-    RCArray<Zeichnung>* tmp = members->z(sNum);
+    RCArray<Drawable>* tmp = members->z(sNum);
     if (!tmp->hat(zNum)) return 0;
     return tmp ? tmp->get(zNum) : 0;
 }
 
-Zeichnung* ObjTabelle::getZeichnung(
+Drawable* ObjTabelle::getDrawable(
     const char* spaltenName, const char* zeilenName) const
 {
-    return getZeichnung(
+    return getDrawable(
         getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
 }
 
-Zeichnung* ObjTabelle::getZeichnung(Text* spaltenName, Text* zeilenName) const
+Drawable* ObjTabelle::getDrawable(Text* spaltenName, Text* zeilenName) const
 {
-    return getZeichnung(
+    return getDrawable(
         getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
 }
 
@@ -1611,7 +1611,7 @@ bool ObjTabelle::hatMsStyleNicht(Text* spaltenName,
         getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), style);
 }
 
-Zeichnung* ObjTabelle::dublizieren() const // Creates a copy of the table
+Drawable* ObjTabelle::dublizieren() const // Creates a copy of the table
 {
     ObjTabelle* obj = new ObjTabelle();
     obj->setPosition(pos);
@@ -1655,7 +1655,7 @@ Zeichnung* ObjTabelle::dublizieren() const // Creates a copy of the table
                     obj->setMaxZeilenHeight(z, maxZeilenHeight->get(z));
             }
             if (members->z(s) && members->z(s)->hat(z))
-                obj->setZeichnungZ(s, z, members->z(s)->get(z));
+                obj->setDrawableZ(s, z, members->z(s)->get(z));
             if (styles->z(s) && styles->z(s)->hat(z))
                 obj->setMsStyle(s, z, styles->z(s)->get(z));
             if (msaRam->z(s) && msaRam->z(s)->z(z))

+ 16 - 16
Table.h

@@ -14,10 +14,10 @@ namespace Framework
     class ObjTabelle; //! from this file
 
     //! Manages a table of drawings
-    class ObjTabelle : public ZeichnungHintergrund
+    class ObjTabelle : public DrawableBackground
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! If this flag is set, the user can resize the columns
@@ -83,7 +83,7 @@ namespace Framework
         };
 
     private:
-        RCArray<RCArray<Zeichnung>>* members;
+        RCArray<RCArray<Drawable>>* members;
         RCArray<Text>* spaltenNamen;
         RCArray<Text>* zeilenNamen;
         Array<int>* spaltenBreite;
@@ -189,21 +189,21 @@ namespace Framework
         //! \param sNum The index of the column
         //! \param zNum The index of the row
         //! \param obj The drawing to place in the cell
-        DLLEXPORT void setZeichnungZ(int sNum, int zNum, Zeichnung* obj);
+        DLLEXPORT void setDrawableZ(int sNum, int zNum, Drawable* obj);
         //! Sets a drawing to be placed in a specific cell.
         //! If a drawing already exists in the cell, it will be overwritten.
         //! \param spaltenName The name of the column
         //! \param zeilenName The name of the row
         //! \param obj The drawing to place in the cell
-        DLLEXPORT void setZeichnungZ(
-            const char* spaltenName, const char* zeilenName, Zeichnung* obj);
+        DLLEXPORT void setDrawableZ(
+            const char* spaltenName, const char* zeilenName, Drawable* obj);
         //! Sets a drawing to be placed in a specific cell.
         //! If a drawing already exists in the cell, it will be overwritten.
         //! \param spaltenName The name of the column
         //! \param zeilenName The name of the row
         //! \param obj The drawing to place in the cell
-        DLLEXPORT void setZeichnungZ(
-            Text* spaltenName, Text* zeilenName, Zeichnung* obj);
+        DLLEXPORT void setDrawableZ(
+            Text* spaltenName, Text* zeilenName, Drawable* obj);
         //! Sets the column width
         //! \param sNum The index of the column
         //! \param br The width in pixels
@@ -524,33 +524,33 @@ namespace Framework
         //! Searches for a drawing in the table and returns the column index
         //! as x and the row index as y. (-1, -1) if the object was not found
         //! \param zObj The drawing (without increased reference counter)
-        DLLEXPORT Punkt getZeichnungPosition(Zeichnung* zObj) const;
+        DLLEXPORT Punkt getDrawablePosition(Drawable* zObj) const;
         //! Returns the drawing in a specific cell of the table
         //! (without increased reference counter) \param sNum The index of
         //! the column \param zNum The index of the row
-        DLLEXPORT Zeichnung* zZeichnung(int sNum, int zNum) const;
+        DLLEXPORT Drawable* zDrawable(int sNum, int zNum) const;
         //! Returns the drawing in a specific cell of the table
         //! (without increased reference counter) \param spaltenName The name
         //! of the column \param zeilenName The name of the row
-        DLLEXPORT Zeichnung* zZeichnung(
+        DLLEXPORT Drawable* zDrawable(
             const char* spaltenName, const char* zeilenName) const;
         //! Returns the drawing in a specific cell of the table
         //! (without increased reference counter) \param spaltenName The name
         //! of the column \param zeilenName The name of the row
-        DLLEXPORT Zeichnung* zZeichnung(
+        DLLEXPORT Drawable* zDrawable(
             Text* spaltenName, Text* zeilenName) const;
         //! Returns the drawing in a specific cell of the table
         //! \param sNum The index of the column \param zNum The index of the row
-        DLLEXPORT Zeichnung* getZeichnung(int sNum, int zNum) const;
+        DLLEXPORT Drawable* getDrawable(int sNum, int zNum) const;
         //! Returns the drawing in a specific cell of the table
         //! \param spaltenName The name of the column
         //! \param zeilenName The name of the row
-        DLLEXPORT Zeichnung* getZeichnung(
+        DLLEXPORT Drawable* getDrawable(
             const char* spaltenName, const char* zeilenName) const;
         //! Returns the drawing in a specific cell of the table
         //! \param spaltenName The name of the column
         //! \param zeilenName The name of the row
-        DLLEXPORT Zeichnung* getZeichnung(
+        DLLEXPORT Drawable* getDrawable(
             Text* spaltenName, Text* zeilenName) const;
         //! Returns the width of a column in pixels
         //! \param num The index of the column
@@ -747,7 +747,7 @@ namespace Framework
             Text* spaltenName, Text* zeilenName, __int64 style) const;
         //! Creates a copy of the table that can be modified without
         //! affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework
 #endif

+ 31 - 31
TextField.cpp

@@ -247,7 +247,7 @@ TextStyle TextFeld::TextStyleManager::getTextStyle(int index) const
 // Contents of the TextFeld class from TextField.h
 // Constructor
 TextFeld::TextFeld()
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       tm(new TextStyleManager()),
       autoLineBreakSpacing(0),
       showChar(0),
@@ -514,36 +514,36 @@ void TextFeld::setCharEvent(
 
 void TextFeld::setText(Text* txt) // sets the displayed text
 {
-    lockZeichnung();
+    lockDrawable();
     if (!tm->text) tm->text = new Text();
     tm->text->setText(*txt);
     if (hatStyle(Style::VScroll)) updateVScroll();
     if (hatStyle(Style::HScroll)) updateHScroll();
-    unlockZeichnung();
+    unlockDrawable();
     rend = 1;
     txt->release();
 }
 
 void TextFeld::setTextZ(Text* txt) // sets a pointer to the displayed text
 {
-    lockZeichnung();
+    lockDrawable();
     if (tm->text) tm->text->release();
     tm->text = txt;
     if (hatStyle(Style::VScroll)) updateVScroll();
     if (hatStyle(Style::HScroll)) updateHScroll();
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 void TextFeld::setText(const char* txt) // sets the displayed text
 {
-    lockZeichnung();
+    lockDrawable();
     if (!tm->text) tm->text = new Text();
     tm->text->setText(txt);
     if (hatStyle(Style::VScroll)) updateVScroll();
     if (hatStyle(Style::HScroll)) updateHScroll();
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // sets the text with styles
@@ -567,7 +567,7 @@ void TextFeld::setText(const char* txt) // sets the displayed text
 //              FFFFFFFF is an 8-digit hex value
 void TextFeld::setFormattedText(const char* txt)
 {
-    lockZeichnung();
+    lockDrawable();
     if (!tm->text) tm->text = new Text();
     tm->textStyle.leeren();
     TextStyle current;
@@ -663,7 +663,7 @@ void TextFeld::setFormattedText(const char* txt)
     if (hatStyle(Style::VScroll)) updateVScroll();
     if (hatStyle(Style::HScroll)) updateHScroll();
     rend = 1;
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // inserts line breaks so that the text does not exceed the width of the text
@@ -830,9 +830,9 @@ void TextFeld::addZeile(const char* zeile) // appends a line
                     .fontSize);
             r->textFormatieren(txt, gr.x - ((int)vs * 15) - rbr * 2);
         }
-        lockZeichnung();
+        lockDrawable();
         tm->text->append(txt->getText());
-        unlockZeichnung();
+        unlockDrawable();
         txt->release();
         if (hatStyle(Style::VScroll)) updateVScroll();
         if (hatStyle(Style::HScroll)) updateHScroll();
@@ -866,12 +866,12 @@ void TextFeld::addZeile(const char* zeile, int color)
                     .fontSize);
             r->textFormatieren(txt, gr.x - ((int)vs * 15) - rbr * 2);
         }
-        lockZeichnung();
+        lockDrawable();
         tm->text->append(txt->getText());
         setSchriftFarbe(tm->text->getLength() - txt->getLength(),
             tm->text->getLength(),
             color);
-        unlockZeichnung();
+        unlockDrawable();
         txt->release();
         if (hatStyle(Style::VScroll)) updateVScroll();
         if (hatStyle(Style::HScroll)) updateHScroll();
@@ -1066,7 +1066,7 @@ void TextFeld::setVScrollZuZeile(int zeile) // scrolls to line
     if (vertikalScrollBar && tm->renderer && tm->renderer->getEintragAnzahl()
         && tm->text && hatStyle(Style::Mehrzeilig))
     {
-        lockZeichnung();
+        lockDrawable();
         tm->resetIteration();
         int len = tm->text->getLength();
         int y = 0;
@@ -1099,7 +1099,7 @@ void TextFeld::setVScrollZuZeile(int zeile) // scrolls to line
             }
             tm->nextStyle();
         }
-        unlockZeichnung();
+        unlockDrawable();
         vertikalScrollBar->scroll(y);
         rend = 1;
     }
@@ -1121,7 +1121,7 @@ void TextFeld::updateVScroll(int pos) // scrolls down
                 hi -= rahmen->getRBreite() * 2;
             if (hatStyle(Style::HScroll) && horizontalScrollBar) hi -= 15;
             int th = 0;
-            lockZeichnung();
+            lockDrawable();
             tm->resetIteration();
             int len = tm->text->getLength();
             const char* text = tm->text->getText();
@@ -1165,7 +1165,7 @@ void TextFeld::updateVScroll(int pos) // scrolls down
                 lastMax = max;
             }
             th += lastMax;
-            unlockZeichnung();
+            unlockDrawable();
             vertikalScrollBar->update(th, hi);
         }
         if (sPos - sPosZH < vertikalScrollBar->getScroll())
@@ -1180,7 +1180,7 @@ void TextFeld::updateVScroll(int pos) // scrolls down
 void TextFeld::updateHScroll(int pos) // scrolls to cursor position
 {
     if (pos == -1) pos = cpos;
-    lockZeichnung();
+    lockDrawable();
     if (horizontalScrollBar && tm->text && tm->renderer)
     {
         if (hatStyleNicht(Style::Mehrzeilig)) tm->text->remove('\n');
@@ -1220,7 +1220,7 @@ void TextFeld::updateHScroll(int pos) // scrolls to cursor position
         if (cbr < horizontalScrollBar->getScroll())
             horizontalScrollBar->scroll(cbr);
     }
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // Returns the width in pixels needed to fully display the current text with
@@ -1228,9 +1228,9 @@ void TextFeld::updateHScroll(int pos) // scrolls to cursor position
 int TextFeld::getNeededWidth()
 {
     int maxBr = 0;
-    lockZeichnung();
+    lockDrawable();
     if (tm->text && tm->renderer) maxBr = getTextWidth();
-    unlockZeichnung();
+    unlockDrawable();
     bool vs = vertikalScrollBar && hatStyle(Style::VScroll);
     bool r = rahmen && hatStyle(Style::Rahmen);
     return maxBr + (r ? rahmen->getRBreite() * 2 : 0) + (vs ? 15 : 0);
@@ -1241,9 +1241,9 @@ int TextFeld::getNeededWidth()
 int TextFeld::getNeededHeight()
 {
     int th = 0;
-    lockZeichnung();
+    lockDrawable();
     if (tm->text && tm->renderer) th = getTextHeight();
-    unlockZeichnung();
+    unlockDrawable();
     bool hs = horizontalScrollBar && hatStyle(Style::HScroll);
     bool r = rahmen && hatStyle(Style::Rahmen);
     return th + (r ? rahmen->getRBreite() * 2 : 0) + (hs ? 15 : 0);
@@ -1258,7 +1258,7 @@ bool TextFeld::tick(double tickval) // tick
         tickVal += tickval;
         if (tickVal >= 1) tickVal -= 1;
     }
-    return ZeichnungHintergrund::tick(tickval);
+    return DrawableBackground::tick(tickval);
 }
 
 void TextFeld::doTastaturEreignis(TastaturEreignis& te)
@@ -1486,12 +1486,12 @@ void TextFeld::doTastaturEreignis(TastaturEreignis& te)
 void TextFeld::render(Bild& zRObj) // draws to zRObj
 {
     if (hatStyleNicht(Style::Sichtbar)) return;
-    ZeichnungHintergrund::render(zRObj);
+    DrawableBackground::render(zRObj);
     if (!tm->text || !tm->renderer) return;
-    lockZeichnung();
+    lockDrawable();
     if (!zRObj.setDrawOptions(innenPosition, innenSize))
     {
-        unlockZeichnung();
+        unlockDrawable();
         return;
     }
     if (hatStyleNicht(Style::Mehrzeilig)) tm->text->remove('\n');
@@ -1518,7 +1518,7 @@ void TextFeld::render(Bild& zRObj) // draws to zRObj
         text = txtWithLineBreaks;
         len = txtWithLineBreaks.getLength();
     }
-    lockZeichnung();
+    lockDrawable();
     tm->resetIteration();
     if (thi == 0)
     {
@@ -1563,9 +1563,9 @@ void TextFeld::render(Bild& zRObj) // draws to zRObj
         }
         tm->nextStyle();
     }
-    unlockZeichnung();
+    unlockDrawable();
     zRObj.releaseDrawOptions();
-    unlockZeichnung();
+    unlockDrawable();
 }
 
 // Constant
@@ -1826,7 +1826,7 @@ Text TextFeld::getAutoLineBreakSpacing() const
     return autoLineBreakSpacing ? *autoLineBreakSpacing : Text("");
 }
 
-Zeichnung* TextFeld::dublizieren() const // Creates a copy of the drawing
+Drawable* TextFeld::dublizieren() const // Creates a copy of the drawing
 {
     TextFeld* obj = new TextFeld();
     obj->setPosition(pos);

+ 3 - 3
TextField.h

@@ -29,7 +29,7 @@ namespace Framework
     };
 
     //! Manages a text field
-    class TextFeld : public ZeichnungHintergrund
+    class TextFeld : public DrawableBackground
     {
     public:
         class TextStyleManager : public virtual ReferenceCounter
@@ -79,7 +79,7 @@ namespace Framework
             friend TextFeld;
         };
 
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             //! If this flag is not set, all line breaks are automatically
@@ -358,6 +358,6 @@ namespace Framework
         DLLEXPORT Text getAutoLineBreakSpacing() const;
         //! Creates a complete copy of the text field that can be modified
         //! without affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework

+ 16 - 16
ToolTip.cpp

@@ -15,7 +15,7 @@ using namespace Framework;
 // Contents of the ToolTip class from ToolTip.h
 // Constructor
 ToolTip::ToolTip(Bildschirm* zScreen)
-    : ZeichnungHintergrund(),
+    : DrawableBackground(),
       size(0, 0),
       animationSpeed(250),
       warten(1),
@@ -33,7 +33,7 @@ ToolTip::ToolTip(Bildschirm* zScreen)
     style = Style::MEIgnoreInside | Style::MEIgnoreParentInside
           | Style::MEIgnoreSichtbar | Style::MEIgnoreVerarbeitet
           | Style::Erlaubt;
-    members = new RCArray<Zeichnung>();
+    members = new RCArray<Drawable>();
     bildschirm->addToolTip(dynamic_cast<ToolTip*>(this->getThis()));
     setMausEreignis(_ret1ME);
 }
@@ -109,12 +109,12 @@ void ToolTip::doMausEreignis(MausEreignis& me, bool userRet)
 
 // Adds a drawing to the tooltip
 //  m: the new drawing
-void ToolTip::addMember(Zeichnung* m)
+void ToolTip::addMember(Drawable* m)
 {
     members->add(m);
 }
 
-void ToolTip::removeMember(Zeichnung* zM)
+void ToolTip::removeMember(Drawable* zM)
 {
     int index = 0;
     for (auto i : *members)
@@ -218,7 +218,7 @@ bool ToolTip::tick(double tickVal)
                 sichtbar = 1;
                 wartenCount = 0;
                 alpha = 0xFF;
-                ZeichnungHintergrund::setSize(0, 0);
+                DrawableBackground::setSize(0, 0);
             }
         }
         else
@@ -228,20 +228,20 @@ bool ToolTip::tick(double tickVal)
     {
         if (getBreite() < size.x)
         {
-            ZeichnungHintergrund::setSize(getBreite() + val, getHeight());
+            DrawableBackground::setSize(getBreite() + val, getHeight());
             if (getBreite() > size.x)
-                ZeichnungHintergrund::setSize(size.x, getHeight());
+                DrawableBackground::setSize(size.x, getHeight());
             rend = 1;
         }
         if (getHeight() < size.y)
         {
-            ZeichnungHintergrund::setSize(getBreite(), getHeight() + val);
+            DrawableBackground::setSize(getBreite(), getHeight() + val);
             if (getHeight() > size.y)
-                ZeichnungHintergrund::setSize(getBreite(), size.y);
+                DrawableBackground::setSize(getBreite(), size.y);
             rend = 1;
         }
     }
-    return ZeichnungHintergrund::tick(tickVal);
+    return DrawableBackground::tick(tickVal);
 }
 
 void ToolTip::render(Bild& zRObj)
@@ -256,10 +256,10 @@ void ToolTip::render(Bild& zRObj)
         if (getY() + getHeight() > zRObj.getHeight())
             setPosition(
                 getX(), getY() - (getY() + getHeight() - zRObj.getHeight()));
-        ZeichnungHintergrund::render(zRObj);
+        DrawableBackground::render(zRObj);
         Punkt p = pos;
         Punkt s = gr;
-        if (hatStyle(ZeichnungHintergrund::Style::Rahmen))
+        if (hatStyle(DrawableBackground::Style::Rahmen))
         {
             p += Punkt(getRahmenBreite(), getRahmenBreite());
             s -= Punkt(getRahmenBreite(), getRahmenBreite()) * 2;
@@ -290,14 +290,14 @@ Bildschirm* ToolTip::zBildschirm() const
 
 // Returns a specific member (without increased reference counter)
 //  i: the index of the member
-Zeichnung* ToolTip::zMember(int i) const
+Drawable* ToolTip::zMember(int i) const
 {
     return members->z(i);
 }
 
 // Returns a specific member
 //  i: the index of the member
-Zeichnung* ToolTip::getMember(int i) const
+Drawable* ToolTip::getMember(int i) const
 {
     return members->get(i);
 }
@@ -309,7 +309,7 @@ int ToolTip::getMemberAnzahl() const
 }
 
 // Creates a complete copy of a tooltip
-Zeichnung* ToolTip::dublizieren() const
+Drawable* ToolTip::dublizieren() const
 {
     ToolTip* ret = new ToolTip(bildschirm);
     ret->size = size;
@@ -323,7 +323,7 @@ Zeichnung* ToolTip::dublizieren() const
     ret->zeichnen = zeichnen;
     ret->mausIn2 = mausIn2;
     for (auto z : *members)
-        ret->addMember(dynamic_cast<Zeichnung*>(z->getThis()));
+        ret->addMember(dynamic_cast<Drawable*>(z->getThis()));
     return ret;
 }
 

+ 7 - 7
ToolTip.h

@@ -19,10 +19,10 @@ namespace Framework
 #ifdef WIN32
 #    pragma vtordisp(push, 2)
 #endif
-    class ToolTip : public ZeichnungHintergrund
+    class ToolTip : public DrawableBackground
     {
     private:
-        RCArray<Zeichnung>* members;
+        RCArray<Drawable>* members;
         Punkt size;
         double animationSpeed;
         double warten;
@@ -47,10 +47,10 @@ namespace Framework
         DLLEXPORT ~ToolTip();
         //! Adds a drawing to the tooltip
         //! \param m The new drawing
-        DLLEXPORT void addMember(Zeichnung* m);
+        DLLEXPORT void addMember(Drawable* m);
         //! Removes a drawing from the tooltip
         //! \param m The drawing
-        DLLEXPORT void removeMember(Zeichnung* zM);
+        DLLEXPORT void removeMember(Drawable* zM);
         //! Removes a drawing from the tooltip
         //! \param i The index of the drawing
         DLLEXPORT void removeMember(int i);
@@ -87,14 +87,14 @@ namespace Framework
         DLLEXPORT Bildschirm* zBildschirm() const;
         //! Returns a specific member (without increased reference counter)
         //! \param i The index of the member
-        DLLEXPORT Zeichnung* zMember(int i) const;
+        DLLEXPORT Drawable* zMember(int i) const;
         //! Returns a specific member
         //! \param i The index of the member
-        DLLEXPORT Zeichnung* getMember(int i) const;
+        DLLEXPORT Drawable* getMember(int i) const;
         //! Returns the number of drawings belonging to the tooltip
         DLLEXPORT int getMemberAnzahl() const;
         //! Creates a complete copy of a tooltip
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
         //! Checks whether the tooltip is currently visible
         DLLEXPORT bool isVisible() const;
     };

+ 4 - 4
UIDialog.cpp

@@ -43,9 +43,9 @@ UIDialog::~UIDialog() {}
 void UIDialog::adjustSize()
 {
     Punkt max = Punkt(0, 0);
-    for (Zeichnung* z : getMembers())
+    for (Drawable* z : getMembers())
     {
-        if (z->hatStyle(Zeichnung::Style::Sichtbar))
+        if (z->hatStyle(Drawable::Style::Sichtbar))
         {
             max.x = MAX(max.x, z->getX() + z->getBreite() + 5);
             max.y = MAX(max.y, z->getY() + z->getHeight() + 5);
@@ -61,7 +61,7 @@ void UIDialog::adjustSize()
 
 // Adds a drawing to the window
 //  obj: the drawing
-void UIDialog::addMember(Zeichnung* obj)
+void UIDialog::addMember(Drawable* obj)
 {
     Fenster::addMember(obj);
     adjustSize();
@@ -69,7 +69,7 @@ void UIDialog::addMember(Zeichnung* obj)
 
 // Removes a drawing from the window
 //  zObj: the drawing (without increased reference counter)
-void UIDialog::removeMember(Zeichnung* zObj)
+void UIDialog::removeMember(Drawable* zObj)
 {
     Fenster::removeMember(zObj);
     adjustSize();

+ 2 - 2
UIDialog.h

@@ -14,10 +14,10 @@ namespace Framework
         DLLEXPORT virtual ~UIDialog();
         //! Adds a drawing to the window
         //! \param obj The drawing
-        DLLEXPORT virtual void addMember(Zeichnung* obj) override;
+        DLLEXPORT virtual void addMember(Drawable* obj) override;
         //! Removes a drawing from the window
         //! \param zObj The drawing (without increased reference counter)
-        DLLEXPORT virtual void removeMember(Zeichnung* zObj) override;
+        DLLEXPORT virtual void removeMember(Drawable* zObj) override;
         //! Removes all drawings from the window
         DLLEXPORT virtual void removeAll() override;
     };

+ 86 - 86
UIMLView.cpp

@@ -20,9 +20,9 @@ UIMLElement::UIMLElement()
 
 UIMLElement::~UIMLElement() {}
 
-//! applies the layout parameters to a Zeichnung
+//! applies the layout parameters to a Drawable
 void UIMLElement::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -67,11 +67,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(la),
+                    *generalLayouter.zDrawableById(la),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* laz = generalLayouter.zZeichnungById(la);
+                Drawable* laz = generalLayouter.zDrawableById(la);
                 if (laz) x = laz->getX();
             }
         }
@@ -99,11 +99,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(la),
+                    *generalLayouter.zDrawableById(la),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* laz = generalLayouter.zZeichnungById(la);
+                Drawable* laz = generalLayouter.zDrawableById(la);
                 if (laz) x = laz->getX() + laz->getBreite();
             }
         }
@@ -131,11 +131,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(ra),
+                    *generalLayouter.zDrawableById(ra),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* raz = generalLayouter.zZeichnungById(ra);
+                Drawable* raz = generalLayouter.zDrawableById(ra);
                 if (raz) x = raz->getX() - z.getBreite();
             }
         }
@@ -163,11 +163,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(ta),
+                    *generalLayouter.zDrawableById(ta),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* taz = generalLayouter.zZeichnungById(ta);
+                Drawable* taz = generalLayouter.zDrawableById(ta);
                 if (taz) y = taz->getY();
             }
         }
@@ -195,11 +195,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(ta),
+                    *generalLayouter.zDrawableById(ta),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* taz = generalLayouter.zZeichnungById(ta);
+                Drawable* taz = generalLayouter.zDrawableById(ta);
                 if (taz) y = taz->getY() + taz->getHeight();
             }
         }
@@ -227,11 +227,11 @@ void UIMLElement::layout(XML::Element& element,
             if (ed.exists())
             {
                 generalLayouter.layout(*ed.begin().val(),
-                    *generalLayouter.zZeichnungById(ba),
+                    *generalLayouter.zDrawableById(ba),
                     pWidth,
                     pHeight,
                     generalLayouter);
-                Zeichnung* baz = generalLayouter.zZeichnungById(ba);
+                Drawable* baz = generalLayouter.zDrawableById(ba);
                 if (baz) y = baz->getY() - z.getHeight();
             }
         }
@@ -255,13 +255,13 @@ void UIMLElement::layout(XML::Element& element,
         y = calculateSize(yt, pHeight);
     }
     z.setPosition(x, y);
-    ZeichnungHintergrund* zh = dynamic_cast<ZeichnungHintergrund*>(&z);
+    DrawableBackground* zh = dynamic_cast<DrawableBackground*>(&z);
     if (zh)
     {
         if (element.hasAttribute("border"))
         {
             int br = (int)element.getAttributeValue("border");
-            zh->setStyle(ZeichnungHintergrund::Style::Rahmen, br > 0);
+            zh->setStyle(DrawableBackground::Style::Rahmen, br > 0);
             zh->setRahmenBreite((int)element.getAttributeValue("border"));
         }
         if (element.hasAttribute("border-color"))
@@ -274,10 +274,10 @@ void UIMLElement::layout(XML::Element& element,
     pHeight = z.getInnenHeight();
     for (auto i : getChildren(element))
     {
-        Zeichnung* z = 0;
+        Drawable* z = 0;
         if (i->hasAttribute("id"))
         {
-            z = generalLayouter.zZeichnungById(i->getAttributeValue("id"));
+            z = generalLayouter.zDrawableById(i->getAttributeValue("id"));
         }
         if (z)
         {
@@ -390,7 +390,7 @@ bool UIMLTextField::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("textfield");
 }
 
-Zeichnung* UIMLTextField::parseElement(
+Drawable* UIMLTextField::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     TextFeld* t = generalFactory.getFactory().createTextFeld(
@@ -401,7 +401,7 @@ Zeichnung* UIMLTextField::parseElement(
 }
 
 bool Framework::UIMLTextField::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     TextFeld* t = dynamic_cast<TextFeld*>(&z);
     if (!t) return false;
@@ -417,7 +417,7 @@ bool Framework::UIMLTextField::updateElement(
 }
 
 void UIMLTextField::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -485,7 +485,7 @@ bool UIMLButton::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("button");
 }
 
-Zeichnung* UIMLButton::parseElement(
+Drawable* UIMLButton::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     Knopf* k = generalFactory.getFactory().createKnopf(
@@ -495,7 +495,7 @@ Zeichnung* UIMLButton::parseElement(
 }
 
 bool Framework::UIMLButton::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     Knopf* k = dynamic_cast<Knopf*>(&z);
     if (!k) return false;
@@ -510,7 +510,7 @@ bool Framework::UIMLButton::updateElement(
 }
 
 void UIMLButton::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -532,7 +532,7 @@ bool UIMLCheck::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("check");
 }
 
-Zeichnung* UIMLCheck::parseElement(
+Drawable* UIMLCheck::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     KontrollKnopf* k = generalFactory.getFactory().createKontrollKnopf(
@@ -542,7 +542,7 @@ Zeichnung* UIMLCheck::parseElement(
 }
 
 bool Framework::UIMLCheck::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     KontrollKnopf* k = dynamic_cast<KontrollKnopf*>(&z);
     if (!k) return false;
@@ -557,7 +557,7 @@ bool Framework::UIMLCheck::updateElement(
 }
 
 void UIMLCheck::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -582,7 +582,7 @@ bool UIMLText::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("text");
 }
 
-Zeichnung* UIMLText::parseElement(
+Drawable* UIMLText::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     TextFeld* t = generalFactory.getFactory().createTextFeld(
@@ -593,7 +593,7 @@ Zeichnung* UIMLText::parseElement(
 }
 
 bool Framework::UIMLText::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     TextFeld* t = dynamic_cast<TextFeld*>(&z);
     if (!t) return false;
@@ -609,7 +609,7 @@ bool Framework::UIMLText::updateElement(
 }
 
 void UIMLText::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -677,7 +677,7 @@ bool UIMLTextArea::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("textarea");
 }
 
-Zeichnung* UIMLTextArea::parseElement(
+Drawable* UIMLTextArea::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     TextFeld* t = generalFactory.getFactory().createTextFeld(
@@ -688,7 +688,7 @@ Zeichnung* UIMLTextArea::parseElement(
 }
 
 bool Framework::UIMLTextArea::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     TextFeld* t = dynamic_cast<TextFeld*>(&z);
     if (!t) return false;
@@ -704,7 +704,7 @@ bool Framework::UIMLTextArea::updateElement(
 }
 
 void UIMLTextArea::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -774,7 +774,7 @@ bool UIMLTable::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("table");
 }
 
-Zeichnung* UIMLTable::parseElement(
+Drawable* UIMLTable::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     ObjTabelle* t = generalFactory.getFactory().createObjTabelle(
@@ -784,7 +784,7 @@ Zeichnung* UIMLTable::parseElement(
 }
 
 DLLEXPORT bool Framework::UIMLTable::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     ObjTabelle* t = dynamic_cast<ObjTabelle*>(&z);
     if (!t) return false;
@@ -811,7 +811,7 @@ DLLEXPORT bool Framework::UIMLTable::updateElement(
             {
                 if (t->getSpaltenAnzahl() < c) t->addSpalte(Text(c - 1));
                 if (numCols < c) numCols = c;
-                Zeichnung* z = t->zZeichnung(Text(c - 1), id);
+                Drawable* z = t->zDrawable(Text(c - 1), id);
                 if (!z
                     || !generalFactory.updateElement(
                         element, *z, generalFactory))
@@ -823,7 +823,7 @@ DLLEXPORT bool Framework::UIMLTable::updateElement(
                             t->setSpaltenBreite(Text(c - 1), z->getBreite());
                         if (z->getHeight() > t->getZeilenHeight(Text(id)))
                             t->setZeilenHeight(Text(id), z->getHeight());
-                        t->setZeichnungZ(Text(c - 1), id, z);
+                        t->setDrawableZ(Text(c - 1), id, z);
                     }
                 }
                 c++;
@@ -857,7 +857,7 @@ DLLEXPORT bool Framework::UIMLTable::updateElement(
 }
 
 void UIMLTable::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -883,8 +883,8 @@ void UIMLTable::layout(XML::Element& element,
         }
         for (int i = 0; i < objT->getSpaltenAnzahl(); i++)
         {
-            if (objT->zZeichnung(i, 0))
-                objT->setSpaltenBreite(i, objT->zZeichnung(i, 0)->getBreite());
+            if (objT->zDrawable(i, 0))
+                objT->setSpaltenBreite(i, objT->zDrawable(i, 0)->getBreite());
         }
     }
 }
@@ -903,7 +903,7 @@ bool UIMLFrame::isApplicableFor(XML::Element& element)
     return element.getName().istGleich("frame");
 }
 
-Zeichnung* UIMLFrame::parseElement(
+Drawable* UIMLFrame::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     Fenster* f = generalFactory.getFactory().createFenster(
@@ -913,13 +913,13 @@ Zeichnung* UIMLFrame::parseElement(
 }
 
 bool Framework::UIMLFrame::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     Fenster* f = dynamic_cast<Fenster*>(&z);
     if (!f) return false;
     for (auto member = f->getMembers().begin(); member;)
     { // remove all members that are not in the xml
-        Framework::Text id = generalFactory.getZeichnungId(*member.val());
+        Framework::Text id = generalFactory.getDrawableId(*member.val());
         if (id.getLength() == 0)
         {
             member.remove();
@@ -934,7 +934,7 @@ bool Framework::UIMLFrame::updateElement(
     for (auto i = element.getChilds(); i; i++)
     {
         Text id = i->getAttributeValue("id");
-        Zeichnung* z = generalFactory.zZeichnungById(id);
+        Drawable* z = generalFactory.zDrawableById(id);
         if (!id.getLength() || !z || f->getMembers().indexOf(z) < 0
             || !generalFactory.updateElement(*i.val(), *z, generalFactory))
         {
@@ -942,7 +942,7 @@ bool Framework::UIMLFrame::updateElement(
             {
                 f->removeMember(z);
             }
-            if (z) generalFactory.removeZeichnung(*z);
+            if (z) generalFactory.removeDrawable(*z);
             z = generalFactory.parseElement(*i.val(), generalFactory);
             if (z) f->addMember(z);
         }
@@ -959,7 +959,7 @@ bool Framework::UIMLFrame::updateElement(
 }
 
 void UIMLFrame::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -1009,9 +1009,9 @@ void UIMLFrame::layout(XML::Element& element,
         {
             int gap = calculateSize(element.getAttributeValue("gap"), pHeight);
             int y = 0;
-            for (Zeichnung* z : f->getMembers())
+            for (Drawable* z : f->getMembers())
             {
-                Text id = generalLayouter.getZeichnungId(*z);
+                Text id = generalLayouter.getDrawableId(*z);
                 auto child = element.selectChildsByAttribute("id", id);
 
                 if (child.exists())
@@ -1031,9 +1031,9 @@ void UIMLFrame::layout(XML::Element& element,
         {
             int gap = calculateSize(element.getAttributeValue("gap"), pWidth);
             int x = 0;
-            for (Zeichnung* z : f->getMembers())
+            for (Drawable* z : f->getMembers())
             {
-                Text id = generalLayouter.getZeichnungId(*z);
+                Text id = generalLayouter.getDrawableId(*z);
                 auto child = element.selectChildsByAttribute("id", id);
 
                 if (child.exists())
@@ -1073,11 +1073,11 @@ void UIMLFrame::layout(XML::Element& element,
 
 // Creates a UIML View
 UIMLView::UIMLView()
-    : ZeichnungHintergrund()
+    : DrawableBackground()
 {
     style = Style::MEIgnoreInside | Style::MEIgnoreParentInside
           | Style::MEIgnoreSichtbar | Style::MEIgnoreVerarbeitet;
-    members = new RCTrie<Zeichnung>();
+    members = new RCTrie<Drawable>();
     dom = 0;
     nextId = 0;
     memset(&init, 0, sizeof(UIInit));
@@ -1139,7 +1139,7 @@ void UIMLView::doMausEreignis(MausEreignis& me, bool userRet)
         {
             for (auto i = dom->getChilds(); i; i++)
             { // TODO render elements backwards
-                Zeichnung* z = members->z(i->getAttributeValue("id"),
+                Drawable* z = members->z(i->getAttributeValue("id"),
                     i->getAttributeValue("id").getLength());
                 if (z) z->doPublicMausEreignis(me);
             }
@@ -1161,14 +1161,14 @@ void UIMLView::doMausEreignis(MausEreignis& me, bool userRet)
 }
 
 void Framework::UIMLView::setOnMemberMouseEvent(std::function<bool(
-        XML::Element& element, Zeichnung& member, MausEreignis me)>
+        XML::Element& element, Drawable& member, MausEreignis me)>
         onEventAction)
 {
     onMemberMouseEvent = onEventAction;
 }
 
 void Framework::UIMLView::setOnMemberKeyboardEvent(std::function<bool(
-        XML::Element& element, Zeichnung& member, TastaturEreignis te)>
+        XML::Element& element, Drawable& member, TastaturEreignis te)>
         onEventAction)
 {
     onMemberKeyboardEvent = onEventAction;
@@ -1211,8 +1211,8 @@ void UIMLView::setUIML(XML::Element* uiml)
             Framework::Text id = i->getAttributeValue("id");
             if (!newChilds.whereAttributeEquals("id", id).exists())
             {
-                Zeichnung* z = members->z(id, id.getLength());
-                if (z) removeZeichnung(*z);
+                Drawable* z = members->z(id, id.getLength());
+                if (z) removeDrawable(*z);
             }
         }
         dom = uiml;
@@ -1223,7 +1223,7 @@ void UIMLView::setUIML(XML::Element* uiml)
         dom = uiml;
         for (auto i = dom->getChilds(); i; i++)
         {
-            Zeichnung* z = parseElement(*i.val(), *this);
+            Drawable* z = parseElement(*i.val(), *this);
             if (z) z->release();
         }
     }
@@ -1238,14 +1238,14 @@ void UIMLView::setUIML(Text uiml)
 
 // Returns a drawing that has a specific id in UIML
 //  id: the id of the drawing
-Zeichnung* UIMLView::zZeichnungById(const char* id)
+Drawable* UIMLView::zDrawableById(const char* id)
 {
     return members->z(id, textLength(id));
 }
 
 // Returns a drawing that has a specific id in UIML
 //  id: the id of the drawing
-Zeichnung* UIMLView::getZeichnungById(const char* id)
+Drawable* UIMLView::getDrawableById(const char* id)
 {
     return members->get(id, textLength(id));
 }
@@ -1255,7 +1255,7 @@ void Framework::UIMLView::update()
     for (auto i = dom->getChilds(); i; i++)
     {
         Text id = i->getAttributeValue("id");
-        Zeichnung* z = zZeichnungById(id);
+        Drawable* z = zDrawableById(id);
         if (!id.getLength() || !z || !updateElement(*i.val(), *z, *this))
         {
             z = parseElement(*i.val(), *this);
@@ -1273,7 +1273,7 @@ void UIMLView::layout()
         for (auto i = dom->getChilds(); i; i++)
         {
             Text id = i->getAttributeValue("id");
-            Zeichnung* z = zZeichnungById(id);
+            Drawable* z = zDrawableById(id);
             if (z)
             {
                 layout(*i.val(),
@@ -1292,7 +1292,7 @@ void UIMLView::layout()
 Text UIMLView::addMember(Text uiml)
 {
     XML::Element* e = new XML::Element(uiml);
-    Zeichnung* z = parseElement(*e, *this);
+    Drawable* z = parseElement(*e, *this);
     if (z)
     {
         dom->addChildAtFront(e);
@@ -1316,7 +1316,7 @@ Text UIMLView::addMember(Text uiml, Text parentId)
         {
             if (ed2.begin()->getName().istGleich("frame"))
             {
-                Zeichnung* z = parseElement(*e, *this);
+                Drawable* z = parseElement(*e, *this);
                 if (z)
                 {
                     dynamic_cast<Fenster*>(
@@ -1347,13 +1347,13 @@ void UIMLView::removeMember(Text id)
 void UIMLView::doTastaturEreignis(TastaturEreignis& te)
 {
     bool verarbeitet = te.verarbeitet;
-    ZeichnungHintergrund::doTastaturEreignis(te);
+    DrawableBackground::doTastaturEreignis(te);
     te.verarbeitet = verarbeitet;
     if (dom)
     {
         for (auto i = dom->getChilds(); i; i++)
         { // TODO render elements backwards
-            Zeichnung* z = members->z(i->getAttributeValue("id"),
+            Drawable* z = members->z(i->getAttributeValue("id"),
                 i->getAttributeValue("id").getLength());
             if (z) z->doTastaturEreignis(te);
         }
@@ -1370,20 +1370,20 @@ bool UIMLView::tick(double tickVal)
     {
         for (auto i = dom->getChilds(); i; i++)
         { // TODO render elements backwards
-            Zeichnung* z = members->z(i->getAttributeValue("id"),
+            Drawable* z = members->z(i->getAttributeValue("id"),
                 i->getAttributeValue("id").getLength());
             if (z) rend |= z->tick(tickVal);
         }
     }
-    return ZeichnungHintergrund::tick(tickVal);
+    return DrawableBackground::tick(tickVal);
 }
 
 // Draws the background of a drawing to rObj
 void UIMLView::render(Bild& rObj)
 {
-    if (hatStyle(Zeichnung::Style::Sichtbar))
+    if (hatStyle(Drawable::Style::Sichtbar))
     {
-        ZeichnungHintergrund::render(rObj);
+        DrawableBackground::render(rObj);
         if (dom)
         {
             if (!rObj.setDrawOptions(pos.x + getRahmenBreite(),
@@ -1398,7 +1398,7 @@ void UIMLView::render(Bild& rObj)
             for (int i = dom->getChildCount() - 1; i >= 0; i--)
             { // TODO render elements backwards
                 XML::Element* e = dom->zChild(i);
-                Zeichnung* z = members->z(e->getAttributeValue("id"),
+                Drawable* z = members->z(e->getAttributeValue("id"),
                     e->getAttributeValue("id").getLength());
                 if (z) z->render(rObj);
             }
@@ -1432,7 +1432,7 @@ bool UIMLView::isApplicableFor(XML::Element& element)
     return 0;
 }
 
-Zeichnung* UIMLView::parseElement(
+Drawable* UIMLView::parseElement(
     XML::Element& element, UIMLContainer& generalFactory)
 {
     Text id;
@@ -1443,7 +1443,7 @@ Zeichnung* UIMLView::parseElement(
         id = Text("_") += nextId++;
         element.setAttribute("id", id);
     }
-    Zeichnung* z = members->z(id, id.getLength());
+    Drawable* z = members->z(id, id.getLength());
     if (!z)
     {
         // precompute attributes
@@ -1516,7 +1516,7 @@ Zeichnung* UIMLView::parseElement(
                     [this, z](void* p, void* o, MausEreignis me) {
                         return dom->selectChildren()
                             .selectAllElements()
-                            .whereAttributeEquals("id", getZeichnungId(*z))
+                            .whereAttributeEquals("id", getDrawableId(*z))
                             .getFirstElement()
                             .map<bool>([this, &me, z](
                                            RCPointer<XML::Element> element) {
@@ -1533,7 +1533,7 @@ Zeichnung* UIMLView::parseElement(
                     [this, z](void* p, void* o, TastaturEreignis te) {
                         return dom->selectChildren()
                             .selectAllElements()
-                            .whereAttributeEquals("id", getZeichnungId(*z))
+                            .whereAttributeEquals("id", getDrawableId(*z))
                             .getFirstElement()
                             .map<bool>([this, &te, z](
                                            RCPointer<XML::Element> element) {
@@ -1546,7 +1546,7 @@ Zeichnung* UIMLView::parseElement(
                     });
             }
             members->set(
-                id, id.getLength(), dynamic_cast<Zeichnung*>(z->getThis()));
+                id, id.getLength(), dynamic_cast<Drawable*>(z->getThis()));
             idList.add(new Text(id));
             memberList.add(z);
         }
@@ -1557,7 +1557,7 @@ Zeichnung* UIMLView::parseElement(
 }
 
 bool Framework::UIMLView::updateElement(
-    XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+    XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
 {
     bool result = 0;
     for (UIMLElement* e : knownElements)
@@ -1575,16 +1575,16 @@ bool Framework::UIMLView::updateElement(
                 "id"))
         { // element could not be updated so all children will be removed
             Framework::Text id = element->getAttributeValue("id");
-            Zeichnung* z = zZeichnungById(id);
-            if (z) removeZeichnung(*z);
+            Drawable* z = zDrawableById(id);
+            if (z) removeDrawable(*z);
         }
-        removeZeichnung(z);
+        removeDrawable(z);
     }
     return result;
 }
 
 void UIMLView::layout(XML::Element& element,
-    Zeichnung& z,
+    Drawable& z,
     int pWidth,
     int pHeight,
     UIMLContainer& generalLayouter)
@@ -1599,14 +1599,14 @@ void UIMLView::layout(XML::Element& element,
     }
 }
 
-Text Framework::UIMLView::getZeichnungId(Zeichnung& z)
+Text Framework::UIMLView::getDrawableId(Drawable& z)
 {
     int index = memberList.getWertIndex(&z);
     if (index >= 0) return *idList.z(index);
     return "";
 }
 
-void Framework::UIMLView::removeZeichnung(Zeichnung& z)
+void Framework::UIMLView::removeDrawable(Drawable& z)
 {
     int index = memberList.getWertIndex(&z);
     if (index >= 0)
@@ -1618,9 +1618,9 @@ void Framework::UIMLView::removeZeichnung(Zeichnung& z)
     }
 }
 
-bool Framework::UIMLView::registerZeichnung(const char* id, Zeichnung* z)
+bool Framework::UIMLView::registerDrawable(const char* id, Drawable* z)
 {
-    Zeichnung* existing = members->z(id, textLength(id));
+    Drawable* existing = members->z(id, textLength(id));
     if (existing)
     {
         z->release();
@@ -1642,7 +1642,7 @@ Punkt UIMLView::calculateContentSize()
     for (int i = dom->getChildCount() - 1; i >= 0; i--)
     { // TODO render elements backwards
         XML::Element* e = dom->zChild(i);
-        Zeichnung* z = members->z(
+        Drawable* z = members->z(
             e->getAttributeValue("id"), e->getAttributeValue("id").getLength());
         if (z)
         {

+ 52 - 52
UIMLView.h

@@ -15,7 +15,7 @@ namespace Framework
     class UIMLContainer;
 
     /**
-      creates a Zeichnung that views an element of the uiml
+      creates a Drawable that views an element of the uiml
 
       tag: defined by subclasses;
 
@@ -135,7 +135,7 @@ namespace Framework
             values concatenated by the operators +, -, / or *
 
       additional attributes if the created view is an instance of
-      ZeichnungHintergrund:
+      DrawableBackground:
         - (int) border: width of the border in pixel
         - (int) border-color: color of the border format: 0xAARRGGBB
     */
@@ -146,18 +146,18 @@ namespace Framework
         DLLEXPORT virtual ~UIMLElement();
         //! Checks whether this UIML element is responsible for a specific xml element
         virtual bool isApplicableFor(XML::Element& element) = 0;
-        //! Creates a new Zeichnung for a given xml element
-        virtual Zeichnung* parseElement(
+        //! Creates a new Drawable for a given xml element
+        virtual Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory)
             = 0;
-        //! Updates a Zeichnung with the data of an xml element. Returns
-        //! false if the Zeichnung could not be updated and needs to be recreated
+        //! Updates a Drawable with the data of an xml element. Returns
+        //! false if the Drawable could not be updated and needs to be recreated
         virtual bool updateElement(
-            XML::Element& element, Zeichnung& z, UIMLContainer& generalFactory)
+            XML::Element& element, Drawable& z, UIMLContainer& generalFactory)
             = 0;
-        //! Applies the layout parameters to a Zeichnung
+        //! Applies the layout parameters to a Drawable
         DLLEXPORT virtual void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter);
@@ -181,11 +181,11 @@ namespace Framework
     public:
         DLLEXPORT UIMLContainer();
         DLLEXPORT virtual ~UIMLContainer();
-        virtual Zeichnung* zZeichnungById(const char* id) = 0;
-        virtual Zeichnung* getZeichnungById(const char* id) = 0;
-        virtual Text getZeichnungId(Zeichnung& z) = 0;
-        virtual void removeZeichnung(Zeichnung& z) = 0;
-        virtual bool registerZeichnung(const char* id, Zeichnung* z) = 0;
+        virtual Drawable* zDrawableById(const char* id) = 0;
+        virtual Drawable* getDrawableById(const char* id) = 0;
+        virtual Text getDrawableId(Drawable& z) = 0;
+        virtual void removeDrawable(Drawable& z) = 0;
+        virtual bool registerDrawable(const char* id, Drawable* z) = 0;
         virtual const UIInit& getFactory() = 0;
     };
 
@@ -219,13 +219,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLTextField();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -236,13 +236,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLButton();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -253,13 +253,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLCheck();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -295,13 +295,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLText();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -337,13 +337,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLTextArea();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -354,13 +354,13 @@ namespace Framework
     public:
         DLLEXPORT UIMLTable();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
@@ -405,20 +405,20 @@ namespace Framework
     public:
         DLLEXPORT UIMLFrame();
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
     };
 
     /**
-      Converts uiml views to Zeichnung implementations and renders them.
+      Converts uiml views to Drawable implementations and renders them.
       The attribute id of each element has to be unique or absent.
       All implementations of UIMLElement in the framework are supported by
       default. Custom elements can be added by calling addKnownElement with a
@@ -442,11 +442,11 @@ namespace Framework
         </view>
         \endcode
     */
-    class UIMLView : public ZeichnungHintergrund,
+    class UIMLView : public DrawableBackground,
                      public UIMLContainer
     {
     public:
-        class Style : public ZeichnungHintergrund::Style
+        class Style : public DrawableBackground::Style
         {
         public:
             /// <summary>
@@ -468,16 +468,16 @@ namespace Framework
     private:
         RCArray<UIMLElement> knownElements;
         UIInit init;
-        RCTrie<Zeichnung>* members;
-        Array<Zeichnung*> memberList;
+        RCTrie<Drawable>* members;
+        Array<Drawable*> memberList;
         RCArray<Text> idList;
         XML::Element* dom;
         int nextId;
         std::function<bool(
-            XML::Element& element, Zeichnung& member, MausEreignis me)>
+            XML::Element& element, Drawable& member, MausEreignis me)>
             onMemberMouseEvent;
         std::function<bool(
-            XML::Element& element, Zeichnung& member, TastaturEreignis te)>
+            XML::Element& element, Drawable& member, TastaturEreignis te)>
             onMemberKeyboardEvent;
 
         //! Processes a mouse event. Called automatically by the framework.
@@ -505,7 +505,7 @@ namespace Framework
         /// <param name="onEventAction">the function to execute if a mouse event
         /// occures</param>
         DLLEXPORT void setOnMemberMouseEvent(std::function<bool(
-                XML::Element& element, Zeichnung& member, MausEreignis me)>
+                XML::Element& element, Drawable& member, MausEreignis me)>
                 onEventAction);
         /// <summary>
         /// sets a function that is executed if a mouse event on a member view
@@ -515,7 +515,7 @@ namespace Framework
         /// <param name="onEventAction">the function to execute if a mouse event
         /// occures</param>
         DLLEXPORT void setOnMemberKeyboardEvent(std::function<bool(
-                XML::Element& element, Zeichnung& member, TastaturEreignis te)>
+                XML::Element& element, Drawable& member, TastaturEreignis te)>
                 onEventAction);
         //! Removes all known elements that can be used in uiml
         DLLEXPORT void removeAllKnownElements();
@@ -549,10 +549,10 @@ namespace Framework
         DLLEXPORT void removeMember(Text id);
         //! Returns a drawing that has a specific id in uiml
         //! \param id The id of the drawing
-        DLLEXPORT Zeichnung* zZeichnungById(const char* id) override;
+        DLLEXPORT Drawable* zDrawableById(const char* id) override;
         //! Returns a drawing that has a specific id in uiml
         //! \param id The id of the drawing
-        DLLEXPORT Zeichnung* getZeichnungById(const char* id) override;
+        DLLEXPORT Drawable* getDrawableById(const char* id) override;
         //! Processes a keyboard event. Called automatically by the framework
         //! \param te The event
         DLLEXPORT virtual void doTastaturEreignis(TastaturEreignis& te);
@@ -571,19 +571,19 @@ namespace Framework
         //! attributes of individual elements are allowed)
         DLLEXPORT XML::Element* getDom() const;
         DLLEXPORT bool isApplicableFor(XML::Element& element) override;
-        DLLEXPORT Zeichnung* parseElement(
+        DLLEXPORT Drawable* parseElement(
             XML::Element& element, UIMLContainer& generalFactory) override;
         DLLEXPORT bool updateElement(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             UIMLContainer& generalFactory) override;
         DLLEXPORT void layout(XML::Element& element,
-            Zeichnung& z,
+            Drawable& z,
             int pWidth,
             int pHeight,
             UIMLContainer& generalLayouter) override;
-        DLLEXPORT Text getZeichnungId(Zeichnung& z) override;
-        DLLEXPORT void removeZeichnung(Zeichnung& z) override;
-        DLLEXPORT bool registerZeichnung(const char* id, Zeichnung* z) override;
+        DLLEXPORT Text getDrawableId(Drawable& z) override;
+        DLLEXPORT void removeDrawable(Drawable& z) override;
+        DLLEXPORT bool registerDrawable(const char* id, Drawable* z) override;
         DLLEXPORT const UIInit& getFactory() override;
         //! calculates the needed size for all content elements to be visible
         DLLEXPORT Punkt calculateContentSize();

+ 20 - 20
Window.cpp

@@ -1033,12 +1033,12 @@ void Framework::WMessageBox(HWND hWnd, Text* titel, Text* meldung, UINT style)
 // Contents of the Fenster class from Window.h
 // Constructor
 Fenster::Fenster()
-    : Zeichnung(),
+    : Drawable(),
       closingMe(0),
       closingMeParam(0),
       rahmen(0),
       titel(0),
-      members(new RCArray<Zeichnung>()),
+      members(new RCArray<Drawable>()),
       bgBodyColor(0xFF000000),
       bgBodyPicture(0),
       bodyBuffer(0),
@@ -1769,20 +1769,20 @@ void Framework::Fenster::updateVScroll()
 }
 
 // -- Members --
-void Fenster::addMember(Zeichnung* obj) // adds a member
+void Fenster::addMember(Drawable* obj) // adds a member
 {
     members->add(obj);
     rend = 1;
 }
 
-void Framework::Fenster::setMemberIndex(Zeichnung* zMember, int index)
+void Framework::Fenster::setMemberIndex(Drawable* zMember, int index)
 {
     if (index < 0 || index >= members->getEintragAnzahl()) return;
     int currentIndex = members->indexOf(zMember);
     members->setPosition(currentIndex, index);
 }
 
-void Fenster::removeMember(Zeichnung* zObj) // removes a member
+void Fenster::removeMember(Drawable* zObj) // removes a member
 {
     for (int i = 0; i < members->getEintragAnzahl(); i++)
     {
@@ -1805,17 +1805,17 @@ bool Fenster::tick(double tickval) // tick
 {
     if (hatStyle(Style::Sichtbar))
     {
-        for (Zeichnung* i : *members)
+        for (Drawable* i : *members)
             rend |= i->tick(tickval);
     }
     else
     {
-        for (Zeichnung* i : *members)
+        for (Drawable* i : *members)
             i->tick(tickval);
     }
     if (vScroll && hatStyle(Style::VScroll)) rend |= vScroll->getRend();
     if (hScroll && hatStyle(Style::HScroll)) rend |= hScroll->getRend();
-    return Zeichnung::tick(tickval);
+    return Drawable::tick(tickval);
 }
 
 void Fenster::doTastaturEreignis(TastaturEreignis& te)
@@ -1846,13 +1846,13 @@ void Fenster::render(Bild& zRObj) // draws to zRObj
 {
     if (hatStyle(Style::Sichtbar))
     {
-        lockZeichnung();
+        lockDrawable();
         if (!zRObj.setDrawOptions(pos, gr))
         {
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
-        Zeichnung::render(zRObj);
+        Drawable::render(zRObj);
         int rbr = 0;
         if (hatStyle(Style::Rahmen) && rahmen)
         {
@@ -1877,7 +1877,7 @@ void Fenster::render(Bild& zRObj) // draws to zRObj
             if (!zRObj.setDrawOptions(rbr, rbr, gr.x - rbr * 2, th))
             {
                 zRObj.releaseDrawOptions();
-                unlockZeichnung();
+                unlockDrawable();
                 return;
             }
             int sbr = 0;
@@ -1951,7 +1951,7 @@ void Fenster::render(Bild& zRObj) // draws to zRObj
         if (!zRObj.setDrawOptions(x, y, br, hi))
         {
             zRObj.releaseDrawOptions();
-            unlockZeichnung();
+            unlockDrawable();
             return;
         }
         if (hatStyle(Style::BodyHintergrund))
@@ -1975,19 +1975,19 @@ void Fenster::render(Bild& zRObj) // draws to zRObj
         }
         if (!vSc && !hSc)
         {
-            for (Zeichnung* i : *members)
+            for (Drawable* i : *members)
                 i->render(zRObj);
         }
         else
         {
             zRObj.addScrollOffset(
                 hSc ? hScroll->getScroll() : 0, vSc ? vScroll->getScroll() : 0);
-            for (Zeichnung* i : *members)
+            for (Drawable* i : *members)
                 i->render(zRObj);
         }
         zRObj.releaseDrawOptions();
         zRObj.releaseDrawOptions();
-        unlockZeichnung();
+        unlockDrawable();
     }
 }
 
@@ -2306,7 +2306,7 @@ HScrollBar* Fenster::zHScrollBar() const
 }
 
 // -- Members --
-const RCArray<Zeichnung>& Fenster::getMembers() const // returns the members
+const RCArray<Drawable>& Fenster::getMembers() const // returns the members
 {
     return *members;
 }
@@ -2314,7 +2314,7 @@ const RCArray<Zeichnung>& Fenster::getMembers() const // returns the members
 int Framework::Fenster::getNeededChildWidth() const
 {
     int max = 0;
-    for (Zeichnung* z : *members)
+    for (Drawable* z : *members)
     {
         if (z->getX() + z->getBreite() > max) max = z->getX() + z->getBreite();
     }
@@ -2324,7 +2324,7 @@ int Framework::Fenster::getNeededChildWidth() const
 int Framework::Fenster::getNeededChildHeight() const
 {
     int max = 0;
-    for (Zeichnung* z : *members)
+    for (Drawable* z : *members)
     {
         if (z->getY() + z->getHeight() > max) max = z->getY() + z->getHeight();
     }
@@ -2332,7 +2332,7 @@ int Framework::Fenster::getNeededChildHeight() const
 }
 
 // -- Copy --
-Zeichnung* Fenster::dublizieren() const // Creates a copy of the window
+Drawable* Fenster::dublizieren() const // Creates a copy of the window
 {
     Fenster* ret = new Fenster();
     ret->setPosition(pos);

+ 8 - 8
Window.h

@@ -260,10 +260,10 @@ namespace Framework
         HWND hWnd, Text* titel, Text* meldung, UINT style);
 #endif
     //! Window class in the program
-    class Fenster : public Zeichnung
+    class Fenster : public Drawable
     {
     public:
-        class Style : public Zeichnung::Style
+        class Style : public Drawable::Style
         {
         public:
             //! Determines whether the window body has a background
@@ -381,7 +381,7 @@ namespace Framework
         void* closingMeParam;
         Rahmen* rahmen;
         TextFeld* titel;
-        RCArray<Zeichnung>* members;
+        RCArray<Drawable>* members;
         int bgBodyColor;
         Bild* bgBodyPicture;
         AlphaFeld* bodyBuffer;
@@ -573,13 +573,13 @@ namespace Framework
         DLLEXPORT void updateVScroll();
         //! Adds a drawing to the window
         //! \param obj The drawing
-        DLLEXPORT virtual void addMember(Zeichnung* obj);
+        DLLEXPORT virtual void addMember(Drawable* obj);
         //! sets the position of a member to index. This changes the order of
         //! rendering and the order input events are processed
-        DLLEXPORT void setMemberIndex(Zeichnung* zMember, int index);
+        DLLEXPORT void setMemberIndex(Drawable* zMember, int index);
         //! Removes a drawing from the window
         //! \param zObj The drawing (without increased reference counter)
-        DLLEXPORT virtual void removeMember(Zeichnung* zObj);
+        DLLEXPORT virtual void removeMember(Drawable* zObj);
         //! Removes all drawings from the window
         DLLEXPORT virtual void removeAll();
         //! Updates the object. Called by the framework
@@ -705,14 +705,14 @@ namespace Framework
         //! reference counter
         DLLEXPORT HScrollBar* zHScrollBar() const;
         //! Returns a list of drawings contained in the window
-        DLLEXPORT const RCArray<Zeichnung>& getMembers() const;
+        DLLEXPORT const RCArray<Drawable>& getMembers() const;
         //! Returns the width needed by the children of the window
         DLLEXPORT int getNeededChildWidth() const;
         //! Returns the height needed by the children of the window
         DLLEXPORT int getNeededChildHeight() const;
         //! Creates a copy of the window that can be modified without
         //! affecting the original
-        DLLEXPORT Zeichnung* dublizieren() const override;
+        DLLEXPORT Drawable* dublizieren() const override;
     };
 } // namespace Framework
 #endif

+ 4 - 4
World3D.cpp

@@ -44,7 +44,7 @@ void Welt3D::unlock()
 
 // Adds an object to the world
 //  obj: The object to be added
-void Welt3D::addZeichnung(Model3D* obj)
+void Welt3D::addDrawable(Model3D* obj)
 {
     cs.lock();
     if (debugDX)
@@ -61,7 +61,7 @@ void Welt3D::addZeichnung(Model3D* obj)
 
 // Removes an object from the world
 //  obj: The object to be removed
-void Welt3D::removeZeichnung(Model3D* obj)
+void Welt3D::removeDrawable(Model3D* obj)
 {
     cs.lock();
     int index = 0;
@@ -114,7 +114,7 @@ void Welt3D::doMausEreignis(MausEreignis3D& me)
     // cs.lock()
     // int anz = 0;
     // int index = 0;
-    // for( Zeichnung3D **i = members; index < arraySize; i++, index++ )
+    // for( Drawable3D **i = members; index < arraySize; i++, index++ )
     //{
     //     if( *i )
     //     {
@@ -124,7 +124,7 @@ void Welt3D::doMausEreignis(MausEreignis3D& me)
     //     }
     // }
     // index = 0;
-    // for( Zeichnung3D **i = membersAlpha; index < arraySizeAlpha; i++, index++
+    // for( Drawable3D **i = membersAlpha; index < arraySizeAlpha; i++, index++
     // )
     //{
     //     if( *i )

+ 3 - 3
World3D.h

@@ -8,7 +8,7 @@
 
 namespace Framework
 {
-    class Zeichnung3D;     //! Drawing.h
+    class Drawable3D;     //! Drawing.h
     class Render3D;        //! Render3D.h
     struct MausEreignis3D; //! MouseEvent.h
     class Model3D;
@@ -41,10 +41,10 @@ namespace Framework
         DLLEXPORT void unlock();
         //! Adds an object to the world
         //! \param obj The object to add
-        DLLEXPORT void addZeichnung(Model3D* obj);
+        DLLEXPORT void addDrawable(Model3D* obj);
         //! Removes an object from the world
         //! \param obj The object to remove (without increased reference counter)
-        DLLEXPORT void removeZeichnung(Model3D* zObj);
+        DLLEXPORT void removeDrawable(Model3D* zObj);
         //! Adds a collection of objects to the world
         //! \param collection The collection to add
         DLLEXPORT void addCollection(Model3DCollection* collection);