Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
canvasmode_panning.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
17
18
#ifndef CANVAS_MODE_PANNING_H
19
#define CANVAS_MODE_PANNING_H
20
21
#include <QObject>
22
#include <QTime>
23
24
#include "canvasmode.h"
25
#include "fpointarray.h"
26
27
class
PanGesture
;
28
class
ScribusMainWindow
;
29
class
ScribusView
;
30
31
32
// This class encapsulate the old code for mouse interaction from scribusview.cpp
33
34
class
CanvasMode_Panning
:
public
CanvasMode
35
{
36
public
:
37
explicit
CanvasMode_Panning
(
ScribusView
* view);
38
virtual
~
CanvasMode_Panning
() {}
39
40
virtual
void
enterEvent(QEvent *);
41
virtual
void
leaveEvent(QEvent *);
42
43
virtual
void
activate
(
bool
);
44
virtual
void
deactivate
(
bool
);
45
virtual
void
mouseDoubleClickEvent(QMouseEvent *m);
46
virtual
void
mousePressEvent(QMouseEvent *m);
47
virtual
void
drawControls
(QPainter* p);
48
};
49
50
51
#endif
CanvasMode_Panning
Definition:
canvasmode_panning.h:34
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
CanvasMode_Panning::activate
virtual void activate(bool)
Definition:
canvasmode_panning.cpp:58
PanGesture
Definition:
canvasgesture_pan.h:26
CanvasMode_Panning::drawControls
virtual void drawControls(QPainter *p)
Definition:
canvasmode_panning.cpp:39
CanvasMode_Panning::deactivate
virtual void deactivate(bool)
Definition:
canvasmode_panning.cpp:74
CanvasMode
Definition:
canvasmode.h:72
ScribusView
Definition:
scribusview.h:87
scribus
canvasmode_panning.h
Generated on Tue Sep 29 2015 09:14:55 for Scribus by
1.8.9.1