def __init__(self, parent, app: FastFlixApp, available_audio_encoders): super().__init__(parent) self.main = parent self.app = app self.selected = 0 self.commands = CommandList(self, self.app) self.current_settings = self.main.current_encoder.settings_panel( self, self.main, self.app) self.audio = AudioList(self, self.app) self.subtitles = SubtitleList(self, self.app) self.status = StatusPanel(self, self.app) self.attachments = CoverPanel(self, self.app) self.queue = EncodingQueue(self, self.app) self.advanced = AdvancedPanel(self, self.app) self.info = InfoPanel(self, self.app) self.debug = DebugPanel(self, self.app) self.addTab(self.current_settings, QtGui.QIcon(editing_icon), t("Quality")) self.addTab(self.audio, QtGui.QIcon(music_icon), t("Audio")) self.addTab(self.subtitles, QtGui.QIcon(cc_icon), t("Subtitles")) self.addTab(self.attachments, QtGui.QIcon(photo_icon), t("Cover")) self.addTab(self.advanced, QtGui.QIcon(advanced_icon), t("Advanced")) self.addTab(self.info, QtGui.QIcon(info_icon), t("Source Details")) self.addTab(self.commands, QtGui.QIcon(text_left_icon), t("Raw Commands")) self.addTab(self.status, QtGui.QIcon(working_icon), t("Encoding Status")) self.addTab(self.queue, QtGui.QIcon(poll_icon), t("Encoding Queue")) if DEVMODE: self.addTab(self.debug, QtGui.QIcon(info_icon), "Debug")
def __init__(self, parent, available_audio_encoders, log_queue): super().__init__(parent) self.main = parent self.selected = 0 self.commands = CommandList(self) self.current_plugin = list(self.main.plugins.values())[0] self.current_settings = self.current_plugin.settings_panel( self, self.main) self.audio = AudioList(self, available_audio_encoders) self.subtitles = SubtitleList(self) self.status = StatusPanel(self, log_queue) self.attachments = CoverPanel(self) # self.subtitles.hide() self.addTab(self.current_settings, "Quality") self.addTab(self.audio, "Audio") self.addTab(self.subtitles, "Subtitles") self.addTab(self.attachments, "Cover") self.addTab(self.commands, "Command List") self.addTab(self.status, "Encoding Status")
def __init__(self, parent, app: FastFlixApp, available_audio_encoders): super().__init__(parent) self.main = parent self.app = app self.selected = 0 self.commands = CommandList(self, self.app) self.current_settings = self.main.current_encoder.settings_panel( self, self.main, self.app) self.tabBar().tabBarClicked.connect(self.change_tab) self.audio = AudioList(self, self.app) self.subtitles = SubtitleList(self, self.app) self.status = StatusPanel(self, self.app) self.attachments = CoverPanel(self, self.app) self.queue = EncodingQueue(self, self.app) self.advanced = AdvancedPanel(self, self.app) self.info = InfoPanel(self, self.app) self.debug = DebugPanel(self, self.app) if self.app.fastflix.config.theme == "onyx": self.setStyleSheet( "*{ background-color: #4b5054; color: white} QTabWidget{margin-top: 34px; background-color: #4b5054;} " "QTabBar{font-size: 13px; background-color: #4f5962}" "QComboBox{min-height: 1.1em;}") self.setIconSize(QtCore.QSize(24, 24)) self.addTab( self.current_settings, QtGui.QIcon(get_icon("onyx-quality", app.fastflix.config.theme)), t("Quality")) self.addTab( self.audio, QtGui.QIcon(get_icon("onyx-audio", app.fastflix.config.theme)), t("Audio")) self.addTab( self.subtitles, QtGui.QIcon(get_icon("onyx-cc", app.fastflix.config.theme)), t("Subtitles")) self.addTab( self.attachments, QtGui.QIcon(get_icon("onyx-cover", app.fastflix.config.theme)), t("Cover")) self.addTab( self.advanced, QtGui.QIcon(get_icon("onyx-advanced", app.fastflix.config.theme)), t("Advanced")) self.addTab( self.info, QtGui.QIcon( get_icon("onyx-source-details", app.fastflix.config.theme)), t("Source Details")) self.addTab( self.commands, QtGui.QIcon( get_icon("onyx-raw-commands", app.fastflix.config.theme)), t("Raw Commands")) self.addTab( self.status, QtGui.QIcon(get_icon("onyx-status", app.fastflix.config.theme)), t("Encoding Status")) self.addTab( self.queue, QtGui.QIcon(get_icon("onyx-queue", app.fastflix.config.theme)), t("Encoding Queue")) if DEVMODE: self.addTab( self.debug, QtGui.QIcon(get_icon("info", app.fastflix.config.theme)), "Debug")