趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Path_draw_widget.h
Go to the documentation of this file.
1 #ifndef PATH_DRAW_WIDGET_H
2 #define PATH_DRAW_WIDGET_H
3 
9 #include <memory>
10 #include <QGraphicsView>
11 
12 
13 class Path_draw_widget : public QGraphicsView
14 {
15  Q_OBJECT;
16 
17  public:
18  Path_draw_widget(QWidget* parent = NULL);
19  ~Path_draw_widget(void);
20 
21  void clear(void);
22  void set_preset_data(int index);
23 
24  protected:
25  void mousePressEvent(QMouseEvent* event);
26  void mouseMoveEvent(QMouseEvent* event);
27  void mouseReleaseEvent(QMouseEvent* event);
28 
29  private:
31  Path_draw_widget& operator = (const Path_draw_widget& rhs);
32 
33  struct pImpl;
34  std::auto_ptr<pImpl> pimpl;
35 };
36 
37 #endif
Definition: Path_draw_widget.h:13