|
cut 3.3.0
|
Presents the 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. | |
| void | setSubstateSep (QString newValue) |
| Defines which separator is to be used between Substates. | |
| void | setShowAll (bool showAll) |
| When true configures the widget to show the complete Substates string. | |
| void | setAutoCompact (bool autoCompact) |
| Sets the autoCompact property. | |
| 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 | setShowOnlyIndex (int showOnlyIndex) |
| Sets the showOnlyIndex property. | |
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 | showAllChanged (bool showAll) |
| Indicates a change in the showAll property. | |
| void | autoCompactChanged (bool autoCompact) |
| Indicates a change in the autoCompact 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 | clicked () |
| Emitted when a mouse click is done in the widget. | |
| void | showOnlyIndexChanged (int showOnlyIndex) |
| Signal emitted when the showOnlyIndex property changes. | |
Public Member Functions | |
| QeState (QWidget *parent=nullptr) | |
| Constructor for the QeState 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. | |
| bool | showsAll () const |
| Indicates when the widget shows all orthogonal regions instead of just one. | |
| bool | isAutoCompacting () const |
| Indicates if the widget is set to automatically summarize states is horizontal space is not enough. | |
| 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. | |
| int | getShowOnlyIndex () const |
| Gets the currently shown orthogonal region index. | |
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. | |
| bool | showAll |
| Shows states and substates for first region. | |
| bool | autoCompact |
| Automatically compact representation to Initials when no space is available. | |
| 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. | |
| int | showOnlyIndex |
| Shows only the state for the orthogonal region in the index N. | |
Presents the 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 QeState class.
| parent | QWidget that will be the parent to this newly constructure object. |
| QString QeState::getInitialisingWords | ( | ) | const |
Gets the list of initialiasing words.
| QString QeState::getNegativeWords | ( | ) | const |
Gets the list of negative words.
| QString QeState::getNeutralWords | ( | ) | const |
Gets the list of neutral words.
| QString QeState::getOffWords | ( | ) | const |
Gets the list of off words.
| QString QeState::getOrthogonalSep | ( | ) |
Returns the separator used to parse between Orthogonal regions.
| QStringList QeState::getOrthogonalStates | ( | ) |
Returns a list of strings that contains the separated orthogonal state.
| QString QeState::getPositiveWords | ( | ) | const |
Gets the list of positive words.
| int QeState::getShowOnlyIndex | ( | ) | const |
Gets the currently shown orthogonal region index.
| QString QeState::getState | ( | ) |
| QString QeState::getStateString | ( | ) |
Gets the stateString property.
| QStringList QeState::getSubStates | ( | ) | const |
Returns list of parsed sub states.
| QString QeState::getSubstateSep | ( | ) |
Returns the separator used to parse between States whithin an orthogonal region.
| QString QeState::getWarningWords | ( | ) | const |
Gets the list of warning words.
| bool QeState::isAutoCompacting | ( | ) | const |
Indicates if the widget is set to automatically summarize states is horizontal space is not enough.
|
slot |
Sets the autoCompact property.
| autoCompact | true if the widget will summarize words if horizontal space is short. |
|
slot |
Sets the initialising words property.
| initialisingWords | Comma separated string of words considered initiliasing. |
|
slot |
Sets the negative words property.
| negativeWords | Comma separated string of words considered negative. |
|
slot |
Sets the neutral words property.
| neutralWords | Comma separated string of words considered neutral. |
|
slot |
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 |
|
slot |
Sets the positve words property.
| positiveWords | Comma separated string of words considered positive. |
|
slot |
When true configures the widget to show the complete Substates string.
When false it only shows the last or inner-most substate.
| showAll | bool True shows all the substates. |
|
slot |
Sets the showOnlyIndex property.
| showOnlyIndex | Shows only one state, which will be the index indicated by this value. |
|
slot |
|
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. |
|
slot |
Defines which separator is to be used between Substates.
| newValue | String to be used as substate separator |
|
slot |
Sets the warning words property.
| warningWords | Comma separated string of words considered warning. |
|
signal |
Signal emitted when the showOnlyIndex property changes.
| showOnlyIndex | new orthogonal region index to show. If -1, shows all. |
| bool QeState::showsAll | ( | ) | const |
Indicates when the widget shows all orthogonal regions instead of just one.
| int QeState::spacing | ( | ) | const |
Returns the ammount of pixels left as spacing between states.
|
readwrite |
Automatically compact representation to Initials when no space is available.
|
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 |
Words considered for Positive color (normally green), space separated.
|
readwrite |
Shows states and substates for first region.
|
readwrite |
Shows only the state for the orthogonal region in the index N.
If 0, shows every orthogonal region.
|
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.