00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __ADDRESSFIELD_BUTTON_H__
00018 #define __ADDRESSFIELD_BUTTON_H__
00019
00020 #include <gui/button.h>
00021 #include <gui/image.h>
00022 #include <util/string.h>
00023 #include <util/message.h>
00024 #include <gui/font.h>
00025
00033 class AddressFieldButton : public os::Button
00034 {
00035 public:
00036
00037 AddressFieldButton( const os::Rect& cFrame, os::String label, os::Image* bitmap, os::Message* msg,
00038 uint32 nResizeMask = os::CF_FOLLOW_LEFT | os::CF_FOLLOW_TOP,
00039 uint32 nFlags = os::WID_WILL_DRAW | os::WID_CLEAR_BACKGROUND | os::WID_FULL_UPDATE_ON_RESIZE );
00040
00041 ~AddressFieldButton();
00042
00043 void MouseMove( const os::Point& cNewPos, int nCode, uint32 nButtons, os::Message* pcData );
00044
00045 virtual void Paint( const os::Rect& cUpdate );
00046
00047 virtual os::Point GetPreferredSize( bool bLargest ) const;
00048
00049 virtual void AllDetached();
00050
00051 private:
00052 class _Private;
00053 _Private* m;
00054 };
00055
00056 #endif
00057
00058