67 explicit Navigation(QObject* parent =
nullptr);
74 return settingsCategory_;
82 return static_cast<int>(settingsCategory_);
110 return static_cast<int>(section_);
198 bool sectionChangeQueued_ =
false;
199 bool settingsCategoryChangeQueued_ =
false;
int actorSection() const noexcept
Returns the actor section enum value for QML.
int importSection() const noexcept
Returns the import section enum value for QML.
int analysisSection() const noexcept
Returns the analysis section enum value for QML.
Q_INVOKABLE void setSectionValue(int value)
Sets the active shell section from QML.
int bookingSection() const noexcept
Returns the booking section enum value for QML.
int sectionValue() const noexcept
Returns the active shell section as QML-friendly integer.
int propertySection() const noexcept
Returns the property section enum value for QML.
Section
Top-level shell sections shown by the desktop UI.
int activeSection() const noexcept
Returns the active shell section value used by QML.
void sectionChanged()
Emitted when the active shell section changes.
int annualSection() const noexcept
Returns the annual section enum value for QML.
SettingsCategory
Settings page categories shown inside the settings section.
void setSettingsCategory(SettingsCategory c)
Sets the active settings category.
Section section() const noexcept
Returns the active shell section.
int contractSection() const noexcept
Returns the contract section enum value for QML.
int settingsCategoryValue() const noexcept
Returns the active settings category as QML-friendly integer.
void setSection(Section s)
Sets the active shell section.
Q_INVOKABLE void navigateToSection(int section)
Navigates to a top-level shell section from QML.
SettingsCategory settingsCategory
Q_INVOKABLE void setSettingsCategoryValue(int value)
Sets the active settings category from QML.
Navigation(QObject *parent=nullptr)
Creates the navigation state.
void settingsCategoryChanged()
Emitted when the active settings category changes.
int settingsCategoryValue
int exportSection() const noexcept
Returns the export section enum value for QML.
SettingsCategory settingsCategory() const noexcept
Returns the active settings category.
int settingsSection() const noexcept
Returns the settings section enum value for QML.