1
1
Fork 0

Refactor folder structure and namespace

renderer
corentin 3 years ago
parent 7f472591d9
commit cb41216ad7
  1. 11
      bip/__init__.py
  2. 0
      bip/addons/__init__.py
  3. 0
      bip/addons/scenemanager/__init__.py
  4. 10
      bip/addons/scenemanager/__main__.py
  5. 18
      bip/addons/scenemanager/app.py
  6. 4
      bip/addons/scenemanager/constants.py
  7. 6
      bip/addons/scenemanager/helpers.py
  8. 0
      bip/addons/scenemanager/ui/__init__.py
  9. 0
      bip/addons/scenemanager/ui/actions/__init__.py
  10. 2
      bip/addons/scenemanager/ui/actions/input.py
  11. 6
      bip/addons/scenemanager/ui/actions/task.py
  12. 2
      bip/addons/scenemanager/ui/add.py
  13. 2
      bip/addons/scenemanager/ui/breadcrumbs.py
  14. 6
      bip/addons/scenemanager/ui/browser.py
  15. 0
      bip/addons/scenemanager/ui/items/__init__.py
  16. 2
      bip/addons/scenemanager/ui/items/base.py
  17. 4
      bip/addons/scenemanager/ui/items/detailed.py
  18. 4
      bip/addons/scenemanager/ui/items/dialog.py
  19. 0
      bip/addons/scenemanager/ui/items/simple.py
  20. 2
      bip/addons/scenemanager/ui/lod.py
  21. 0
      bip/addons/scenemanager/ui/utils/__init__.py
  22. 16
      bip/addons/scenemanager/ui/view.py
  23. 0
      bip/api/TODO.md
  24. 0
      bip/api/__init__.py
  25. 0
      bip/api/assets/images/alerts/confirmation_256x256_dark.png
  26. 0
      bip/api/assets/images/alerts/confirmation_256x256_normal.png
  27. 0
      bip/api/assets/images/alerts/confirmation_256x256_white.png
  28. 0
      bip/api/assets/images/alerts/error_256x256_dark.png
  29. 0
      bip/api/assets/images/alerts/error_256x256_normal.png
  30. 0
      bip/api/assets/images/alerts/error_256x256_white.png
  31. 0
      bip/api/assets/images/alerts/info_256x256_dark.png
  32. 0
      bip/api/assets/images/alerts/info_256x256_normal.png
  33. 0
      bip/api/assets/images/alerts/info_256x256_white.png
  34. 0
      bip/api/assets/images/alerts/warning_256x256_dark.png
  35. 0
      bip/api/assets/images/alerts/warning_256x256_normal.png
  36. 0
      bip/api/assets/images/alerts/warning_256x256_white.png
  37. 0
      bip/api/assets/images/buttons/add-darkgrey-128x128.png
  38. 0
      bip/api/assets/images/buttons/add-darkgrey-hover-128x128.png
  39. 0
      bip/api/assets/images/buttons/add-lightgrey-128x128.png
  40. 0
      bip/api/assets/images/buttons/add-lightgrey-hover-128x128.png
  41. 0
      bip/api/assets/images/buttons/add-normal-128x128.png
  42. 0
      bip/api/assets/images/buttons/add-normal-hover-128x128.png
  43. 0
      bip/api/assets/images/buttons/add-white-128x128.png
  44. 0
      bip/api/assets/images/buttons/add-white-hover-128x128.png
  45. 0
      bip/api/assets/images/buttons/delete-darkgrey-128x128.png
  46. 0
      bip/api/assets/images/buttons/delete-darkgrey-hover-128x128.png
  47. 0
      bip/api/assets/images/buttons/delete-lightgrey-128x128.png
  48. 0
      bip/api/assets/images/buttons/delete-lightgrey-hover-128x128.png
  49. 0
      bip/api/assets/images/buttons/delete-normal-128x128.png
  50. 0
      bip/api/assets/images/buttons/delete-normal-hover-128x128.png
  51. 0
      bip/api/assets/images/buttons/delete-white-128x128.png
  52. 0
      bip/api/assets/images/buttons/delete-white-hover-128x128.png
  53. 0
      bip/api/assets/images/buttons/doc-darkgrey-rounded-128x128.png
  54. 0
      bip/api/assets/images/buttons/doc-darkgrey-rounded-hover-128x128.png
  55. 0
      bip/api/assets/images/buttons/doc-lightgrey-rounded-128x128.png
  56. 0
      bip/api/assets/images/buttons/doc-lightgrey-rounded-hover-128x128.png
  57. 0
      bip/api/assets/images/buttons/doc-normal-rounded-128x128.png
  58. 0
      bip/api/assets/images/buttons/doc-normal-rounded-hover-128x128.png
  59. 0
      bip/api/assets/images/buttons/doc-white-rounded-128x128.png
  60. 0
      bip/api/assets/images/buttons/doc-white-rounded-hover-128x128.png
  61. 0
      bip/api/assets/images/buttons/import.png
  62. 0
      bip/api/assets/images/buttons/issues-darkgrey-rounded-128x128.png
  63. 0
      bip/api/assets/images/buttons/issues-darkgrey-rounded-hover-128x128.png
  64. 0
      bip/api/assets/images/buttons/issues-lightgrey-rounded-128x128.png
  65. 0
      bip/api/assets/images/buttons/issues-lightgrey-rounded-hover-128x128.png
  66. 0
      bip/api/assets/images/buttons/issues-normal-rounded-128x128.png
  67. 0
      bip/api/assets/images/buttons/issues-normal-rounded-hover-128x128.png
  68. 0
      bip/api/assets/images/buttons/issues-white-rounded-128x128.png
  69. 0
      bip/api/assets/images/buttons/issues-white-rounded-hover-128x128.png
  70. 0
      bip/api/assets/images/buttons/reload-white-rounded-128x128.png
  71. 0
      bip/api/assets/images/buttons/reload-white-rounded-hover-128x128.png
  72. 0
      bip/api/assets/images/buttons/settings-darkgrey-rounded-128x128.png
  73. 0
      bip/api/assets/images/buttons/settings-darkgrey-rounded-hover-128x128.png
  74. 0
      bip/api/assets/images/buttons/settings-lightgrey-rounded-128x128.png
  75. 0
      bip/api/assets/images/buttons/settings-lightgrey-rounded-hover-128x128.png
  76. 0
      bip/api/assets/images/buttons/settings-normal-rounded-128x128.png
  77. 0
      bip/api/assets/images/buttons/settings-normal-rounded-hover-128x128.png
  78. 0
      bip/api/assets/images/buttons/settings-white-rounded-128x128.png
  79. 0
      bip/api/assets/images/buttons/settings-white-rounded-hover-128x128.png
  80. 0
      bip/api/assets/images/icons/bip/explorer_128x128_dark.png
  81. 0
      bip/api/assets/images/icons/bip/explorer_128x128_normal.png
  82. 0
      bip/api/assets/images/icons/bip/explorer_128x128_white.png
  83. 0
      bip/api/assets/images/icons/bip/exporter_128x128_normal.png
  84. 0
      bip/api/assets/images/icons/bip/exporter_128x128_white.png
  85. 0
      bip/api/assets/images/icons/bip/importer_128x128_normal.png
  86. 0
      bip/api/assets/images/icons/bip/importer_128x128_white.png
  87. 0
      bip/api/assets/images/icons/bip/itemlist_128x128_dark.png
  88. 0
      bip/api/assets/images/icons/bip/itemlist_128x128_normal.png
  89. 0
      bip/api/assets/images/icons/bip/itemlist_128x128_white.png
  90. 0
      bip/api/assets/images/icons/bip/launcher_128x128_dark.png
  91. 0
      bip/api/assets/images/icons/bip/launcher_128x128_normal.png
  92. 0
      bip/api/assets/images/icons/bip/launcher_128x128_white.png
  93. 0
      bip/api/assets/images/icons/bip/licence-viewer_128x128_dark.png
  94. 0
      bip/api/assets/images/icons/bip/licence-viewer_128x128_normal.png
  95. 0
      bip/api/assets/images/icons/bip/licence-viewer_128x128_white.png
  96. 0
      bip/api/assets/images/icons/bip/loader_128x128_dark.png
  97. 0
      bip/api/assets/images/icons/bip/loader_128x128_normal.png
  98. 0
      bip/api/assets/images/icons/bip/loader_128x128_white.png
  99. 0
      bip/api/assets/images/icons/bip/moviebuilder_128x128_dark.png
  100. 0
      bip/api/assets/images/icons/bip/moviebuilder_128x128_normal.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -37,15 +37,6 @@ __license__ = "MIT"
__author__ = "Blinkink"
__email__ = "corentin@blinkink.co.uk"
__module_name__ = "scenemanager"
__module_name__ = "bip"
__description__ = "Resource scene manager"
__url__ = "http://doc.blinkink.co.uk/books/bip-developer-guide"
from scenemanager.app import SceneManager
import scenemanager.constants
__all__ = [
"SceneManager",
"BaseMethod",
"constants",
]

@ -4,11 +4,11 @@
import logging
import sys
from PySide.QtGui import QApplication
from scenemanager import SceneManager
from scenemanager.api.constants.context import STANDALONE
from scenemanager.api.exceptions import BipException
from scenemanager.api.ui.messagebox.dialog import MessageBoxDialog
from scenemanager.api.ui.messagebox.constants import ERROR
from bip.addons.scenemanager.app import SceneManager
from bip.api.constants.context import STANDALONE
from bip.api.exceptions import BipException
from bip.api.ui.messagebox.dialog import MessageBoxDialog
from bip.api.ui.messagebox.constants import ERROR
def main():

@ -2,15 +2,15 @@
# -*- coding: utf-8 -*-
from .api.tools.controller import BipController
from scenemanager.ui.view import SceneManagerView
from scenemanager.constants import *
from .api.dcc import get_application
from scenemanager.api.utils.filename import BipFilename
from .api.exceptions import UnsupportedFile
from scenemanager.api.dcc.content.item import Item
from scenemanager.api.ui.messagebox.dialog import MessageBoxDialog
from scenemanager.api.ui.messagebox.constants import ERROR
from bip.api.tools.controller import BipController
from bip.addons.scenemanager.ui.view import SceneManagerView
from bip.addons.scenemanager.constants import *
from bip.api.dcc import get_application
from bip.api.utils.filename import BipFilename
from bip.api.exceptions import UnsupportedFile
from bip.api.dcc.content.item import Item
from bip.api.ui.messagebox.dialog import MessageBoxDialog
from bip.api.ui.messagebox.constants import ERROR
from helpers import _create_export_metadata

@ -1,9 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from scenemanager import __version__, __name__, __url__, __status__
from bip import __version__, __url__, __status__
NAME = __name__
NAME = "scenemanager"
DISPLAY_NAME = 'Scene Manager'
DESCRIPTION = "Manage DCC resources"
MAIN_COLOR = "#f4476f"

@ -1,6 +1,6 @@
from scenemanager.api.data.metadata.definition import Definition
from scenemanager.api.constants.metadata import DICTIONNARY
from scenemanager.api.constants.entities import COMPONENT
from bip.api.data.metadata.definition import Definition
from bip.api.constants.metadata import DICTIONNARY
from bip.api.constants.entities import COMPONENT
def _create_export_metadata(project):

@ -1,6 +1,6 @@
from PySide.QtCore import Signal
from PySide.QtGui import QWidget, QHBoxLayout, QComboBox
from scenemanager.api.data.entities import BipEntity
from bip.api.data.entities import BipEntity
class InputWidget(QWidget):
updated = Signal(object)

@ -3,9 +3,9 @@ import time
from PySide.QtCore import *
from PySide.QtGui import *
from scenemanager.ui.actions.input import InputWidget
from scenemanager.api.ui.enhanced.collapsible_group import CollapsibleGroup
from scenemanager.api.exceptions import MissingData
from bip.addons.scenemanager.ui.actions.input import InputWidget
from bip.api.ui.enhanced.collapsible_group import CollapsibleGroup
from bip.api.exceptions import MissingData
class RunTask(QThread):

@ -1,7 +1,7 @@
from PySide.QtGui import *
from PySide.QtCore import *
from scenemanager.api.ui.utils import font
from bip.api.ui.utils import font
from .browser import Browser

@ -1,5 +1,5 @@
from PySide.QtGui import QFrame, QHBoxLayout, QLabel, QSpacerItem, QSizePolicy
from scenemanager.api.ui.utils import font
from bip.api.ui.utils import font
class Breadcrumbs(QFrame):

@ -3,9 +3,9 @@
from PySide.QtGui import *
from PySide.QtCore import *
from scenemanager.api.ui.utils import font
from scenemanager.api.ui.stylesheet import parser
from scenemanager.api.ui.custom.selector import Selector
from bip.api.ui.utils import font
from bip.api.ui.stylesheet import parser
from bip.api.ui.custom.selector import Selector
# TODO: Clean signal cascade
# TODO: symbols naming

@ -1,7 +1,7 @@
from PySide.QtCore import *
from PySide.QtGui import *
from scenemanager.api.ui.utils import font
from bip.api.ui.utils import font
class BaseItem(QFrame):

@ -1,8 +1,8 @@
from PySide.QtGui import *
from .base import BaseItem
from scenemanager.ui.actions.task import TaskWidget
from scenemanager.api.ui.enhanced.collapsible_group import CollapsibleGroup
from bip.addons.scenemanager.ui.actions.task import TaskWidget
from bip.api.ui.enhanced.collapsible_group import CollapsibleGroup
class DetailedItem(BaseItem):

@ -4,8 +4,8 @@
from PySide.QtCore import *
from PySide.QtGui import *
from scenemanager.api.ui.utils import font
from scenemanager.api.ui.stylesheet import parser
from bip.api.ui.utils import font
from bip.api.ui.stylesheet import parser
from .detailed import DetailedItem

@ -1,6 +1,6 @@
from PySide.QtGui import *
from PySide.QtCore import *
from scenemanager.api.ui.utils import font
from bip.api.ui.utils import font
MINIMALIST = {"id": 0, "name": "Minimalist"}
NORMAL = {"id": 0, "name": "Normal"}

@ -3,14 +3,14 @@
from PySide.QtGui import *
from PySide.QtCore import *
from scenemanager.api.ui.view import BipAppView
from scenemanager.api.ui.enhanced.flow_layout import FlowLayout
from scenemanager.constants import WIDTH, HEIGHT
from scenemanager.ui.add import AddButton
from scenemanager.ui.breadcrumbs import Breadcrumbs
from scenemanager.ui.lod import LevelOfDetail, MINIMALIST, NORMAL, EXPANDED, RECOMMENDED
from scenemanager.ui.items.simple import SimpleItem
from scenemanager.ui.items.detailed import DetailedItem
from bip.api.ui.view import BipAppView
from bip.api.ui.enhanced.flow_layout import FlowLayout
from bip.addons.scenemanager.constants import WIDTH, HEIGHT
from bip.addons.scenemanager.ui.add import AddButton
from bip.addons.scenemanager.ui.breadcrumbs import Breadcrumbs
from bip.addons.scenemanager.ui.lod import LevelOfDetail, MINIMALIST, NORMAL, EXPANDED, RECOMMENDED
from bip.addons.scenemanager.ui.items.simple import SimpleItem
from bip.addons.scenemanager.ui.items.detailed import DetailedItem
class SceneManagerView(BipAppView):

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save