12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #pragma once
- #include <Schrift.h>
- #include <Text.h>
- #include <MausEreignis.h>
- #include <TastaturEreignis.h>
- #include "../Include/KSGScript.h"
- #include <Zeit.h>
- using namespace Framework;
- namespace KSGScript
- {
- class KSGScriptEditor;
- class ColorParser;
- class Editor : public KSGScriptEditor
- {
- private:
- TextRenderer* textRd;
- Text* script;
- ColorParser* parser;
- ZeitMesser zm;
- bool errorDetection;
- bool warningDetection;
- double tickVal;
- int reloadCounter;
- int cPos;
- int begF;
- int colors[ (int)ColorType::COLOR_ANZAHL ];
- bool mausKlick;
- void updateHScroll( int pos );
- void updateVScroll( int pos );
-
-
- void doMausEreignis( MausEreignis& me, bool userRet ) override;
- public:
-
- Editor();
-
- ~Editor();
-
-
- void setSchriftZ( Schrift* s ) override;
-
-
- void setTextRendererZ( TextRenderer* t ) override;
-
-
- void setText( Framework::Text* txt ) override;
-
- Text* zText() const override;
-
-
- void setErrorDetection( bool on = 1 ) override;
-
-
- void setWarningDetection( bool on = 1 ) override;
-
- bool getErrorDetection() const override;
-
- bool getWarningDetection() const override;
-
-
- void doTastaturEreignis( TastaturEreignis& te ) override;
-
-
-
- bool tick( double tickVal ) override;
-
- void render( Bild& rObj ) override;
-
-
-
- void setTextColor( int color, ColorType cType ) override;
- };
- }
|