Scribus
Open source desktop publishing at your fingertips
canvasmode_imageimport.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 #ifndef CANVASMODE_IMAGEIMPORT_H
18 #define CANVASMODE_IMAGEIMPORT_H
19 
20 #include <QEvent>
21 #include <QMouseEvent>
22 #include <QPainter>
23 #include <QPixmap>
24 #include <QStringList>
25 
26 #include "canvasmode.h"
27 
28 class PageItem;
29 class ScribusView;
30 class ScribusMainWindow;
31 
33 {
34 public:
35  explicit CanvasMode_ImageImport(ScribusView* view);
36  virtual ~CanvasMode_ImageImport() {}
37 
38  virtual void enterEvent(QEvent *);
39  virtual void leaveEvent(QEvent *);
40 
41  virtual void activate(bool);
42  virtual void deactivate(bool);
43  virtual void keyPressEvent(QKeyEvent *e);
44  virtual bool handleKeyEvents() { return true; }
45  virtual void mouseDoubleClickEvent(QMouseEvent *m);
46  virtual void mouseReleaseEvent(QMouseEvent *m);
47  virtual void mouseMoveEvent(QMouseEvent *m);
48  virtual void mousePressEvent(QMouseEvent *m);
49  virtual void drawControls(QPainter* p);
50 
51  void setImageList(QStringList l);
52  void setImage(PageItem* item);
53  void updateList();
54 
55 private:
56  bool m_keyRepeat;
57  QString tipText;
58  QStringList imageList;
59  ScribusMainWindow *m_ScMW;
60  double Mx, My;
61  void newToolTip(QString name);
62 };
63 
64 #endif // CANVASMODE_IMAGEIMPORT_H
virtual void activate(bool)
Definition: canvasmode_imageimport.cpp:133
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_imageimport.cpp:91
Definition: canvasmode.h:72
virtual void deactivate(bool)
Definition: canvasmode_imageimport.cpp:148
Definition: canvasmode_imageimport.h:32
Definition: pageitem.h:92
Definition: scribusview.h:87