~ubuntu-branches/ubuntu/trusty/gwenview/trusty

« back to all changes in this revision

Viewing changes to app/startpage.h

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-07-20 13:46:34 UTC
  • Revision ID: james.westby@ubuntu.com-20110720134634-92930fdjeed4gdc9
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
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
2
/*
 
3
Gwenview: an image viewer
 
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
 
5
 
 
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.
 
10
 
 
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.
 
15
 
 
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, Cambridge, MA 02110-1301, USA.
 
19
 
 
20
*/
 
21
#ifndef STARTPAGE_H
 
22
#define STARTPAGE_H
 
23
 
 
24
// Qt
 
25
#include <QFrame>
 
26
 
 
27
// KDE
 
28
 
 
29
// Local
 
30
 
 
31
class QModelIndex;
 
32
class QPalette;
 
33
class QShowEvent;
 
34
 
 
35
class KUrl;
 
36
 
 
37
namespace Gwenview {
 
38
 
 
39
class GvCore;
 
40
 
 
41
class StartPagePrivate;
 
42
class StartPage : public QFrame {
 
43
        Q_OBJECT
 
44
public:
 
45
        StartPage(QWidget* parent, GvCore*);
 
46
        ~StartPage();
 
47
 
 
48
        void applyPalette(const QPalette&);
 
49
 
 
50
Q_SIGNALS:
 
51
        void urlSelected(const KUrl& url);
 
52
 
 
53
protected:
 
54
        virtual void showEvent(QShowEvent*);
 
55
 
 
56
private Q_SLOTS:
 
57
        void slotListViewActivated(const QModelIndex& index);
 
58
        void showRecentFoldersViewContextMenu(const QPoint& pos);
 
59
        void slotTagViewClicked(const QModelIndex& index);
 
60
        void slotConfigChanged();
 
61
 
 
62
private:
 
63
        StartPagePrivate* const d;
 
64
};
 
65
 
 
66
 
 
67
} // namespace
 
68
 
 
69
#endif /* STARTPAGE_H */