CDPBaseButtonMarker Class
The Button Marker provides two markers/bubbles for notifications More...
Header: | #include <CDPBaseWidgets/CDPBaseButtonMarker.h> |
Inherits: | CDPBaseButtonMsg and MultiMarker |
Inherited By: |
Properties
|
|
- 5 properties inherited from CDPBaseButtonMsg
- 31 properties inherited from CDPBaseButton
Public Functions
CDPBaseButtonMarker(QWidget *parent = 0) | |
virtual | ~CDPBaseButtonMarker() |
Reimplemented Public Functions
virtual void | setIQtCDPPointer(IQtCDP *pIQtCDP) |
virtual void | setSvgMarkerOne(QString svg) |
virtual void | setSvgMarkerTwo(QString svg) |
- 9 public functions inherited from CDPBaseButtonMsg
- 48 public functions inherited from MultiMarker
- 62 public functions inherited from CDPBaseButton
- 17 public functions inherited from CDPBaseCom
- 26 public functions inherited from CDPBasePadLauncher
- 3 public functions inherited from StateChanger
- 4 public functions inherited from CDPBaseControlVisible
Public Slots
virtual void | setMarkerOneValue(int value = 0) |
virtual void | setMarkerTwoValue(int value = 0) |
virtual void | updateMarkerStackOrder() |
- 5 public slots inherited from CDPBaseButtonMsg
- 15 public slots inherited from CDPBaseButton
Signals
void | markerOneClicked() |
void | markerTwoClicked() |
- 3 signals inherited from CDPBaseButtonMsg
- 7 signals inherited from CDPBaseButton
Protected Functions
virtual void | moveEvent(QMoveEvent *ev) |
virtual void | resizeEvent(QResizeEvent *ev) |
- 1 protected function inherited from CDPBaseButtonMsg
- 13 protected functions inherited from CDPBaseButton
- 4 protected functions inherited from CDPBaseCom
- 1 protected function inherited from CDPBasePadLauncher
- 1 protected function inherited from CDPBaseControlVisible
Additional Inherited Members
- 2 static public members inherited from CDPBaseCom
- 9 protected slots inherited from CDPBaseButton
Detailed Description
The Button Marker provides two markers/bubbles for notifications
Check out the following example for details regarding configuration: How to show markers/bubbles on buttons
The markers on the button can be controlled on top of other widgets by configuring the x and y positions of the markers. This requires that the widgets we want to overlay have the same parent widget as the buttons and that the buttons are created before the other widgets. For instance, to add markers on the buttons of a Tab Widget, we place the Tab Widget in a Widget container configured with a vertical layout and add one or more buttons just above it in the same container. We can now control the markers to show on top of the tabs. Note that the positions must be tweaked if you wish the buttons to be hidden in the running application.
Property Documentation
m1CdpRouting : const QString
This property holds the path to the routed cdp object.
m1CurrentPix : const int
This property holds the current picture number.
m1FontColor : const QColor
This property holds the font color of the marker.
m1OffsetX : const int
This property holds the offset in X direction of the marker.
m1OffsetY : const int
This property holds the offset in Y direction of the marker.
m1Pixmap : const QPixmap
This property holds the marker pixmap. Can set a pixmap instead of a svg file.
m1Pos : const Qt::Corner
This property holds the position of the marker.
m1ShowNumber : const bool
This property holds whether to show numbers on the marker.
m1SvgFile : QString
This property holds the path to the svg file for the marker.
Access functions:
virtual void | setSvgMarkerOne(QString svg) |
m2CdpRouting : const QString
This property holds the path to the routed cdp object.
m2CurrentPix : const int
This property holds the current picture number.
m2FontColor : const QColor
This property holds the font color of the marker.
m2OffsetX : const int
This property holds the offset in X direction of the marker.
m2OffsetY : const int
This property holds the offset in Y direction of the marker.
m2Pixmap : const QPixmap
This property holds the marker pixmap. Can set a pixmap instead of a svg file.
m2Pos : const Qt::Corner
This property holds the position of the marker.
m2ShowNumber : const bool
This property holds whether to show numbers on the marker.
m2SvgFile : QString
This property holds the path to the svg file for the marker.
Access functions:
virtual void | setSvgMarkerTwo(QString svg) |
markerFont : const QFont
This property holds the font used on the markers.
markerShared : const bool
This property holds whether to allow markers to be used by containers like the CDPBaseTabWidget.
The property affects stack order and relative positioning. A better solution to get markers/bubbles on a Tab Widget is to avoid markerShared and rather place buttons and the Tab Widget in the same container as described in the detailed description.
markerSize : const int
This property holds the size of the markers.
Member Function Documentation
CDPBaseButtonMarker::CDPBaseButtonMarker(QWidget *parent = 0)
Default constructs an instance of CDPBaseButtonMarker.
[virtual]
CDPBaseButtonMarker::~CDPBaseButtonMarker()
Destroys the instance of CDPBaseButtonMarker. The destructor is virtual.
[signal]
void CDPBaseButtonMarker::markerOneClicked()
[signal]
void CDPBaseButtonMarker::markerTwoClicked()
[virtual protected]
void CDPBaseButtonMarker::moveEvent(QMoveEvent *ev)
[virtual protected]
void CDPBaseButtonMarker::resizeEvent(QResizeEvent *ev)
[virtual]
void CDPBaseButtonMarker::setIQtCDPPointer(IQtCDP *pIQtCDP)
[virtual slot]
void CDPBaseButtonMarker::setMarkerOneValue(int value = 0)
[virtual slot]
void CDPBaseButtonMarker::setMarkerTwoValue(int value = 0)
[virtual slot]
void CDPBaseButtonMarker::updateMarkerStackOrder()
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.