~ubuntu-branches/ubuntu/warty/gwenview/warty

« back to all changes in this revision

Viewing changes to gwenview/fullscreenview.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Martin
  • Date: 2004-06-13 18:55:04 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040613185504-net8ekxoswwvyxs9
Tags: 1.1.3-1
New upstream release. Translations now included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Gwenview - A simple image viewer for KDE
3
 
Copyright (C) 2000-2002 Aur�lien G�teau
4
 
 
5
 
This program is free software; you can redistribute it and/or
6
 
modify it under the terms of the GNU General Public License
7
 
as published by the Free Software Foundation; either version 2
8
 
of the License, or (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 the 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
 
 
19
 
*/
20
 
 
21
 
#ifndef FULLSCREENWIDGET_H
22
 
#define FULLSCREENWIDGET_H
23
 
 
24
 
 
25
 
// QT includes
26
 
#include <qwidget.h>
27
 
 
28
 
 
29
 
class GVPixmap;
30
 
class KConfig;
31
 
class QPainter;
32
 
 
33
 
 
34
 
class FullScreenView : public QWidget {
35
 
Q_OBJECT
36
 
public:
37
 
        FullScreenView(QWidget* parent,GVPixmap* image,bool);
38
 
        void enableView(bool);
39
 
 
40
 
        void readConfig(KConfig*,const QString&);
41
 
        void writeConfig(KConfig*,const QString&) const;
42
 
 
43
 
        void setShowPath(bool);
44
 
        bool showPath() const { return mShowPath; }
45
 
        
46
 
public slots:
47
 
        void updateView();
48
 
 
49
 
protected:
50
 
        void keyReleaseEvent(QKeyEvent* event);
51
 
        void paintEvent(QPaintEvent *event);
52
 
        void mouseReleaseEvent(QMouseEvent *event);
53
 
        void wheelEvent(QWheelEvent *event);
54
 
 
55
 
private:
56
 
        GVPixmap* mGVPixmap;
57
 
        int mPosX,mPosY;
58
 
        bool mShowPath;
59
 
        
60
 
        void paintPixmap(QPainter*);
61
 
        void paintPath(QPainter*);
62
 
 
63
 
signals:
64
 
        void selectPrevious();
65
 
        void selectNext();
66
 
        void escapePressed();
67
 
};
68
 
 
69
 
 
70
 
 
71
 
#endif