|
DRN_NAVIGATION_EXPORT std::optional< banking::BankAccount > | lookUpBankAccount (const budgeting::BudgetSource &toFind, const std::set< BudgetBankAccount > &accounts) noexcept |
| Searches for a bank account associated with a given budget source in a provided collection.
|
|
DRN_NAVIGATION_EXPORT::QDebug | operator<< (::QDebug out, BudgetWizardTemplates bwt) |
| Full object Qt stream insertion operator.
|
|
DRN_NAVIGATION_EXPORT ConfigurationOptions | parse (const ::QStringList &arguments) noexcept |
| Parses arguments for the application.
|
|
DRN_NAVIGATION_EXPORT::QString | presentationText (const CurrencyDisplayOptions &displayAs) |
| Converts a currency display option into its corresponding presentation text.
|
|
DRN_NAVIGATION_EXPORT CurrencyDisplayOptions | toCurrencyDisplayOptions (const ::QString &displayAs) |
| Converts a textual representation into a CurrencyDisplayOptions enumeration value.
|
|
DRN_NAVIGATION_EXPORT pecunia::Currency | toCurrencyFromDisplayable (const ::QString &text, const std::set< pecunia::Currency > &usableCodes, const CurrencyDisplayOptions displayAs) |
| Converts a displayed currency representation into a specific currency code.
|
|
DRN_NAVIGATION_EXPORT::QString | toDisplayable (const pecunia::Currency &code, const CurrencyDisplayOptions displayAs) |
| Converts a currency and its display option into a user-friendly string representation.
|
|
DRN_NAVIGATION_EXPORT::QString | toQString (const CurrencyDisplayOptions &displayAs) |
| Converts a currency display option into its corresponding text-based representation.
|
|
DRN_NAVIGATION_EXPORT::QString drn::navigation::toDisplayable |
( |
const pecunia::Currency & | code, |
|
|
const CurrencyDisplayOptions | displayAs ) |
Converts a currency and its display option into a user-friendly string representation.
This function generates a textual representation of a given currency based on the provided display option. It is designed to accommodate different formats of currency visualization, such as ISO codes, symbols, or a combination of both, and is particularly useful for GUI elements or text-based output where clear and standardized currency display is required. If the display option cannot be determined, the function throws an exception.
- Exceptions
-
std::logic_error | Thrown if the provided display option is not supported or if the function logic fails to map the currency to a valid representation. |
- Parameters
-
code | A reference to the currency object to be converted into a displayable string. |
displayAs | The preferred display option describing how the currency should be visualized. |
- Returns
- A string that represents the currency in the desired format, based on the provided display option.
DRN_NAVIGATION_EXPORT::QString drn::navigation::toQString |
( |
const CurrencyDisplayOptions & | displayAs | ) |
|
Converts a currency display option into its corresponding text-based representation.
This function maps a given currency display option into a textual description. It is useful within applications that need to store, display, or communicate how a currency should be presented (e.g., using ISO codes, symbols, or both).
- Exceptions
-
std::invalid_argument | Thrown if the given display option does not have a corresponding text-based representation. |
- Parameters
-
displayAs | An enumeration value representing how the currency should be displayed. |
- Returns
- A string representation of the provided CurrencyDisplayOptions value.
std::array drn::navigation::allCurrencyDisplayOptions |
|
inlineconstexpr |
Initial value:{
CurrencyDisplayOptions::IsoCode,
CurrencyDisplayOptions::Symbol,
CurrencyDisplayOptions::SymbolAndCode
}
Lists all possible currency display options.
This variable provides a collection of all defined options for representing currencies in a standardized way. It is utilized to ensure consistency when presenting currency data across various components of an application.
Use this to validate or iterate through the available representations of currency, ensuring no unintentional omissions of any display options. It is particularly useful when creating dropdowns, selectors, or validation mechanisms involving currency formats in GUI elements or other programmatic use cases.
int drn::navigation::guiMessageDisplayDelayMs {1500} |
|
inlineconstexpr |
Specifies the delay, in milliseconds, for how long a message is displayed in the GUI.
This variable determines the duration to wait before moving on from the current GUI item. It is intended to enhance the user experience by providing a consistent delay for messages, improving visual flow or interaction timing. Modifying this value can affect how quickly information is displayed to the user, and the perceived responsiveness of the system.
int drn::navigation::signalAsyncDelayMs {100} |
|
inlineconstexpr |
Specifies the delay, in milliseconds, used for emitting asynchronous signals/slots.
This constant determines the time duration to wait before emitting the signals/slots. It is essential for ensuring that certain operations have appropriate delays to allow for other processes to complete, maintaining synchronisation, and responsiveness within the application. Adjusting this value may impact performance, timing, and user experience, depending on operational requirements.
int drn::navigation::statusMessageTimeOutMs {5000} |
|
inlineconstexpr |
Defines the time, in milliseconds, for how long a status message is displayed in the GUI.
This constant determines the duration for which status messages are visible in a GUI element, such as a status bar, ensuring proper visibility for users to read the displayed information. Adjusting this timeout value can tailor the user experience to either show messages for a shorter or longer duration, adapting to both user preferences and application-specific needs.