API Documentation
Loading...
Searching...
No Matches
DesignSettings Class Reference

#include <DesignSettings.h>

Inheritance diagram for DesignSettings:
[legend]
Collaboration diagram for DesignSettings:
[legend]

Public Member Functions

NDEVR_DESIGN_API DesignSettings ()
 
NDEVR_DESIGN_API void getINI (INIFactory &factory) override
 
NDEVR_DESIGN_API void setModelGetter (const std::function< bool(const String &, Model &root)> &resource_getter)
 
NDEVR_DESIGN_API void setModelSetter (const std::function< bool(const String &, const Model &model)> &resource_setter)
 
NDEVR_DESIGN_API bool getModel (const String &resource, Model &root) const
 
NDEVR_DESIGN_API bool setModel (const String &resource, const Model &model) const
 
NDEVR_DESIGN_API void setUserSettingsToDefaults ()
 
NDEVR_DESIGN_API void setGraphicsSettingsToDefaults ()
 
NDEVR_DESIGN_API void setStationSettingsToDefaults ()
 
- Public Member Functions inherited from INIInterface
 INIInterface (const File &default_ini)
 
virtual ~INIInterface ()
 
virtual void writeToLog (ProgressInfo *log, uint01 log_level=2U)
 
virtual void writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U)
 
void setDefaultINIFile (const File &file)
 
virtual bool readINIOptions ()
 
virtual bool readINIOptions (File &ini_file)
 
virtual void finishReadingINI (INIFactory &)
 
virtual void prepareForINI (INIFactory &)
 
virtual bool saveINIOptions (bool multithead=false)
 
virtual bool saveINIOptions (File &ini_file, bool multithead=false)
 

Static Public Member Functions

static NDEVR_DESIGN_API DesignSettingsdefaultSettings ()
 

Public Attributes

Resource< TranslatedStringuser_title
 
Resource< Stringactivation_email
 
Resource< Stringcompany_name
 
Resource< Stringndevr_website
 
Resource< TranslatedStringcalibration_front_point_label
 
Resource< TranslatedStringcalibration_back_point_label
 
Resource< TranslatedStringrow_auto_name_format
 
Resource< TranslatedStringpattern_hole_name_format
 
Buffer< SnapLocationdefault_camera_locations
 
Resource< bool > debug_mode
 
Resource< bool > maintenance_mode
 

Protected Attributes

std::function< bool(const String &, Model &root)> m_model_getter
 
std::function< bool(const String &, const Model &model)> m_model_setter
 
- Protected Attributes inherited from INIInterface
File m_default_ini
 

Constructor & Destructor Documentation

◆ DesignSettings()

Member Function Documentation

◆ defaultSettings()

DesignSettings & defaultSettings ( )
static

◆ getINI()

void getINI ( INIFactory & factory)
overridevirtual

Implements INIInterface.

◆ getModel()

bool getModel ( const String & resource,
Model & root ) const

◆ setGraphicsSettingsToDefaults()

void setGraphicsSettingsToDefaults ( )

◆ setModel()

bool setModel ( const String & resource,
const Model & model ) const

◆ setModelGetter()

void setModelGetter ( const std::function< bool(const String &, Model &root)> & resource_getter)

◆ setModelSetter()

void setModelSetter ( const std::function< bool(const String &, const Model &model)> & resource_setter)

◆ setStationSettingsToDefaults()

void setStationSettingsToDefaults ( )

◆ setUserSettingsToDefaults()

void setUserSettingsToDefaults ( )

Member Data Documentation

◆ activation_email

Resource<String> activation_email

◆ calibration_back_point_label

Resource<TranslatedString> calibration_back_point_label

◆ calibration_front_point_label

Resource<TranslatedString> calibration_front_point_label

◆ company_name

Resource<String> company_name

◆ debug_mode

Resource<bool> debug_mode

◆ default_camera_locations

Buffer<SnapLocation> default_camera_locations

◆ m_model_getter

std::function<bool(const String&, Model& root)> m_model_getter
protected

◆ m_model_setter

std::function<bool(const String&, const Model& model)> m_model_setter
protected

◆ maintenance_mode

Resource<bool> maintenance_mode

◆ ndevr_website

Resource<String> ndevr_website

◆ pattern_hole_name_format

Resource<TranslatedString> pattern_hole_name_format

◆ row_auto_name_format

Resource<TranslatedString> row_auto_name_format

◆ user_title


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