| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kinputdialog.h

    00001 /*
    00002   Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
    00003
    00004   This library is free software; you can redistribute it and/or
    00005   modify it under the terms of the GNU Library General Public
    00006   License as published by the Free Software Foundation; either
    00007   version 2 of the License, or (at your option) any later version.
    00008
    00009   This library is distributed in the hope that it will be useful,
    00010   but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012   Library General Public License for more details.
    00013
    00014   You should have received a copy of the GNU Library General Public License
    00015   along with this library; see the file COPYING.LIB.  If not, write to
    00016   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00017   Boston, MA 02111-1307, USA.
    00018 */
    00019
    00020 #ifndef KINPUTDIALOG_H
    00021 #define KINPUTDIALOG_H
    00022
    00023 class QValidator;
    00024
    00025 class KLineEdit;
    00026 class KIntSpinBox;
    00027 class KDoubleSpinBox;
    00028 class KComboBox;
    00029 class KTextEdit;
    00030 class KInputDialogPrivate;
    00031
    00032 #include <kdialogbase.h>
    00033
    00046 class KDEUI_EXPORT KInputDialog : public KDialogBase
    00047 {
    00048   Q_OBJECT
    00049
    00050   private:
    00051
    00056     KInputDialog( const QString &caption, const QString &label,
    00057       const QString &value, QWidget *parent, const char *name,
    00058       QValidator *validator, const QString &mask );
    00059     KInputDialog( const QString &caption, const QString &label,
    00060       const QString &value, QWidget *parent, const char *name );
    00061     KInputDialog( const QString &caption, const QString &label, int value,
    00062       int minValue, int maxValue, int step, int base, QWidget *parent,
    00063       const char *name );
    00064     KInputDialog( const QString &caption, const QString &label, double value,
    00065       double minValue, double maxValue, double step, int decimals,
    00066       QWidget *parent, const char *name );
    00067     KInputDialog( const QString &caption, const QString &label,
    00068       const QStringList &list, int current, bool editable, QWidget *parent,
    00069       const char *name );
    00070     KInputDialog( const QString &caption, const QString &label,
    00071       const QStringList &list, const QStringList &select, bool editable,
    00072       QWidget *parent, const char *name );
    00073
    00074     ~KInputDialog();
    00075
    00076     KLineEdit *lineEdit() const;
    00077     KIntSpinBox *intSpinBox() const;
    00078     KDoubleSpinBox *doubleSpinBox() const;
    00079     KComboBox *comboBox() const;
    00080     KListBox *listBox() const;
    00081     KTextEdit *textEdit() const;
    00082
    00083   private slots:
    00084
    00085     void slotEditTextChanged( const QString& );
    00086     void slotUpdateButtons( const QString& );
    00087
    00088   public:
    00089
    00117     static QString getText( const QString &caption, const QString &label,
    00118         const QString &value=QString::null, bool *ok=0, QWidget *parent=0,
    00119         const char *name=0, QValidator *validator=0,
    00120         const QString &mask=QString::null );
    00121
    00130     static QString text( const QString &caption, const QString &label,
    00131         const QString &value=QString::null, bool *ok=0, QWidget *parent=0,
    00132         const char *name=0, QValidator *validator=0,
    00133         const QString &mask=QString::null,
    00134         const QString& whatsThis=QString::null );
    00135
    00154     static QString getMultiLineText( const QString &caption,
    00155         const QString &label, const QString &value=QString::null,
    00156         bool *ok=0, QWidget *parent=0, const char *name=0 );
    00157
    00182     static int getInteger( const QString &caption, const QString &label,
    00183         int value=0, int minValue=-2147483647, int maxValue=2147483647,
    00184         int step=1, int base=10, bool *ok=0, QWidget *parent=0,
    00185         const char *name=0 );
    00186
    00191     static int getInteger( const QString &caption, const QString &label,
    00192         int value=0, int minValue=-2147483647, int maxValue=2147483647,
    00193         int step=1, bool *ok=0, QWidget *parent=0, const char *name=0 );
    00194
    00218     static double getDouble( const QString &caption, const QString &label,
    00219         double value=0, double minValue=-2147483647,
    00220         double maxValue=2147483647, double step=0.1, int decimals=1,
    00221         bool *ok=0, QWidget *parent=0, const char *name=0 );
    00222
    00227     static double getDouble( const QString &caption, const QString &label,
    00228         double value=0, double minValue=-2147483647,
    00229         double maxValue=2147483647, int decimals=1, bool *ok=0,
    00230         QWidget *parent=0, const char *name=0 );
    00231
    00252     static QString getItem( const QString &caption, const QString &label,
    00253         const QStringList &list, int current=0, bool editable=false,
    00254         bool *ok=0, QWidget *parent=0, const char *name=0 );
    00255
    00276     static QStringList getItemList( const QString &caption,
    00277         const QString &label, const QStringList &list=QStringList(),
    00278         const QStringList &select=QStringList(), bool multiple=false,
    00279         bool *ok=0, QWidget *parent=0, const char *name=0 );
    00280
    00281   private:
    00282
    00283     KInputDialogPrivate* const d;
    00284     friend class KInputDialogPrivate;
    00285 };
    00286
    00287 #endif // KINPUTDIALOG_H
    00288
    00289 /* vim: set ai et sw=2 ts=2
    00290 */

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:17 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003