  | 
  
    Geometrize
    1.0
    
   An application for geometrizing images into geometric primitives 
   | 
 
 
 
 
 | 
|   | GlobalPreferencesImpl () | 
|   | 
|   | ~GlobalPreferencesImpl () | 
|   | 
| GlobalPreferencesImpl &  | operator= (const GlobalPreferencesImpl &)=default | 
|   | 
|   | GlobalPreferencesImpl (const GlobalPreferencesImpl &)=default | 
|   | 
| bool  | load (const std::string &filePath) | 
|   | 
| bool  | save (const std::string &filePath) | 
|   | 
| unsigned int  | getApplicationLaunchCount () const | 
|   | 
| void  | incrementApplicationLaunchCount () | 
|   | 
| bool  | shouldShowWelcomeScreenOnLaunch () const | 
|   | 
| void  | setShouldShowWelcomeScreenOnLaunch (const bool show) | 
|   | 
| bool  | shouldGeometrizeAppLogoOnLaunch () const | 
|   | 
| void  | setShouldGeometrizeAppLogoOnLaunch (const bool geometrizeLogo) | 
|   | 
| bool  | shouldPopulateRecentItemsOnLaunch () const | 
|   | 
| void  | setShouldPopulateRecentItemsOnLaunch (const bool populateRecents) | 
|   | 
| bool  | shouldPopulateTemplatesOnLaunch () const | 
|   | 
| void  | setShouldPopulateTemplatesOnLaunch (const bool populateTemplates) | 
|   | 
| std::array< std::int32_t, 4 >  | getCustomImageTaskBackgroundOverrideColor () const | 
|   | 
| void  | setCustomImageTaskBackgroundOverrideColor (const std::int32_t r, const std::int32_t g, const std::int32_t b, const std::int32_t a) | 
|   | 
| bool  | shouldUseCustomImageTaskBackgroundOverrideColor () const | 
|   | 
| void  | setShouldUseCustomImageTaskBackgroundOverrideColor (const bool useColor) | 
|   | 
| std::array< std::int32_t, 4 >  | getTargetImageAlphaReplacementColor () const | 
|   | 
| void  | setTargetImageAlphaReplacementColor (const std::int32_t r, const std::int32_t g, const std::int32_t b, const std::int32_t a) | 
|   | 
| bool  | shouldUseImageAlphaReplacementColor () const | 
|   | 
| void  | setShouldReplaceTargetImageAlphaWithCustomColor (const bool useColor) | 
|   | 
| bool  | shouldAutoLoadImageTaskSettings () const | 
|   | 
| void  | setShouldAutoLoadImageTaskSettings (const bool loadSettings) | 
|   | 
| bool  | shouldAutoSaveImageTaskSettings () const | 
|   | 
| void  | setShouldAutoSaveImageTaskSettings (const bool saveSettings) | 
|   | 
| bool  | shouldShowLaunchConsoleByDefault () const | 
|   | 
| void  | setShouldShowLaunchConsoleByDefault (const bool showConsole) | 
|   | 
| bool  | shouldShowImageTaskVectorViewByDefault () const | 
|   | 
| void  | setShouldShowImageTaskVectorViewByDefault (const bool showVectorView) | 
|   | 
| bool  | shouldShowImageTaskConsoleByDefault () const | 
|   | 
| void  | setShouldShowImageTaskConsoleByDefault (const bool showConsole) | 
|   | 
| bool  | shouldShowImageTaskScriptEditorByDefault () const | 
|   | 
| void  | setShouldShowImageTaskScriptEditorByDefault (const bool showScriptEditor) | 
|   | 
| bool  | shouldShowImageTaskPixmapViewByDefault () const | 
|   | 
| void  | setShouldShowImageTaskPixmapViewByDefault (const bool showPixmapView) | 
|   | 
| void  | setImageTaskResizeThreshold (const std::uint32_t width, const std::uint32_t height) | 
|   | 
| std::pair< std::uint32_t, std::uint32_t >  | getImageTaskResizeThreshold () const | 
|   | 
| bool  | isImageTaskImageResizeEnabled () const | 
|   | 
| void  | setImageTaskImageResizeEnabled (const bool enabled) | 
|   | 
| std::uint32_t  | getImageTaskMaxThreads () const | 
|   | 
| void  | setImageTaskMaxThreads (const std::uint32_t maxThreads) | 
|   | 
| std::string  | getLanguageIsoCode () const | 
|   | 
| void  | setLanguageIsoCode (const std::string &languageIsoCode) | 
|   | 
| std::string  | getScriptIsoCode () const | 
|   | 
| void  | setScriptIsoCode (const std::string &scriptIsoCode) | 
|   | 
| std::string  | getCountryIsoCode () const | 
|   | 
| void  | setCountryIsoCode (const std::string &countryIsoCode) | 
|   | 
| std::string  | getLocaleName () const | 
|   | 
| void  | setLocaleName (const std::string &localeName) | 
|   | 
 | 
| serialization::GlobalPreferencesData  | m_data | 
|   | 
| unsigned int  | m_applicationLaunchCount {0} | 
|   | 
| bool  | m_shouldShowWelcomeScreenOnLaunch {true} | 
|   | 
| bool  | m_shouldGeometrizeAppLogoOnLaunch {false} | 
|   | 
| bool  | m_shouldPopulateRecentItemsOnLaunch {true} | 
|   | 
| bool  | m_shouldPopulateTemplatesOnLaunch {true} | 
|   | 
| std::array< std::int32_t, 4 >  | m_customImageTaskBackgroundOverrideColor { 128, 64, 196, 255 } | 
|   | 
| bool  | m_shouldUseCustomImageTaskBackgroundOverrideColor {false} | 
|   | 
| std::array< std::int32_t, 4 >  | m_targetImageAlphaReplacementColor { 255, 255, 255, 255 } | 
|   | 
| bool  | m_shouldUseImageAlphaReplacementColor {false} | 
|   | 
| bool  | m_shouldAutoLoadImageTaskSettings {false} | 
|   | 
| bool  | m_shouldAutoSaveImageTaskSettings {false} | 
|   | 
| bool  | m_shouldShowLaunchConsoleByDefault {false} | 
|   | 
| bool  | m_shouldShowImageTaskVectorViewByDefault {false} | 
|   | 
| bool  | m_shouldShowImageTaskConsoleByDefault {false} | 
|   | 
| bool  | m_shouldShowImageTaskScriptEditorByDefault {false} | 
|   | 
| bool  | m_shouldShowImageTaskPixmapViewByDefault {true} | 
|   | 
| bool  | m_imageTaskResizeEnabled {true} | 
|   | 
| std::pair< std::uint32_t, std::uint32_t >  | m_imageTaskResizeThreshold {256, 256} | 
|   | 
| std::uint32_t  | m_imageTaskMaxThreads {4} | 
|   | 
| std::string  | m_languageIsoCode {"en"} | 
|   | 
| std::string  | m_scriptIsoCode {"Latn"} | 
|   | 
| std::string  | m_countryIsoCode {"US"} | 
|   | 
◆ GlobalPreferencesImpl() [1/2]
  
  
      
        
          | geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::GlobalPreferencesImpl  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ~GlobalPreferencesImpl()
  
  
      
        
          | geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::~GlobalPreferencesImpl  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ GlobalPreferencesImpl() [2/2]
  
  
      
        
          | geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::GlobalPreferencesImpl  | 
          ( | 
          const GlobalPreferencesImpl &  | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ getApplicationLaunchCount()
  
  
      
        
          | unsigned int geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getApplicationLaunchCount  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getCountryIsoCode()
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getCountryIsoCode  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getCustomImageTaskBackgroundOverrideColor()
  
  
      
        
          | std::array<std::int32_t, 4> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getCustomImageTaskBackgroundOverrideColor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getImageTaskMaxThreads()
  
  
      
        
          | std::uint32_t geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getImageTaskMaxThreads  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getImageTaskResizeThreshold()
  
  
      
        
          | std::pair<std::uint32_t, std::uint32_t> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getImageTaskResizeThreshold  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getLanguageIsoCode()
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getLanguageIsoCode  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getLocaleName()
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getLocaleName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getScriptIsoCode()
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getScriptIsoCode  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getTargetImageAlphaReplacementColor()
  
  
      
        
          | std::array<std::int32_t, 4> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::getTargetImageAlphaReplacementColor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ incrementApplicationLaunchCount()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::incrementApplicationLaunchCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ isImageTaskImageResizeEnabled()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::isImageTaskImageResizeEnabled  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ load()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::load  | 
          ( | 
          const std::string &  | 
          filePath | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
   57         std::ifstream input(filePath);
 
   59             cereal::JSONInputArchive archive{input};
 
 
 
 
◆ operator=()
◆ performArchival()
template<typename T > 
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::performArchival  | 
          ( | 
          T &  | 
          archive | ) | 
           | 
         
       
   | 
  
inlineprivate   | 
  
 
 
◆ save()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::save  | 
          ( | 
          const std::string &  | 
          filePath | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
   71         const QFileInfo info(QString::fromStdString(filePath));
 
   72         const QDir dir(info.absoluteDir());
 
   73         if(!dir.exists() && !dir.mkpath(dir.absolutePath())) {
 
   74             assert(0 && 
"Failed to create directory in which to save global preferences");
 
   78         std::ofstream output(filePath);
 
   80             cereal::JSONOutputArchive archive{output};
 
   83             assert(0 && 
"Failed to write global preferences");
 
 
 
 
◆ setCountryIsoCode()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setCountryIsoCode  | 
          ( | 
          const std::string &  | 
          countryIsoCode | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setCustomImageTaskBackgroundOverrideColor()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setCustomImageTaskBackgroundOverrideColor  | 
          ( | 
          const std::int32_t  | 
          r,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          g,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          b,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          a  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ setImageTaskImageResizeEnabled()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setImageTaskImageResizeEnabled  | 
          ( | 
          const bool  | 
          enabled | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setImageTaskMaxThreads()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setImageTaskMaxThreads  | 
          ( | 
          const std::uint32_t  | 
          maxThreads | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setImageTaskResizeThreshold()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setImageTaskResizeThreshold  | 
          ( | 
          const std::uint32_t  | 
          width,  | 
         
        
           | 
           | 
          const std::uint32_t  | 
          height  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ setLanguageIsoCode()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setLanguageIsoCode  | 
          ( | 
          const std::string &  | 
          languageIsoCode | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setLocaleName()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setLocaleName  | 
          ( | 
          const std::string &  | 
          localeName | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
  325         const std::size_t size{components.size()};
 
  327         std::string languageCode{
""};
 
  328         std::string scriptCode{
""};
 
  329         std::string countryCode{
""};
 
  333             languageCode = components[0];
 
  336             languageCode = components[0];
 
  337             if(components[1].size() == 2) {
 
  338                 countryCode = components[1];
 
  339             } 
else if(components[1].size() == 4) {
 
  340                 scriptCode = components[1];
 
  342                 assert(0 && 
"First locale component was invalid");
 
  346             languageCode = components[0];
 
  347             scriptCode = components[1];
 
  348             countryCode = components[2];
 
  351             assert(0 && 
"Failed to set invalid locale name");
 
 
 
 
◆ setScriptIsoCode()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setScriptIsoCode  | 
          ( | 
          const std::string &  | 
          scriptIsoCode | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldAutoLoadImageTaskSettings()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldAutoLoadImageTaskSettings  | 
          ( | 
          const bool  | 
          loadSettings | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldAutoSaveImageTaskSettings()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldAutoSaveImageTaskSettings  | 
          ( | 
          const bool  | 
          saveSettings | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldGeometrizeAppLogoOnLaunch()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldGeometrizeAppLogoOnLaunch  | 
          ( | 
          const bool  | 
          geometrizeLogo | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldPopulateRecentItemsOnLaunch()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldPopulateRecentItemsOnLaunch  | 
          ( | 
          const bool  | 
          populateRecents | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldPopulateTemplatesOnLaunch()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldPopulateTemplatesOnLaunch  | 
          ( | 
          const bool  | 
          populateTemplates | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldReplaceTargetImageAlphaWithCustomColor()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldReplaceTargetImageAlphaWithCustomColor  | 
          ( | 
          const bool  | 
          useColor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowImageTaskConsoleByDefault()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowImageTaskConsoleByDefault  | 
          ( | 
          const bool  | 
          showConsole | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowImageTaskPixmapViewByDefault()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowImageTaskPixmapViewByDefault  | 
          ( | 
          const bool  | 
          showPixmapView | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowImageTaskScriptEditorByDefault()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowImageTaskScriptEditorByDefault  | 
          ( | 
          const bool  | 
          showScriptEditor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowImageTaskVectorViewByDefault()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowImageTaskVectorViewByDefault  | 
          ( | 
          const bool  | 
          showVectorView | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowLaunchConsoleByDefault()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowLaunchConsoleByDefault  | 
          ( | 
          const bool  | 
          showConsole | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldShowWelcomeScreenOnLaunch()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldShowWelcomeScreenOnLaunch  | 
          ( | 
          const bool  | 
          show | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setShouldUseCustomImageTaskBackgroundOverrideColor()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setShouldUseCustomImageTaskBackgroundOverrideColor  | 
          ( | 
          const bool  | 
          useColor | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setTargetImageAlphaReplacementColor()
  
  
      
        
          | void geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::setTargetImageAlphaReplacementColor  | 
          ( | 
          const std::int32_t  | 
          r,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          g,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          b,  | 
         
        
           | 
           | 
          const std::int32_t  | 
          a  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldAutoLoadImageTaskSettings()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldAutoLoadImageTaskSettings  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldAutoSaveImageTaskSettings()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldAutoSaveImageTaskSettings  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldGeometrizeAppLogoOnLaunch()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldGeometrizeAppLogoOnLaunch  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldPopulateRecentItemsOnLaunch()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldPopulateRecentItemsOnLaunch  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldPopulateTemplatesOnLaunch()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldPopulateTemplatesOnLaunch  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowImageTaskConsoleByDefault()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowImageTaskConsoleByDefault  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowImageTaskPixmapViewByDefault()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowImageTaskPixmapViewByDefault  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowImageTaskScriptEditorByDefault()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowImageTaskScriptEditorByDefault  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowImageTaskVectorViewByDefault()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowImageTaskVectorViewByDefault  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowLaunchConsoleByDefault()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowLaunchConsoleByDefault  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldShowWelcomeScreenOnLaunch()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldShowWelcomeScreenOnLaunch  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldUseCustomImageTaskBackgroundOverrideColor()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldUseCustomImageTaskBackgroundOverrideColor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ shouldUseImageAlphaReplacementColor()
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::shouldUseImageAlphaReplacementColor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ m_applicationLaunchCount
  
  
      
        
          | unsigned int geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_applicationLaunchCount {0} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_countryIsoCode
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_countryIsoCode {"US"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_customImageTaskBackgroundOverrideColor
  
  
      
        
          | std::array<std::int32_t, 4> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_customImageTaskBackgroundOverrideColor { 128, 64, 196, 255 } | 
         
       
   | 
  
private   | 
  
 
 
◆ m_data
◆ m_imageTaskMaxThreads
  
  
      
        
          | std::uint32_t geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_imageTaskMaxThreads {4} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_imageTaskResizeEnabled
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_imageTaskResizeEnabled {true} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_imageTaskResizeThreshold
  
  
      
        
          | std::pair<std::uint32_t, std::uint32_t> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_imageTaskResizeThreshold {256, 256} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_languageIsoCode
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_languageIsoCode {"en"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_scriptIsoCode
  
  
      
        
          | std::string geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_scriptIsoCode {"Latn"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldAutoLoadImageTaskSettings
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldAutoLoadImageTaskSettings {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldAutoSaveImageTaskSettings
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldAutoSaveImageTaskSettings {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldGeometrizeAppLogoOnLaunch
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldGeometrizeAppLogoOnLaunch {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldPopulateRecentItemsOnLaunch
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldPopulateRecentItemsOnLaunch {true} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldPopulateTemplatesOnLaunch
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldPopulateTemplatesOnLaunch {true} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowImageTaskConsoleByDefault
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowImageTaskConsoleByDefault {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowImageTaskPixmapViewByDefault
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowImageTaskPixmapViewByDefault {true} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowImageTaskScriptEditorByDefault
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowImageTaskScriptEditorByDefault {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowImageTaskVectorViewByDefault
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowImageTaskVectorViewByDefault {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowLaunchConsoleByDefault
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowLaunchConsoleByDefault {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldShowWelcomeScreenOnLaunch
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldShowWelcomeScreenOnLaunch {true} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldUseCustomImageTaskBackgroundOverrideColor
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldUseCustomImageTaskBackgroundOverrideColor {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shouldUseImageAlphaReplacementColor
  
  
      
        
          | bool geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_shouldUseImageAlphaReplacementColor {false} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_targetImageAlphaReplacementColor
  
  
      
        
          | std::array<std::int32_t, 4> geometrize::preferences::GlobalPreferences::GlobalPreferencesImpl::m_targetImageAlphaReplacementColor { 255, 255, 255, 255 } | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file:
 
std::string m_scriptIsoCode
Definition: globalpreferences.cpp:425
 
bool save(const std::string &filePath)
Definition: globalpreferences.cpp:67
 
bool m_shouldShowImageTaskPixmapViewByDefault
Definition: globalpreferences.cpp:418
 
bool m_shouldShowImageTaskConsoleByDefault
Definition: globalpreferences.cpp:416
 
std::pair< std::uint32_t, std::uint32_t > m_imageTaskResizeThreshold
Definition: globalpreferences.cpp:421
 
bool load(const std::string &filePath)
Definition: globalpreferences.cpp:55
 
std::string m_countryIsoCode
Definition: globalpreferences.cpp:426
 
bool m_shouldUseCustomImageTaskBackgroundOverrideColor
Definition: globalpreferences.cpp:406
 
void setScriptIsoCode(const std::string &scriptIsoCode)
Definition: globalpreferences.cpp:295
 
std::string m_languageIsoCode
Definition: globalpreferences.cpp:424
 
std::uint32_t m_imageTaskMaxThreads
Definition: globalpreferences.cpp:422
 
bool m_shouldAutoLoadImageTaskSettings
Definition: globalpreferences.cpp:411
 
void performArchival(T &archive)
Definition: globalpreferences.cpp:362
 
bool m_shouldAutoSaveImageTaskSettings
Definition: globalpreferences.cpp:412
 
bool m_shouldPopulateRecentItemsOnLaunch
Definition: globalpreferences.cpp:402
 
bool m_imageTaskResizeEnabled
Definition: globalpreferences.cpp:420
 
unsigned int m_applicationLaunchCount
Definition: globalpreferences.cpp:397
 
void setLanguageIsoCode(const std::string &languageIsoCode)
Definition: globalpreferences.cpp:285
 
bool m_shouldShowImageTaskVectorViewByDefault
Definition: globalpreferences.cpp:415
 
bool m_shouldShowWelcomeScreenOnLaunch
Definition: globalpreferences.cpp:399
 
serialization::GlobalPreferencesData m_data
Definition: globalpreferences.cpp:395
 
bool m_shouldPopulateTemplatesOnLaunch
Definition: globalpreferences.cpp:403
 
bool m_shouldShowImageTaskScriptEditorByDefault
Definition: globalpreferences.cpp:417
 
bool m_shouldUseImageAlphaReplacementColor
Definition: globalpreferences.cpp:409
 
std::array< std::int32_t, 4 > m_customImageTaskBackgroundOverrideColor
Definition: globalpreferences.cpp:405
 
std::array< std::int32_t, 4 > m_targetImageAlphaReplacementColor
Definition: globalpreferences.cpp:408
 
bool m_shouldGeometrizeAppLogoOnLaunch
Definition: globalpreferences.cpp:401
 
bool m_shouldShowLaunchConsoleByDefault
Definition: globalpreferences.cpp:414
 
void archive(Archive &ar, bool &shouldShowWelcomeScreenOnLaunch, bool &shouldGeometrizeAppLogoOnLaunch, bool &shouldPopulateRecentItemsOnLaunch, bool &shouldPopulateTemplatesOnLaunch, std::array< std::int32_t, 4 > &customImageTaskBackgroundOverrideColor, bool &shouldUseCustomImageTaskBackgroundOverrideColor, std::array< std::int32_t, 4 > &targetImageAlphaReplacementColor, bool &shouldUseImageAlphaReplacementColor, bool &shouldAutoLoadImageTaskSettings, bool &shouldAutoSaveImageTaskSettings, bool &shouldShowLaunchConsoleByDefault, bool &shouldShowImageTaskVectorViewByDefault, bool &shouldShowImageTaskConsoleByDefault, bool &shouldShowImageTaskScriptEditorByDefault, bool &shouldShowImageTaskPixmapViewByDefault, bool &imageTaskImageResizeEnabled, std::pair< std::uint32_t, std::uint32_t > &imageTaskImageResizeThreshold, std::uint32_t &imageTaskMaxThreads, std::string &isoLanguageCode, std::string &isoScriptCode, std::string &isoCountryCode)
Definition: globalpreferencesdata.h:25
 
std::string getGlobalPreferencesConfigPath()
getGlobalPreferencesConfigPath Gets the absolute path to where the global preferences config file sho...
Definition: globalpreferences.cpp:23
 
void setCountryIsoCode(const std::string &countryIsoCode)
Definition: globalpreferences.cpp:305
 
std::vector< std::string > split(const std::string &s, const char delimiter)
split Splits a given string into a vector of tokens using the given delimiter.
Definition: util.cpp:367