Skip to content

Commit

Permalink
Finish moving all qtlib py files to qt
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenetar committed May 9, 2022
1 parent 18359c3 commit 36280b0
Show file tree
Hide file tree
Showing 36 changed files with 40 additions and 50 deletions.
2 changes: 1 addition & 1 deletion hscommon/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def special_folder_path(special_folder, appname=None, portable=False):
try:
from PyQt5.QtCore import QUrl, QStandardPaths
from PyQt5.QtGui import QDesktopServices
from qtlib.util import get_appdata
from qt.util import get_appdata
from core.util import executable_folder
from hscommon.plat import ISWINDOWS, ISOSX
import subprocess
Expand Down
File renamed without changes
4 changes: 2 additions & 2 deletions qtlib/about_box.py → qt/about_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QSizePolicy, QHBoxLayout, QVBoxLayout, QLabel

from core.util import check_for_update
from qtlib.util import move_to_screen_center
from qt.util import move_to_screen_center
from hscommon.trans import trget

tr = trget("qtlib")
tr = trget("qtlib") # TODO change to ui


class AboutBox(QDialog):
Expand Down
8 changes: 4 additions & 4 deletions qt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
from hscommon.trans import trget
from hscommon import desktop, plat

from qtlib.about_box import AboutBox
from qtlib.recent import Recent
from qtlib.util import create_actions
from qtlib.progress_window import ProgressWindow
from qt.about_box import AboutBox
from qt.recent import Recent
from qt.util import create_actions
from qt.progress_window import ProgressWindow

from core.app import AppMode, DupeGuru as DupeGuruModel
import core.pe.photo
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion qt/deletion_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QLabel, QCheckBox, QDialogButtonBox

from hscommon.trans import trget
from qtlib.radio_box import RadioBox
from qt.radio_box import RadioBox

tr = trget("ui")

Expand Down
2 changes: 1 addition & 1 deletion qt/details_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDockWidget, QWidget

from qtlib.util import move_to_screen_center
from qt.util import move_to_screen_center
from .details_table import DetailsModel
from hscommon.plat import ISLINUX

Expand Down
2 changes: 1 addition & 1 deletion qt/dg.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<file alias="logo_se_big">../images/dgse_logo_128.png</file>
<file alias="plus">../images/plus_8.png</file>
<file alias="minus">../images/minus_8.png</file>
<file alias="search_clear_13">../qtlib/images/search_clear_13.png</file>
<file alias="search_clear_13">../images/search_clear_13.png</file>
<file alias="exchange">../images/exchange_purple_upscaled.png</file>
<file alias="zoom_in">../images/old_zoom_in.png</file>
<file alias="zoom_out">../images/old_zoom_out.png</file>
Expand Down
6 changes: 3 additions & 3 deletions qt/directories_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

from hscommon.trans import trget
from core.app import AppMode
from qtlib.radio_box import RadioBox
from qtlib.recent import Recent
from qtlib.util import move_to_screen_center, create_actions
from qt.radio_box import RadioBox
from qt.recent import Recent
from qt.util import move_to_screen_center, create_actions

from . import platform
from .directories_model import DirectoriesModel, DirectoriesDelegate
Expand Down
2 changes: 1 addition & 1 deletion qt/directories_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from PyQt5.QtGui import QBrush

from hscommon.trans import trget
from qtlib.tree_model import RefNode, TreeModel
from qt.tree_model import RefNode, TreeModel

tr = trget("ui")

Expand Down
4 changes: 2 additions & 2 deletions qtlib/error_report_dialog.py → qt/error_report_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

from hscommon.trans import trget
from hscommon.desktop import open_url
from .util import horizontal_spacer
from qt.util import horizontal_spacer

tr = trget("qtlib")
tr = trget("qtlib") # TODO change to ui


class ErrorReportDialog(QDialog):
Expand Down
4 changes: 2 additions & 2 deletions qt/exclude_list_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QFont, QFontMetrics, QIcon, QColor

from qtlib.column import Column
from qtlib.table import Table
from qt.column import Column
from qt.table import Table
from hscommon.trans import trget

tr = trget("ui")
Expand Down
2 changes: 1 addition & 1 deletion qt/ignore_list_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)

from hscommon.trans import trget
from qtlib.util import horizontal_wrap
from qt.util import horizontal_wrap
from .ignore_list_table import IgnoreListTable

tr = trget("ui")
Expand Down
4 changes: 2 additions & 2 deletions qt/ignore_list_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html

from qtlib.column import Column
from qtlib.table import Table
from qt.column import Column
from qt.table import Table


class IgnoreListTable(Table):
Expand Down
2 changes: 1 addition & 1 deletion qt/me/results_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html

from qtlib.column import Column
from qt.column import Column
from ..results_model import ResultsModel as ResultsModelBase


Expand Down
2 changes: 1 addition & 1 deletion qt/pe/preferences_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from PyQt5.QtCore import Qt
from hscommon.trans import trget
from hscommon.plat import ISLINUX
from qtlib.radio_box import RadioBox
from qt.radio_box import RadioBox
from core.scanner import ScanType
from core.app import AppMode

Expand Down
2 changes: 1 addition & 1 deletion qt/pe/results_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html

from qtlib.column import Column
from qt.column import Column
from ..results_model import ResultsModel as ResultsModelBase


Expand Down
2 changes: 1 addition & 1 deletion qt/preferences_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

from hscommon.trans import trget
from hscommon.plat import ISLINUX
from qtlib.util import horizontal_wrap, move_to_screen_center
from qt.util import horizontal_wrap, move_to_screen_center
from qt.preferences import get_langnames
from enum import Flag, auto

Expand Down
4 changes: 2 additions & 2 deletions qt/prioritize_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
)

from hscommon.trans import trget
from qtlib.selectable_list import ComboboxModel, ListviewModel
from qtlib.util import vertical_spacer
from qt.selectable_list import ComboboxModel, ListviewModel
from qt.util import vertical_spacer
from core.gui.prioritize_dialog import PrioritizeDialog as PrioritizeDialogModel

tr = trget("ui")
Expand Down
2 changes: 1 addition & 1 deletion qt/problem_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
QAbstractItemView,
)

from qtlib.util import move_to_screen_center
from qt.util import move_to_screen_center
from hscommon.trans import trget
from .problem_table import ProblemTable

Expand Down
4 changes: 2 additions & 2 deletions qt/problem_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html

from qtlib.column import Column
from qtlib.table import Table
from qt.column import Column
from qt.table import Table


class ProblemTable(Table):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion qtlib/radio_box.py → qt/radio_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QRadioButton

from .util import horizontal_spacer
from qt.util import horizontal_spacer


class RadioBox(QWidget):
Expand Down
2 changes: 1 addition & 1 deletion qtlib/recent.py → qt/recent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from hscommon.trans import trget
from hscommon.util import dedupe

tr = trget("qtlib")
tr = trget("qtlib") # TODO move to ui

MenuEntry = namedtuple("MenuEntry", "menu fixedItemCount")

Expand Down
4 changes: 2 additions & 2 deletions qt/result_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
)

from hscommon.trans import trget
from qtlib.util import move_to_screen_center, horizontal_wrap, create_actions
from qtlib.search_edit import SearchEdit
from qt.util import move_to_screen_center, horizontal_wrap, create_actions
from qt.search_edit import SearchEdit

from core.app import AppMode
from .results_model import ResultsView
Expand Down
2 changes: 1 addition & 1 deletion qt/results_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from PyQt5.QtGui import QBrush, QFont, QFontMetrics
from PyQt5.QtWidgets import QTableView

from qtlib.table import Table
from qt.table import Table


class ResultsModel(Table):
Expand Down
2 changes: 1 addition & 1 deletion qt/se/results_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html

from qtlib.column import Column
from qt.column import Column
from ..results_model import ResultsModel as ResultsModelBase


Expand Down
2 changes: 1 addition & 1 deletion qtlib/search_edit.py → qt/search_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from hscommon.trans import trget

tr = trget("qtlib")
tr = trget("qtlib") # TODO change to ui

# IMPORTANT: For this widget to work propertly, you have to add "search_clear_13" from the
# "images" folder in your resources.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion qt/tabbed_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
QStackedWidget,
)
from hscommon.trans import trget
from qtlib.util import move_to_screen_center, create_actions
from qt.util import move_to_screen_center, create_actions
from .directories_dialog import DirectoriesDialog
from .result_window import ResultWindow
from .ignore_list_dialog import IgnoreListDialog
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions qtlib/LICENSE

This file was deleted.

Empty file removed qtlib/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from PyQt5.QtWidgets import QApplication

from hscommon.trans import install_gettext_trans_under_qt
from qtlib.error_report_dialog import install_excepthook
from qtlib.util import setup_qt_logging
from qt.error_report_dialog import install_excepthook
from qt.util import setup_qt_logging
from qt.preferences import create_qsettings
from qt import dg_rc # noqa: F401
from qt.platform import BASE_PATH
Expand Down

0 comments on commit 36280b0

Please sign in to comment.