|
cut 3.3.0
|
Presents a detailed state of a component based on the interpretation of a string. More...
#include <CutWidgets.h>
Public Slots | |
| void | setStateString (QString newValue) |
| Main setter of the QeState widget. | |
| void | setOrthogonalSep (QString newValue) |
| Defines which separator is to be used between Orthogonal regions. | |
Signals | |
| void | stateStringChanged (QString newValue) |
| Indicates a change in the stateString property. | |
| void | stateChanged (QString newValue) |
| Indicates a change in the state property. | |
| void | orthogonalStatesChanged (QStringList newValue) |
| Indicates a change in the orthogonalStates property. | |
| void | orthogonalSepChanged (QString newValue) |
| Indicates a change in the orthogonal separator property. | |
| void | substateSepChanged (QString newValue) |
| Indicates a change in the substate separator property. | |
| void | subStatesChanged (QStringList subStates) |
| Indicates a change in the substates property. | |
| void | positiveWordsChanged (QString positiveWords) |
| Indicates a change in the positiveWords property. | |
| void | warningWordsChanged (QString warningWords) |
| Indicates a change in the warningWords property. | |
| void | negativeWordsChanged (QString negativeWords) |
| Indicates a change in the negativeWords property. | |
| void | neutralWordsChanged (QString neutralWords) |
| Indicates a change in the neutralWords property. | |
| void | offWordsChanged (QString offWords) |
| Indicates a change in the offWords property. | |
| void | initialisingWordsChanged (QString initialisingWords) |
| Indicates a change in the initialisingWords property. | |
| void | popupModeChanged (bool popupMode) |
| Indicates when the popupMode has changed. | |
Public Member Functions | |
| QeStateDetailed (QWidget *parent=nullptr) | |
| Constructor for the QeStateDetailed class. | |
| QString | getStateString () |
| Gets the stateString property. | |
| QString | getState () |
| Returns the parsed state. | |
| QStringList | getOrthogonalStates () |
| Returns a list of strings that contains the separated orthogonal state. | |
| QString | getOrthogonalSep () |
| Returns the separator used to parse between Orthogonal regions. | |
| QString | getSubstateSep () |
| Returns the separator used to parse between States whithin an orthogonal region. | |
| QStringList | getSubStates () const |
| Returns list of parsed sub states. | |
| int | spacing () const |
| Returns the ammount of pixels left as spacing between states. | |
| QString | getPositiveWords () const |
| Gets the list of positive words. | |
| QString | getWarningWords () const |
| Gets the list of warning words. | |
| QString | getNegativeWords () const |
| Gets the list of negative words. | |
| QString | getNeutralWords () const |
| Gets the list of neutral words. | |
| QString | getOffWords () const |
| Gets the list of off words. | |
| QString | getInitialisingWords () const |
| Gets the list of initialiasing words. | |
| bool | getPopupMode () const |
| Returns if this instance of the widget is acting as a popup. | |
| void | setSubstateSep (QString newValue) |
| Defines which separator is to be used between Substates. | |
| void | setSpacing (int spacing) |
| Sets the spacing property. | |
| void | setPositiveWords (QString positiveWords) |
| Sets the positve words property. | |
| void | setWarningWords (QString warningWords) |
| Sets the warning words property. | |
| void | setNegativeWords (QString negativeWords) |
| Sets the negative words property. | |
| void | setNeutralWords (QString neutralWords) |
| Sets the neutral words property. | |
| void | setOffWords (QString offWords) |
| Sets the off words property. | |
| void | setInitialisingWords (QString initialisingWords) |
| Sets the initialising words property. | |
| void | setPopupMode (bool popupMode) |
| Sets the operation mode for the widget. | |
Properties | |
| QString | stateString |
| Communicates the widget of the string that contains the state information. | |
| QString | state |
| Read-only property that contains the state of the component/application after interpretation of the stateString. | |
| QStringList | orthogonalStates |
| Orthogonal regions states, in a list. | |
| QStringList | subStates |
| Substates in a list. | |
| QString | orthogonalSep |
| Orthogonal Regions separator. | |
| QString | substateSep |
| Substates separator. | |
| int | spacing |
| Separation in pixels between one state and the next. | |
| QString | initialisingWords |
| Words considered for Initialising color (normally yellow), space separated. | |
| QString | positiveWords |
| Words considered for Positive color (normally green), space separated. | |
| QString | warningWords |
| Words considered for Warning color (normally orange), space separated. | |
| QString | negativeWords |
| Words considered for Negative color (normally red), space separated. | |
| QString | neutralWords |
| Words considered for Neutral color (normally blue), space separated. | |
| QString | offWords |
| Words considered for Off color (normally grey), space separated. | |
| bool | popupMode |
| Identifies this widget as a popup to a particular QeState. | |
Presents a detailed state of a component based on the interpretation of a string.
Uses two separators to know where to cut the string.
|
explicit |
Constructor for the QeStateDetailed class.
| parent | QWidget that will be the parent to this newly constructure object. |
| QString QeStateDetailed::getInitialisingWords | ( | ) | const |
Gets the list of initialiasing words.
| QString QeStateDetailed::getNegativeWords | ( | ) | const |
Gets the list of negative words.
| QString QeStateDetailed::getNeutralWords | ( | ) | const |
Gets the list of neutral words.
| QString QeStateDetailed::getOffWords | ( | ) | const |
Gets the list of off words.
| QString QeStateDetailed::getOrthogonalSep | ( | ) |
Returns the separator used to parse between Orthogonal regions.
| QStringList QeStateDetailed::getOrthogonalStates | ( | ) |
Returns a list of strings that contains the separated orthogonal state.
| bool QeStateDetailed::getPopupMode | ( | ) | const |
Returns if this instance of the widget is acting as a popup.
| QString QeStateDetailed::getPositiveWords | ( | ) | const |
Gets the list of positive words.
| QString QeStateDetailed::getState | ( | ) |
| QString QeStateDetailed::getStateString | ( | ) |
Gets the stateString property.
| QStringList QeStateDetailed::getSubStates | ( | ) | const |
Returns list of parsed sub states.
| QString QeStateDetailed::getSubstateSep | ( | ) |
Returns the separator used to parse between States whithin an orthogonal region.
| QString QeStateDetailed::getWarningWords | ( | ) | const |
Gets the list of warning words.
|
signal |
Indicates when the popupMode has changed.
| popupMode | true when the widget is operating under popupMode. |
| void QeStateDetailed::setInitialisingWords | ( | QString | initialisingWords | ) |
Sets the initialising words property.
| initialisingWords | Comma separated string of words considered initiliasing. |
| void QeStateDetailed::setNegativeWords | ( | QString | negativeWords | ) |
Sets the negative words property.
| negativeWords | Comma separated string of words considered negative. |
| void QeStateDetailed::setNeutralWords | ( | QString | neutralWords | ) |
Sets the neutral words property.
| neutralWords | Comma separated string of words considered neutral. |
| void QeStateDetailed::setOffWords | ( | QString | offWords | ) |
Sets the off words property.
| offWords | Comma separated string of words considered off. |
|
slot |
Defines which separator is to be used between Orthogonal regions.
| newValue | String to be used as orthogonal regions separator |
| void QeStateDetailed::setPopupMode | ( | bool | popupMode | ) |
Sets the operation mode for the widget.
If true, the widget will act as a popup on top of the parent widget.
| popupMode | bool that determines the new mode of operation for the widget |
| void QeStateDetailed::setPositiveWords | ( | QString | positiveWords | ) |
Sets the positve words property.
| positiveWords | Comma separated string of words considered positive. |
| void QeStateDetailed::setSpacing | ( | int | spacing | ) |
|
slot |
Main setter of the QeState widget.
It accepts newValue as the state information to be processed.
| newValue | A double-separated string that carries the State information of a RAD component. Separators are set by QeState::orthogonalSep and QeState::substateSep. |
| void QeStateDetailed::setSubstateSep | ( | QString | newValue | ) |
Defines which separator is to be used between Substates.
| newValue | String to be used as substate separator |
| void QeStateDetailed::setWarningWords | ( | QString | warningWords | ) |
Sets the warning words property.
| warningWords | Comma separated string of words considered warning. |
| int QeStateDetailed::spacing | ( | ) | const |
Returns the ammount of pixels left as spacing between states.
|
readwrite |
Words considered for Initialising color (normally yellow), space separated.
|
readwrite |
Words considered for Negative color (normally red), space separated.
|
readwrite |
Words considered for Neutral color (normally blue), space separated.
|
readwrite |
Words considered for Off color (normally grey), space separated.
|
readwrite |
|
read |
Orthogonal regions states, in a list.
|
readwrite |
Identifies this widget as a popup to a particular QeState.
|
readwrite |
Words considered for Positive color (normally green), space separated.
|
readwrite |
Separation in pixels between one state and the next.
|
read |
Read-only property that contains the state of the component/application after interpretation of the stateString.
|
readwrite |
Communicates the widget of the string that contains the state information.
|
read |
Substates in a list.
|
readwrite |
|
readwrite |
Words considered for Warning color (normally orange), space separated.