// This is the SIP interface definition for QInputDialog. // // Copyright (c) 2007 // Riverbank Computing Limited // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc QInputDialog (Qt v2.1+) static QString getText const QString &caption const QString &label const QString &text = QString::null bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the QString result and the ok flag. (Qt v2.1 - v2.3.1) static QString getText const QString &caption const QString &label QLineEdit::EchoModeecho const QString &text = QString::null bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the QString result and the ok flag. (Qt v2.2 - v2.3.1) static QString getText const QString &caption const QString &label QLineEdit::EchoModeecho = QLineEdit::Normal const QString &text = QString::null bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the QString result and the ok flag. (Qt v3+) static int getInteger const QString &caption const QString &label int num = 0 int from = -2147483647 int to = 2147483647 int step = 1 bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the int result and the ok flag. static double getDouble const QString &caption const QString &label double num = 0 double from = -2147483647 double to = 2147483647 int step = 1 bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the double result and the ok flag. static QString getItem const QString &caption const QString &label const QStringList &list int current = 0 bool editable = TRUE bool *ok = 0 QWidget *parent = 0 const char *name = 0 The ok is not passed and the returned value is a tuple of the QString result and the ok flag. %End %If (Qt_2_1_0 -) %If (Qt_INPUTDIALOG) class QInputDialog : QDialog { %TypeHeaderCode #include %End public: %If (Qt_3_0_0 -) static QString getText(const QString &,const QString &, QLineEdit::EchoMode = QLineEdit::Normal, const QString & = QString::null, bool * = 0,QWidget * = 0,const char * = 0); %End %If (- Qt_3_0_0) static QString getText(const QString &,const QString &, const QString & = QString::null, bool * = 0,QWidget * = 0,const char * = 0); %End %If (Qt_2_2_0 - Qt_3_0_0) static QString getText(const QString &,const QString &, QLineEdit::EchoMode, const QString & = QString::null, bool * = 0,QWidget * = 0,const char * = 0); %End static int getInteger(const QString &,const QString &,int = 0, int = -2147483647,int = 2147483647,int = 1, bool * = 0,QWidget * = 0,const char * = 0); static double getDouble(const QString &,const QString &, double = 0,double = -2147483647, double = 2147483647,int = 1, bool * = 0,QWidget * = 0,const char * = 0); static QString getItem(const QString &,const QString &, const QStringList &,int = 0,bool = TRUE, bool * = 0,QWidget * = 0,const char * = 0); private: QInputDialog(const QInputDialog &); ~QInputDialog(); }; %End %End