Qt Virtual Chart Table (QVCT)
|
[UI] Chart control user-interface More...
#include <charts/CChartControl.hpp>
Public Member Functions | |
CChartControl (QWidget *_pqParent=0) | |
virtual | ~CChartControl () |
void | enableControls (bool _bEnable) |
Enables/disables all chart controls. More... | |
void | enablePointer (bool _bEnable) |
Enables/disables pointer actions. More... | |
Private Slots | |
void | slotPositionLock (bool _bLock) |
[UI:Slot] Slot to modify the position lock/unlock status More... | |
void | slotScaleLock (bool _bLock) |
[UI:Slot] Slot to modify the scale lock/unlock status More... | |
void | slotScaleTo (int _iValue) |
[UI:Slot] Slot to trigger scaling to the given value More... | |
void | slotScaleIn () |
[UI:Slot] Slot to trigger scale in (zoom out) More... | |
void | slotScaleOut () |
[UI:Slot] Slot to trigger scale out (zoom in) More... | |
void | slotElevation (bool _bAddOrShow) |
[UI:Slot] Slot to manage elevation model (add, view, hide) More... | |
void | slotElevationAdd () |
[UI:Slot] Slot to add elevation model More... | |
Private Member Functions | |
void | constructLayout () |
Constructs the layout of the user-interface. More... | |
void | lockPosition (bool _bLock) |
Sets the position lock/unlock status. More... | |
void | lockScale (bool _bLock) |
Sets the scale lock/unlock status. More... | |
void | setScale (double _fdScale) |
Sets the scale at the given value. More... | |
void | stepScale (bool _bIncrease, bool _bBigStep=true) |
Increases/decreases the scale by discrete steps. More... | |
void | enableTarget (bool _bEnable) |
Enables/disables target. More... | |
void | enableMeasureSingle (bool _bEnable) |
Enables/disables single measurement. More... | |
void | enableMeasure (bool _bEnable) |
Enables/disables ongoing measurements. More... | |
void | setElevation (bool _bHasElevation, bool _bShowElevation) |
Sets elevation status. More... | |
Private Attributes | |
QPushButton * | pqPushButtonPositionLock |
[UI:Button] Lock/unlock position More... | |
QPushButton * | pqPushButtonScaleLock |
[UI:Button] Lock/unlock scale More... | |
QPushButton * | pqPushButtonScaleActual |
[UI:Button] Scale actual More... | |
QPushButton * | pqPushButtonScaleIn |
[UI:Button] Scale in (zoom out) More... | |
QPushButton * | pqPushButtonScaleOut |
[UI:Button] Scale out (zoom in) More... | |
QPushButton * | pqPushButtonScaleFit |
[UI:Button] Scale fit More... | |
QPushButton * | pqPushButtonTarget |
[UI:Button] Target More... | |
QPushButton * | pqPushButtonMeasureSingle |
[UI:Button] Single measurement More... | |
QPushButton * | pqPushButtonMeasure |
[UI:Button] Ongoing measurements More... | |
QPushButton * | pqPushButtonElevation |
[UI:Button] Elevation model More... | |
QSlider * | pqSliderScale |
[UI:Button] Scale slider More... | |
bool | bPointerEnable |
Pointer actions activation status. More... | |
Friends | |
class | CChartTable |
[UI] Chart control user-interface
This class implements the user-interface that allows to interact with the charts displayed in the chart table and change parameters such as scale, position options, measurement status, etc.
Definition at line 38 of file CChartControl.hpp.
CChartControl::CChartControl | ( | QWidget * | _pqParent = 0 | ) |
Definition at line 35 of file CChartControl.cpp.
|
inlinevirtual |
Definition at line 83 of file CChartControl.hpp.
|
private |
Constructs the layout of the user-interface.
Definition at line 42 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to modify the position lock/unlock status
Definition at line 171 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to modify the scale lock/unlock status
Definition at line 177 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to trigger scaling to the given value
Definition at line 183 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to trigger scale in (zoom out)
Definition at line 189 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to trigger scale out (zoom in)
Definition at line 194 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to manage elevation model (add, view, hide)
Definition at line 199 of file CChartControl.cpp.
|
privateslot |
[UI:Slot] Slot to add elevation model
Definition at line 228 of file CChartControl.cpp.
|
private |
Sets the position lock/unlock status.
Definition at line 238 of file CChartControl.cpp.
|
private |
Sets the scale lock/unlock status.
Definition at line 243 of file CChartControl.cpp.
|
private |
Sets the scale at the given value.
Definition at line 248 of file CChartControl.cpp.
|
private |
Increases/decreases the scale by discrete steps.
Definition at line 254 of file CChartControl.cpp.
|
private |
Enables/disables target.
Definition at line 259 of file CChartControl.cpp.
|
private |
Enables/disables single measurement.
Definition at line 265 of file CChartControl.cpp.
|
private |
Enables/disables ongoing measurements.
Definition at line 271 of file CChartControl.cpp.
|
private |
Sets elevation status.
Definition at line 277 of file CChartControl.cpp.
void CChartControl::enableControls | ( | bool | _bEnable | ) |
Enables/disables all chart controls.
Definition at line 296 of file CChartControl.cpp.
void CChartControl::enablePointer | ( | bool | _bEnable | ) |
Enables/disables pointer actions.
Definition at line 323 of file CChartControl.cpp.
|
friend |
Definition at line 41 of file CChartControl.hpp.
|
private |
[UI:Button] Lock/unlock position
Definition at line 50 of file CChartControl.hpp.
|
private |
[UI:Button] Lock/unlock scale
Definition at line 52 of file CChartControl.hpp.
|
private |
[UI:Button] Scale actual
Definition at line 54 of file CChartControl.hpp.
|
private |
[UI:Button] Scale in (zoom out)
Definition at line 56 of file CChartControl.hpp.
|
private |
[UI:Button] Scale out (zoom in)
Definition at line 58 of file CChartControl.hpp.
|
private |
[UI:Button] Scale fit
Definition at line 60 of file CChartControl.hpp.
|
private |
[UI:Button] Target
Definition at line 62 of file CChartControl.hpp.
|
private |
[UI:Button] Single measurement
Definition at line 64 of file CChartControl.hpp.
|
private |
[UI:Button] Ongoing measurements
Definition at line 66 of file CChartControl.hpp.
|
private |
[UI:Button] Elevation model
Definition at line 68 of file CChartControl.hpp.
|
private |
[UI:Button] Scale slider
Definition at line 70 of file CChartControl.hpp.
|
private |
Pointer actions activation status.
Definition at line 74 of file CChartControl.hpp.