comparison libgui/graphics/Figure.h @ 20629:46edfbd31ad7

Fix execution of "windowbuttonmotionfcn" with uipanels (bug #46151) * Canvas.cc (Canvas::canvasMouseMoveEvent): decide here to update the currentpoint and run "windowbuttonmotionfcn" if the latter is not empty * Canvas.h: remove unused "enableCurrentPointUpdates" method and "m_updateCurrentPoint" attribute * Figure.h: declare a new private method "enableMouseTracking" * Figure.cc (Figure::Figure): use "enableMouseTracking" instead of "update" on "windowbuttonmotionfcn". * Figure.cc (Figure::update): mouse tracking is now enabled unconditionally so remove unused case "windowbuttonmotionfcn". *Figure.cc(Figure::eventNotifyAfter): enable mouse tracking on new children widgets.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sat, 10 Oct 2015 12:21:37 +0200
parents 062422f2e399
children
comparison
equal deleted inserted replaced
20628:3af34e1ef330 20629:46edfbd31ad7
111 static void updateBoundingBoxHelper (void*); 111 static void updateBoundingBoxHelper (void*);
112 112
113 void save_figure_callback (const std::string& file); 113 void save_figure_callback (const std::string& file);
114 void copy_figure_callback (const std::string& format); 114 void copy_figure_callback (const std::string& format);
115 115
116 void enableMouseTracking (void);
117
116 private slots: 118 private slots:
117 void setMouseMode (MouseMode mode); 119 void setMouseMode (MouseMode mode);
118 void fileSaveFigure (bool prompt = false); 120 void fileSaveFigure (bool prompt = false);
119 void fileSaveFigureAs (void); 121 void fileSaveFigureAs (void);
120 void fileCloseFigure (void); 122 void fileCloseFigure (void);