3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
12
#ifndef CSRCOLLBUTTON_H
13
#define CSRCOLLBUTTON_H
16
#include <qtoolbutton.h>
20
/** This Class implements the direct chooser button used in the KeyChooser Widget
21
* @author The BibleTime team
23
class CScrollButton : public QToolButton {
29
CScrollButton(QWidget *parent=0, const char *name=0);
30
const bool isLocked() const;
34
* is emitted when the button enters locked state
39
* is emitted when the button leaves locked state
43
* indicates a change the user made by moving the mouse
44
* @param count the number of items to be changed in the KeyChooser ComboBox
46
void change_requested(int count);
50
* used to process the button press events
54
* used to process the button release events
60
* Reimplementation from @ref QWidget#mouseMoveEvent - processes
61
* the mouse move events
63
virtual void mouseMoveEvent( QMouseEvent* e );
65
* used to find the lock point - the middle of the button
66
* @return the lock point
68
const QPoint get_lock_Point() const;
70
* If the wheel of the mouse is used while the mouse stays over our scrollbutton the content is
71
* scrolled like the mouse was pressed and moved.
73
virtual void wheelEvent( QWheelEvent* e );
77
* Indicates whether the button is in locked state or not
81
* stores the lock point