![]() |
Public API Reference |
00001 /* 00002 Crystal Space Windowing System: radio button class 00003 Copyright (C) 1998,1999 by Andrew Zabolotny <bit@eltech.ru> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_CSRADBUT_H__ 00021 #define __CS_CSRADBUT_H__ 00022 00031 #include "cscomp.h" 00032 #include "csbutton.h" 00033 00035 #define CSBS_DEFAULTRADIOBUTTON (CSBS_SELECTABLE) 00036 00038 enum 00039 { 00046 cscmdRadioButtonSet = 0x00000900, 00053 cscmdRadioButtonQuery, 00060 cscmdRadioButtonSelected 00061 }; 00062 00071 class csRadioButton : public csButton 00072 { 00074 bool RadioButtonState; 00075 public: 00077 csRadioButton (csComponent *iParent, int iButtonID, int iButtonStyle = 00078 CSBS_DEFAULTRADIOBUTTON); 00079 00081 virtual bool HandleEvent (iEvent &Event); 00082 00083 protected: 00085 virtual void Press (); 00087 void SetButtBitmap (char *id_n, char *id_p); 00089 void SetRadioButtonState (bool iNewState); 00090 }; 00091 00094 #endif // __CS_CSRADBUT_H__