Panel for zoom buttons. More...
#include <zoombuttonpanel.h>

Public Slots | |
| void | disableZoomInButton () |
| Disables the zoom in button. | |
| void | disableZoomOutButton () |
| Disables the zoom out button. | |
| void | resetButtons () |
| Reset zoom button states to normal. | |
| void | setDraggable (bool mode, QPoint eventPosition=QPoint(0, 0)) |
| Toggle zoom panel draggability. | |
| void | screenResized (const QSize &size) |
| Slot to redraw the panel after window resize event. | |
Public Member Functions | |
| ZoomButtonPanel (QWidget *parent=0) | |
| Constructor. | |
| const ZoomButton * | zoomInButton () |
| Getter for the zoom in button. | |
| const ZoomButton * | zoomOutButton () |
| Getter for the zoom out button. | |
Protected Member Functions | |
| void | mouseMoveEvent (QMouseEvent *event) |
| Move event for the zoom button panel. | |
| void | mousePressEvent (QMouseEvent *event) |
| Press event for the zoom button panel. | |
| void | mouseReleaseEvent (QMouseEvent *event) |
| Event handler for mouse release events. | |
Private Slots | |
| void | forceMouseRelease () |
| Safeguard slot to release mouse grab if something goes horribly wrong. | |
| void | timerExpired () |
| Slot that handles drag initialization once timer has timed out. | |
Private Attributes | |
| bool | m_isDraggable |
| Boolean for tracking the draggability state. | |
| QGridLayout | m_panelLayout |
| Panel layout. | |
| QPoint | m_dragPosition |
| Location from where the widget is grabbed. | |
| QIcon::Mode | m_zoomInMode |
| Store for zoom in button mode before dragging. | |
| QIcon::Mode | m_zoomOutMode |
| Store for zoom out button mode before dragging. | |
| QSize | m_screenSize |
| Store for the screen size. | |
| QTimer * | m_dragStartTimer |
| Timer to init draggability of the zoom panel. | |
| QTimer * | m_forceReleaseTimer |
| Timer to run forceMouseRelease;. | |
| ZoomButton * | m_zoomInButton |
| Button for zoom in. | |
| ZoomButton * | m_zoomOutButton |
| Button for zoom out. | |
Panel for zoom buttons.
| ZoomButtonPanel::ZoomButtonPanel | ( | QWidget * | parent = 0 |
) |
Constructor.
| parent | Parent |
| void ZoomButtonPanel::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Move event for the zoom button panel.
| event | Event |
| void ZoomButtonPanel::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Press event for the zoom button panel.
| event | Event |
| void ZoomButtonPanel::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected] |
Event handler for mouse release events.
| event | Mouse event |
| void ZoomButtonPanel::screenResized | ( | const QSize & | size | ) | [slot] |
Slot to redraw the panel after window resize event.
| size | Size of the new screen |
| const ZoomButton * ZoomButtonPanel::zoomInButton | ( | ) |
Getter for the zoom in button.
| const ZoomButton * ZoomButtonPanel::zoomOutButton | ( | ) |
Getter for the zoom out button.
1.6.1