BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
moveMode.h
Go to the documentation of this file.
1 #ifndef BALL_VIEW_KERNEL_MODES_MOVEMODE_H
2 #define BALL_VIEW_KERNEL_MODES_MOVEMODE_H
3 
5 
6 namespace BALL
7 {
8  namespace VIEW
9  {
10 
11  class MoveMode : public InteractionMode
12  {
13  Q_OBJECT
14 
15  public:
16  MoveMode(Scene* scene);
17 
18  virtual Qt::Key getKey() const;
19  virtual QString getName() const { return "MoveMode"; }
20 
21  virtual void activate();
22  virtual void populateContextMenu(QMenu* menu);
23 
24  protected slots:
25  void moveAtomTriggered_();
26 
27  protected:
28  QAction* move_atom_;
31 
32  virtual void mouseMoveEventImpl_(QMouseEvent* evt);
33  virtual void mouseReleaseEventImpl_(QMouseEvent* evt);
34  };
35 
36  }
37 }
38 
39 #endif //BALL_VIEW_KERNEL_MODES_PICKINGMODE_H
MoveMode(Scene *scene)
virtual void mouseMoveEventImpl_(QMouseEvent *evt)
void processMoveModeMouseEvents_(QMouseEvent *e)
virtual Qt::Key getKey() const
virtual void populateContextMenu(QMenu *menu)
QAction * move_atom_
Definition: moveMode.h:28
virtual void activate()
Index getMoveModeAction_(QMouseEvent *e)
virtual QString getName() const
Definition: moveMode.h:19
virtual void mouseReleaseEventImpl_(QMouseEvent *evt)