navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
RenderArea.h
Go to the documentation of this file.
1 
19 #ifndef __RENDERAREA_H
20 #define __RENDERAREA_H
21 
22 #ifdef QT_QPAINTER_USE_EMBEDDING
23 class EmbeddedWidget : public QX11EmbedWidget {
24  struct graphics_priv *gra;
25 public:
26  EmbeddedWidget(struct graphics_priv *priv, QWidget* child, QWidget *parent = NULL);
27 protected:
28  void closeEvent(QCloseEvent *event);
29 };
30 #endif
31 
33 {
34  Q_OBJECT
35  public:
36  RenderArea(struct graphics_priv *priv, QT_QPAINTER_RENDERAREA_PARENT *parent = 0, int w=800, int h=800, int overlay=0);
37  void do_resize(QSize size);
38  QPixmap *pixmap;
39  struct callback_list *cbl;
40  struct graphics_priv *gra;
41 
42 #ifdef QT_QPAINTER_USE_EVENT_QT
43  GHashTable *timer_type;
44  GHashTable *timer_callback;
45  GHashTable *watches;
46 #endif
47 
48  void processClose();
49 protected:
51  QSize sizeHint() const;
52  void paintEvent(QPaintEvent *event);
53  void resizeEvent(QResizeEvent *event);
54  void mouseEvent(int pressed, QMouseEvent *event);
55  void mousePressEvent(QMouseEvent *event);
56  void mouseReleaseEvent(QMouseEvent *event);
57  void mouseMoveEvent(QMouseEvent *event);
58  void wheelEvent(QWheelEvent *event);
59  void keyPressEvent(QKeyEvent *event);
60  void closeEvent(QCloseEvent *event);
61  bool event(QEvent *event);
62 #ifdef QT_QPAINTER_USE_EVENT_QT
63  void timerEvent(QTimerEvent *event);
64 #endif
65  protected slots:
66  void watchEvent(int fd);
67  };
68 
69 #endif /* __RENDERAREA_H */
void paintEvent(QPaintEvent *event)
Definition: RenderArea.cpp:110
void resizeEvent(QResizeEvent *event)
Definition: RenderArea.cpp:136
Definition: gpx2navit_txt.h:51
void mouseReleaseEvent(QMouseEvent *event)
Definition: RenderArea.cpp:173
int size
Definition: garmin_img.c:131
int is_overlay
Definition: RenderArea.h:50
void wheelEvent(QWheelEvent *event)
Definition: RenderArea.cpp:197
QPixmap * pixmap
Definition: RenderArea.h:38
RenderArea(struct graphics_priv *priv, QT_QPAINTER_RENDERAREA_PARENT *parent=0, int w=800, int h=800, int overlay=0)
Definition: RenderArea.cpp:46
void closeEvent(QCloseEvent *event)
Definition: RenderArea.cpp:80
void keyPressEvent(QKeyEvent *event)
Definition: RenderArea.cpp:222
#define QT_QPAINTER_RENDERAREA_PARENT
Definition: graphics_qt_qpainter.h:84
Definition: RenderArea.h:32
void do_resize(QSize size)
Definition: RenderArea.cpp:115
Definition: graphics_android.c:37
QSize sizeHint() const
Definition: RenderArea.cpp:100
Definition: callback.c:36
bool event(QEvent *event)
Definition: RenderArea.cpp:85
struct graphics_priv * gra
Definition: RenderArea.h:40
void processClose()
Definition: RenderArea.cpp:76
void watchEvent(int fd)
Definition: RenderArea.cpp:287
void mousePressEvent(QMouseEvent *event)
Definition: RenderArea.cpp:168
void mouseEvent(int pressed, QMouseEvent *event)
Definition: RenderArea.cpp:148
struct callback_list * cbl
Definition: RenderArea.h:39
void mouseMoveEvent(QMouseEvent *event)
Definition: RenderArea.cpp:183