00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YRichText.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Stefan Hundhammer <sh@suse.de> 00017 00018 /-*/ 00019 00020 #ifndef YRichText_h 00021 #define YRichText_h 00022 00023 #include "YWidget.h" 00024 #include <ycp/YCPString.h> 00025 00030 class YRichText : public YWidget 00031 { 00032 public: 00038 YRichText( const YWidgetOpt & opt, YCPString text ); 00039 00044 virtual char *widgetClass() { return "YRichText"; } 00045 00049 YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue ); 00050 00054 YCPValue queryWidget( const YCPSymbol & property ); 00055 00060 virtual void setText( const YCPString & RichText ); 00061 00068 YCPString getText(); 00069 00070 00071 protected: 00075 YCPString text; 00076 00077 00081 bool autoScrollDown; 00082 }; 00083 00084 00085 #endif // YRichText_h