File indexing completed on 2024-05-05 17:15:16

0001 /*
0002  *  Copyright 2003  Nadeem Hasan <nhasan@kde.org>
0003  *  Copyright 2015  Andreas Cord-Landwehr <cordlandwehr@kde.org>
0004  *
0005  *  This program is free software; you can redistribute it and/or
0006  *  modify it under the terms of the GNU Library General Public
0007  *  License as published by the Free Software Foundation; either
0008  *  version 2 of the License, or (at your option) any later version.
0009  *
0010  *  This program is distributed in the hope that it will be useful,
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013  *  GNU General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU Library General Public License
0016  *  along with this library; see the file COPYING.LIB.  If not, write to
0017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  *  Boston, MA 02110-1301, USA.
0019  */
0020 
0021 
0022 #ifndef KILEVALIDATORINPUTDIALOG_P_H
0023 #define KILEVALIDATORINPUTDIALOG_P_H
0024 
0025 #include <QDialog>
0026 
0027 class QDialogButtonBox;
0028 class QLineEdit;
0029 class QString;
0030 class QWidget;
0031 class QValidator;
0032 
0033 namespace KileDialog {
0034 class ValidatorInputDialogHelper : public QDialog
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039     ValidatorInputDialogHelper(const QString &caption, const QString &label,
0040                                const QString &value, QWidget *parent,
0041                                QValidator *validator, const QString &mask);
0042 
0043     QLineEdit * lineEdit() const;
0044 
0045 public Q_SLOTS:
0046     void slotEditTextChanged(const QString &value);
0047 
0048 private:
0049     QLineEdit *m_lineEdit;
0050     QDialogButtonBox *m_buttonBox;
0051 };
0052 }
0053 
0054 #endif