mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-29 17:45:45 +08:00
20 lines
639 B
Python
20 lines
639 B
Python
# Copyright (c) 2017 Ultimaker B.V.
|
|
from PyQt5.QtCore import QObject
|
|
from UM.i18n import i18nCatalog
|
|
from cura.Sidebar.SidebarView import SidebarView
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
class SettingsSidebarView(QObject, SidebarView):
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
## As the default sidebar is not a plugin, we have a get meta data method here to allow the sidebar view model to get the needed data.
|
|
def getMetaData(self):
|
|
return {
|
|
"sidebar_view": {
|
|
"name": i18n_catalog.i18nc("", "Print settings"),
|
|
"weight": 1
|
|
}
|
|
}
|