Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YTextEntry.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:       YTextEntry.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 #ifndef YTextEntry_h
00021 #define YTextEntry_h
00022 
00023 #include "YWidget.h"
00024 #include <ycp/YCPString.h>
00025 
00026 class YMacroRecorder;
00027 
00032 class YTextEntry : public YWidget
00033 {
00034 public:
00038     YTextEntry( const YWidgetOpt & opt, const YCPString & label );
00039 
00044     virtual char *widgetClass() { return "YTextEntry"; }
00045 
00046 
00051     YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue );
00052 
00056     YCPValue queryWidget( const YCPSymbol & property );
00057 
00061     virtual void setText( const YCPString & text ) = 0;
00062 
00066     virtual YCPString getText() = 0;
00067 
00072     virtual void setLabel( const YCPString & label );
00073 
00080     YCPString getLabel();
00081 
00088     virtual void setValidChars( const YCPString & validChars );
00089 
00093     YCPString getValidChars();
00094 
00099     const char *shortcutProperty() { return YUIProperty_Label; }
00100     
00101     
00102 protected:
00103 
00107     YCPString label;
00108 
00112     YCPString validChars;
00113 
00114 
00115 private:
00116 
00122     virtual void saveUserInput( YMacroRecorder *macroRecorder );
00123 };
00124 
00125 
00126 #endif // YTextEntry_h

Generated on Fri Nov 9 18:15:23 2007 for yast2-core by doxygen 1.3.6