home *** CD-ROM | disk | FTP | other *** search
- #ifndef _DTPICT_HPP
- #define _DTPICT_HPP
-
- #include "dtobject.hpp"
-
- enum DTPictureType {
- DTPT_Bitmap,
- DTPT_Icon,
- DTPT_Cursor,
- DTPT_MetaFile,
- };
-
- class METACLASSDEF DTWButton : public DTObject {
- public:
- DTWButton( const MetaObject * meta );
- virtual void DTSetRectangle( const WRect & r );
- };
-
- class DTWLabel : public DTObject {
- public:
- DTWLabel( const MetaObject * meta );
- virtual void DTSetRectangle( const WRect & r );
- };
-
- class METACLASSDEF DTWCommandButton : public DTWButton {
- public:
- DTWCommandButton( const MetaObject * meta );
- };
-
- class METACLASSDEF DTWPictureButton : public DTWCommandButton {
- public:
- DTWPictureButton( const MetaObject * meta );
-
- // Code generation:
-
- virtual void GenCode( MMCodeGeneration cg, WStringList & src ) const;
-
- // Save and Load DTInfo
-
- virtual WBool HasDTInfo();
- virtual WBool SaveDTInfo( SaveSource & );
- virtual WBool LoadDTInfo( SaveBlock *, WBool );
-
- virtual WString GetPicture() const;
- virtual void SetPicture( const WString & s );
-
- private:
- WString _picture;
- };
-
- class METACLASSDEF DTWPictureBox : public DTObject {
- public:
- DTWPictureBox( const MetaObject * meta );
-
- // Code generation:
-
- virtual void GenCode( MMCodeGeneration cg, WStringList & src ) const;
-
- // Save and Load DTInfo
-
- virtual WBool HasDTInfo();
- virtual WBool SaveDTInfo( SaveSource & );
- virtual WBool LoadDTInfo( SaveBlock *, WBool );
-
- virtual WString GetPicture() const;
- virtual void SetPicture( const WString & s );
-
- private:
- WString _picture;
- };
-
-
- #endif // _DTPICT_HPP
-