1//
2// Copyright (C) 1998 Matthias Hoelzer <hoelzer@kde.org>
3// Copyright (C) 2002-2005 David Faure <faure@kde.org>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the7 implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18//
19
20
21#ifndef WIDGETS_H
22#define WIDGETS_H
23
24#include <QDate>
25#include <QtCore/QByteRef>
26#include <QWidget>
27#include <QtCore/QStringList>
28
29namespace Widgets
30{
31 bool inputBox(QWidget *parent, const QString& title, const QString& text, const QString& init, QString &result);
32 bool passwordBox(QWidget *parent, const QString& title, const QString& text, QString &result);
33 int textBox(QWidget *parent, int width, int height, const QString& title, const QString& file);
34 int textInputBox(QWidget *parent, int width, int height, const QString& title, const QString& text, const QString& init, QString &result);
35 bool listBox(QWidget *parent, const QString& title, const QString& text, const QStringList& args, const QString &defaultEntry, QString &result);
36 bool checkList(QWidget *parent, const QString& title, const QString& text, const QStringList& args, bool separateOutput, QStringList &result);
37 bool radioBox(QWidget *parent, const QString& title, const QString& text, const QStringList& args, QString &result);
38 bool comboBox(QWidget *parent, const QString& title, const QString& text, const QStringList& args, const QString& defaultEntry, QString &result);
39 bool progressBar(QWidget *parent, const QString& title, const QString& text, int totalSteps);
40 bool slider( QWidget *parent, const QString& title, const QString& test, int minValue, int maxValue, int step, int &result );
41 bool calendar( QWidget *parent, const QString &title, const QString &text, QDate & result );
42
43 void handleXGeometry(QWidget * dlg);
44
45 QString parseString(const QString &str);
46}
47
48#endif
49