~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to src/maliit/plugins/abstractwidgetssurface.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * This file is part of Maliit framework *
2
 
 *
3
 
 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4
 
 * All rights reserved.
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
8
 
 * This library is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Lesser General Public
10
 
 * License version 2.1 as published by the Free Software Foundation
11
 
 * and appearing in the file LICENSE.LGPL included in the packaging
12
 
 * of this file.
13
 
 */
14
 
 
15
 
#ifndef MALIIT_PLUGINS_ABSTRACTWIDGETSSURFACE_H
16
 
#define MALIIT_PLUGINS_ABSTRACTWIDGETSSURFACE_H
17
 
 
18
 
#include <maliit/plugins/abstractsurface.h>
19
 
 
20
 
class QGraphicsItem;
21
 
class QGraphicsScene;
22
 
class QGraphicsView;
23
 
class QWidget;
24
 
 
25
 
namespace Maliit {
26
 
namespace Plugins {
27
 
 
28
 
/*!
29
 
 * \brief The AbstractWidgetSurface class provides an AbstractSurface backed by a QWidget
30
 
 */
31
 
class AbstractWidgetSurface : public virtual AbstractSurface
32
 
{
33
 
public:
34
 
    virtual ~AbstractWidgetSurface();
35
 
 
36
 
    /*!
37
 
     * \brief returns a QWidget to put children widgets into it
38
 
     * \return the QWidget backing this surface
39
 
     */
40
 
    virtual QWidget *widget() const = 0;
41
 
};
42
 
 
43
 
/*!
44
 
 * \brief The AbstractGraphicsViewSurface class provides an AbstractSurface backed by a QGraphicsView
45
 
 */
46
 
class AbstractGraphicsViewSurface : public virtual AbstractSurface
47
 
{
48
 
public:
49
 
    virtual ~AbstractGraphicsViewSurface();
50
 
 
51
 
    /*!
52
 
     * \brief returns the QGraphicsScene of the surface
53
 
     * \return the QGraphicsScene of the surface
54
 
     */
55
 
    virtual QGraphicsScene *scene() const = 0;
56
 
 
57
 
    /*!
58
 
     * \brief returns the QGraphicsView of the surface
59
 
     * \return the QGraphicsView of the surface
60
 
     */
61
 
    virtual QGraphicsView *view() const = 0;
62
 
 
63
 
    /*!
64
 
     * \brief returns the root QGraphicsItem of the surface
65
 
     * \return the root QGraphicsItem of the surface
66
 
     */
67
 
    virtual QGraphicsItem *root() const = 0;
68
 
 
69
 
    /*!
70
 
     * \brief clear this surface
71
 
     */
72
 
    virtual void clear() = 0;
73
 
};
74
 
 
75
 
} // namespace Plugins
76
 
} // namespace Maliit
77
 
 
78
 
#endif // MALIIT_PLUGINS_ABSTRACTWIDGETSSURFACE_H