diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-10-08 09:44:50 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-10-08 09:44:50 +0300 |
commit | 8aa33a9e0537bc47e6810ccfc4c3edd8bf22c7fe (patch) | |
tree | f13164a8cd13dd74efc0d8901bcd82e5a16fdc35 /src/slic3r/GUI/AppConfig.hpp | |
parent | 6f85b0885adbc54ca0d6c0d15e4c59252fec2ee0 (diff) | |
parent | 272e9f11e37aff9fde6faa09c4f0cccc094be5de (diff) |
ENABLE_3DCONNEXION_DEVICES -> Hack for filtering out mouse wheel events coming from 3Dconnexion driver
Diffstat (limited to 'src/slic3r/GUI/AppConfig.hpp')
-rw-r--r-- | src/slic3r/GUI/AppConfig.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slic3r/GUI/AppConfig.hpp b/src/slic3r/GUI/AppConfig.hpp index 4959b5433..1196404a2 100644 --- a/src/slic3r/GUI/AppConfig.hpp +++ b/src/slic3r/GUI/AppConfig.hpp @@ -80,6 +80,12 @@ public: } } + bool has_section(const std::string §ion) const + { return m_storage.find(section) != m_storage.end(); } + const std::map<std::string, std::string>& get_section(const std::string §ion) const + { return m_storage.find(section)->second; } + void set_section(const std::string §ion, const std::map<std::string, std::string>& data) + { m_storage[section] = data; } void clear_section(const std::string §ion) { m_storage[section].clear(); } @@ -131,6 +137,9 @@ public: bool get_mouse_device_rotation_speed(const std::string& name, float& rotation_speed); #endif // ENABLE_3DCONNEXION_DEVICES + static const std::string SECTION_FILAMENTS; + static const std::string SECTION_MATERIALS; + private: // Map of section, name -> value std::map<std::string, std::map<std::string, std::string>> m_storage; |