~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/quick/api/oxideqquicktouchselectioncontroller.h

  • Committer: Chris Coulson
  • Date: 2016-01-13 18:16:11 UTC
  • Revision ID: chris.coulson@canonical.com-20160113181611-vo55lgwngvcj9u1h
Various clean-ups in soon-to-be-public headers. Also, we rename header files based on whether they're going to be public or not

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// License along with this library; if not, write to the Free Software
16
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 
18
 
#ifndef _OXIDE_QT_QUICK_API_TOUCH_SELECTION_CONTROLLER_H_
19
 
#define _OXIDE_QT_QUICK_API_TOUCH_SELECTION_CONTROLLER_H_
20
 
 
21
 
#include <QObject>
22
 
#include <QRectF>
23
 
#include <QString>
24
 
#include <QtGlobal>
25
 
 
26
 
#include "oxideqquickwebview_p.h"
27
 
 
 
18
#ifndef OXIDE_QTQUICK_TOUCH_SELECTION_CONTROLLER
 
19
#define OXIDE_QTQUICK_TOUCH_SELECTION_CONTROLLER
 
20
 
 
21
#include <QtCore/QObject>
 
22
#include <QtCore/QRectF>
 
23
#include <QtCore/QString>
 
24
#include <QtCore/QtGlobal>
 
25
 
 
26
#include <OxideQtQuick/oxideqquickglobal.h>
 
27
 
 
28
QT_BEGIN_NAMESPACE
28
29
class QQmlComponent;
 
30
QT_END_NAMESPACE
29
31
 
30
32
class OxideQQuickTouchSelectionControllerPrivate;
 
33
class OxideQQuickWebView;
 
34
class OxideQQuickWebViewPrivate;
31
35
 
32
 
class Q_DECL_EXPORT OxideQQuickTouchSelectionController : public QObject {
 
36
class OXIDE_QTQUICK_EXPORT OxideQQuickTouchSelectionController
 
37
    : public QObject {
33
38
  Q_OBJECT
34
39
 
35
40
  Q_ENUMS(HandleOrientation);
42
47
  Q_DECLARE_PRIVATE(OxideQQuickTouchSelectionController)
43
48
 
44
49
 public:
45
 
  Q_DECL_HIDDEN OxideQQuickTouchSelectionController(OxideQQuickWebView* view);
46
 
  virtual ~OxideQQuickTouchSelectionController();
 
50
  ~OxideQQuickTouchSelectionController() Q_DECL_OVERRIDE;
47
51
 
48
52
  enum HandleOrientation {
49
53
    HandleOrientationLeft,
66
70
 
67
71
 private:
68
72
  friend class OxideQQuickWebViewPrivate;
 
73
  friend class OxideQQuickWebView;
 
74
  Q_DECL_HIDDEN OxideQQuickTouchSelectionController(OxideQQuickWebView* view);
 
75
 
69
76
  void onTouchSelectionChanged(bool active, const QRectF& bounds);
70
77
 
71
78
  QScopedPointer<OxideQQuickTouchSelectionControllerPrivate> d_ptr;
72
79
};
73
80
 
74
 
#endif // _OXIDE_QT_QUICK_API_TOUCH_SELECTION_CONTROLLER_H_
 
81
#endif // OXIDE_QTQUICK_TOUCH_SELECTION_CONTROLLER