• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kinputdialog.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00017   Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KINPUTDIALOG_H
00021 #define KINPUTDIALOG_H
00022 
00023 #include <QtCore/QStringList>
00024 
00025 #include <kdeui_export.h>
00026 
00027 #include <limits.h>
00028 #include <float.h>
00029 
00030 class QValidator;
00031 
00039 namespace KInputDialog
00040 {
00068     KDEUI_EXPORT QString getText( const QString &caption, const QString &label,
00069                                   const QString &value=QString(), bool *ok=0, QWidget *parent=0,
00070                                   QValidator *validator=0,
00071                                   const QString &mask=QString(),
00072                                   const QString& whatsThis=QString(),
00073                                   const QStringList &completionList=QStringList()  );
00074 
00091     KDEUI_EXPORT QString getMultiLineText( const QString &caption,
00092                                            const QString &label, const QString &value=QString(),
00093                                            bool *ok=0, QWidget *parent=0 );
00094 
00118     KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
00119                                  int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
00120                                  int step=1, int base=10, bool *ok=0, QWidget *parent=0 );
00121 
00126     KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
00127                                  int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
00128                                  int step=1, bool *ok=0, QWidget *parent=0 );
00129 
00152     KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
00153                                    double value=0, double minValue=-DBL_MAX,
00154                                    double maxValue=DBL_MAX, double step=0.1, int decimals=1,
00155                                    bool *ok=0, QWidget *parent=0 );
00156 
00161     KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
00162                                    double value=0, double minValue=-DBL_MAX,
00163                                    double maxValue=DBL_MAX, int decimals=1, bool *ok=0,
00164                                    QWidget *parent=0 );
00165 
00185     KDEUI_EXPORT QString getItem( const QString &caption, const QString &label,
00186                                   const QStringList &list, int current=0, bool editable=false,
00187                                   bool *ok=0, QWidget *parent=0 );
00188 
00208     KDEUI_EXPORT QStringList getItemList( const QString &caption,
00209                                           const QString &label, const QStringList &list=QStringList(),
00210                                           const QStringList &select=QStringList(), bool multiple=false,
00211                                           bool *ok=0, QWidget *parent=0 );
00212 }
00213 
00214 #endif // KINPUTDIALOG_H
00215 
00216 /* vim: set ai et sw=2 ts=2
00217 */

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal