mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Display (uncomplete) configuration UI to export PCB file
CURA-11561
This commit is contained in:
parent
edd5cee41a
commit
b5b0575baf
10 changed files with 466 additions and 0 deletions
31
plugins/PCBWriter/SettingsExportModel.py
Normal file
31
plugins/PCBWriter/SettingsExportModel.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright (c) 2024 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from PyQt6.QtCore import QObject, Qt, pyqtProperty
|
||||
from UM.FlameProfiler import pyqtSlot
|
||||
from UM.Application import Application
|
||||
from UM.Qt.ListModel import ListModel
|
||||
from UM.Logger import Logger
|
||||
|
||||
from .SettingsExportGroup import SettingsExportGroup
|
||||
|
||||
|
||||
class SettingsExportModel(QObject):
|
||||
|
||||
def __init__(self, parent = None):
|
||||
super().__init__(parent)
|
||||
self._settingsGroups = []
|
||||
self._updateSettingsExportGroups()
|
||||
|
||||
@pyqtProperty(list, constant=True)
|
||||
def settingsGroups(self):
|
||||
return self._settingsGroups
|
||||
|
||||
def _updateSettingsExportGroups(self):
|
||||
self._settingsGroups.append(SettingsExportGroup("Global settings", SettingsExportGroup.Category.Global))
|
||||
self._settingsGroups.append(SettingsExportGroup("Extruder settings", SettingsExportGroup.Category.Extruder, extruder_index=1, extruder_color='#ff0000'))
|
||||
self._settingsGroups.append(SettingsExportGroup("Extruder settings", SettingsExportGroup.Category.Extruder, extruder_index=8, extruder_color='#008fff'))
|
||||
self._settingsGroups.append(SettingsExportGroup("Model settings",
|
||||
SettingsExportGroup.Category.Model, 'hypercube.stl'))
|
||||
self._settingsGroups.append(SettingsExportGroup("Model settings",
|
||||
SettingsExportGroup.Category.Model, 'homer-simpson.stl'))
|
Loading…
Add table
Add a link
Reference in a new issue