00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YPushButton.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Stefan Hundhammer <sh@suse.de> 00017 00018 /-*/ 00019 00020 #ifndef YPushButton_h 00021 #define YPushButton_h 00022 00023 #include "YWidget.h" 00024 #include <ycp/YCPString.h> 00025 00030 class YPushButton : public YWidget 00031 { 00032 public: 00038 YPushButton( const YWidgetOpt & opt, YCPString label ); 00039 00044 virtual char *widgetClass() { return "YPushButton"; } 00045 00050 YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue ); 00051 00056 YCPValue queryWidget( const YCPSymbol & property ); 00057 00062 virtual void setLabel( const YCPString & label ); 00063 00070 YCPString getLabel(); 00071 00079 virtual void setIcon( const YCPString & icon_name ) {} 00080 00085 const char *shortcutProperty() { return YUIProperty_Label; } 00086 00087 00088 protected: 00092 YCPString label; 00093 }; 00094 00095 00096 #endif // YPushButton_h