123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- #ifndef Liste_H
- #define Liste_H
- #include "Zeichnung.h"
- #include "Array.h"
- namespace Framework
- {
- class Rahmen;
- class AlphaFeld;
- class Bild;
- class Text;
- class TextFeld;
- class VScrollBar;
- struct TastaturEreignis;
- struct MausEreignis;
- class Schrift;
- class AuswahlListe;
-
- class AuswahlListe : public ZeichnungHintergrund
- {
- public:
- class Style : public ZeichnungHintergrund::Style
- {
- public:
- const static __int64 FeldRahmen = 0x0001000;
- const static __int64 FeldHintergrund = 0x0002000;
- const static __int64 FeldHBild = 0x0004000;
- const static __int64 FeldHAlpha = 0x0008000;
- const static __int64 FeldBuffer = 0x0010000;
- const static __int64 AuswahlHintergrund = 0x0020000;
- const static __int64 AuswahlHBild = 0x0040000;
- const static __int64 AuswahlHAlpha = 0x0080000;
- const static __int64 AuswahlBuffer = 0x0100000;
- const static __int64 AuswahlRahmen = 0x0200000;
- const static __int64 MultiStyled = 0x0400000;
- const static __int64 MultiSelect = 0x0800000;
- const static __int64 Selected = 0x1000000;
- const static __int64 Normal = Sichtbar | Erlaubt | Rahmen | FeldHAlpha | FeldHintergrund | FeldRahmen | AuswahlBuffer | AuswahlRahmen;
- };
- private:
- RCArray< TextFeld > *tfListe;
- int entries, auswahl;
- int ahFarbe;
- Bild *ahBild;
- AlphaFeld *aBuffer;
- Rahmen *aRahmen;
- Array< __int64 > *styles;
- Array< int > *ahFarbeListe;
- RCArray< Bild > *ahBildListe;
- RCArray< AlphaFeld > *aBufferListe;
- RCArray< Rahmen > *aRahmenListe;
- Schrift *schrift;
-
-
- __declspec( dllexport ) void doMausEreignis( MausEreignis &me, bool userRet ) override;
- public:
-
- __declspec( dllexport ) AuswahlListe();
-
- __declspec( dllexport ) virtual ~AuswahlListe();
-
- __declspec( dllexport ) void update();
-
-
- __declspec( dllexport ) void addEintrag( Text *txt );
-
-
- __declspec( dllexport ) void addEintrag( const char *txt );
-
-
- __declspec( dllexport ) void addEintragZ( TextFeld *tf );
-
-
-
- __declspec( dllexport ) void addEintrag( int pos, Text *txt );
-
-
-
- __declspec( dllexport ) void addEintrag( int pos, const char *txt );
-
-
-
- __declspec( dllexport ) void addEintragZ( int pos, TextFeld *tf );
-
-
-
- __declspec( dllexport ) void setEintrag( int pos, Text *txt );
-
-
-
- __declspec( dllexport ) void setEintrag( int pos, unsigned char *txt );
-
-
-
- __declspec( dllexport ) void setEintragZ( int pos, TextFeld *tf );
-
-
-
- __declspec( dllexport ) void tauschEintragPos( int vpos, int npos );
-
-
- __declspec( dllexport ) void removeEintrag( int pos );
-
-
- __declspec( dllexport ) void setSchriftZ( Schrift *schrift );
-
-
- __declspec( dllexport ) void setVScrollZuEintrag( int eintrag );
-
- __declspec( dllexport ) void updateVScroll();
-
-
- __declspec( dllexport ) void setALRZ( Rahmen *rahmen );
-
-
- __declspec( dllexport ) void setALRBreite( int br );
-
-
- __declspec( dllexport ) void setALRFarbe( int fc );
-
-
- __declspec( dllexport ) void setAAFZ( AlphaFeld *buffer );
-
-
- __declspec( dllexport ) void setAAFStrength( int st );
-
-
- __declspec( dllexport ) void setAAFFarbe( int fc );
-
-
- __declspec( dllexport ) void setAHBild( Bild *bild );
-
-
- __declspec( dllexport ) void setAHBildZ( Bild *bild );
-
-
- __declspec( dllexport ) void setAHFarbe( int fc );
-
-
-
- __declspec( dllexport ) void setALRZ( int pos, Rahmen *rahmen );
-
-
-
- __declspec( dllexport ) void setALRBreite( int pos, int br );
-
-
-
- __declspec( dllexport ) void setALRFarbe( int pos, int fc );
-
-
-
- __declspec( dllexport ) void setAAFZ( int pos, AlphaFeld *buffer );
-
-
-
- __declspec( dllexport ) void setAAFStrength( int pos, int st );
-
-
-
- __declspec( dllexport ) void setAAFFarbe( int pos, int fc );
-
-
-
- __declspec( dllexport ) void setAHBild( int pos, Bild *bild );
-
-
-
- __declspec( dllexport ) void setAHBildZ( int pos, Bild *bild );
-
-
-
- __declspec( dllexport ) void setAHFarbe( int pos, int fc );
-
-
-
- __declspec( dllexport ) void setMsStyle( int pos, __int64 style );
-
-
-
-
- __declspec( dllexport ) void setMsStyle( int pos, __int64 style, bool add_remove );
-
-
-
- __declspec( dllexport ) void addMsStyle( int pos, __int64 style );
-
-
-
- __declspec( dllexport ) void removeMsStyle( int pos, __int64 style );
-
-
- __declspec( dllexport ) void doTastaturEreignis( TastaturEreignis &te ) override;
-
-
- __declspec( dllexport ) void render( Bild &zRObj ) override;
-
-
- __declspec( dllexport ) int getKlickEintrag( int my );
-
-
- __declspec( dllexport ) void setAuswahl( int ausw );
-
- __declspec( dllexport ) void deSelect();
-
- __declspec( dllexport ) int getEintragAnzahl() const;
-
- __declspec( dllexport ) int getAuswahl() const;
-
-
- __declspec( dllexport ) int getEintragPos( Text *eintragText );
-
-
- __declspec( dllexport ) TextFeld *getEintrag( int pos ) const;
-
-
- __declspec( dllexport ) TextFeld *zEintrag( int pos ) const;
-
- __declspec( dllexport ) Rahmen *getARahmen() const;
-
- __declspec( dllexport ) Rahmen *zARahmen() const;
-
- __declspec( dllexport ) int getAHFarbe() const;
-
- __declspec( dllexport ) Bild *getAHBild() const;
-
- __declspec( dllexport ) Bild *zAHBild() const;
-
- __declspec( dllexport ) AlphaFeld *getABuffer() const;
-
- __declspec( dllexport ) AlphaFeld *zABuffer() const;
-
- __declspec( dllexport ) Rahmen *getARahmen( int pos ) const;
-
- __declspec( dllexport ) Rahmen *zARahmen( int pos ) const;
-
- __declspec( dllexport ) int getAHFarbe( int pos ) const;
-
- __declspec( dllexport ) Bild *getAHBild( int pos ) const;
-
- __declspec( dllexport ) Bild *zAHBild( int pos ) const;
-
- __declspec( dllexport ) AlphaFeld *getABuffer( int pos ) const;
-
- __declspec( dllexport ) AlphaFeld *zABuffer( int pos ) const;
-
-
-
- __declspec( dllexport ) inline bool hatMsStyle( int pos, __int64 style ) const;
-
-
-
- __declspec( dllexport ) inline bool hatMsStyleNicht( int pos, __int64 style ) const;
- };
- }
- #endif
|