Scribus
Open source desktop publishing at your fingertips
navigator.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  navigator.h - description
9  -------------------
10  begin : Fri Feb 22 2002
11  copyright : (C) 2002 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef NAVIGATOR_H
25 #define NAVIGATOR_H
26 
27 #include <QLabel>
28 
29 class QPaintEvent;
30 class QMouseEvent;
31 class QPixmap;
32 
33 #include "scribusapi.h"
34 class ScribusView;
35 
40 class SCRIBUS_API Navigator : public QLabel
41 {
42  Q_OBJECT
43 
44 public:
45  Navigator(QWidget *parent, int Size, int Seite, ScribusView* vie, QString fn = "");
46  ~Navigator() {};
47  void mouseMoveEvent(QMouseEvent *m);
48  void mousePressEvent(QMouseEvent *m);
49  void mouseReleaseEvent(QMouseEvent *m);
50  void paintEvent(QPaintEvent *e);
51  void drawMark(int x, int y);
52  bool SetSeite(int Seite, int Size, QString fn = "");
53  int Xp;
54  int Yp;
55  int Width;
56  int Height;
57  ScribusView* view;
58  QPixmap pmx;
59 
60 signals:
61  void Coords(double x, double y);
62 };
63 
64 #endif
Definition: navigator.h:40
Definition: scribusview.h:87