Skip to content

Commit

Permalink
Update Copyrights
Browse files Browse the repository at this point in the history
Contributes to CURA-8640
  • Loading branch information
[email protected] authored and jellespijker committed Apr 13, 2022
1 parent 671fa49 commit 0568e9c
Show file tree
Hide file tree
Showing 68 changed files with 94 additions and 82 deletions.
2 changes: 1 addition & 1 deletion UM/CentralFileStorage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import hashlib # To generate cryptographic hashes of files.
Expand Down
2 changes: 1 addition & 1 deletion UM/ConfigurationErrorMessage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import itertools
Expand Down
2 changes: 1 addition & 1 deletion UM/FileProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import pyqtSignal, QObject
Expand Down
2 changes: 2 additions & 0 deletions UM/FlameProfiler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import time
import math
import os
Expand Down
2 changes: 1 addition & 1 deletion UM/JobQueue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import multiprocessing
Expand Down
2 changes: 1 addition & 1 deletion UM/Message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from enum import IntEnum
Expand Down
2 changes: 1 addition & 1 deletion UM/MimeTypeDatabase.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import os.path
Expand Down
2 changes: 1 addition & 1 deletion UM/PackageManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import json
Expand Down
3 changes: 1 addition & 2 deletions UM/Qt/Bindings/ApplicationProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtSlot, pyqtProperty, pyqtSignal
Expand All @@ -15,4 +15,3 @@ def __init__(self, parent = None):
@pyqtProperty(str, constant = True)
def version(self):
return self._application.getVersion()

2 changes: 1 addition & 1 deletion UM/Qt/Bindings/BackendProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtSignal, pyqtProperty, pyqtEnum
Expand Down
3 changes: 1 addition & 2 deletions UM/Qt/Bindings/Bindings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtQml import qmlRegisterType, qmlRegisterSingletonType, qmlRegisterUncreatableType
Expand Down Expand Up @@ -40,7 +40,6 @@
from UM.Settings.Models.ContainerPropertyProvider import ContainerPropertyProvider



class Bindings:
@classmethod
def createControllerProxy(self, engine, script_engine):
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/ExtensionModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/FileProviderModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import Callable, Optional
Expand Down
4 changes: 1 addition & 3 deletions UM/Qt/Bindings/MainWindow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import pyqtProperty, Qt, QCoreApplication, pyqtSignal, pyqtSlot, QMetaObject, QRectF, QRect, QObject, \
Expand Down Expand Up @@ -26,7 +26,6 @@ class MainWindow(QQuickWindow):
DEFAULT_WINDOW_LEFT = 50
DEFAULT_WINDOW_TOP = 50


def __init__(self, parent = None):
super(MainWindow, self).__init__(parent)

Expand Down Expand Up @@ -351,4 +350,3 @@ def pos(self):

def angleDelta(self):
return self._wheel_delta

2 changes: 1 addition & 1 deletion UM/Qt/Bindings/OpenGLContextProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtProperty, pyqtSignal
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/OperationStackProxy.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtSlot, pyqtProperty, pyqtSignal

from UM.Application import Application


class OperationStackProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/OutputDeviceManagerProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtProperty, pyqtSignal, pyqtSlot
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/OutputDevicesModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt, pyqtSlot, pyqtProperty, pyqtSignal
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/PointingRectangle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import pyqtProperty, pyqtSignal
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/PreferencesProxy.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtSlot, pyqtSignal

from UM.Application import Application


class PreferencesProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/ProjectOutputDevicesModel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import List

from PyQt6.QtCore import Qt, pyqtSignal
Expand Down
4 changes: 3 additions & 1 deletion UM/Qt/Bindings/ResourcesProxy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import enum

from PyQt6.QtCore import QObject, QUrl, pyqtEnum
Expand All @@ -8,6 +9,7 @@
import UM.Resources
from UM.Logger import Logger


class ResourcesProxy(QObject):
class Type(enum.IntEnum):
Resources = UM.Resources.Resources.Resources
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/SelectionProxy.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, pyqtSignal, pyqtProperty, pyqtSlot

from UM.Application import Application
from UM.Scene.Selection import Selection


class SelectionProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/StageModel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt

from UM.Application import Application
Expand Down
7 changes: 3 additions & 4 deletions UM/Qt/Bindings/TableModel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import List, Dict, Any

from PyQt6.QtCore import QAbstractTableModel, Qt, QModelIndex, pyqtSlot, pyqtProperty
Expand Down Expand Up @@ -66,7 +69,3 @@ def clear(self) -> None:
self.beginResetModel()
self._rows.clear()
self.endResetModel()




4 changes: 2 additions & 2 deletions UM/Qt/Bindings/ToolModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt
Expand Down Expand Up @@ -94,4 +94,4 @@ def _onToolEnabledChanged(self, tool_id, enabled):
index = self.find("id", tool_id)
if index >= 0:
self._items[index]["enabled"] = enabled
self.dataChanged.emit(self.index(index, 0), self.index(index, 0), [self.ToolEnabledRole])
self.dataChanged.emit(self.index(index, 0), self.index(index, 0), [self.ToolEnabledRole])
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/Utilities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2020 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import List, TYPE_CHECKING
from urllib.parse import urlparse

Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/ViewModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt
Expand Down
3 changes: 2 additions & 1 deletion UM/Qt/Bindings/VisibleMessagesModel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import Union

from PyQt6.QtCore import Qt, QUrl
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/Bindings/i18nCatalogProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import inspect
Expand Down
5 changes: 3 additions & 2 deletions UM/Qt/Duration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import enum
from typing import Optional

Expand Down Expand Up @@ -149,4 +150,4 @@ def __int__(self):
constructor.
"""

return self._days * 3600 * 24 + self._hours * 3600 + self._minutes * 60 + self._seconds
return self._days * 3600 * 24 + self._hours * 3600 + self._minutes * 60 + self._seconds
2 changes: 1 addition & 1 deletion UM/Qt/QtKeyDevice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt, QEvent, QObject
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/QtMouseDevice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import Qt, QEvent
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/QtRenderer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import numpy
Expand Down
2 changes: 1 addition & 1 deletion UM/Qt/qml/UM/TooltipArea.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020 Ultimaker B.V.
// Copyright (c) 2022 Ultimaker B.V.
// Uranium is released under the terms of the LGPLv3 or higher.

import QtQuick 2.4
Expand Down
2 changes: 1 addition & 1 deletion UM/Settings/ContainerRegistry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import gc
Expand Down
2 changes: 1 addition & 1 deletion UM/Settings/ContainerStack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import configparser
Expand Down
4 changes: 2 additions & 2 deletions UM/Settings/DefinitionContainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import json
Expand Down Expand Up @@ -535,4 +535,4 @@ def __str__(self) -> str:
return "<DefContainer '{definition_id}'>".format(definition_id = self.getId())

def __repr__(self) -> str:
return str(self)
return str(self)
2 changes: 1 addition & 1 deletion UM/Settings/InstanceContainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import configparser
Expand Down
2 changes: 1 addition & 1 deletion UM/Settings/Models/ContainerPropertyProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from PyQt6.QtCore import QObject, QVariant, pyqtProperty, pyqtSignal
Expand Down
3 changes: 2 additions & 1 deletion UM/Settings/Models/ContainerStacksModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from UM.Qt.ListModel import ListModel
Expand All @@ -8,6 +8,7 @@
from UM.Settings.ContainerRegistry import ContainerRegistry
from UM.Settings.ContainerStack import ContainerStack


class ContainerStacksModel(ListModel):
"""Model that holds container stacks. By setting the filter property the stacks held by this model can be
changed.
Expand Down
4 changes: 2 additions & 2 deletions UM/Settings/Models/DefinitionContainersModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from UM.Qt.ListModel import ListModel
Expand Down Expand Up @@ -120,4 +120,4 @@ def _updateMetaData(self, container):
if self._section_property:
self.setProperty(index, "section", container.getMetaDataEntry(self._section_property, ""))

self.setProperty(index, "metadata", container.getMetaData())
self.setProperty(index, "metadata", container.getMetaData())
2 changes: 1 addition & 1 deletion UM/Settings/Models/InstanceContainersModel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

import os
Expand Down
3 changes: 2 additions & 1 deletion UM/Settings/Models/SettingPropertyProvider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2017 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import Optional, List, Set, Any

from PyQt6.QtCore import QObject, QTimer, pyqtProperty, pyqtSignal
Expand Down
5 changes: 2 additions & 3 deletions UM/Settings/Models/SettingVisibilityHandler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2019 Ultimaker B.V.
# Copyright (c) 2022 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from typing import Set
from PyQt6.QtCore import QObject, pyqtSignal

Expand All @@ -22,5 +23,3 @@ def getVisible(self) -> Set[str]:

def forceVisibilityChanged(self) -> None:
self.visibilityChanged.emit()


Loading

0 comments on commit 0568e9c

Please sign in to comment.