|
FOSSredder 0.5.0
|
Stores the active top-level shell section and settings sub-section. More...
#include <Navigation.h>


Public Types | |
| enum class | Section { Actors , Properties , Contracts , Booking , Import , Export , Settings , Analysis , Annual } |
| Top-level shell sections shown by the desktop UI. More... | |
| enum class | SettingsCategory { General , Import , Export , Miscellaneous } |
| Settings page categories shown inside the settings section. More... | |
Signals | |
| void | sectionChanged () |
| Emitted when the active shell section changes. | |
| void | settingsCategoryChanged () |
| Emitted when the active settings category changes. | |
Public Member Functions | |
| Navigation (QObject *parent=nullptr) | |
| Creates the navigation state. | |
| SettingsCategory | settingsCategory () const noexcept |
| Returns the active settings category. | |
| int | settingsCategoryValue () const noexcept |
| Returns the active settings category as QML-friendly integer. | |
| void | setSettingsCategory (SettingsCategory c) |
| Sets the active settings category. | |
| Q_INVOKABLE void | setSettingsCategoryValue (int value) |
| Sets the active settings category from QML. | |
| Section | section () const noexcept |
| Returns the active shell section. | |
| int | sectionValue () const noexcept |
| Returns the active shell section as QML-friendly integer. | |
| int | activeSection () const noexcept |
| Returns the active shell section value used by QML. | |
| int | actorSection () const noexcept |
| Returns the actor section enum value for QML. | |
| int | propertySection () const noexcept |
| Returns the property section enum value for QML. | |
| int | contractSection () const noexcept |
| Returns the contract section enum value for QML. | |
| int | bookingSection () const noexcept |
| Returns the booking section enum value for QML. | |
| int | importSection () const noexcept |
| Returns the import section enum value for QML. | |
| int | exportSection () const noexcept |
| Returns the export section enum value for QML. | |
| int | settingsSection () const noexcept |
| Returns the settings section enum value for QML. | |
| int | analysisSection () const noexcept |
| Returns the analysis section enum value for QML. | |
| int | annualSection () const noexcept |
| Returns the annual section enum value for QML. | |
| void | setSection (Section s) |
| Sets the active shell section. | |
| Q_INVOKABLE void | setSectionValue (int value) |
| Sets the active shell section from QML. | |
| Q_INVOKABLE void | navigateToSection (int section) |
| Navigates to a top-level shell section from QML. | |
Properties | |
| Section | section |
| int | sectionValue |
| int | activeSection |
| int | actorSection |
| int | propertySection |
| int | contractSection |
| int | bookingSection |
| int | importSection |
| int | exportSection |
| int | settingsSection |
| int | analysisSection |
| int | annualSection |
| SettingsCategory | settingsCategory |
| int | settingsCategoryValue |
Stores the active top-level shell section and settings sub-section.
Definition at line 15 of file Navigation.h.
|
strong |
Top-level shell sections shown by the desktop UI.
| Enumerator | |
|---|---|
| Actors | |
| Properties | |
| Contracts | |
| Booking | |
| Import | |
| Export | |
| Settings | |
| Analysis | |
| Annual | |
Definition at line 35 of file Navigation.h.
|
strong |
Settings page categories shown inside the settings section.
| Enumerator | |
|---|---|
| General | |
| Import | |
| Export | |
| Miscellaneous | |
Definition at line 56 of file Navigation.h.
|
explicit |
Creates the navigation state.
| parent | Optional QObject parent. |
Definition at line 12 of file Navigation.cpp.
|
inlinenoexcept |
Returns the active shell section value used by QML.
Definition at line 117 of file Navigation.h.
|
inlinenoexcept |
Returns the actor section enum value for QML.
Definition at line 122 of file Navigation.h.
|
inlinenoexcept |
Returns the analysis section enum value for QML.
Definition at line 157 of file Navigation.h.
|
inlinenoexcept |
Returns the annual section enum value for QML.
Definition at line 162 of file Navigation.h.
|
inlinenoexcept |
Returns the booking section enum value for QML.
Definition at line 137 of file Navigation.h.
|
inlinenoexcept |
Returns the contract section enum value for QML.
Definition at line 132 of file Navigation.h.
|
inlinenoexcept |
Returns the export section enum value for QML.
Definition at line 147 of file Navigation.h.
|
inlinenoexcept |
Returns the import section enum value for QML.
Definition at line 142 of file Navigation.h.
| void ui::Navigation::navigateToSection | ( | int | section | ) |
Navigates to a top-level shell section from QML.
| section | Integer section value. |
Definition at line 34 of file Navigation.cpp.

|
inlinenoexcept |
Returns the property section enum value for QML.
Definition at line 127 of file Navigation.h.
|
inlinenoexcept |
Returns the active shell section.
Definition at line 101 of file Navigation.h.
|
signal |
Emitted when the active shell section changes.

|
inlinenoexcept |
Returns the active shell section as QML-friendly integer.
Definition at line 109 of file Navigation.h.
| void ui::Navigation::setSection | ( | Section | s | ) |
Sets the active shell section.
| s | Section to activate. |
Definition at line 14 of file Navigation.cpp.


| void ui::Navigation::setSectionValue | ( | int | value | ) |
Sets the active shell section from QML.
| value | Integer section value. |
Definition at line 30 of file Navigation.cpp.


| void ui::Navigation::setSettingsCategory | ( | SettingsCategory | c | ) |
Sets the active settings category.
| c | Settings category to activate. |
Definition at line 38 of file Navigation.cpp.


| void ui::Navigation::setSettingsCategoryValue | ( | int | value | ) |
Sets the active settings category from QML.
| value | Integer settings category value. |
Definition at line 54 of file Navigation.cpp.

|
inlinenoexcept |
Returns the active settings category.
Definition at line 73 of file Navigation.h.
|
signal |
Emitted when the active settings category changes.

|
inlinenoexcept |
Returns the active settings category as QML-friendly integer.
Definition at line 81 of file Navigation.h.
|
inlinenoexcept |
Returns the settings section enum value for QML.
Definition at line 152 of file Navigation.h.
|
read |
Definition at line 20 of file Navigation.h.
|
read |
Definition at line 21 of file Navigation.h.
|
read |
Definition at line 28 of file Navigation.h.
|
read |
Definition at line 29 of file Navigation.h.
|
read |
Definition at line 24 of file Navigation.h.
|
read |
Definition at line 23 of file Navigation.h.
|
read |
Definition at line 26 of file Navigation.h.
|
read |
Definition at line 25 of file Navigation.h.
|
read |
Definition at line 22 of file Navigation.h.
|
readwrite |
Definition at line 17 of file Navigation.h.
|
read |
Definition at line 19 of file Navigation.h.
|
read |
Definition at line 48 of file Navigation.h.
|
read |
Definition at line 50 of file Navigation.h.
|
read |
Definition at line 27 of file Navigation.h.