QwtMagnifier Class Reference
QwtMagnifier provides zooming, by magnifying in steps.
More...
#include <qwt_magnifier.h>
Inheritance diagram for QwtMagnifier:
List of all members.
Detailed Description
QwtMagnifier provides zooming, by magnifying in steps.
Using QwtMagnifier a plot can be zoomed in/out in steps using keys, the mouse wheel or moving a mouse button in vertical direction.
Constructor & Destructor Documentation
QwtMagnifier::QwtMagnifier |
( |
QWidget * |
parent |
) |
[explicit] |
Constructor
- Parameters:
-
| parent | Widget to be magnified |
QwtMagnifier::~QwtMagnifier |
( |
|
) |
[virtual] |
Member Function Documentation
bool QwtMagnifier::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e | |
|
) |
| | [virtual] |
void QwtMagnifier::getMouseButton |
( |
int & |
button, |
|
|
int & |
buttonState | |
|
) |
| | const |
void QwtMagnifier::getZoomInKey |
( |
int & |
key, |
|
|
int & |
modifiers | |
|
) |
| | const |
void QwtMagnifier::getZoomOutKey |
( |
int & |
key, |
|
|
int & |
modifiers | |
|
) |
| | const |
bool QwtMagnifier::isEnabled |
( |
|
) |
const |
double QwtMagnifier::keyFactor |
( |
|
) |
const |
double QwtMagnifier::mouseFactor |
( |
|
) |
const |
const QWidget * QwtMagnifier::parentWidget |
( |
|
) |
const |
- Returns:
- Parent widget, where the rescaling happens
QWidget * QwtMagnifier::parentWidget |
( |
|
) |
|
- Returns:
- Parent widget, where the rescaling happens
virtual void QwtMagnifier::rescale |
( |
double |
factor |
) |
[protected, pure virtual] |
void QwtMagnifier::setEnabled |
( |
bool |
on |
) |
|
En/disable the magnifier.
When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.
- Parameters:
-
- See also:
- isEnabled(), eventFilter()
void QwtMagnifier::setKeyFactor |
( |
double |
factor |
) |
|
void QwtMagnifier::setMouseButton |
( |
int |
button, |
|
|
int |
buttonState = Qt::NoButton | |
|
) |
| | |
Assign the mouse button, that is used for zooming in/out. The default value is Qt::RightButton.
- Parameters:
-
| button | Button |
| buttonState | Button state |
- See also:
- getMouseButton()
void QwtMagnifier::setMouseFactor |
( |
double |
factor |
) |
|
void QwtMagnifier::setWheelButtonState |
( |
int |
buttonState |
) |
|
Assign a mandatory button state for zooming in/out using the wheel. The default button state is Qt::NoButton.
- Parameters:
-
- See also:
- wheelButtonState()
void QwtMagnifier::setWheelFactor |
( |
double |
factor |
) |
|
void QwtMagnifier::setZoomInKey |
( |
int |
key, |
|
|
int |
modifiers | |
|
) |
| | |
Assign the key, that is used for zooming in. The default combination is Qt::Key_Plus + Qt::NoModifier.
- Parameters:
-
- See also:
- getZoomInKey(), setZoomOutKey()
void QwtMagnifier::setZoomOutKey |
( |
int |
key, |
|
|
int |
modifiers | |
|
) |
| | |
Assign the key, that is used for zooming out. The default combination is Qt::Key_Minus + Qt::NoModifier.
- Parameters:
-
- See also:
- getZoomOutKey(), setZoomOutKey()
int QwtMagnifier::wheelButtonState |
( |
|
) |
const |
double QwtMagnifier::wheelFactor |
( |
|
) |
const |
void QwtMagnifier::widgetKeyPressEvent |
( |
QKeyEvent * |
ke |
) |
[protected, virtual] |
void QwtMagnifier::widgetKeyReleaseEvent |
( |
QKeyEvent * |
|
) |
[protected, virtual] |
void QwtMagnifier::widgetMouseMoveEvent |
( |
QMouseEvent * |
me |
) |
[protected, virtual] |
void QwtMagnifier::widgetMousePressEvent |
( |
QMouseEvent * |
me |
) |
[protected, virtual] |
void QwtMagnifier::widgetMouseReleaseEvent |
( |
QMouseEvent * |
|
) |
[protected, virtual] |
void QwtMagnifier::widgetWheelEvent |
( |
QWheelEvent * |
we |
) |
[protected, virtual] |
Handle a wheel event for the observed widget.
- Parameters:
-
- See also:
- eventFilter()
Generated on Wed Sep 2 18:37:24 2009 for Qwt User's Guide by
1.6.1