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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • dialogs
kinputdialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KINPUTDIALOG_H
21 #define KINPUTDIALOG_H
22 
23 #include <QtCore/QStringList>
24 
25 #include <kdeui_export.h>
26 
27 #include <limits.h>
28 #include <float.h>
29 
30 class QValidator;
31 
39 namespace KInputDialog
40 {
68  KDEUI_EXPORT QString getText( const QString &caption, const QString &label,
69  const QString &value=QString(), bool *ok=0, QWidget *parent=0,
70  QValidator *validator=0,
71  const QString &mask=QString(),
72  const QString& whatsThis=QString(),
73  const QStringList &completionList=QStringList() );
74 
91  KDEUI_EXPORT QString getMultiLineText( const QString &caption,
92  const QString &label, const QString &value=QString(),
93  bool *ok=0, QWidget *parent=0 );
94 
118  KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
119  int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
120  int step=1, int base=10, bool *ok=0, QWidget *parent=0 );
121 
126  KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
127  int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
128  int step=1, bool *ok=0, QWidget *parent=0 );
129 
152  KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
153  double value=0, double minValue=-DBL_MAX,
154  double maxValue=DBL_MAX, double step=0.1, int decimals=1,
155  bool *ok=0, QWidget *parent=0 );
156 
161  KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
162  double value=0, double minValue=-DBL_MAX,
163  double maxValue=DBL_MAX, int decimals=1, bool *ok=0,
164  QWidget *parent=0 );
165 
185  KDEUI_EXPORT QString getItem( const QString &caption, const QString &label,
186  const QStringList &list, int current=0, bool editable=false,
187  bool *ok=0, QWidget *parent=0 );
188 
208  KDEUI_EXPORT QStringList getItemList( const QString &caption,
209  const QString &label, const QStringList &list=QStringList(),
210  const QStringList &select=QStringList(), bool multiple=false,
211  bool *ok=0, QWidget *parent=0 );
212 }
213 
214 #endif // KINPUTDIALOG_H
215 
216 /* vim: set ai et sw=2 ts=2
217 */
QWidget
KStandardShortcut::label
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
KInputDialog::getItem
QString getItem(const QString &caption, const QString &label, const QStringList &list, int current, bool editable, bool *ok, QWidget *parent)
Static convenience function to let the user select an item from a list.
Definition: kinputdialog.cpp:430
KInputDialog::getDouble
double getDouble(const QString &caption, const QString &label, double value, double minValue, double maxValue, double step, int decimals, bool *ok, QWidget *parent)
Static convenience function to get a floating point number from the user.
Definition: kinputdialog.cpp:405
KInputDialog::getInteger
int getInteger(const QString &caption, const QString &label, int value, int minValue, int maxValue, int step, int base, bool *ok, QWidget *parent)
Static convenience function to get an integer from the user.
Definition: kinputdialog.cpp:380
KInputDialog::getItemList
QStringList getItemList(const QString &caption, const QString &label, const QStringList &list, const QStringList &select, bool multiple, bool *ok, QWidget *parent)
Static convenience function to let the user select one or more items from a listbox.
Definition: kinputdialog.cpp:455
QString
QStringList
KInputDialog::getText
QString getText(const QString &caption, const QString &label, const QString &value, bool *ok, QWidget *parent, QValidator *validator, const QString &mask, const QString &whatsThis, const QStringList &completionList)
Static convenience function to get a string from the user.
Definition: kinputdialog.cpp:330
KStandardGuiItem::ok
KGuiItem ok()
Returns the 'Ok' gui item.
Definition: kstandardguiitem.cpp:107
KInputDialog::getMultiLineText
QString getMultiLineText(const QString &caption, const QString &label, const QString &value, bool *ok, QWidget *parent)
Static convenience function to get a multiline string from the user.
Definition: kinputdialog.cpp:362
KStandardShortcut::whatsThis
QString whatsThis(StandardShortcut)
What's This button.
Definition: kstandardshortcut.cpp:276
kdeui_export.h
QValidator
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal