00001 /********************************************************************** 00002 00003 Copyright (c) 2005, TomTom B.V. 00004 00005 All rights reserved 00006 00007 00008 ***********************************************************************/ 00009 00010 00011 #ifndef __CUIRADIOBUTTON_H__ 00012 #define __CUIRADIOBUTTON_H__ 00013 00014 #include "MUIWidget.h" 00015 #include "CDesktop.h" 00016 00026 class CUIRadioButton: public MUIWidget 00027 { 00028 public: 00037 CUIRadioButton( const CUIRect& aRectangle, 00038 const char* aTitle, 00039 MUIWidgetEvents* aObserver, 00040 CUIRadioButton* aPrevButton, 00041 CUIRadioButton* aNextButton ); 00042 00043 virtual void Draw(); 00044 virtual bool HandlePenEvent( MInputReader::TTouchEventData& aData ); 00045 virtual bool HandleKeyEvent( MInputReader::TKeyEventData& aData ); 00046 00053 virtual void SetChecked( bool aChecked ); 00054 00055 public: 00056 bool iChecked; 00057 CUIRadioButton* iPrevButton; 00058 CUIRadioButton* iNextButton; 00060 private: 00061 CUIRadioButton(); 00062 CUIRadioButton( const CUIRadioButton& ); 00063 CUIRadioButton& operator=( const CUIRadioButton& ); 00064 00065 private: 00066 void DisableGroupedButtons(); 00067 }; 00068 00069 #endif // __CUIRADIOBUTTON_H__ 00070