~ubuntu-branches/ubuntu/oneiric/kturtle/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/errordialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-07-08 18:25:59 UTC
  • Revision ID: james.westby@ubuntu.com-20110708182559-zae1fawld00ndro7
Tags: upstream-4.6.90+repack
ImportĀ upstreamĀ versionĀ 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
        Copyright (C) 2003-2008 Cies Breijs <cies AT kde DOT nl>
 
3
 
 
4
    This program is free software; you can redistribute it and/or
 
5
    modify it under the terms of the GNU 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 program 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
 
12
        GNU General Public License for more details.
 
13
 
 
14
        You should have received a copy of the GNU General Public
 
15
        License along with this program; if not, write to the Free
 
16
        Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
        Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
#ifndef _ERRORDIALOG_H_
 
21
#define _ERRORDIALOG_H_
 
22
 
 
23
#include <QTableWidget>
 
24
#include <QVBoxLayout>
 
25
#include <QSpacerItem>
 
26
#include <QLabel>
 
27
 
 
28
#include <KDialog>
 
29
 
 
30
#include "interpreter/errormsg.h"
 
31
 
 
32
 
 
33
class ErrorDialog : public KDialog
 
34
{
 
35
        Q_OBJECT
 
36
 
 
37
        public:
 
38
                ErrorDialog(QWidget* parent);
 
39
 
 
40
                void setErrorList(ErrorList*);
 
41
                void clear();
 
42
 
 
43
        signals:
 
44
                void currentlySelectedError(int, int, int, int);
 
45
 
 
46
        public slots:
 
47
                void enable();
 
48
                void disable();
 
49
 
 
50
        private slots:
 
51
                void selectedErrorChangedProxy();
 
52
 
 
53
        private:
 
54
                ErrorList      *errorList;
 
55
                QTableWidget   *errorTable;
 
56
                QVBoxLayout    *baseLayout;
 
57
                QLabel         *label;
 
58
                QSpacerItem    *spacer;
 
59
};
 
60
 
 
61
#endif  // _ERRORDIALOG_H_
 
62