Skip to content

Commit

Permalink
Move ui_*.py to ui/forms/
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed May 16, 2024
1 parent b02c0a8 commit 7f942df
Show file tree
Hide file tree
Showing 84 changed files with 67 additions and 55 deletions.
2 changes: 1 addition & 1 deletion picard/coverart/providers/caa.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
from picard.webservice import ratecontrol

from picard.ui.caa_types_selector import display_caa_types_selector
from picard.ui.ui_provider_options_caa import Ui_CaaOptions
from picard.ui.forms.ui_provider_options_caa import Ui_CaaOptions


CaaSizeItem = namedtuple('CaaSizeItem', ['thumbnail', 'label'])
Expand Down
2 changes: 1 addition & 1 deletion picard/coverart/providers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from picard.coverart.utils import CAA_TYPES
from picard.i18n import N_

from picard.ui.ui_provider_options_local import Ui_LocalOptions
from picard.ui.forms.ui_provider_options_local import Ui_LocalOptions


class ProviderOptionsLocal(ProviderOptions):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/aboutdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
PicardDialog,
SingletonDialog,
)
from picard.ui.ui_aboutdialog import Ui_AboutDialog
from picard.ui.forms.ui_aboutdialog import Ui_AboutDialog


class AboutDialog(PicardDialog, SingletonDialog):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/cdlookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
)

from picard.ui import PicardDialog
from picard.ui.ui_cdlookup import Ui_Dialog
from picard.ui.forms.ui_cdlookup import Ui_Dialog


class CDLookupDialog(PicardDialog):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/edittagdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from picard.util.tags import TAG_NAMES

from picard.ui import PicardDialog
from picard.ui.ui_edittagdialog import Ui_EditTagDialog
from picard.ui.forms.ui_edittagdialog import Ui_EditTagDialog


AUTOCOMPLETE_RELEASE_TYPES = [s.lower() for s
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion picard/ui/infodialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

from picard.ui import PicardDialog
from picard.ui.colors import interface_colors
from picard.ui.ui_infodialog import Ui_InfoDialog
from picard.ui.forms.ui_infodialog import Ui_InfoDialog
from picard.ui.util import StandardButton


Expand Down
2 changes: 1 addition & 1 deletion picard/ui/infostatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from picard.util import icontheme
from picard.util.time import get_timestamp

from picard.ui.ui_infostatus import Ui_InfoStatus
from picard.ui.forms.ui_infostatus import Ui_InfoStatus


class InfoStatus(QtWidgets.QWidget, Ui_InfoStatus):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.forms.ui_options_advanced import Ui_AdvancedOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_advanced import Ui_AdvancedOptionsPage


class AdvancedOptionsPage(OptionsPage):
Expand Down
6 changes: 4 additions & 2 deletions picard/ui/options/cdlookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@


if AUTO_DETECT_DRIVES:
from picard.ui.ui_options_cdlookup_select import Ui_CDLookupOptionsPage
from picard.ui.forms.ui_options_cdlookup_select import (
Ui_CDLookupOptionsPage,
)
else:
from picard.ui.ui_options_cdlookup import Ui_CDLookupOptionsPage
from picard.ui.forms.ui_options_cdlookup import Ui_CDLookupOptionsPage


class CDLookupOptionsPage(OptionsPage):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
)

from picard.ui.checkbox_list_item import CheckboxListItem
from picard.ui.forms.ui_options_cover import Ui_CoverOptionsPage
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import OptionsPage
from picard.ui.ui_options_cover import Ui_CoverOptionsPage
from picard.ui.util import qlistwidget_items


Expand Down
6 changes: 4 additions & 2 deletions picard/ui/options/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
PicardDialog,
SingletonDialog,
)
from picard.ui.forms.ui_options_attached_profiles import (
Ui_AttachedProfilesDialog,
)
from picard.ui.options import ( # noqa: F401 # pylint: disable=unused-import
OptionsCheckError,
OptionsPage,
Expand Down Expand Up @@ -91,7 +94,6 @@
tags_compatibility_id3,
tags_compatibility_wave,
)
from picard.ui.ui_options_attached_profiles import Ui_AttachedProfilesDialog
from picard.ui.util import StandardButton


Expand Down Expand Up @@ -176,7 +178,7 @@ def __init__(self, default_page=None, parent=None):
self.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
self.setAttribute(QtCore.Qt.WidgetAttribute.WA_DeleteOnClose)

from picard.ui.ui_options import Ui_Dialog
from picard.ui.forms.ui_options import Ui_Dialog
self.ui = Ui_Dialog()
self.ui.setupUi(self)

Expand Down
4 changes: 3 additions & 1 deletion picard/ui/options/fingerprinting.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
)
from picard.util import webbrowser2

from picard.ui.forms.ui_options_fingerprinting import (
Ui_FingerprintingOptionsPage,
)
from picard.ui.options import (
OptionsCheckError,
OptionsPage,
)
from picard.ui.ui_options_fingerprinting import Ui_FingerprintingOptionsPage


class ApiKeyValidator(QtGui.QValidator):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
)
from picard.util.mbserver import is_official_server

from picard.ui.forms.ui_options_general import Ui_GeneralOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_general import Ui_GeneralOptionsPage


class GeneralOptionsPage(OptionsPage):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/genres.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
)
from picard.track import TagGenreFilter

from picard.ui.forms.ui_options_genres import Ui_GenresOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_genres import Ui_GenresOptionsPage


TOOLTIP_GENRES_FILTER = N_("""<html><head/><body>
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
)
from picard.util import strxfrm

from picard.ui.forms.ui_options_interface import Ui_InterfaceOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.theme import (
AVAILABLE_UI_THEMES,
OS_SUPPORTS_THEMES,
UiTheme,
)
from picard.ui.ui_options_interface import Ui_InterfaceOptionsPage
from picard.ui.util import changes_require_restart_warning


Expand Down
4 changes: 3 additions & 1 deletion picard/ui/options/interface_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
)

from picard.ui.colors import interface_colors
from picard.ui.forms.ui_options_interface_colors import (
Ui_InterfaceColorsOptionsPage,
)
from picard.ui.options import OptionsPage
from picard.ui.ui_options_interface_colors import Ui_InterfaceColorsOptionsPage
from picard.ui.util import changes_require_restart_warning


Expand Down
6 changes: 3 additions & 3 deletions picard/ui/options/interface_toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@

from picard.ui import PicardDialog
from picard.ui.enums import MainAction
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import OptionsPage
from picard.ui.ui_options_interface_toolbar import (
from picard.ui.forms.ui_options_interface_toolbar import (
Ui_InterfaceToolbarOptionsPage,
)
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import OptionsPage
from picard.ui.util import qlistwidget_items


Expand Down
4 changes: 2 additions & 2 deletions picard/ui/options/interface_top_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.options import OptionsPage
from picard.ui.ui_options_interface_top_tags import (
from picard.ui.forms.ui_options_interface_top_tags import (
Ui_InterfaceTopTagsOptionsPage,
)
from picard.ui.options import OptionsPage


class InterfaceTopTagsOptionsPage(OptionsPage):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
)
from picard.util import open_local_path

from picard.ui.forms.ui_options_maintenance import Ui_MaintenanceOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_maintenance import Ui_MaintenanceOptionsPage


OPTIONS_NOT_IN_PAGES = {
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.forms.ui_options_matching import Ui_MatchingOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_matching import Ui_MatchingOptionsPage


class MatchingOptionsPage(OptionsPage):
Expand Down
8 changes: 5 additions & 3 deletions picard/ui/options/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
)

from picard.ui import PicardDialog
from picard.ui.forms.ui_exception_script_selector import (
Ui_ExceptionScriptSelector,
)
from picard.ui.forms.ui_multi_locale_selector import Ui_MultiLocaleSelector
from picard.ui.forms.ui_options_metadata import Ui_MetadataOptionsPage
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import OptionsPage
from picard.ui.ui_exception_script_selector import Ui_ExceptionScriptSelector
from picard.ui.ui_multi_locale_selector import Ui_MultiLocaleSelector
from picard.ui.ui_options_metadata import Ui_MetadataOptionsPage
from picard.ui.util import qlistwidget_items


Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.forms.ui_options_network import Ui_NetworkOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_network import Ui_NetworkOptionsPage


class NetworkOptionsPage(OptionsPage):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
)

from picard.ui import HashableTreeWidgetItem
from picard.ui.forms.ui_options_plugins import Ui_PluginsOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.theme import theme
from picard.ui.ui_options_plugins import Ui_PluginsOptionsPage


COLUMN_NAME, COLUMN_VERSION, COLUMN_ACTIONS = range(3)
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
from picard.script import get_file_naming_script_presets
from picard.util import get_base_title

from picard.ui.forms.ui_options_profiles import Ui_ProfileEditorDialog
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import OptionsPage
from picard.ui.ui_options_profiles import Ui_ProfileEditorDialog
from picard.ui.util import qlistwidget_items
from picard.ui.widgets.profilelistwidget import ProfileListWidgetItem

Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/ratings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.forms.ui_options_ratings import Ui_RatingsOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_ratings import Ui_RatingsOptionsPage


class RatingsOptionsPage(OptionsPage):
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
)
from picard.util import strxfrm

from picard.ui.forms.ui_options_releases import Ui_ReleasesOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_releases import Ui_ReleasesOptionsPage
from picard.ui.util import qlistwidget_items
from picard.ui.widgets import ClickableSlider

Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/renaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from picard.script import ScriptParser

from picard.ui.enums import MainAction
from picard.ui.forms.ui_options_renaming import Ui_RenamingOptionsPage
from picard.ui.options import (
OptionsCheckError,
OptionsPage,
Expand All @@ -61,7 +62,6 @@
populate_script_selection_combo_box,
synchronize_vertical_scrollbars,
)
from picard.ui.ui_options_renaming import Ui_RenamingOptionsPage


class RenamingOptionsPage(OptionsPage):
Expand Down
6 changes: 4 additions & 2 deletions picard/ui/options/renaming_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@
from picard.util import system_supports_long_paths

from picard.ui import PicardDialog
from picard.ui.forms.ui_options_renaming_compat import (
Ui_RenamingCompatOptionsPage,
)
from picard.ui.forms.ui_win_compat_dialog import Ui_WinCompatDialog
from picard.ui.options import OptionsPage
from picard.ui.ui_options_renaming_compat import Ui_RenamingCompatOptionsPage
from picard.ui.ui_win_compat_dialog import Ui_WinCompatDialog


class RenamingCompatOptionsPage(OptionsPage):
Expand Down
8 changes: 4 additions & 4 deletions picard/ui/options/scripting.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
PicardDialog,
SingletonDialog,
)
from picard.ui.forms.ui_options_script import Ui_ScriptingOptionsPage
from picard.ui.forms.ui_scripting_documentation_dialog import (
Ui_ScriptingDocumentationDialog,
)
from picard.ui.moveable_list_view import MoveableListView
from picard.ui.options import (
OptionsCheckError,
OptionsPage,
)
from picard.ui.ui_options_script import Ui_ScriptingOptionsPage
from picard.ui.ui_scripting_documentation_dialog import (
Ui_ScriptingDocumentationDialog,
)
from picard.ui.util import qlistwidget_items
from picard.ui.widgets.scriptdocumentation import ScriptingDocumentationWidget
from picard.ui.widgets.scriptlistwidget import ScriptListWidgetItem
Expand Down
2 changes: 1 addition & 1 deletion picard/ui/options/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
from picard.i18n import N_

from picard.ui.enums import MainAction
from picard.ui.forms.ui_options_tags import Ui_TagsOptionsPage
from picard.ui.options import OptionsPage
from picard.ui.ui_options_tags import Ui_TagsOptionsPage


class TagsOptionsPage(OptionsPage):
Expand Down
4 changes: 2 additions & 2 deletions picard/ui/options/tags_compatibility_aac.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.options import OptionsPage
from picard.ui.ui_options_tags_compatibility_aac import (
from picard.ui.forms.ui_options_tags_compatibility_aac import (
Ui_TagsCompatibilityOptionsPage,
)
from picard.ui.options import OptionsPage


class TagsCompatibilityAACOptionsPage(OptionsPage):
Expand Down
4 changes: 2 additions & 2 deletions picard/ui/options/tags_compatibility_ac3.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
from picard.extension_points.options_pages import register_options_page
from picard.i18n import N_

from picard.ui.options import OptionsPage
from picard.ui.ui_options_tags_compatibility_ac3 import (
from picard.ui.forms.ui_options_tags_compatibility_ac3 import (
Ui_TagsCompatibilityOptionsPage,
)
from picard.ui.options import OptionsPage


class TagsCompatibilityAC3OptionsPage(OptionsPage):
Expand Down
Loading

0 comments on commit 7f942df

Please sign in to comment.