Files
cgal/GraphicsView/doc/GraphicsView/CGAL/Qt/GraphicsViewNavigation.h
T
Sébastien Loriot 2dfe8a3d73 workaround for a doxygen bug: remove space after /!* to avoid a verbatim env
this happens if you have an empty line or the text directly after /!*
to find them in the generated documentation, grep for "pre class=\"fragment\""
(a few of them are legitimate however)
2013-07-25 14:58:53 +02:00

40 lines
831 B
C++

namespace CGAL {
namespace Qt {
/*!
\ingroup PkgGraphicsViewMiscClasses
An object of type `GraphicsViewNavigation` can be added as event filter to a `Qt::QGraphicsView` and its viewport.
Dragging the left mouse button while holding the 'Ctrl' key defines a zoom rectangle.
Dragging the right mouse button while holding the 'Ctrl' key translates the scene.
'Ctrl-Shift' and a click of the right mouse button translates what is under the mouse to the center.
*/
class GraphicsViewNavigation {
public:
/// \name Operations
/// @{
/*!
The event filter.
*/
bool eventFilter(QObject *obj, QEvent *event);
/// @}
/// \name Signals
/// @{
/*!
Emits the real world mouse coordinates.
*/
void mouseCoordinates(QPointF p);
/// @}
}; /* end GraphicsViewNavigation */
} /* end namespace Qt */
} /* end namespace CGAL */