Scribus
Open source desktop publishing at your fingertips
canvasmode_objimport.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_OBJIMPORT_H
19 #define CANVAS_MODE_OBJIMPORT_H
20 
21 #include <QObject>
22 
23 #include "canvasmode.h"
24 #include "fpointarray.h"
25 
26 class QMimeData;
27 
28 class PageItem;
29 class ScribusMainWindow;
30 class ScribusView;
32 
33 // This class encapsulate the old code for mouse interaction from scribusview.cpp
34 
36 {
37 public:
38  explicit CanvasMode_ObjImport(ScribusView* view);
39  virtual ~CanvasMode_ObjImport();
40 
41  void setMimeData(QMimeData* mimeData);
42  void setTransactionSettings(TransactionSettings* settings);
43 
44  virtual void enterEvent(QEvent *);
45  virtual void leaveEvent(QEvent *);
46 
47  virtual void activate(bool);
48  virtual void deactivate(bool);
49  virtual void mouseDoubleClickEvent(QMouseEvent *m);
50  virtual void mouseReleaseEvent(QMouseEvent *m);
51  virtual void mouseMoveEvent(QMouseEvent *m);
52  virtual void mousePressEvent(QMouseEvent *m);
53  virtual void drawControls(QPainter* p);
54 
55 // protected:
56 // void setResizeCursor(int);
57 
58 private:
59  QMimeData* m_mimeData;
60  TransactionSettings* m_trSettings;
61  double Mxp, Myp;
62 };
63 
64 
65 #endif
Definition: canvasmode_objimport.h:35
virtual void deactivate(bool)
Definition: canvasmode_objimport.cpp:115
virtual void activate(bool)
Definition: canvasmode_objimport.cpp:97
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual void drawControls(QPainter *p)
Definition: canvasmode_objimport.cpp:77
Definition: canvasmode.h:72
Definition: undomanager.h:52
Definition: pageitem.h:92
Definition: scribusview.h:87