10#include <QVariantList>
11#include <qqmlintegration.h>
484 int firstCategory() const noexcept;
489 int lastCategory() const noexcept;
504 void bindActions(
Actions* value);
Owns the main window actions and exposes them to QML.
Manages the active UI language and the available translation options.
Stores the active top-level shell section and settings sub-section.
Stores and exposes globally persisted UI settings for settings-related views.
Q_INVOKABLE void selectAutosaveIntervalAt(int index)
Selects an autosave interval option by index.
void setToolbarShowActors(bool value)
Updates whether the actor toolbar entry is visible.
int autosaveIntervalIndex
void setToolbarShowAnnual(bool value)
Updates whether the annual toolbar entry is visible.
void setAutosaveOnClose(bool value)
Updates whether autosave on close is enabled.
void setLanguageService(LanguageService *value)
Sets the language service used to build language options.
void setImportDefaultPath(const QString &value)
Updates the default import path.
QString exportDefaultDirectory
void setToolbarShowProperties(bool value)
Updates whether the property toolbar entry is visible.
void setNavigation(Navigation *value)
Sets the shell navigation object used by the settings page.
Q_INVOKABLE void saveSettings()
Persists the current settings values.
void setExportDefaultDirectory(const QString &value)
Updates the default export directory.
void setToolbarShowSettings(bool value)
Updates whether the settings toolbar entry is visible.
void setLanguage(const QString &value)
Updates the configured language code.
QVariantList categoryRows
QString importDefaultPath
void setToolbarShowImport(bool value)
Updates whether the import toolbar entry is visible.
void setThemeMode(const QString &value)
Updates the configured theme mode.
SettingsViewModel(QObject *parent=nullptr)
Creates the settings view model.
void changed()
Emitted when settings view model state changed.
void setImportParser(const QString &value)
Updates the configured import parser key.
bool toolbarShowContracts
bool toolbarShowProperties
Q_INVOKABLE void selectCategory(int category)
Selects a settings category.
void setToolbarShowExport(bool value)
Updates whether the export toolbar entry is visible.
QVariantList themeModeOptions
void setExportIncludeFormulas(bool value)
Updates whether exported spreadsheets include formulas.
void setToolbarShowContracts(bool value)
Updates whether the contract toolbar entry is visible.
void setImportTesseract(const QString &value)
Updates the configured Tesseract path.
QVariantList autosaveIntervalOptions
Q_INVOKABLE void selectLanguageAt(int index)
Selects a language option by index.
void setImportMatcher(const QString &value)
Updates the configured import matcher key.
void setToolbarShowAnalysis(bool value)
Updates whether the analysis toolbar entry is visible.
Q_INVOKABLE void browseExportDirectory()
Opens a browser for the export default directory.
Q_INVOKABLE void selectThemeModeAt(int index)
Selects a theme mode option by index.
Q_INVOKABLE void browseImportPath()
Opens a browser for the import default path.
void setImportOpenCv(const QString &value)
Updates the configured OpenCV path.
Q_INVOKABLE void resetSettings()
Resets settings values to defaults.
void setImportPoppler(const QString &value)
Updates the configured Poppler path.
bool canNavigateCategories
void setExportArchiveFormat(int value)
Updates the configured export archive format index.
void setToolbarShowBooking(bool value)
Updates whether the booking toolbar entry is visible.
void setSettings(Settings *value)
Sets the settings state object used for persisted settings values.
Q_INVOKABLE void activate()
Activates the settings page state.
Q_INVOKABLE void navigateCategory(int delta)
Navigates settings categories by a relative delta.
void setActions(Actions *value)
Sets shell actions used for file browsing.
bool exportIncludeFormulas
QVariantList languageOptions