SpectMorph
smmorphgridwidget.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_MORPH_GRID_WIDGET_HH
4 #define SPECTMORPH_MORPH_GRID_WIDGET_HH
5 
6 #include <QWidget>
7 
8 #include "smmorphgrid.hh"
9 
10 namespace SpectMorph
11 {
12 
13 class MorphGridWidget : public QWidget
14 {
15  Q_OBJECT
16 
17  std::vector<int> x_coord;
18  std::vector<int> y_coord;
19 
20  QFont label_font;
21 
22  MorphGrid *morph_grid;
23  bool move_controller;
24 
25  void mousePressEvent (QMouseEvent *event);
26  void mouseMoveEvent (QMouseEvent *event);
27  void mouseReleaseEvent (QMouseEvent *event);
28 
29  void update_size();
30  void compute_node_rect (int *width, int *height);
31 
32 public:
33  MorphGridWidget (MorphGrid *morph_grid);
34 
35  void paintEvent (QPaintEvent *event);
36 
37 public slots:
38  void on_plan_changed();
39 
40 signals:
41  void selection_changed();
42 };
43 
44 }
45 
46 #endif
47 
Definition: smmorphgrid.hh:22
Definition: smmorphgridwidget.hh:13
Definition: smalignedarray.cc:7