Geometrize  1.0
An application for geometrizing images into geometric primitives
Classes | Public Member Functions | Private Attributes | List of all members
geometrize::preferences::GlobalPreferences Class Reference

The GlobalPreferences class models the preferences associated with the application as a whole. These mostly represent application-wide settings that are edited via the tabbed preferences widget. More...

#include <globalpreferences.h>

Inheritance diagram for geometrize::preferences::GlobalPreferences:
Inheritance graph
[legend]
Collaboration diagram for geometrize::preferences::GlobalPreferences:
Collaboration graph
[legend]

Classes

class  GlobalPreferencesImpl
 

Public Member Functions

 GlobalPreferences ()
 
GlobalPreferencesoperator= (const GlobalPreferences &)=delete
 
 GlobalPreferences (const GlobalPreferences &)=delete
 
 ~GlobalPreferences ()
 
bool load (const std::string &filePath)
 load Loads the global preferences from a file. More...
 
bool save (const std::string &filePath)
 save Saves the global preferences to a file. More...
 
unsigned int getApplicationLaunchCount () const
 getApplicationLaunchCount More...
 
void incrementApplicationLaunchCount ()
 incrementApplicationLaunchCount Increments the count for the number of times the application has been launched. More...
 
bool shouldShowWelcomeScreenOnLaunch () const
 shouldShowWelcomeScreenOnLaunch Gets the preference for whether the welcome screen should be displayed on launch. More...
 
void setShouldShowWelcomeScreenOnLaunch (bool show)
 setShouldShowWelcomeScreenOnLaunch Sets the preference for whether the welcome screen should be displayed on launch. More...
 
bool shouldGeometrizeAppLogoOnLaunch () const
 shouldGeometrizeAppLogoOnLaunch Gets the preference for whether the app logo on the launch window should be geometrized on launch. More...
 
void setShouldGeometrizeAppLogoOnLaunch (bool geometrizeLogo)
 setShouldGeometrizeAppLogoOnLaunch Sets the preference for whether to geometrize the app logo on the launch window on launch. More...
 
bool shouldPopulateRecentItemsOnLaunch () const
 shouldPopulateRecentItemsOnLaunch Gets the preference for whether the recent items list should be populated on launch. More...
 
void setShouldPopulateRecentItemsOnLaunch (bool populateRecents)
 setShouldPopulateRecentItemsOnLaunch Sets the preference for whether the recent items list should be populated on launch. More...
 
bool shouldPopulateTemplatesOnLaunch () const
 shouldPopulateTemplatesOnLaunch Gets the preference for whether to populate the task templates on the launch window on launch. More...
 
void setShouldPopulateTemplatesOnLaunch (bool populateTemplates)
 setShouldPopulateTemplatesOnLaunch Sets the preference for whether to populate the task templates on the launch window on launch. More...
 
std::array< std::int32_t, 4 > getCustomImageTaskBackgroundOverrideColor () const
 getCustomImageTaskBackgroundOverrideColor Gets the preference for the custom image task background override color to use when an image task is initially set up. More...
 
void setCustomImageTaskBackgroundOverrideColor (std::int32_t r, std::int32_t g, std::int32_t b, std::int32_t a)
 setUseCustomImageTaskBackgroundOverrideColor Sets the preference for the custom image task background override color to use when an image task is initially set up. More...
 
bool shouldUseCustomImageTaskBackgroundOverrideColor () const
 shouldUseCustomImageTaskBackgroundOverrideColor Gets the preference for whether to use the custom image task background override color. More...
 
void setShouldUseCustomImageTaskBackgroundOverrideColor (bool useColor)
 setShouldUseCustomImageTaskBackgroundOverrideColor Sets the preference for whether to use the custom image task background override color. More...
 
std::array< std::int32_t, 4 > getTargetImageAlphaReplacementColor () const
 getTargetImageAlphaReplacementColor Gets the preference for the color to replace the alpha of a target image with, when an image task is initially set up. More...
 
void setTargetImageAlphaReplacementColor (std::int32_t r, std::int32_t g, std::int32_t b, std::int32_t a)
 setTargetImageAlphaReplacementColor Sets the preference for the color to replace the alpha of a target image with, when an image task is initially set up. More...
 
bool shouldUseImageAlphaReplacementColor () const
 shouldUseImageAlphaReplacementColor Gets the preference for whether to replace the alpha of a target image with a color, when an image task is initially set up. More...
 
void setShouldReplaceTargetImageAlphaWithCustomColor (bool useColor)
 setShouldReplaceTargetImageAlphaWithCustomColor Sets the preference for whether to replace the alpha of a target image with a color, when an image task is initially set up. More...
 
bool shouldAutoLoadImageTaskSettings () const
 shouldAutoLoadImageTaskSettings Gets the preference for whether to automatically load any previously saved image task settings when a task window is opened. More...
 
void setShouldAutoLoadImageTaskSettings (bool loadSettings)
 setShouldAutoLoadImageTaskSettings Sets the preference for whether to automatically load any previously saved image task settings when a task window is opened. More...
 
bool shouldAutoSaveImageTaskSettings () const
 shouldAutoSaveImageTaskSettings Gets the preference for whether to automatically save the last task settings to disk/persistent storage when a task window is closed. More...
 
void setShouldAutoSaveImageTaskSettings (bool saveSettings)
 setShouldAutoSaveImageTaskSettings Sets the preference for whether to automatically save the last task settings to disk/persistent storage when a task window is closed. More...
 
bool shouldShowLaunchConsoleByDefault () const
 shouldShowLaunchConsoleByDefault Gets the preference for whether to show the console on the launch window when the window is opened. More...
 
void setShouldShowLaunchConsoleByDefault (bool showConsole)
 setShouldShowLaunchConsoleByDefault Sets the preference for whether to show the console on the launch window when the window is opened. More...
 
bool shouldShowImageTaskVectorViewByDefault () const
 shouldShowImageTaskVectorViewByDefault Gets the preference for whether to show the image task vector/SVG view when the window is opened. More...
 
void setShouldShowImageTaskVectorViewByDefault (bool showVectorView)
 setShouldShowImageTaskVectorViewByDefault Sets the preference for whether to show the image task vector/SVG view when the window is opened. More...
 
bool shouldShowImageTaskConsoleByDefault () const
 shouldShowImageTaskConsoleByDefault Gets the preference for whether to show the console on the image task window when the window is opened. More...
 
void setShouldShowImageTaskConsoleByDefault (bool showConsole)
 setShouldShowImageTaskConsoleByDefault Sets the preference for whether to show the console on the image task window when the window is opened. More...
 
bool shouldShowImageTaskScriptEditorByDefault () const
 shouldShowImageTaskScriptEditorByDefault Gets the preference for whether to open the script editor when an image task window is opened. More...
 
void setShouldShowImageTaskScriptEditorByDefault (bool showScriptEditor)
 setShouldShowImageTaskScriptEditorByDefault Sets the preference for whether to open the script editor when an image task window is opened. More...
 
bool shouldShowImageTaskPixmapViewByDefault () const
 shouldShowImageTaskPixmapViewByDefault Gets the preference for whether to show the image task pixmap/raster view when the window is opened. More...
 
void setShouldShowImageTaskPixmapViewByDefault (bool showPixmapView)
 setShouldShowImageTaskPixmapViewByDefault Sets the preference for whether to show the image task pixmap/raster view when the window is opened. More...
 
bool isImageTaskImageResizeEnabled () const
 isImageTaskImageResizeEnabled Gets the preference for whether image tasks should resize images that are too large. More...
 
void setImageTaskImageResizeEnabled (bool enabled)
 setImageTaskImageResizeEnabled Sets the preference for whether image tasks should resize images that are too large. More...
 
std::pair< std::uint32_t, std::uint32_t > getImageTaskResizeThreshold () const
 getImageTaskResizeThreshold Gets the maximum dimensions of an image that can be used in an image task without resizing. More...
 
void setImageTaskResizeThreshold (std::uint32_t width, std::uint32_t height)
 setImageTaskResizeThreshold Sets the maximum dimensions of an image that can be used in an image task without resizing. More...
 
std::uint32_t getImageTaskMaxThreads () const
 getImageTaskMaxThreads Gets the maximum number of threads the image task should use. More...
 
void setImageTaskMaxThreads (std::uint32_t maxThreads)
 setImageTaskMaxThreads Sets the maximum number of threads the image task should use. More...
 
std::string getLanguageIsoCode () const
 getLanguageIsoCode Gets the ISO 639-1 language preference for the application. More...
 
void setLanguageIsoCode (const std::string &languageIsoCode)
 setLanguageIsoCode Sets the ISO 639-1 language preference for the application. More...
 
std::string getScriptIsoCode () const
 getScriptIsoCode Gets the ISO-15924 script code preference for the application. More...
 
void setScriptIsoCode (const std::string &scriptIsoCode)
 setScriptIsoCode Sets the ISO-15924 script code preference for the application. More...
 
std::string getCountryIsoCode () const
 getCountryIsoCode Gets the ISO-3166 country code preference for the application. More...
 
void setCountryIsoCode (const std::string &countryIsoCode)
 setCountryIsoCode Sets the ISO-3166 country code preference for the application. More...
 
std::string getLocaleName () const
 getLocaleName Gets the locale name in the format "language[_script][_country]". language is a lowercase, two or three letter, ISO 639 language code. script is a titlecase, four-letter, ISO 15924 script code. country is an uppercase, two-letter, ISO 3166 country code (also "419" as defined by United Nations). More...
 
void setLocaleName (const std::string &localeName)
 setLocaleName Sets the locale with the specified name, which must have the format "language[_script][_country]". More...
 

Private Attributes

std::unique_ptr< GlobalPreferencesImpld
 

Detailed Description

The GlobalPreferences class models the preferences associated with the application as a whole. These mostly represent application-wide settings that are edited via the tabbed preferences widget.

Constructor & Destructor Documentation

◆ GlobalPreferences() [1/2]

geometrize::preferences::GlobalPreferences::GlobalPreferences ( )
430  : d{std::make_unique<GlobalPreferences::GlobalPreferencesImpl>()}
431 {
432 }

◆ GlobalPreferences() [2/2]

geometrize::preferences::GlobalPreferences::GlobalPreferences ( const GlobalPreferences )
delete

◆ ~GlobalPreferences()

geometrize::preferences::GlobalPreferences::~GlobalPreferences ( )
435 {
436 }

Member Function Documentation

◆ getApplicationLaunchCount()

unsigned int geometrize::preferences::GlobalPreferences::getApplicationLaunchCount ( ) const

getApplicationLaunchCount

Returns
Gets the number of times the application has been launched.
439 {
440  return d->getApplicationLaunchCount();
441 }

◆ getCountryIsoCode()

std::string geometrize::preferences::GlobalPreferences::getCountryIsoCode ( ) const

getCountryIsoCode Gets the ISO-3166 country code preference for the application.

Returns
The ISO-3166 country code.
659 {
660  return d->getCountryIsoCode();
661 }

◆ getCustomImageTaskBackgroundOverrideColor()

std::array< std::int32_t, 4 > geometrize::preferences::GlobalPreferences::getCustomImageTaskBackgroundOverrideColor ( ) const

getCustomImageTaskBackgroundOverrideColor Gets the preference for the custom image task background override color to use when an image task is initially set up.

Returns
An array containing the RGBA override color values.
499 {
500  return d->getCustomImageTaskBackgroundOverrideColor();
501 }
Here is the caller graph for this function:

◆ getImageTaskMaxThreads()

std::uint32_t geometrize::preferences::GlobalPreferences::getImageTaskMaxThreads ( ) const

getImageTaskMaxThreads Gets the maximum number of threads the image task should use.

Returns
The maximum number of threads the image task should use.
629 {
630  return d->getImageTaskMaxThreads();
631 }
Here is the caller graph for this function:

◆ getImageTaskResizeThreshold()

std::pair< std::uint32_t, std::uint32_t > geometrize::preferences::GlobalPreferences::getImageTaskResizeThreshold ( ) const

getImageTaskResizeThreshold Gets the maximum dimensions of an image that can be used in an image task without resizing.

Returns
The maximum width and height of the image task image that can be used without the image being resized.
619 {
620  return d->getImageTaskResizeThreshold();
621 }
Here is the caller graph for this function:

◆ getLanguageIsoCode()

std::string geometrize::preferences::GlobalPreferences::getLanguageIsoCode ( ) const

getLanguageIsoCode Gets the ISO 639-1 language preference for the application.

Returns
The ISO 639-1 language code.
639 {
640  return d->getLanguageIsoCode();
641 }

◆ getLocaleName()

std::string geometrize::preferences::GlobalPreferences::getLocaleName ( ) const

getLocaleName Gets the locale name in the format "language[_script][_country]". language is a lowercase, two or three letter, ISO 639 language code. script is a titlecase, four-letter, ISO 15924 script code. country is an uppercase, two-letter, ISO 3166 country code (also "419" as defined by United Nations).

Returns
The locale name.
669 {
670  return d->getLocaleName();
671 }
Here is the caller graph for this function:

◆ getScriptIsoCode()

std::string geometrize::preferences::GlobalPreferences::getScriptIsoCode ( ) const

getScriptIsoCode Gets the ISO-15924 script code preference for the application.

Returns
The ISO-15924 script code.
649 {
650  return d->getScriptIsoCode();
651 }

◆ getTargetImageAlphaReplacementColor()

std::array< std::int32_t, 4 > geometrize::preferences::GlobalPreferences::getTargetImageAlphaReplacementColor ( ) const

getTargetImageAlphaReplacementColor Gets the preference for the color to replace the alpha of a target image with, when an image task is initially set up.

Returns
An array containing the RGBA target image alpha replacement color.
539 {
540  return d->getTargetImageAlphaReplacementColor();
541 }
Here is the caller graph for this function:

◆ incrementApplicationLaunchCount()

void geometrize::preferences::GlobalPreferences::incrementApplicationLaunchCount ( )

incrementApplicationLaunchCount Increments the count for the number of times the application has been launched.

444 {
445  d->incrementApplicationLaunchCount();
446 }

◆ isImageTaskImageResizeEnabled()

bool geometrize::preferences::GlobalPreferences::isImageTaskImageResizeEnabled ( ) const

isImageTaskImageResizeEnabled Gets the preference for whether image tasks should resize images that are too large.

Returns
True if the image task image resizing is enabled.
609 {
610  return d->isImageTaskImageResizeEnabled();
611 }

◆ load()

bool geometrize::preferences::GlobalPreferences::load ( const std::string &  filePath)

load Loads the global preferences from a file.

Parameters
filePathThe path to the global preferences file.
Returns
True if loading succeeded, else false.
449 {
450  return d->load(filePath);
451 }
Here is the caller graph for this function:

◆ operator=()

GlobalPreferences& geometrize::preferences::GlobalPreferences::operator= ( const GlobalPreferences )
delete

◆ save()

bool geometrize::preferences::GlobalPreferences::save ( const std::string &  filePath)

save Saves the global preferences to a file.

Parameters
filePathThe path to the global preferences file.
Returns
True if saving succeeded, else false.
454 {
455  return d->save(filePath);
456 }
Here is the caller graph for this function:

◆ setCountryIsoCode()

void geometrize::preferences::GlobalPreferences::setCountryIsoCode ( const std::string &  countryIsoCode)

setCountryIsoCode Sets the ISO-3166 country code preference for the application.

Parameters
countryIsoCodeThe ISO-3166 country code.
664 {
665  d->setCountryIsoCode(countryIsoCode);
666 }

◆ setCustomImageTaskBackgroundOverrideColor()

void geometrize::preferences::GlobalPreferences::setCustomImageTaskBackgroundOverrideColor ( std::int32_t  r,
std::int32_t  g,
std::int32_t  b,
std::int32_t  a 
)

setUseCustomImageTaskBackgroundOverrideColor Sets the preference for the custom image task background override color to use when an image task is initially set up.

Parameters
rThe red color component
gThe green color component
bThe blue color component
aThe alpha color component
504 {
505  d->setCustomImageTaskBackgroundOverrideColor(r, g, b, a);
506 }
Here is the caller graph for this function:

◆ setImageTaskImageResizeEnabled()

void geometrize::preferences::GlobalPreferences::setImageTaskImageResizeEnabled ( bool  enabled)

setImageTaskImageResizeEnabled Sets the preference for whether image tasks should resize images that are too large.

Parameters
enabledWhether to enable or disable the resizing.
614 {
615  d->setImageTaskImageResizeEnabled(enabled);
616 }
Here is the caller graph for this function:

◆ setImageTaskMaxThreads()

void geometrize::preferences::GlobalPreferences::setImageTaskMaxThreads ( std::uint32_t  maxThreads)

setImageTaskMaxThreads Sets the maximum number of threads the image task should use.

Parameters
maxThreadsThe maximum number of threads the image task should use.
634 {
635  d->setImageTaskMaxThreads(maxThreads);
636 }
Here is the caller graph for this function:

◆ setImageTaskResizeThreshold()

void geometrize::preferences::GlobalPreferences::setImageTaskResizeThreshold ( std::uint32_t  width,
std::uint32_t  height 
)

setImageTaskResizeThreshold Sets the maximum dimensions of an image that can be used in an image task without resizing.

Parameters
widthThe maximum width of an image.
heightThe maximum height of an image.
624 {
625  d->setImageTaskResizeThreshold(width, height);
626 }
Here is the caller graph for this function:

◆ setLanguageIsoCode()

void geometrize::preferences::GlobalPreferences::setLanguageIsoCode ( const std::string &  languageIsoCode)

setLanguageIsoCode Sets the ISO 639-1 language preference for the application.

Parameters
languageIsoCodeThe ISO 639-1 language code.
644 {
645  d->setLanguageIsoCode(languageIsoCode);
646 }
Here is the caller graph for this function:

◆ setLocaleName()

void geometrize::preferences::GlobalPreferences::setLocaleName ( const std::string &  localeName)

setLocaleName Sets the locale with the specified name, which must have the format "language[_script][_country]".

Parameters
localeNameThe locale name in the format "language[_script][_country]". language is a lowercase, two or three letter, ISO 639 language code. script is a titlecase, four-letter, ISO 15924 script code. country is an uppercase, two-letter, ISO 3166 country code (also "419" as defined by United Nations).
674 {
675  d->setLocaleName(localeName);
676 }

◆ setScriptIsoCode()

void geometrize::preferences::GlobalPreferences::setScriptIsoCode ( const std::string &  scriptIsoCode)

setScriptIsoCode Sets the ISO-15924 script code preference for the application.

Parameters
scriptIsoCodeThe ISO-15924 script code.
654 {
655  d->setScriptIsoCode(scriptIsoCode);
656 }

◆ setShouldAutoLoadImageTaskSettings()

void geometrize::preferences::GlobalPreferences::setShouldAutoLoadImageTaskSettings ( bool  loadSettings)

setShouldAutoLoadImageTaskSettings Sets the preference for whether to automatically load any previously saved image task settings when a task window is opened.

Parameters
loadSettingsWhether to automatically load any previously saved image task settings when a task window is opened
524 {
525  d->setShouldAutoLoadImageTaskSettings(loadSettings);
526 }
Here is the caller graph for this function:

◆ setShouldAutoSaveImageTaskSettings()

void geometrize::preferences::GlobalPreferences::setShouldAutoSaveImageTaskSettings ( bool  saveSettings)

setShouldAutoSaveImageTaskSettings Sets the preference for whether to automatically save the last task settings to disk/persistent storage when a task window is closed.

Parameters
saveSettingsWhether to automatically save the last task settings to disk/persistent storage when a task window is closed
534 {
535  d->setShouldAutoSaveImageTaskSettings(saveSettings);
536 }
Here is the caller graph for this function:

◆ setShouldGeometrizeAppLogoOnLaunch()

void geometrize::preferences::GlobalPreferences::setShouldGeometrizeAppLogoOnLaunch ( bool  geometrizeLogo)

setShouldGeometrizeAppLogoOnLaunch Sets the preference for whether to geometrize the app logo on the launch window on launch.

Parameters
geometrizeLogoWhether to geometrize the app logo on the launch window on launch.
474 {
475  d->setShouldGeometrizeAppLogoOnLaunch(geometrizeLogo);
476 }
Here is the caller graph for this function:

◆ setShouldPopulateRecentItemsOnLaunch()

void geometrize::preferences::GlobalPreferences::setShouldPopulateRecentItemsOnLaunch ( bool  populateRecents)

setShouldPopulateRecentItemsOnLaunch Sets the preference for whether the recent items list should be populated on launch.

Parameters
populateRecentsWhether to populate the recent items list on launch.
484 {
485  d->setShouldPopulateRecentItemsOnLaunch(populateRecents);
486 }
Here is the caller graph for this function:

◆ setShouldPopulateTemplatesOnLaunch()

void geometrize::preferences::GlobalPreferences::setShouldPopulateTemplatesOnLaunch ( bool  populateTemplates)

setShouldPopulateTemplatesOnLaunch Sets the preference for whether to populate the task templates on the launch window on launch.

Parameters
populateTemplatesWhether to populate the task templates on the launch window on app launch.
494 {
495  d->setShouldPopulateTemplatesOnLaunch(populateTemplates);
496 }
Here is the caller graph for this function:

◆ setShouldReplaceTargetImageAlphaWithCustomColor()

void geometrize::preferences::GlobalPreferences::setShouldReplaceTargetImageAlphaWithCustomColor ( bool  useColor)

setShouldReplaceTargetImageAlphaWithCustomColor Sets the preference for whether to replace the alpha of a target image with a color, when an image task is initially set up.

Parameters
useColorWhether to replace the alpha of a target image with a color, when an image task is initially set up etc.
554 {
555  d->setShouldReplaceTargetImageAlphaWithCustomColor(useColor);
556 }
Here is the caller graph for this function:

◆ setShouldShowImageTaskConsoleByDefault()

void geometrize::preferences::GlobalPreferences::setShouldShowImageTaskConsoleByDefault ( bool  showConsole)

setShouldShowImageTaskConsoleByDefault Sets the preference for whether to show the console on the image task window when the window is opened.

Parameters
showConsoleWhether to show the console on the image task window when the window is opened.
584 {
585  d->setShouldShowImageTaskConsoleByDefault(showConsole);
586 }
Here is the caller graph for this function:

◆ setShouldShowImageTaskPixmapViewByDefault()

void geometrize::preferences::GlobalPreferences::setShouldShowImageTaskPixmapViewByDefault ( bool  showPixmapView)

setShouldShowImageTaskPixmapViewByDefault Sets the preference for whether to show the image task pixmap/raster view when the window is opened.

Parameters
showPixmapViewWhether to show the image task pixmap/raster view when the window is opened.
604 {
605  d->setShouldShowImageTaskPixmapViewByDefault(showPixmapView);
606 }
Here is the caller graph for this function:

◆ setShouldShowImageTaskScriptEditorByDefault()

void geometrize::preferences::GlobalPreferences::setShouldShowImageTaskScriptEditorByDefault ( bool  showScriptEditor)

setShouldShowImageTaskScriptEditorByDefault Sets the preference for whether to open the script editor when an image task window is opened.

Parameters
showScriptEditorWhether to open the script editor when an image task window is opened.
594 {
595  d->setShouldShowImageTaskScriptEditorByDefault(showScriptEditor);
596 }
Here is the caller graph for this function:

◆ setShouldShowImageTaskVectorViewByDefault()

void geometrize::preferences::GlobalPreferences::setShouldShowImageTaskVectorViewByDefault ( bool  showVectorView)

setShouldShowImageTaskVectorViewByDefault Sets the preference for whether to show the image task vector/SVG view when the window is opened.

Parameters
showVectorViewWhether to show the image task vector/SVG view when the window is opened.
574 {
575  d->setShouldShowImageTaskVectorViewByDefault(showVectorView);
576 }
Here is the caller graph for this function:

◆ setShouldShowLaunchConsoleByDefault()

void geometrize::preferences::GlobalPreferences::setShouldShowLaunchConsoleByDefault ( bool  showConsole)

setShouldShowLaunchConsoleByDefault Sets the preference for whether to show the console on the launch window when the window is opened.

Parameters
showConsoleWhether to show the show the console on the launch window when the window is opened.
564 {
565  d->setShouldShowLaunchConsoleByDefault(showConsole);
566 }
Here is the caller graph for this function:

◆ setShouldShowWelcomeScreenOnLaunch()

void geometrize::preferences::GlobalPreferences::setShouldShowWelcomeScreenOnLaunch ( bool  show)

setShouldShowWelcomeScreenOnLaunch Sets the preference for whether the welcome screen should be displayed on launch.

Parameters
showWhether to show the welcome screen on launch.
464 {
465  d->setShouldShowWelcomeScreenOnLaunch(show);
466 }

◆ setShouldUseCustomImageTaskBackgroundOverrideColor()

void geometrize::preferences::GlobalPreferences::setShouldUseCustomImageTaskBackgroundOverrideColor ( bool  useColor)

setShouldUseCustomImageTaskBackgroundOverrideColor Sets the preference for whether to use the custom image task background override color.

Parameters
useColorWhether to use the custom image task background override color when setting up image tasks etc.
514 {
515  d->setShouldUseCustomImageTaskBackgroundOverrideColor(useColor);
516 }
Here is the caller graph for this function:

◆ setTargetImageAlphaReplacementColor()

void geometrize::preferences::GlobalPreferences::setTargetImageAlphaReplacementColor ( std::int32_t  r,
std::int32_t  g,
std::int32_t  b,
std::int32_t  a 
)

setTargetImageAlphaReplacementColor Sets the preference for the color to replace the alpha of a target image with, when an image task is initially set up.

Parameters
rThe red color component
gThe green color component
bThe blue color component
aThe alpha color component
544 {
545  d->setTargetImageAlphaReplacementColor(r, g, b, a);
546 }
Here is the caller graph for this function:

◆ shouldAutoLoadImageTaskSettings()

bool geometrize::preferences::GlobalPreferences::shouldAutoLoadImageTaskSettings ( ) const

shouldAutoLoadImageTaskSettings Gets the preference for whether to automatically load any previously saved image task settings when a task window is opened.

Returns
Whether to automatically load any previously saved image task settings
519 {
520  return d->shouldAutoLoadImageTaskSettings();
521 }

◆ shouldAutoSaveImageTaskSettings()

bool geometrize::preferences::GlobalPreferences::shouldAutoSaveImageTaskSettings ( ) const

shouldAutoSaveImageTaskSettings Gets the preference for whether to automatically save the last task settings to disk/persistent storage when a task window is closed.

Returns
Whether to automatically save the last task settings to disk/persistent storage when a task window is closed
529 {
530  return d->shouldAutoSaveImageTaskSettings();
531 }

◆ shouldGeometrizeAppLogoOnLaunch()

bool geometrize::preferences::GlobalPreferences::shouldGeometrizeAppLogoOnLaunch ( ) const

shouldGeometrizeAppLogoOnLaunch Gets the preference for whether the app logo on the launch window should be geometrized on launch.

Returns
Whether the app logo on the launch window should be geometrized on launch.
469 {
470  return d->shouldGeometrizeAppLogoOnLaunch();
471 }

◆ shouldPopulateRecentItemsOnLaunch()

bool geometrize::preferences::GlobalPreferences::shouldPopulateRecentItemsOnLaunch ( ) const

shouldPopulateRecentItemsOnLaunch Gets the preference for whether the recent items list should be populated on launch.

Returns
Whether to populate the recent items list on launch.
479 {
480  return d->shouldPopulateRecentItemsOnLaunch();
481 }

◆ shouldPopulateTemplatesOnLaunch()

bool geometrize::preferences::GlobalPreferences::shouldPopulateTemplatesOnLaunch ( ) const

shouldPopulateTemplatesOnLaunch Gets the preference for whether to populate the task templates on the launch window on launch.

Returns
Whether to populate the task templates on the launch window on launch.
489 {
490  return d->shouldPopulateTemplatesOnLaunch();
491 }

◆ shouldShowImageTaskConsoleByDefault()

bool geometrize::preferences::GlobalPreferences::shouldShowImageTaskConsoleByDefault ( ) const

shouldShowImageTaskConsoleByDefault Gets the preference for whether to show the console on the image task window when the window is opened.

Returns
Whether to show the console on the image task window when the window is opened.
579 {
580  return d->shouldShowImageTaskConsoleByDefault();
581 }

◆ shouldShowImageTaskPixmapViewByDefault()

bool geometrize::preferences::GlobalPreferences::shouldShowImageTaskPixmapViewByDefault ( ) const

shouldShowImageTaskPixmapViewByDefault Gets the preference for whether to show the image task pixmap/raster view when the window is opened.

Returns
Whether to show the image task pixmap/raster view when the window is opened.
599 {
600  return d->shouldShowImageTaskPixmapViewByDefault();
601 }

◆ shouldShowImageTaskScriptEditorByDefault()

bool geometrize::preferences::GlobalPreferences::shouldShowImageTaskScriptEditorByDefault ( ) const

shouldShowImageTaskScriptEditorByDefault Gets the preference for whether to open the script editor when an image task window is opened.

Returns
Whether to open the script editor when the image task window is opened.
589 {
590  return d->shouldShowImageTaskScriptEditorByDefault();
591 }

◆ shouldShowImageTaskVectorViewByDefault()

bool geometrize::preferences::GlobalPreferences::shouldShowImageTaskVectorViewByDefault ( ) const

shouldShowImageTaskVectorViewByDefault Gets the preference for whether to show the image task vector/SVG view when the window is opened.

Returns
Whether to show the image task vector/SVG view when the window is opened.
569 {
570  return d->shouldShowImageTaskVectorViewByDefault();
571 }

◆ shouldShowLaunchConsoleByDefault()

bool geometrize::preferences::GlobalPreferences::shouldShowLaunchConsoleByDefault ( ) const

shouldShowLaunchConsoleByDefault Gets the preference for whether to show the console on the launch window when the window is opened.

Returns
Whether to show the console on the launch window when the window is opened.
559 {
560  return d->shouldShowLaunchConsoleByDefault();
561 }

◆ shouldShowWelcomeScreenOnLaunch()

bool geometrize::preferences::GlobalPreferences::shouldShowWelcomeScreenOnLaunch ( ) const

shouldShowWelcomeScreenOnLaunch Gets the preference for whether the welcome screen should be displayed on launch.

Returns
True if the welcome screen should be shown on launch.
459 {
460  return d->shouldShowWelcomeScreenOnLaunch();
461 }

◆ shouldUseCustomImageTaskBackgroundOverrideColor()

bool geometrize::preferences::GlobalPreferences::shouldUseCustomImageTaskBackgroundOverrideColor ( ) const

shouldUseCustomImageTaskBackgroundOverrideColor Gets the preference for whether to use the custom image task background override color.

Returns
Whether to use the custom image task background override color when setting up image tasks etc.
509 {
510  return d->shouldUseCustomImageTaskBackgroundOverrideColor();
511 }

◆ shouldUseImageAlphaReplacementColor()

bool geometrize::preferences::GlobalPreferences::shouldUseImageAlphaReplacementColor ( ) const

shouldUseImageAlphaReplacementColor Gets the preference for whether to replace the alpha of a target image with a color, when an image task is initially set up.

Returns
Whether to replace the alpha of a target image with a color, when an image task is initially set up etc.
549 {
550  return d->shouldUseImageAlphaReplacementColor();
551 }

Member Data Documentation

◆ d

std::unique_ptr<GlobalPreferencesImpl> geometrize::preferences::GlobalPreferences::d
private

The documentation for this class was generated from the following files:
geometrize::preferences::GlobalPreferences::d
std::unique_ptr< GlobalPreferencesImpl > d
Definition: globalpreferences.h:355