00001 /********************************************************************** 00002 00003 Copyright (c) 2005, TomTom B.V. 00004 00005 All rights reserved 00006 00007 00008 ***********************************************************************/ 00009 00010 #ifndef __CUICHECKBOX_H__ 00011 #define __CUICHECKBOX_H__ 00012 00013 #include "MUIWidget.h" 00014 #include "CDesktop.h" 00015 00023 class CUICheckBox: public MUIWidget 00024 { 00025 public: 00032 CUICheckBox( const CUIRect& aRectangle, 00033 const char* aTitle, 00034 MUIWidgetEvents* aObserver ); 00035 00036 virtual void Draw(); 00037 virtual bool HandlePenEvent( MInputReader::TTouchEventData& aData ); 00038 virtual bool HandleKeyEvent( MInputReader::TKeyEventData& aData ); 00039 00043 void SetChecked( bool aChecked ); 00044 00045 public: 00046 bool iChecked; 00048 private: 00049 CUICheckBox(); 00050 CUICheckBox( const CUICheckBox& ); 00051 CUICheckBox& operator=( const CUICheckBox& ); 00052 }; 00053 00054 #endif // __CUICHECKBOX_H__ 00055