FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::Settings Class Reference

Stores and exposes globally persisted UI settings for settings-related views. More...

#include <Settings.h>

Inheritance diagram for ui::Settings:
Collaboration diagram for ui::Settings:

Signals

void languageChanged ()
void themeModeChanged ()
void autosaveOnCloseChanged ()
void autosaveIntervalMinutesChanged ()
void importDefaultPathChanged ()
void importPopplerChanged ()
void importOpenCvChanged ()
void importTesseractChanged ()
void importParserChanged ()
void importMatcherChanged ()
void exportDefaultDirectoryChanged ()
void exportArchiveFormatChanged ()
void exportIncludeFormulasChanged ()
void analysisDefaultDateModeChanged ()
void analysisDefaultYearChanged ()
void toolbarShowBookingChanged ()
void toolbarShowActorsChanged ()
void toolbarShowPropertiesChanged ()
void toolbarShowContractsChanged ()
void toolbarShowImportChanged ()
void toolbarShowExportChanged ()
void toolbarShowAnalysisChanged ()
void toolbarShowAnnualChanged ()
void toolbarShowSettingsChanged ()
void stateChanged ()
 Emitted when any settings value changes.
void saved ()
 Emitted after settings have been persisted.
void reset ()
 Emitted after settings have been reset to defaults.

Public Member Functions

 Settings (QObject *parent=nullptr)
 Creates the settings store exposed to QML.
QString language () const
QString themeMode () const
bool autosaveOnClose () const noexcept
int autosaveIntervalMinutes () const noexcept
QString importDefaultPath () const
QString importPoppler () const
QString importOpenCv () const
QString importTesseract () const
QString importParser () const
QString importMatcher () const
QString exportDefaultDirectory () const
int exportArchiveFormat () const noexcept
bool exportIncludeFormulas () const noexcept
QString analysisDefaultDateMode () const
int analysisDefaultYear () const noexcept
bool toolbarShowBooking () const noexcept
bool toolbarShowActors () const noexcept
bool toolbarShowProperties () const noexcept
bool toolbarShowContracts () const noexcept
bool toolbarShowImport () const noexcept
bool toolbarShowExport () const noexcept
bool toolbarShowAnalysis () const noexcept
bool toolbarShowAnnual () const noexcept
bool toolbarShowSettings () const noexcept
void setLanguage (const QString &value)
void setThemeMode (const QString &value)
void setAutosaveOnClose (bool value)
void setAutosaveIntervalMinutes (int value)
void setImportDefaultPath (const QString &value)
void setImportPoppler (const QString &value)
void setImportOpenCv (const QString &value)
void setImportTesseract (const QString &value)
void setImportParser (const QString &value)
void setImportMatcher (const QString &value)
void setExportDefaultDirectory (const QString &value)
void setExportArchiveFormat (int value)
void setExportIncludeFormulas (bool value)
void setAnalysisDefaultDateMode (const QString &value)
void setAnalysisDefaultYear (int value)
void setToolbarShowBooking (bool value)
void setToolbarShowActors (bool value)
void setToolbarShowProperties (bool value)
void setToolbarShowContracts (bool value)
void setToolbarShowImport (bool value)
void setToolbarShowExport (bool value)
void setToolbarShowAnalysis (bool value)
void setToolbarShowAnnual (bool value)
void setToolbarShowSettings (bool value)
void load ()
 Loads persisted settings from the platform settings store.
void save ()
 Saves current settings to the platform settings store.
void resetToDefaults ()
 Restores default settings values in memory.
bool hasChanges () const noexcept
 Returns whether current values differ from the last saved state.

Properties

QString language
QString themeMode
bool autosaveOnClose
int autosaveIntervalMinutes
QString importDefaultPath
QString importPoppler
QString importOpenCv
QString importTesseract
QString importParser
QString importMatcher
QString exportDefaultDirectory
int exportArchiveFormat
bool exportIncludeFormulas
QString analysisDefaultDateMode
int analysisDefaultYear
bool toolbarShowBooking
bool toolbarShowActors
bool toolbarShowProperties
bool toolbarShowContracts
bool toolbarShowImport
bool toolbarShowExport
bool toolbarShowAnalysis
bool toolbarShowAnnual
bool toolbarShowSettings

Detailed Description

Stores and exposes globally persisted UI settings for settings-related views.

Definition at line 19 of file Settings.h.

Constructor & Destructor Documentation

◆ Settings()

ui::Settings::Settings ( QObject * parent = nullptr)
explicit

Creates the settings store exposed to QML.

Parameters
parentOptional QObject parent.

Definition at line 28 of file Settings.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ analysisDefaultDateMode()

QString ui::Settings::analysisDefaultDateMode ( ) const
inline

Definition at line 119 of file Settings.h.

◆ analysisDefaultDateModeChanged

void ui::Settings::analysisDefaultDateModeChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ analysisDefaultYear()

int ui::Settings::analysisDefaultYear ( ) const
inlinenoexcept

Definition at line 122 of file Settings.h.

◆ analysisDefaultYearChanged

void ui::Settings::analysisDefaultYearChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ autosaveIntervalMinutes()

int ui::Settings::autosaveIntervalMinutes ( ) const
inlinenoexcept

Definition at line 89 of file Settings.h.

◆ autosaveIntervalMinutesChanged

void ui::Settings::autosaveIntervalMinutesChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ autosaveOnClose()

bool ui::Settings::autosaveOnClose ( ) const
inlinenoexcept

Definition at line 86 of file Settings.h.

◆ autosaveOnCloseChanged

void ui::Settings::autosaveOnCloseChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exportArchiveFormat()

int ui::Settings::exportArchiveFormat ( ) const
inlinenoexcept

Definition at line 113 of file Settings.h.

◆ exportArchiveFormatChanged

void ui::Settings::exportArchiveFormatChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exportDefaultDirectory()

QString ui::Settings::exportDefaultDirectory ( ) const
inline

Definition at line 110 of file Settings.h.

◆ exportDefaultDirectoryChanged

void ui::Settings::exportDefaultDirectoryChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exportIncludeFormulas()

bool ui::Settings::exportIncludeFormulas ( ) const
inlinenoexcept

Definition at line 116 of file Settings.h.

◆ exportIncludeFormulasChanged

void ui::Settings::exportIncludeFormulasChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasChanges()

bool ui::Settings::hasChanges ( ) const
noexcept

Returns whether current values differ from the last saved state.

Returns
True when unsaved settings changes exist.

Definition at line 397 of file Settings.cpp.

◆ importDefaultPath()

QString ui::Settings::importDefaultPath ( ) const
inline

Definition at line 92 of file Settings.h.

◆ importDefaultPathChanged

void ui::Settings::importDefaultPathChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importMatcher()

QString ui::Settings::importMatcher ( ) const
inline

Definition at line 107 of file Settings.h.

◆ importMatcherChanged

void ui::Settings::importMatcherChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importOpenCv()

QString ui::Settings::importOpenCv ( ) const
inline

Definition at line 98 of file Settings.h.

◆ importOpenCvChanged

void ui::Settings::importOpenCvChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importParser()

QString ui::Settings::importParser ( ) const
inline

Definition at line 104 of file Settings.h.

◆ importParserChanged

void ui::Settings::importParserChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importPoppler()

QString ui::Settings::importPoppler ( ) const
inline

Definition at line 95 of file Settings.h.

◆ importPopplerChanged

void ui::Settings::importPopplerChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importTesseract()

QString ui::Settings::importTesseract ( ) const
inline

Definition at line 101 of file Settings.h.

◆ importTesseractChanged

void ui::Settings::importTesseractChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ language()

QString ui::Settings::language ( ) const
inline

Definition at line 80 of file Settings.h.

◆ languageChanged

void ui::Settings::languageChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

void ui::Settings::load ( )

Loads persisted settings from the platform settings store.

Definition at line 376 of file Settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset

void ui::Settings::reset ( )
signal

Emitted after settings have been reset to defaults.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetToDefaults()

void ui::Settings::resetToDefaults ( )

Restores default settings values in memory.

Definition at line 390 of file Settings.cpp.

Here is the call graph for this function:

◆ save()

void ui::Settings::save ( )

Saves current settings to the platform settings store.

Definition at line 383 of file Settings.cpp.

Here is the call graph for this function:

◆ saved

void ui::Settings::saved ( )
signal

Emitted after settings have been persisted.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAnalysisDefaultDateMode()

void ui::Settings::setAnalysisDefaultDateMode ( const QString & value)

Definition at line 320 of file Settings.cpp.

Here is the call graph for this function:

◆ setAnalysisDefaultYear()

void ui::Settings::setAnalysisDefaultYear ( int value)

Definition at line 326 of file Settings.cpp.

Here is the call graph for this function:

◆ setAutosaveIntervalMinutes()

void ui::Settings::setAutosaveIntervalMinutes ( int value)

Definition at line 273 of file Settings.cpp.

Here is the call graph for this function:

◆ setAutosaveOnClose()

void ui::Settings::setAutosaveOnClose ( bool value)

Definition at line 268 of file Settings.cpp.

Here is the call graph for this function:

◆ setExportArchiveFormat()

void ui::Settings::setExportArchiveFormat ( int value)

Definition at line 310 of file Settings.cpp.

Here is the call graph for this function:

◆ setExportDefaultDirectory()

void ui::Settings::setExportDefaultDirectory ( const QString & value)

Definition at line 305 of file Settings.cpp.

Here is the call graph for this function:

◆ setExportIncludeFormulas()

void ui::Settings::setExportIncludeFormulas ( bool value)

Definition at line 315 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportDefaultPath()

void ui::Settings::setImportDefaultPath ( const QString & value)

Definition at line 279 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportMatcher()

void ui::Settings::setImportMatcher ( const QString & value)

Definition at line 301 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportOpenCv()

void ui::Settings::setImportOpenCv ( const QString & value)

Definition at line 288 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportParser()

void ui::Settings::setImportParser ( const QString & value)

Definition at line 297 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportPoppler()

void ui::Settings::setImportPoppler ( const QString & value)

Definition at line 284 of file Settings.cpp.

Here is the call graph for this function:

◆ setImportTesseract()

void ui::Settings::setImportTesseract ( const QString & value)

Definition at line 292 of file Settings.cpp.

Here is the call graph for this function:

◆ setLanguage()

void ui::Settings::setLanguage ( const QString & value)

Definition at line 256 of file Settings.cpp.

Here is the call graph for this function:

◆ setThemeMode()

void ui::Settings::setThemeMode ( const QString & value)

Definition at line 263 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowActors()

void ui::Settings::setToolbarShowActors ( bool value)

Definition at line 336 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowAnalysis()

void ui::Settings::setToolbarShowAnalysis ( bool value)

Definition at line 361 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowAnnual()

void ui::Settings::setToolbarShowAnnual ( bool value)

Definition at line 366 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowBooking()

void ui::Settings::setToolbarShowBooking ( bool value)

Definition at line 331 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowContracts()

void ui::Settings::setToolbarShowContracts ( bool value)

Definition at line 346 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowExport()

void ui::Settings::setToolbarShowExport ( bool value)

Definition at line 356 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowImport()

void ui::Settings::setToolbarShowImport ( bool value)

Definition at line 351 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowProperties()

void ui::Settings::setToolbarShowProperties ( bool value)

Definition at line 341 of file Settings.cpp.

Here is the call graph for this function:

◆ setToolbarShowSettings()

void ui::Settings::setToolbarShowSettings ( bool value)

Definition at line 371 of file Settings.cpp.

Here is the call graph for this function:

◆ stateChanged

void ui::Settings::stateChanged ( )
signal

Emitted when any settings value changes.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ themeMode()

QString ui::Settings::themeMode ( ) const
inline

Definition at line 83 of file Settings.h.

◆ themeModeChanged

void ui::Settings::themeModeChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowActors()

bool ui::Settings::toolbarShowActors ( ) const
inlinenoexcept

Definition at line 128 of file Settings.h.

◆ toolbarShowActorsChanged

void ui::Settings::toolbarShowActorsChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowAnalysis()

bool ui::Settings::toolbarShowAnalysis ( ) const
inlinenoexcept

Definition at line 143 of file Settings.h.

◆ toolbarShowAnalysisChanged

void ui::Settings::toolbarShowAnalysisChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowAnnual()

bool ui::Settings::toolbarShowAnnual ( ) const
inlinenoexcept

Definition at line 146 of file Settings.h.

◆ toolbarShowAnnualChanged

void ui::Settings::toolbarShowAnnualChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowBooking()

bool ui::Settings::toolbarShowBooking ( ) const
inlinenoexcept

Definition at line 125 of file Settings.h.

◆ toolbarShowBookingChanged

void ui::Settings::toolbarShowBookingChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowContracts()

bool ui::Settings::toolbarShowContracts ( ) const
inlinenoexcept

Definition at line 134 of file Settings.h.

◆ toolbarShowContractsChanged

void ui::Settings::toolbarShowContractsChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowExport()

bool ui::Settings::toolbarShowExport ( ) const
inlinenoexcept

Definition at line 140 of file Settings.h.

◆ toolbarShowExportChanged

void ui::Settings::toolbarShowExportChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowImport()

bool ui::Settings::toolbarShowImport ( ) const
inlinenoexcept

Definition at line 137 of file Settings.h.

◆ toolbarShowImportChanged

void ui::Settings::toolbarShowImportChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowProperties()

bool ui::Settings::toolbarShowProperties ( ) const
inlinenoexcept

Definition at line 131 of file Settings.h.

◆ toolbarShowPropertiesChanged

void ui::Settings::toolbarShowPropertiesChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toolbarShowSettings()

bool ui::Settings::toolbarShowSettings ( ) const
inlinenoexcept

Definition at line 149 of file Settings.h.

◆ toolbarShowSettingsChanged

void ui::Settings::toolbarShowSettingsChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

Property Documentation

◆ analysisDefaultDateMode

QString ui::Settings::analysisDefaultDateMode
read

Definition at line 49 of file Settings.h.

◆ analysisDefaultYear

int ui::Settings::analysisDefaultYear
read

Definition at line 52 of file Settings.h.

◆ autosaveIntervalMinutes

int ui::Settings::autosaveIntervalMinutes
read

Definition at line 28 of file Settings.h.

◆ autosaveOnClose

bool ui::Settings::autosaveOnClose
readwrite

Definition at line 26 of file Settings.h.

◆ exportArchiveFormat

int ui::Settings::exportArchiveFormat
read

Definition at line 45 of file Settings.h.

◆ exportDefaultDirectory

QString ui::Settings::exportDefaultDirectory
read

Definition at line 43 of file Settings.h.

◆ exportIncludeFormulas

bool ui::Settings::exportIncludeFormulas
read

Definition at line 47 of file Settings.h.

◆ importDefaultPath

QString ui::Settings::importDefaultPath
read

Definition at line 31 of file Settings.h.

◆ importMatcher

QString ui::Settings::importMatcher
readwrite

Definition at line 41 of file Settings.h.

◆ importOpenCv

QString ui::Settings::importOpenCv
readwrite

Definition at line 35 of file Settings.h.

◆ importParser

QString ui::Settings::importParser
readwrite

Definition at line 39 of file Settings.h.

◆ importPoppler

QString ui::Settings::importPoppler
readwrite

Definition at line 33 of file Settings.h.

◆ importTesseract

QString ui::Settings::importTesseract
read

Definition at line 37 of file Settings.h.

◆ language

QString ui::Settings::language
readwrite

Definition at line 22 of file Settings.h.

◆ themeMode

QString ui::Settings::themeMode
readwrite

Definition at line 24 of file Settings.h.

◆ toolbarShowActors

bool ui::Settings::toolbarShowActors
read

Definition at line 56 of file Settings.h.

◆ toolbarShowAnalysis

bool ui::Settings::toolbarShowAnalysis
read

Definition at line 66 of file Settings.h.

◆ toolbarShowAnnual

bool ui::Settings::toolbarShowAnnual
read

Definition at line 68 of file Settings.h.

◆ toolbarShowBooking

bool ui::Settings::toolbarShowBooking
read

Definition at line 54 of file Settings.h.

◆ toolbarShowContracts

bool ui::Settings::toolbarShowContracts
read

Definition at line 60 of file Settings.h.

◆ toolbarShowExport

bool ui::Settings::toolbarShowExport
read

Definition at line 64 of file Settings.h.

◆ toolbarShowImport

bool ui::Settings::toolbarShowImport
read

Definition at line 62 of file Settings.h.

◆ toolbarShowProperties

bool ui::Settings::toolbarShowProperties
read

Definition at line 58 of file Settings.h.

◆ toolbarShowSettings

bool ui::Settings::toolbarShowSettings
read

Definition at line 70 of file Settings.h.


The documentation for this class was generated from the following files: