Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

GapeZoomableSlider Class Reference

A simple utility class that allows sliders to be scaled more accurately. More...

#include <gapezoomableslider.h>

Inheritance diagram for GapeZoomableSlider::

List of all members.

Public Methods

 GapeZoomableSlider (int minValue, int maxValue, int pageStep, int value, Orientation orientation, QWidget *parent, const char *name=0, int zoomKey=ZOOMABLESLIDER_DEFAULT_KEY, double zoomPercent=ZOOMABLESLIDER_DEFAULT_ZOOM_PERCENT, double arrowPercent=ZOOMABLESLIDER_DEFAULT_ARROW_PERCENT)
 ~GapeZoomableSlider ()
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void focusOutEvent (QFocusEvent *e)
 GapeZoomableSlider (int minValue, int maxValue, int pageStep, int value, Orientation orientation, QWidget *parent, const char *name=0, int zoomKey=ZOOMABLESLIDER_DEFAULT_KEY, double zoomPercent=ZOOMABLESLIDER_DEFAULT_ZOOM_PERCENT, double arrowPercent=ZOOMABLESLIDER_DEFAULT_ARROW_PERCENT)
 ~GapeZoomableSlider ()
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void focusOutEvent (QFocusEvent *e)

Detailed Description

A simple utility class that allows sliders to be scaled more accurately.

You wil see that often the resolution of a slider is more coarse than you would like. For example, if you want to hear two waveforms at frequencies really near one another, just moving the slider handles may not allow you to get close enough to the desired frequency. All of the above sliders have the following features:

-- The up and left arrows decrease the result by a small amount.

-- The right and down arrows increase the result by a small amount.

-- If you hold down the shift key, the slider will move to the center, and the range will collapse to +/- 5% of the current value. As long as the shift key is held down, you have fine control within that range. When the shift key is released, the range of the slider returns to its original setting and the handle returns to its appropriate position.

Note that for the arrows or shift key to work, the slider must own keyboard focus. So before using arrows or the shift key, click on the slider with the mouse, or press the Tab button to cycle through the GUI's widgets until the desired slider has focus.

Author:
Randal Leistikow, Dave Chisholm
Since:
Beta 1.0
Version:
Last Modified Beta 1.0

Definition at line 39 of file gapezoomableslider.h.


The documentation for this class was generated from the following files:
Generated at Thu Jun 21 13:28:53 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001