YRadioButton.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YRadioButton.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 #ifndef YRadioButton_h
00021 #define YRadioButton_h
00022 
00023 #include "YWidget.h"
00024 #include <ycp/YCPString.h>
00025 
00026 class YRadioButtonGroup;
00027 class YMacroRecorder;
00028 
00032 class YRadioButton : public YWidget
00033 {
00034 public:
00039     YRadioButton( const YWidgetOpt & opt, const YCPString & label, YRadioButtonGroup *rbg );
00040 
00045     virtual char *widgetClass() { return "YRadioButton"; }
00046 
00050     virtual ~YRadioButton();
00051 
00055     YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue );
00056 
00060     YCPValue queryWidget( const YCPSymbol & property );
00061 
00065     virtual void setValue( const YCPBoolean & checked ) = 0;
00066 
00070     virtual YCPBoolean getValue() = 0;
00071 
00076     virtual void setLabel( const YCPString & label );
00077 
00083     YCPString getLabel();
00084 
00089     void buttonGroupIsDead();
00090 
00094     YRadioButtonGroup *buttonGroup();
00095 
00100     const char *shortcutProperty() { return YUIProperty_Label; }
00101            
00106     const char *userInputProperty() { return YUIProperty_Value; }
00107     
00108 
00109 protected:
00113     YCPString label;
00114 
00118     YRadioButtonGroup *radiobuttongroup;
00119 
00120 private:
00126     virtual void saveUserInput( YMacroRecorder *macroRecorder );
00127 };
00128 
00129 
00130 #endif // YRadioButton_h

Generated on Fri Jun 16 18:07:45 2006 for yast2-core by  doxygen 1.4.6