home *** CD-ROM | disk | FTP | other *** search
- #ifndef _PROPCTRL_HPP
- #define _PROPCTRL_HPP
-
- #include "mmpctrl.hpp"
-
- class DTObject;
-
- class METACLASSDEF MTPropertyControl : public WObject {
- public:
- MTPropertyControl( const MMPropertyControl data );
- ~MTPropertyControl();
-
- virtual WBool Create( WModelessDialog * prt );
-
- virtual void RefreshZero();
- virtual WBool Refresh( const DTObject * obj );
- virtual WBool Validate( WString & errMsg );
- virtual WBool Update( DTObject * obj );
- virtual WControl * GetControl();
-
- virtual WBool GetFirstOption() const;
- virtual WBool GetLastOption() const;
-
- virtual WUInt GetControlID() const;
- virtual WBool SetOptionGroup( WUInt f, WUInt l );
-
- virtual WBool SetChangeEventHandler( WObject *, WEventHandler );
- virtual WLong GetPriority() const;
- virtual void PropertyChanged( const WString & name );
- virtual WString GetPropertyName() const;
-
- static MTPropertyControl * (*MMMakePropControl)( const MMPropertyControl * );
-
- protected:
- virtual WBool HdlBrowse( WObject *, WEventData * );
-
- protected:
- DTWObject * _object;
- WControl * _control;
- WButton * _pushButton;
- WUpDown * _upDown;
- MMPropertyControl _propCtrl;
- WUInt _first;
- WUInt _last;
- };
-
- #endif // _PROPCTRL_HPP
-