address_field_button.h

00001 // EFileBrowser (C)opyright 2007 Jonas Jarvoll
00002 //
00003 // This is free software; you can redistribute it and/or modify it
00004 // under the terms of the GNU General Public License as published by
00005 // the Free Software Foundation; either version 2 of the License, or
00006 // (at your option) any later version.
00007 //
00008 // This program is distributed in the hope that it will be useful, but
00009 // WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011 // See the GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 

Generated on Sun Oct 26 21:16:19 2008 for Transferrer by  doxygen 1.5.1