polish
[kdegraphics.git] / gwenview / lib / fullscreenbar.h
blob0896a096833d7014dc519f60440806b7d6879f54
1 // vim: set tabstop=4 shiftwidth=4 noexpandtab:
2 /*
3 Gwenview: an image viewer
4 Copyright 2007 Aurélien Gâteau <aurelien.gateau@free.fr>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef FULLSCREENBAR_H
22 #define FULLSCREENBAR_H
24 #include <lib/gwenviewlib_export.h>
26 // Qt
27 #include <QFrame>
29 // KDE
31 // Local
33 class QEvent;
35 namespace Gwenview {
38 class FullScreenBarPrivate;
39 class GWENVIEWLIB_EXPORT FullScreenBar : public QFrame {
40 Q_OBJECT
41 public:
42 FullScreenBar(QWidget* parent);
43 ~FullScreenBar();
45 void setActivated(bool);
47 void setAutoHidingEnabled(bool);
49 virtual QSize sizeHint() const;
51 public Q_SLOTS:
52 void slideIn();
53 void slideOut();
55 private Q_SLOTS:
56 void slotAutoHideCursorTimeout();
57 void moveBar(qreal);
58 void delayedInstallEventFilter();
60 protected:
61 virtual bool eventFilter(QObject*, QEvent*);
63 private:
64 FullScreenBarPrivate* const d;
68 } // namespace
70 #endif /* FULLSCREENBAR_H */