Joey de l'Arago
90ce031b27
Add default case
...
CURA-9424
2022-11-15 13:49:02 +01:00
c.lamboo
06a2886139
Clean up section property logic
...
CURA-9424
2022-11-09 17:11:31 +01:00
c.lamboo
dd4e1c66b7
Make MachineSelector
more generic by detaching logic from view
...
By detaching the logic from the view custom handlers can be added to selecting printers. This was needed as the MachineSelector in the `WorkspaceDialog` needed to do something different from the `PreparMenu`.
CURA-9424
2022-11-09 14:16:33 +01:00
Joey de l'Arago
2019d8f3af
Start MachineSelector refactor by allowing list model to be passed in.
...
CURA-9424
2022-11-04 15:11:04 +01:00
joeydelarago
19835844bf
Change listType -> componentType. Makes it a bit more clear that this variable decides which component should be used for the model.
...
CURA-9514
2022-08-31 10:50:20 +02:00
c.lamboo
60b12b9247
Use list model to display show hide buttons
...
CURA-9514
2022-08-31 07:58:05 +02:00
c.lamboo
ac732e9604
Add button to hide/show connected printers
...
CURA-9514
2022-08-30 23:15:54 +02:00
joeydelarago
93e2bef303
Group printers by section (Connected Printers/Other Printers)
...
Cleanup redundant code.
CURA-9514
2022-08-23 15:44:16 +02:00
joeydelarago
b18080c332
Rename AbstractStacksModel.py -> MachineListModel.py since this model includes both abstract machine stacks and regular machines
...
Add machineCount for displaying the number of machines of a type.
MachineSelectorButton is in use in other places, swapped it out for a new Component MachineListButton.
CURA-9514
2022-08-23 14:29:05 +02:00
joeydelarago
7ffa770fb4
Searching container registry returns ContainerStacks.
...
Made typing more generic to work with an ContainerStack to compensate.
Made AbstractMachine getMachines a classmethod so it can be called with ContainerStacks.
CURA-9514
2022-08-23 10:35:00 +02:00
Ghostkeeper
c57126fb00
Use re-useable scrollbar and remove ScrollView
...
The machine selector has the scroll view inside of the listview. It just needs to use our new scrollbar element instead of the default.
Contributes to issue CURA-8686.
2022-01-19 14:32:12 +01:00
Jaime van Kessel
83be495414
Replace usage of controls label with our custom label
...
This prevents copy pasting a bunch of parameters that we set by default
2021-11-10 16:37:26 +01:00
Konstantinos Karmas
504f6dbe70
Revert "Cura 7813 qml modules version bump"
2021-03-30 09:48:28 +02:00
jelle Spijker
2986d50745
Update QtQuick and QtQuick.Controls
...
CURA-7813
2021-03-29 17:55:19 +02:00
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