~vcs-imports/bibletime/trunk

« back to all changes in this revision

Viewing changes to bibletime/frontend/cinputdialog.h

  • Committer: mgruner
  • Date: 2007-05-08 15:51:07 UTC
  • Revision ID: vcs-imports@canonical.com-20070508155107-0rj7jdmm5ivf8685
-imported source and data files to new svn module
-this is where KDE4-based development will take place

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********
 
2
*
 
3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
 
4
*
 
5
* Copyright 1999-2006 by the BibleTime developers.
 
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
 
7
*
 
8
**********/
 
9
 
 
10
 
 
11
 
 
12
#ifndef CINPUTDIALOG_H
 
13
#define CINPUTDIALOG_H
 
14
 
 
15
//KDE includes
 
16
#include <kdialog.h>
 
17
 
 
18
class QTextEdit;
 
19
class QWidget;
 
20
 
 
21
/** This is a small input dialog with
 
22
 * a multiline edit for the text input.
 
23
  * @author The BibleTime team
 
24
  */
 
25
class CInputDialog : public KDialog  {
 
26
        Q_OBJECT
 
27
public:
 
28
        CInputDialog(const QString& caption, const QString& description, const QString& text, QWidget *parent=0, const char *name=0, const bool modal = true);
 
29
        /**
 
30
        * A static function to get some using CInputDialog.
 
31
        */
 
32
        static const QString getText( const QString& caption, const QString& description, const QString& text = QString::null, bool* ok = 0, QWidget* parent = 0, bool modal = true);
 
33
        /**
 
34
        * Returns the text entered at the moment.
 
35
        */
 
36
        const QString text();
 
37
        // ~CInputDialog();
 
38
 
 
39
private:
 
40
        QTextEdit* m_editWidget;
 
41
};
 
42
 
 
43
#endif