Index: src/core/atcore.h =================================================================== --- src/core/atcore.h +++ src/core/atcore.h @@ -248,6 +248,12 @@ */ bool autoTemperatureReport() const; + /** + * @brief Get the shared_ptr of the temperature + * @return The pointer of the Temperature class + */ + Q_INVOKABLE Temperature* ptemperature(); + signals: /** Index: src/core/atcore.cpp =================================================================== --- src/core/atcore.cpp +++ src/core/atcore.cpp @@ -971,3 +971,7 @@ { return d->bedDeform; } + +Temperature* AtCore::ptemperature(){ + return d->temperature.get(); +} \ No newline at end of file Index: src/core/machineinfo.h =================================================================== --- src/core/machineinfo.h +++ src/core/machineinfo.h @@ -118,6 +118,14 @@ */ Q_INVOKABLE QStringList profileNames() const; + /** + * @brief Translate a key enum to string + * @param key: name of the key to be translated. + * @return key string if successful. + */ + Q_INVOKABLE QString keyName(const MachineInfo::KEY key) const; + + signals: /** * @brief A profile has changed Index: src/core/machineinfo.cpp =================================================================== --- src/core/machineinfo.cpp +++ src/core/machineinfo.cpp @@ -183,4 +183,9 @@ { m_settings->sync(); return m_settings->childGroups(); +} + +QString MachineInfo::keyName(const MachineInfo::KEY key) const +{ + return decoderMap[key].name; } \ No newline at end of file