1
0
Fork 0
mirror of synced 2024-06-01 18:29:56 +12:00

ImportSync: Rename to Integrations due to expanding their use.

This commit is contained in:
loathingKernel 2022-11-03 22:39:48 +02:00
parent 61749f9acd
commit b84d8a5c67
15 changed files with 24 additions and 24 deletions

View file

@ -26,7 +26,7 @@ from .game_widgets.installing_game_widget import InstallingGameWidget
from .game_widgets.uninstalled_icon_widget import UninstalledIconWidget
from .game_widgets.uninstalled_list_widget import UninstalledListWidget
from .head_bar import GameListHeadBar
from .import_sync import ImportSyncTabs
from .integrations import IntegrationsTabs
logger = getLogger("GamesTab")
@ -74,9 +74,9 @@ class GamesTab(QStackedWidget):
)
self.game_info_tabs.info.uninstalled.connect(lambda x: self.setCurrentWidget(self.games))
self.import_sync_tabs = ImportSyncTabs(self)
self.import_sync_tabs.back_clicked.connect(lambda: self.setCurrentWidget(self.games))
self.addWidget(self.import_sync_tabs)
self.integrations_tabs = IntegrationsTabs(self)
self.integrations_tabs.back_clicked.connect(lambda: self.setCurrentWidget(self.games))
self.addWidget(self.integrations_tabs)
for i in self.game_list:
if i.app_name.startswith("UE_4"):
@ -196,18 +196,18 @@ class GamesTab(QStackedWidget):
@pyqtSlot()
def show_import(self):
self.setCurrentWidget(self.import_sync_tabs)
self.import_sync_tabs.show_import()
self.setCurrentWidget(self.integrations_tabs)
self.integrations_tabs.show_import()
@pyqtSlot()
def show_egl_sync(self):
self.setCurrentWidget(self.import_sync_tabs)
self.import_sync_tabs.show_egl_sync()
self.setCurrentWidget(self.integrations_tabs)
self.integrations_tabs.show_egl_sync()
@pyqtSlot()
def show_eos_ubisoft(self):
self.setCurrentWidget(self.import_sync_tabs)
self.import_sync_tabs.show_eos_ubisoft()
self.setCurrentWidget(self.integrations_tabs)
self.integrations_tabs.show_eos_ubisoft()
def show_game_info(self, app_name):
self.game_info_tabs.update_game(app_name)

View file

@ -10,31 +10,31 @@ from .eos_group import EOSGroup
from .ubisoft_group import UbisoftGroup
class ImportSyncTabs(SideTabWidget):
class IntegrationsTabs(SideTabWidget):
def __init__(self, parent=None):
super(ImportSyncTabs, self).__init__(show_back=True, parent=parent)
self.import_widget = ImportSyncWidget(
super(IntegrationsTabs, self).__init__(show_back=True, parent=parent)
self.import_widget = IntegrationsWidget(
ImportGroup(self),
self.tr("To import games from Epic Games Store, please enable EGL Sync."),
self,
)
self.addTab(self.import_widget, self.tr("Import Games"))
self.egl_sync_widget = ImportSyncWidget(
self.egl_sync_widget = IntegrationsWidget(
EGLSyncGroup(self),
self.tr("To import EGL games from directories, please use Import Game."),
self,
)
self.addTab(self.egl_sync_widget, self.tr("Sync with EGL"))
self.egl_eos_ubisoft = ImportSyncWidget(
self.eos_ubisoft = IntegrationsWidget(
None,
self.tr(""),
self,
)
self.egl_eos_ubisoft.addWidget(UbisoftGroup(self.egl_eos_ubisoft))
self.egl_eos_ubisoft.addWidget(EOSGroup(self.egl_eos_ubisoft))
self.addTab(self.egl_eos_ubisoft, self.tr("EOS and Ubisoft"))
self.eos_ubisoft.addWidget(UbisoftGroup(self.eos_ubisoft))
self.eos_ubisoft.addWidget(EOSGroup(self.eos_ubisoft))
self.addTab(self.eos_ubisoft, self.tr("EOS and Ubisoft"))
self.tabBar().setCurrentIndex(1)
@ -48,9 +48,9 @@ class ImportSyncTabs(SideTabWidget):
self.setCurrentIndex(3)
class ImportSyncWidget(QWidget):
class IntegrationsWidget(QWidget):
def __init__(self, widget: Optional[QWidget], info: str, parent=None):
super(ImportSyncWidget, self).__init__(parent=parent)
super(IntegrationsWidget, self).__init__(parent=parent)
self.info = QLabel(f"<b>{info}</b>")
layout = QVBoxLayout()

View file

@ -8,8 +8,8 @@ from PyQt5.QtWidgets import QGroupBox, QListWidgetItem, QFileDialog, QMessageBox
from rare.lgndr.glue.exception import LgndrException
from rare.shared import LegendaryCoreSingleton, GlobalSignalsSingleton
from rare.ui.components.tabs.games.import_sync.egl_sync_group import Ui_EGLSyncGroup
from rare.ui.components.tabs.games.import_sync.egl_sync_list_group import (
from rare.ui.components.tabs.games.integrations.egl_sync_group import Ui_EGLSyncGroup
from rare.ui.components.tabs.games.integrations.egl_sync_list_group import (
Ui_EGLSyncListGroup,
)
from rare.utils.extra_widgets import PathEdit

View file

@ -9,7 +9,7 @@ from legendary.lfs import eos
from rare.models.install import InstallOptionsModel
from rare.shared import LegendaryCoreSingleton, GlobalSignalsSingleton
from ui.components.tabs.games.import_sync.eos_widget import Ui_EosWidget
from rare.ui.components.tabs.games.integrations.eos_widget import Ui_EosWidget
logger = getLogger("EOS")

View file

@ -14,7 +14,7 @@ from rare.lgndr.cli import LegendaryCLI
from rare.lgndr.glue.arguments import LgndrImportGameArgs
from rare.lgndr.glue.monkeys import LgndrIndirectStatus
from rare.shared import LegendaryCoreSingleton, GlobalSignalsSingleton, ApiResultsSingleton
from rare.ui.components.tabs.games.import_sync.import_group import Ui_ImportGroup
from rare.ui.components.tabs.games.integrations.import_group import Ui_ImportGroup
from rare.utils.extra_widgets import IndicatorLineEdit, PathEdit
from rare.widgets.elide_label import ElideLabel