00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: NCPopupTextEntry.h 00014 00015 Author: Michael Andres <ma@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 /-*/ 00019 #ifndef NCPopupTextEntry_h 00020 #define NCPopupTextEntry_h 00021 00022 #include <iosfwd> 00023 00024 #include "NCPopup.h" 00025 #include "NCTextEntry.h" 00026 00027 00029 // 00030 // CLASS NAME : NCPopupTextEntry 00031 // 00032 // DESCRIPTION : 00033 // 00034 class NCPopupTextEntry : public NCPopup { 00035 00036 NCPopupTextEntry & operator=( const NCPopupTextEntry & ); 00037 NCPopupTextEntry ( const NCPopupTextEntry & ); 00038 00039 private: 00040 00041 NCTextEntry * wtext; 00042 00043 virtual bool postAgain(); 00044 00045 public: 00046 00047 NCPopupTextEntry( const wpos at, 00048 const YCPString & label, 00049 const YCPString & text, 00050 unsigned maxInput = 0, 00051 unsigned maxFld = 0, 00052 NCTextEntry::FTYPE t = NCTextEntry::PLAIN ); 00053 00054 virtual ~NCPopupTextEntry(); 00055 00056 void setText( const YCPString & ntext ) { wtext->setText( ntext ); } 00057 YCPString getText() { return wtext->getText(); } 00058 }; 00059 00061 00062 00063 #endif // NCPopupTextEntry_h