~ubuntu-branches/ubuntu/gutsy/kvirc/gutsy

« back to all changes in this revision

Viewing changes to src/plugins/about/kvi_aboutdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Robin Verduijn
  • Date: 2004-12-14 15:32:19 UTC
  • mfrom: (0.2.1 upstream) (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041214153219-fdink3gyp2s20b6g
Tags: 2:2.1.3.1-2
* Change Recommends on xmms to a Suggests.
* Rebuild against KDE 3.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _KVI_ABOUTDIALOG_H_INCLUDED_
 
2
#define _KVI_ABOUTDIALOG_H_INCLUDED_
 
3
 
 
4
// =============================================================================
 
5
//
 
6
//   This file is part of the KVIrc IRC client distribution
 
7
//   Copyright (C) 1999-2000 Till Bush (buti@geocities.com)
 
8
//
 
9
//   This program is FREE software. You can redistribute it and/or
 
10
//   modify it under the terms of the GNU General Public License
 
11
//   as published by the Free Software Foundation; either version 2
 
12
//   of the License, or (at your opinion) 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.
 
17
//   See the 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 Foundation,
 
21
//   Inc, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
22
//
 
23
// =============================================================================
 
24
 
 
25
#include "kvi_dialog.h"
 
26
 
 
27
class KviLabel;
 
28
 
 
29
class KviAboutDialog : public KviDialog
 
30
{
 
31
        Q_OBJECT
 
32
public:
 
33
        KviAboutDialog(QWidget *parent = 0);
 
34
        ~KviAboutDialog();
 
35
 
 
36
protected:
 
37
 
 
38
signals:
 
39
        void closed();
 
40
 
 
41
private slots:
 
42
        void close();
 
43
        virtual void closeEvent(QCloseEvent *);
 
44
        virtual void paintEvent(QPaintEvent *);
 
45
        void scrollText();
 
46
 
 
47
private:
 
48
        int       posY;
 
49
        int       w, h;
 
50
        int       m_text_height;
 
51
        char     *m_text;
 
52
        KviLabel *m_pfield;
 
53
        QWidget  *m_pview;
 
54
        QPixmap  *m_ppix_text;
 
55
        QPixmap  *m_pBackground;
 
56
 
 
57
        virtual void mouseReleaseEvent(QMouseEvent *e);
 
58
};
 
59
 
 
60
#endif // _KVI_ABOUTDIALOG_H_INCLUDED_