klineeditdlg.h
00001 /* This file is part of the KDE libraries 00002 00003 Copyright (C) 1999 Preston Brown <pbrown@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef __klineeditdlg_h__ 00021 #define __klineeditdlg_h__ 00022 00023 // #include <tqt.h> 00024 00025 #include <kdialogbase.h> 00026 00027 class KLineEdit; 00028 class TQValidator; 00029 00040 class KDEUI_EXPORT_DEPRECATED KLineEditDlg : public KDialogBase 00041 { 00042 Q_OBJECT 00043 public: 00060 KLineEditDlg( const TQString& _text, const TQString& _value, TQWidget *parent ) KDE_DEPRECATED; 00061 virtual ~KLineEditDlg(); 00062 00066 TQString text() const; 00067 00071 KLineEdit *lineEdit() const { return edit; } 00072 00082 static TQString getText(const TQString &text, const TQString& value, 00083 bool *ok, TQWidget *parent, TQValidator *validator=0 ) KDE_DEPRECATED; 00084 00097 static TQString getText(const TQString &caption, const TQString &text, 00098 const TQString& value=TQString::null, 00099 bool *ok=0, TQWidget *parent=0, 00100 TQValidator *validator=0) KDE_DEPRECATED; 00101 00102 public slots: 00106 void slotClear(); 00107 00108 protected slots: 00113 void slotTextChanged( const TQString& ); 00114 00115 protected: 00119 KLineEdit *edit; 00120 protected: 00121 virtual void virtual_hook( int id, void* data ); 00122 private: 00123 class KLineEditDlgPrivate; 00124 KLineEditDlgPrivate* d; 00125 }; 00126 00127 #endif