23 Commits

Author SHA1 Message Date
Kostas Karmas
5c898b8c57 Allow the machine manager to set an empty active machine
Gracefully handle the case where the machine manager is requested to
delete the last machine in Cura. In this case, instead of deleting
everything of this machine and still keep it as an active machine,
the machine manager will set the active machine to None.

The QML files which depend on the active machine were changed to
properly handle themselves when there is no active machine.

CURA-7454
2020-06-09 15:33:22 +02:00
Lipu Fei
38ee4bf208 Remove deprecated functions in MachineManager
CURA-6858
2019-10-22 14:11:40 +02:00
Lipu Fei
e1766b72ec Only highlight the currently active machine
CURA-6483
2019-04-30 12:47:19 +02:00
Lipu Fei
940a833e73 WIP: Add printers via network 2019-03-08 13:43:58 +01:00
Remco Burema
954fdb20ad Rename 'connect_group_name' to 'group_name'. [CURA-6153] 2019-01-31 20:21:42 +01:00
ChrisTerBeke
a6114d39e4 Fix merge conflicts with 4.0 2019-01-08 11:49:36 +01:00
Jaime van Kessel
979fd507de Give the section delegates a fixed height
This fixes the issue where the first printer would be drawn over the section label

CURA-6011
2019-01-03 10:39:43 +01:00
Jaime van Kessel
8dbebaa23c Ensure that the machine selector list scales properly
The old implementation directly listend to the height (instead of childrenRect).
This caused issues, since other things apart from adding / removing machines could
influence the height.

CURA-6060
2018-12-31 13:14:08 +01:00
Jaime van Kessel
fd9b29fee2 Rename printersModel to GlobalStacksModel
This is a better description for the model anyway.

CURA-6011
2018-12-31 11:09:39 +01:00
ChrisTerBeke
25caf1a087 Fix merge conflicts 2018-12-18 14:44:13 +01:00
Jaime van Kessel
be9d35d45f Fix some minor layout issues
CURA-6011
2018-12-18 09:47:51 +01:00
Jaime van Kessel
aad7540366 Fix situation where multiple connect configurations would cause issues
CURA-6011
2018-12-17 13:31:38 +01:00
Jaime van Kessel
938287095f Use connection type instead of um_network_key to see if a printer has a network connection
CURA-6011
2018-12-17 10:47:14 +01:00
Jaime van Kessel
226d052468 Move the machines from machinelist into their own model
CURA-6011
2018-12-14 17:10:58 +01:00
Lipu Fei
4252b95603 Make ConnectionType Enum type accessible to QML
CURA-6011
2018-12-14 11:28:21 +01:00
Aleksei S
973970a895 Every print ouput device should define its connection type(usb, network, cluster and etc)
CURA-6011
2018-12-13 16:00:12 +01:00
ChrisTerBeke
ec03b012a7 fix merge conflict 2018-12-06 16:39:58 +01:00
Diego Prado Gesto
46c209a993 Add one pixel margin to the view selector. 2018-12-06 14:45:24 +01:00
ChrisTerBeke
d0513e40e1
Remove crappy implementation 2018-12-04 22:21:36 +01:00
ChrisTerBeke
0887817f7d use special icon for cloud connected 2018-12-04 16:35:09 +01:00
ChrisTerBeke
e98f3bff38 Implement test version of showing cloud connected printers in list 2018-12-04 14:09:20 +01:00
Diego Prado Gesto
21bfa6e4c2 Fix code style. Add brackets in new line.
Contributes to CURA-5942.
2018-11-26 10:58:38 +01:00
Diego Prado Gesto
a3bcdaf3b6 Make the popup in the printer selector resizable depending on the
contents. Also there is a maximum height that will fit 9 printers.

Contributes to CURA-5942.
2018-11-23 16:58:57 +01:00