~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kscd/inexact.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*   
 
3
   Kscd - A simple cd player for the KDE Project
 
4
 
 
5
   $Id: inexact.h,v 1.9 2000/12/27 22:17:27 tibirna Exp $
 
6
 
 
7
   Copyright (c) 1997 Bernd Johannes Wuebben math.cornell.edu
 
8
 
 
9
   This program is free software; you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation; either version 2, or (at your option)
 
12
   any later version.
 
13
 
 
14
   This program is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
   GNU General Public License for more details.
 
18
 
 
19
   You should have received a copy of the GNU General Public License
 
20
   along with this program; if not, write to the Free Software
 
21
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
22
 
 
23
 
 
24
 */
 
25
 
 
26
#ifndef __INEXACT_DIALOG__
 
27
#define __INEXACT_DIALOG__
 
28
 
 
29
#include <stdlib.h>
 
30
 
 
31
#include <qdialog.h>
 
32
#include <qfont.h>
 
33
#include <qstring.h>
 
34
#include <qpainter.h>
 
35
#include <qlabel.h>
 
36
#include <qmultilineedit.h>
 
37
#include <qpushbutton.h>
 
38
#include <qlistbox.h>
 
39
#include <qstrlist.h>
 
40
#include <qmultilineedit.h> 
 
41
 
 
42
class InexactDialog : public QDialog {
 
43
 
 
44
Q_OBJECT
 
45
 
 
46
public:
 
47
  InexactDialog(QWidget *parent=0, const char *name=0,bool listbox = true);
 
48
  ~InexactDialog();
 
49
 
 
50
  void insertList(const QStringList& list);
 
51
  void insertText(const QString& str);
 
52
  void getSelection(QString& string);
 
53
 
 
54
  void setTitle(const QString& t);
 
55
  void setErrorString(const QString& t);
 
56
 
 
57
private slots:
 
58
 
 
59
  void setStatusBar(int i);
 
60
  void checkit();
 
61
 
 
62
private:
 
63
    bool            listbox;
 
64
    QPushButton     *ok_button;
 
65
    QPushButton     *cancel_button;
 
66
    QListBox        *list_box;
 
67
    QMultiLineEdit  *edit;
 
68
    QLabel          *statuslabel;
 
69
    QLabel          *text;
 
70
    QString         returnstring;
 
71
    QString         titlestring;
 
72
    QString         errorstring;
 
73
};
 
74
 
 
75
#endif