Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

# virtual enviroment
env/*
venv/*
Expand Down
22 changes: 22 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: NodeGraphQt
Upstream-Contact: Johnny Chan
Source: https://github.com/jchanvfx/NodeGraphQt

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...

Files: MANIFEST.in
Copyright: 2021 Johnny Chan
License: MIT

Files: *.node *.nodes
Copyright: 2021 Johnny Chan
License: MIT

Files: docs/_images/*
Copyright: 2021 Johnny Chan
License: CC-BY-4.0
156 changes: 156 additions & 0 deletions LICENSES/CC-BY-4.0.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2021 Johnny Chan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 4 additions & 3 deletions NodeGraphQt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

# (c) 2017, Johnny Chan and some awesome contributors (^_^)
# (c) 2021, Johnny Chan and some awesome contributors (^_^)
# https://github.com/jchanvfx/NodeGraphQt/graphs/contributors

# Redistribution and use in source and binary forms, with or without
Expand Down
33 changes: 3 additions & 30 deletions NodeGraphQt/base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
#!/usr/bin/python

# (c) 2017, Johnny Chan
# https://github.com/jchanvfx/NodeGraphQt

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.

# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.

# * Neither the name of the Johnny Chan nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT
5 changes: 4 additions & 1 deletion NodeGraphQt/base/commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtWidgets

from .utils import minimize_node_ref_count
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from ..errors import NodeRegistrationError


Expand Down
6 changes: 4 additions & 2 deletions NodeGraphQt/base/graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import copy
import gc
import json
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/menu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from distutils.version import LooseVersion

from Qt import QtGui, QtCore
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import json
from collections import defaultdict

Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from collections import OrderedDict

from .commands import PropertyChangedCmd
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/port.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from .commands import (PortConnectedCmd,
PortDisconnectedCmd,
PortLockedCmd,
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/base/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from distutils.version import LooseVersion

from Qt import QtGui, QtCore
Expand Down
8 changes: 4 additions & 4 deletions NodeGraphQt/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import os
from Qt import QtWidgets

from .pkg_info import __version__

__doc__ = """
Expand Down
5 changes: 3 additions & 2 deletions NodeGraphQt/errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT


class NodeMenuError(Exception): pass
Expand Down
6 changes: 4 additions & 2 deletions NodeGraphQt/pkg_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

__version__ = '0.1.7'
__status__ = 'Work in Progress'
__license__ = 'MIT'
Expand Down
2 changes: 2 additions & 0 deletions NodeGraphQt/qgraphics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/node_abstract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtCore, QtWidgets

from ..constants import (Z_VAL_NODE, NODE_WIDTH, NODE_HEIGHT, ITEM_CACHE_MODE)
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/node_backdrop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtGui, QtCore, QtWidgets

from .node_abstract import AbstractNodeItem
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/node_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from collections import OrderedDict

from Qt import QtGui, QtCore, QtWidgets
Expand Down
6 changes: 4 additions & 2 deletions NodeGraphQt/qgraphics/node_overlay_disabled.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/python
from Qt import QtGui, QtCore, QtWidgets
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtGui, QtCore, QtWidgets
from ..constants import Z_VAL_NODE_WIDGET


Expand Down
3 changes: 3 additions & 0 deletions NodeGraphQt/qgraphics/node_text_item.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtWidgets, QtCore, QtGui


Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/pipe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import math

from Qt import QtCore, QtGui, QtWidgets
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/port.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtGui, QtCore, QtWidgets

from ..constants import (
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/qgraphics/slicer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import math

from Qt import QtCore, QtGui, QtWidgets
Expand Down
33 changes: 3 additions & 30 deletions NodeGraphQt/widgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
#!/usr/bin/python

# (c) 2017, Johnny Chan
# https://github.com/jchanvfx/NodeGraphQt

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.

# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.

# * Neither the name of the Johnny Chan nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/actions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtCore, QtWidgets
from .stylesheet import STYLE_QMENU

Expand Down
3 changes: 3 additions & 0 deletions NodeGraphQt/widgets/dialogs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import os

from .stylesheet import STYLE_MESSAGEBOX
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/node_publish_widget.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

import os
from .properties import PropFileSavePath
from Qt import QtWidgets

Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/node_space_bar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from Qt import QtWidgets, QtCore
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtWidgets, QtCore
from .stylesheet import STYLE_SLASH_BUTTON, STYLE_NODE_BUTTON


Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/node_widgets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from .dialogs import FileDialog
from .properties import _ValueEdit
from .stylesheet import *
Expand Down
8 changes: 4 additions & 4 deletions NodeGraphQt/widgets/nodes_palette.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from collections import defaultdict
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from collections import defaultdict
from Qt import QtWidgets, QtCore, QtGui

from ..constants import URN_SCHEME


Expand Down
6 changes: 4 additions & 2 deletions NodeGraphQt/widgets/nodes_tree.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtWidgets, QtCore, QtGui

from ..constants import URN_SCHEME
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from collections import defaultdict

from Qt import QtWidgets, QtCore, QtGui
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/properties_bin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtWidgets, QtCore, QtGui, QtCompat

from .properties import NodePropWidget
Expand Down
5 changes: 4 additions & 1 deletion NodeGraphQt/widgets/scene.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
#! /usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Johnny Chan
# SPDX-License-Identifier: MIT

from Qt import QtGui, QtCore, QtWidgets

from ..constants import (VIEWER_BG_COLOR,
Expand Down
Loading