IndicatorButtonPanel Class Reference
Draggable panel for indicator button.
More...
#include <indicatorbuttonpanel.h>
List of all members.
Detailed Description
Draggable panel for indicator button.
- Author:
- Katri Kaikkonen - katri.kaikkonen (at) ixonos.com
-
Pekka Nissinen - pekka.nissinen (at) ixonos.com
-
Kaj Wallin - kaj.wallin (at) ixonos.com
Constructor & Destructor Documentation
IndicatorButtonPanel::IndicatorButtonPanel |
( |
QWidget * |
parent = 0 |
) |
|
Member Function Documentation
void IndicatorButtonPanel::autoCenteringTriggered |
( |
bool |
enabled |
) |
[signal] |
Automatic centering setting changed by user.
- Parameters:
-
| enabled | True if automatic centering is enabled, otherwise false |
void IndicatorButtonPanel::directionIndicatorValuesUpdate |
( |
qreal |
direction, |
|
|
qreal |
distance, |
|
|
bool |
draw | |
|
) |
| | [signal] |
Signal when direction and distance from current map center point to current GPS location is changed.
- Parameters:
-
| direction | Direction in degrees |
| distance | Distance in meters |
| draw | Should the indicator triangle be drawn or not |
void IndicatorButtonPanel::mouseMoveEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Move event for the indicator button panel.
- Parameters:
-
void IndicatorButtonPanel::mousePressEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Press event for the indicator button panel.
- Parameters:
-
void IndicatorButtonPanel::mouseReleaseEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Event handler for mouse release events.
- Parameters:
-
void IndicatorButtonPanel::paintEvent |
( |
QPaintEvent * |
event |
) |
[protected] |
Event handler for paint events.
Paints the panel
- Parameters:
-
void IndicatorButtonPanel::screenResized |
( |
const QSize & |
size |
) |
[slot] |
Slot to redraw the panel after window resize event.
- Parameters:
-
| size | Size of the new screen |
void IndicatorButtonPanel::setDraggable |
( |
bool |
mode, |
|
|
QPoint |
eventPosition = QPoint(0,0) | |
|
) |
| | [slot] |
Toggle indicator button panel draggability.
- Parameters:
-
| mode | True if draggable, otherwise false |
| eventPosition | Start position of the dragging |
void IndicatorButtonPanel::setIndicatorButtonEnabled |
( |
bool |
enabled |
) |
[slot] |
Set indicator button enabled.
- Parameters:
-
| enabled | true if enabled, false otherwise |
void IndicatorButtonPanel::updateValues |
( |
qreal |
direction, |
|
|
qreal |
distance, |
|
|
bool |
draw | |
|
) |
| | [slot] |
Called when direction and distance from current map center point to current GPS location is changed.
- Parameters:
-
| direction | Direction in degrees |
| distance | Distance in meters |
| draw | Should the indicator triangle be drawn or not |
< Meters to kilometers conversion
The documentation for this class was generated from the following files: