~ubuntu-branches/ubuntu/raring/plasma-mobile/raring-proposed

« back to all changes in this revision

Viewing changes to applications/imageviewer/src/view.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-17 12:04:43 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120717120443-q3ig9u2fnltx67yg
Tags: 2.0+git2012071701-0ubuntu1
* New upstream snapshot
* Remove build-dep on kde-runtime-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *                                                                         *
3
 
 *   Copyright 2011 Sebastian Kügler <sebas@kde.org>                       *
4
 
 *   Copyright 2011 Marco Martin <mart@kde.org>                            *
5
 
 *                                                                         *
6
 
 *   This program is free software; you can redistribute it and/or modify  *
7
 
 *   it under the terms of the GNU General Public License as published by  *
8
 
 *   the Free Software Foundation; either version 2 of the License, or     *
9
 
 *   (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                         *
18
 
 *   Free Software Foundation, Inc.,                                       *
19
 
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
20
 
 ***************************************************************************/
21
 
 
22
 
#ifndef VIEW_H
23
 
#define VIEW_H
24
 
#include <QDeclarativeView>
25
 
#include <qwebview.h>
26
 
#include <qmap.h>
27
 
#include <qaction.h>
28
 
 
29
 
 
30
 
#include <KActionCollection>
31
 
#include <KMainWindow>
32
 
#include <KPluginInfo>
33
 
 
34
 
class KMainWindow;
35
 
class QDeclarativeItem;
36
 
class QProgressBar;
37
 
class QSignalMapper;
38
 
class Page;
39
 
class ScriptApi;
40
 
class ImageViewer;
41
 
class DirModel;
42
 
 
43
 
 
44
 
namespace Plasma
45
 
{
46
 
    class Package;
47
 
}
48
 
 
49
 
class AppView : public QDeclarativeView
50
 
{
51
 
    Q_OBJECT
52
 
 
53
 
public:
54
 
    AppView(const QString &url, QWidget *parent = 0 );
55
 
    ~AppView();
56
 
 
57
 
    QString name() const;
58
 
 
59
 
    void setUseGL(const bool on);
60
 
    bool useGL() const;
61
 
 
62
 
private Q_SLOTS:
63
 
    void onStatusChanged(QDeclarativeView::Status status);
64
 
 
65
 
private:
66
 
    QDeclarativeItem* m_imageViewer;
67
 
    Plasma::Package *m_package;
68
 
    DirModel *m_dirModel;
69
 
    bool m_useGL;
70
 
};
71
 
 
72
 
#endif // VIEW_H