Create Machine Information Object

Authored by rizzitello on Apr 15 2019, 3:00 AM.

Description

Create Machine Information Object

Summary:
We need an object to track our profiles this diff adds one.
MachineInfo allows for only one instance and should be easy to work with .
MachineInfo Major Changes:

  • Uses ini format to store our profiles in one of two paths. (transparent to clients )
    • appPath/profiles.ini
    • <QSettings user storage>/atcore/profiles.ini
  • Profile names are only groups
  • The bool for has heated bed has been removed; we can just check if bed max temp != 0
  • radius has been removed; Radius will be stored in the Max X value.
  • z_height_delta has been removed; Will now be stored in the Max Z value.

Widget is modeled after our profile dialog with a few differences,

  • it is a QWidget subclass
  • its using the MachineInfo object as its backend.

Test Plan: Update and run atcore it will prompt you to make profiles if you don't have any.

Reviewers: laysrodrigues, tcanabrava, patrickelectric

Reviewed By: laysrodrigues, tcanabrava, patrickelectric

Subscribers: Atelier: AtCore

Tags: Atelier: AtCore

Differential Revision: https://phabricator.kde.org/D20535

Merged Changes

CommitAuthorDetailsCommitted
67f66d092248D20535rizzitello
Use MachineInfo in Mainwidow, remove postpause entry from printwidget 
May 6 2019
1bc407a0b0bcD20535rizzitello
Make a Profile manager 
May 6 2019
d9f4570eabd9D20535rizzitello
Create an object to handle machine information 
May 6 2019