Skip to content

Commit

Permalink
Reorg plugins and template
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexeh committed May 22, 2024
1 parent bf95064 commit 12a8b5f
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions joystick_diagrams/app_state.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging

from joystick_diagrams.plugin_wrapper import PluginWrapper
from joystick_diagrams.plugins.plugin_manager import ParserPluginManager
from joystick_diagrams.plugins.plugin_wrapper import PluginWrapper
from joystick_diagrams.profile.profile import Profile_
from joystick_diagrams.profile.profile_collection import ProfileCollection
from joystick_diagrams.profile_wrapper import ProfileWrapper
from joystick_diagrams.profile.profile_wrapper import ProfileWrapper

_logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion joystick_diagrams/export/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from joystick_diagrams import utils
from joystick_diagrams.export.export_device import ExportDevice
from joystick_diagrams.input.modifier import Modifier
from joystick_diagrams.template import Template
from joystick_diagrams.template.template import Template

_logger = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions joystick_diagrams/export/export_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from joystick_diagrams.input import device
from joystick_diagrams.input.device import Device_
from joystick_diagrams.profile_wrapper import ProfileWrapper
from joystick_diagrams.template import Template
from joystick_diagrams.profile.profile_wrapper import ProfileWrapper
from joystick_diagrams.template.template import Template


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion joystick_diagrams/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from dynaconf import ValidationError # type: ignore

from joystick_diagrams.exceptions import JoystickDiagramsError, PluginNotValidError
from joystick_diagrams.plugin_wrapper import PluginWrapper
from joystick_diagrams.plugins.plugin_interface import PluginInterface
from joystick_diagrams.plugins.plugin_wrapper import PluginWrapper

_logger = logging.getLogger(__name__)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from copy import deepcopy

from joystick_diagrams.db import db_profile_parents, db_profiles
from joystick_diagrams.plugin_wrapper import PluginWrapper
from joystick_diagrams.plugins.plugin_wrapper import PluginWrapper
from joystick_diagrams.profile.profile import Profile_

_logger = logging.getLogger(__name__)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion joystick_diagrams/ui/configure_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from joystick_diagrams.input.types.axis import Axis, AxisSlider
from joystick_diagrams.input.types.button import Button
from joystick_diagrams.input.types.hat import Hat
from joystick_diagrams.profile_wrapper import ProfileWrapper
from joystick_diagrams.profile.profile_wrapper import ProfileWrapper
from joystick_diagrams.ui import parent_profiles
from joystick_diagrams.ui.qt_designer import configure_page_ui

Expand Down
4 changes: 2 additions & 2 deletions joystick_diagrams/ui/device_setup_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
)
from joystick_diagrams.exceptions import JoystickDiagramsError
from joystick_diagrams.export.export_device import ExportDevice
from joystick_diagrams.profile_wrapper import ProfileWrapper
from joystick_diagrams.template import Template
from joystick_diagrams.profile.profile_wrapper import ProfileWrapper
from joystick_diagrams.template.template import Template

_logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion joystick_diagrams/ui/parent_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from PySide6.QtWidgets import QListWidgetItem, QMainWindow

from joystick_diagrams.app_state import AppState
from joystick_diagrams.profile_wrapper import ProfileWrapper
from joystick_diagrams.profile.profile_wrapper import ProfileWrapper
from joystick_diagrams.ui.qt_designer import parent_profile_management_ui

_logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion joystick_diagrams/ui/plugins_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

from joystick_diagrams.app_state import AppState
from joystick_diagrams.exceptions import JoystickDiagramsError
from joystick_diagrams.plugin_wrapper import PluginWrapper
from joystick_diagrams.plugins.plugin_interface import PluginInterface
from joystick_diagrams.plugins.plugin_wrapper import PluginWrapper
from joystick_diagrams.ui.qt_designer import setting_page_ui

_logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_export_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from joystick_diagrams.input.types.axis import Axis, AxisDirection
from joystick_diagrams.input.types.button import Button
from joystick_diagrams.input.types.hat import Hat, HatDirection
from joystick_diagrams.template import Template
from joystick_diagrams.template.template import Template

DATA_DIR = "tests/data/"
TEST_FILE = "template_test.svg"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

from joystick_diagrams.exceptions import JoystickDiagramsError
from joystick_diagrams.template import Template
from joystick_diagrams.template.template import Template


@pytest.fixture
Expand Down

0 comments on commit 12a8b5f

Please sign in to comment.