Esempio n. 1
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(810, 708)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("assets/icon-128.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setContentsMargins(3, 0, 3, 0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.uiSplitter = QtGui.QSplitter(self.centralwidget)
        self.uiSplitter.setOrientation(QtCore.Qt.Horizontal)
        self.uiSplitter.setObjectName(_fromUtf8("uiSplitter"))
        self.uiChannelsTree = QtGui.QTreeWidget(self.uiSplitter)
        self.uiChannelsTree.setObjectName(_fromUtf8("uiChannelsTree"))
        self.uiChannelsTree.headerItem().setText(0, _fromUtf8("#"))
        self.uiChannelsTree.headerItem().setTextAlignment(0, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.uiChannelsTree.headerItem().setText(1, _fromUtf8("Game"))
        self.uiChannelsTree.headerItem().setTextAlignment(1, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.layoutWidget = QtGui.QWidget(self.uiSplitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(-1, -1, -1, 3)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.uiChatHistoryTxtB = QtGui.QTextBrowser(self.layoutWidget)
        self.uiChatHistoryTxtB.setAcceptDrops(False)
        self.uiChatHistoryTxtB.setReadOnly(True)
        self.uiChatHistoryTxtB.setOpenExternalLinks(False)
        self.uiChatHistoryTxtB.setOpenLinks(False)
        self.uiChatHistoryTxtB.setObjectName(_fromUtf8("uiChatHistoryTxtB"))
        self.verticalLayout.addWidget(self.uiChatHistoryTxtB)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.uiChatInputEdit = CompletionLineEdit(self.layoutWidget)
        self.uiChatInputEdit.setObjectName(_fromUtf8("uiChatInputEdit"))
        self.horizontalLayout.addWidget(self.uiChatInputEdit)
        self.uiEmoticonTbtn = QtGui.QToolButton(self.layoutWidget)
        self.uiEmoticonTbtn.setObjectName(_fromUtf8("uiEmoticonTbtn"))
        self.horizontalLayout.addWidget(self.uiEmoticonTbtn)
        self.uiAfkChk = QtGui.QCheckBox(self.layoutWidget)
        self.uiAfkChk.setObjectName(_fromUtf8("uiAfkChk"))
        self.horizontalLayout.addWidget(self.uiAfkChk)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.uiPlayersTableV = QtGui.QTableView(self.uiSplitter)
        self.uiPlayersTableV.setObjectName(_fromUtf8("uiPlayersTableV"))
        self.horizontalLayout_2.addWidget(self.uiSplitter)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 810, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuAction = QtGui.QMenu(self.menubar)
        self.menuAction.setObjectName(_fromUtf8("menuAction"))
        self.menuSetting = QtGui.QMenu(self.menubar)
        self.menuSetting.setObjectName(_fromUtf8("menuSetting"))
        self.uiThemeMenu = QtGui.QMenu(self.menuSetting)
        self.uiThemeMenu.setObjectName(_fromUtf8("uiThemeMenu"))
        self.uiSmoothingMenu = QtGui.QMenu(self.menuSetting)
        self.uiSmoothingMenu.setObjectName(_fromUtf8("uiSmoothingMenu"))
        self.menuLogging = QtGui.QMenu(self.menuSetting)
        self.menuLogging.setObjectName(_fromUtf8("menuLogging"))
        self.uiChallengeSoundMenu = QtGui.QMenu(self.menuSetting)
        self.uiChallengeSoundMenu.setObjectName(_fromUtf8("uiChallengeSoundMenu"))
        self.menuAbout = QtGui.QMenu(self.menubar)
        self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
        MainWindow.setMenuBar(self.menubar)
        self.uiStatusbar = QtGui.QStatusBar(MainWindow)
        self.uiStatusbar.setObjectName(_fromUtf8("uiStatusbar"))
        MainWindow.setStatusBar(self.uiStatusbar)
        self.uiClearChatHistoryAct = QtGui.QAction(MainWindow)
        self.uiClearChatHistoryAct.setObjectName(_fromUtf8("uiClearChatHistoryAct"))
        self.uiAwayAct = QtGui.QAction(MainWindow)
        self.uiAwayAct.setCheckable(True)
        self.uiAwayAct.setObjectName(_fromUtf8("uiAwayAct"))
        self.uiQuitAct = QtGui.QAction(MainWindow)
        self.uiQuitAct.setObjectName(_fromUtf8("uiQuitAct"))
        self.uiMuteChallengeSoundAct = QtGui.QAction(MainWindow)
        self.uiMuteChallengeSoundAct.setCheckable(True)
        self.uiMuteChallengeSoundAct.setObjectName(_fromUtf8("uiMuteChallengeSoundAct"))
        self.uiMuteNotifySoundAct = QtGui.QAction(MainWindow)
        self.uiMuteNotifySoundAct.setCheckable(True)
        self.uiMuteNotifySoundAct.setObjectName(_fromUtf8("uiMuteNotifySoundAct"))
        self.uiFontAct = QtGui.QAction(MainWindow)
        self.uiFontAct.setObjectName(_fromUtf8("uiFontAct"))
        self.uiAboutAct = QtGui.QAction(MainWindow)
        self.uiAboutAct.setObjectName(_fromUtf8("uiAboutAct"))
        self.uiStrevivalAct = QtGui.QAction(MainWindow)
        self.uiStrevivalAct.setObjectName(_fromUtf8("uiStrevivalAct"))
        self.uiHitboxViewerAct = QtGui.QAction(MainWindow)
        self.uiHitboxViewerAct.setObjectName(_fromUtf8("uiHitboxViewerAct"))
        self.uiSafejumpGuideAct = QtGui.QAction(MainWindow)
        self.uiSafejumpGuideAct.setObjectName(_fromUtf8("uiSafejumpGuideAct"))
        self.uiMatchVideosAct = QtGui.QAction(MainWindow)
        self.uiMatchVideosAct.setObjectName(_fromUtf8("uiMatchVideosAct"))
        self.uiSRKForumAct = QtGui.QAction(MainWindow)
        self.uiSRKForumAct.setObjectName(_fromUtf8("uiSRKForumAct"))
        self.uiSRKWikiAct = QtGui.QAction(MainWindow)
        self.uiSRKWikiAct.setObjectName(_fromUtf8("uiSRKWikiAct"))
        self.uiJPWikiAct = QtGui.QAction(MainWindow)
        self.uiJPWikiAct.setObjectName(_fromUtf8("uiJPWikiAct"))
        self.uiGNGThemeAct = QtGui.QAction(MainWindow)
        self.uiGNGThemeAct.setCheckable(True)
        self.uiGNGThemeAct.setObjectName(_fromUtf8("uiGNGThemeAct"))
        self.uiDarkThemeAct = QtGui.QAction(MainWindow)
        self.uiDarkThemeAct.setCheckable(True)
        self.uiDarkThemeAct.setObjectName(_fromUtf8("uiDarkThemeAct"))
        self.uiDebugLogAct = QtGui.QAction(MainWindow)
        self.uiDebugLogAct.setCheckable(True)
        self.uiDebugLogAct.setObjectName(_fromUtf8("uiDebugLogAct"))
        self.uiEmoticonAct = QtGui.QAction(MainWindow)
        self.uiEmoticonAct.setObjectName(_fromUtf8("uiEmoticonAct"))
        self.uiLocateGgpofbaAct = QtGui.QAction(MainWindow)
        self.uiLocateGgpofbaAct.setObjectName(_fromUtf8("uiLocateGgpofbaAct"))
        self.uiLocateROMsAct = QtGui.QAction(MainWindow)
        self.uiLocateROMsAct.setObjectName(_fromUtf8("uiLocateROMsAct"))
        self.uiLocateGeommdbAct = QtGui.QAction(MainWindow)
        self.uiLocateGeommdbAct.setObjectName(_fromUtf8("uiLocateGeommdbAct"))
        self.uiNotifyPlayerStateChangeAct = QtGui.QAction(MainWindow)
        self.uiNotifyPlayerStateChangeAct.setCheckable(True)
        self.uiNotifyPlayerStateChangeAct.setObjectName(_fromUtf8("uiNotifyPlayerStateChangeAct"))
        self.uiFocusOnChatAct = QtGui.QAction(MainWindow)
        self.uiFocusOnChatAct.setObjectName(_fromUtf8("uiFocusOnChatAct"))
        self.uiToggleSidebarAction = QtGui.QAction(MainWindow)
        self.uiToggleSidebarAction.setObjectName(_fromUtf8("uiToggleSidebarAction"))
        self.uiExpandChannelSidebarAct = QtGui.QAction(MainWindow)
        self.uiExpandChannelSidebarAct.setObjectName(_fromUtf8("uiExpandChannelSidebarAct"))
        self.uiContractChannelSidebarAct = QtGui.QAction(MainWindow)
        self.uiContractChannelSidebarAct.setObjectName(_fromUtf8("uiContractChannelSidebarAct"))
        self.uiContractPlayerListAct = QtGui.QAction(MainWindow)
        self.uiContractPlayerListAct.setObjectName(_fromUtf8("uiContractPlayerListAct"))
        self.uiExpandPlayerListAct = QtGui.QAction(MainWindow)
        self.uiExpandPlayerListAct.setObjectName(_fromUtf8("uiExpandPlayerListAct"))
        self.uiLocateUnsupportedSavestatesDirAct = QtGui.QAction(MainWindow)
        self.uiLocateUnsupportedSavestatesDirAct.setObjectName(_fromUtf8("uiLocateUnsupportedSavestatesDirAct"))
        self.uiSyncUnsupportedSavestatesAct = QtGui.QAction(MainWindow)
        self.uiSyncUnsupportedSavestatesAct.setObjectName(_fromUtf8("uiSyncUnsupportedSavestatesAct"))
        self.uiSelectUnsupportedSavestateAct = QtGui.QAction(MainWindow)
        self.uiSelectUnsupportedSavestateAct.setObjectName(_fromUtf8("uiSelectUnsupportedSavestateAct"))
        self.uiFireThemeAct = QtGui.QAction(MainWindow)
        self.uiFireThemeAct.setCheckable(True)
        self.uiFireThemeAct.setObjectName(_fromUtf8("uiFireThemeAct"))
        self.uiCustomQssFileAct = QtGui.QAction(MainWindow)
        self.uiCustomQssFileAct.setCheckable(True)
        self.uiCustomQssFileAct.setObjectName(_fromUtf8("uiCustomQssFileAct"))
        self.uiNormalThemeAct = QtGui.QAction(MainWindow)
        self.uiNormalThemeAct.setCheckable(True)
        self.uiNormalThemeAct.setObjectName(_fromUtf8("uiNormalThemeAct"))
        self.action0 = QtGui.QAction(MainWindow)
        self.action0.setObjectName(_fromUtf8("action0"))
        self.uiCustomEmoticonsAct = QtGui.QAction(MainWindow)
        self.uiCustomEmoticonsAct.setObjectName(_fromUtf8("uiCustomEmoticonsAct"))
        self.uiShowCountryFlagInChatAct = QtGui.QAction(MainWindow)
        self.uiShowCountryFlagInChatAct.setCheckable(True)
        self.uiShowCountryFlagInChatAct.setObjectName(_fromUtf8("uiShowCountryFlagInChatAct"))
        self.uiDisableAutoAnnounceAct = QtGui.QAction(MainWindow)
        self.uiDisableAutoAnnounceAct.setCheckable(True)
        self.uiDisableAutoAnnounceAct.setObjectName(_fromUtf8("uiDisableAutoAnnounceAct"))
        self.uiHideGamesWithoutRomAct = QtGui.QAction(MainWindow)
        self.uiHideGamesWithoutRomAct.setCheckable(True)
        self.uiHideGamesWithoutRomAct.setObjectName(_fromUtf8("uiHideGamesWithoutRomAct"))
        self.uiShowTimestampInChatAct = QtGui.QAction(MainWindow)
        self.uiShowTimestampInChatAct.setCheckable(True)
        self.uiShowTimestampInChatAct.setObjectName(_fromUtf8("uiShowTimestampInChatAct"))
        self.uiDisableAutoColorNicks = QtGui.QAction(MainWindow)
        self.uiDisableAutoColorNicks.setCheckable(True)
        self.uiDisableAutoColorNicks.setObjectName(_fromUtf8("uiDisableAutoColorNicks"))
        self.uiLocateCustomChallengeSoundAct = QtGui.QAction(MainWindow)
        self.uiLocateCustomChallengeSoundAct.setObjectName(_fromUtf8("uiLocateCustomChallengeSoundAct"))
        self.uiLogChatAct = QtGui.QAction(MainWindow)
        self.uiLogChatAct.setCheckable(True)
        self.uiLogChatAct.setObjectName(_fromUtf8("uiLogChatAct"))
        self.uiLogPlayHistoryAct = QtGui.QAction(MainWindow)
        self.uiLogPlayHistoryAct.setCheckable(True)
        self.uiLogPlayHistoryAct.setObjectName(_fromUtf8("uiLogPlayHistoryAct"))
        self.uiGNGWebAct = QtGui.QAction(MainWindow)
        self.uiGNGWebAct.setObjectName(_fromUtf8("uiGNGWebAct"))
        self.uiFilterFavoriteLobbies = QtGui.QAction(MainWindow)
        self.uiFilterFavoriteLobbies.setCheckable(True)
        self.uiFilterFavoriteLobbies.setObjectName(_fromUtf8("uiFilterFavoriteLobbies"))
        self.menuAction.addAction(self.uiAwayAct)
        self.menuAction.addAction(self.uiFocusOnChatAct)
        self.menuAction.addAction(self.uiEmoticonAct)
        self.menuAction.addAction(self.uiClearChatHistoryAct)
        self.menuAction.addSeparator()
        self.menuAction.addAction(self.uiToggleSidebarAction)
        self.menuAction.addAction(self.uiContractChannelSidebarAct)
        self.menuAction.addAction(self.uiExpandChannelSidebarAct)
        self.menuAction.addSeparator()
        self.menuAction.addAction(self.uiContractPlayerListAct)
        self.menuAction.addAction(self.uiExpandPlayerListAct)
        self.menuAction.addSeparator()
        self.menuAction.addAction(self.uiQuitAct)
        self.menuLogging.addAction(self.uiLogChatAct)
        self.menuLogging.addAction(self.uiLogPlayHistoryAct)
        self.menuLogging.addSeparator()
        self.menuLogging.addAction(self.uiDebugLogAct)
        self.uiChallengeSoundMenu.addAction(self.uiMuteChallengeSoundAct)
        self.uiChallengeSoundMenu.addAction(self.uiLocateCustomChallengeSoundAct)
        self.uiChallengeSoundMenu.addSeparator()
        self.menuSetting.addAction(self.uiMuteNotifySoundAct)
        self.menuSetting.addAction(self.uiChallengeSoundMenu.menuAction())
        self.menuSetting.addAction(self.uiThemeMenu.menuAction())
        self.menuSetting.addAction(self.uiSmoothingMenu.menuAction())
        self.menuSetting.addAction(self.uiFontAct)
        self.menuSetting.addAction(self.uiCustomEmoticonsAct)
        self.menuSetting.addSeparator()
        self.menuSetting.addAction(self.uiLocateROMsAct)
        self.menuSetting.addSeparator()
        self.menuSetting.addAction(self.uiNotifyPlayerStateChangeAct)
        self.menuSetting.addAction(self.uiShowCountryFlagInChatAct)
        self.menuSetting.addAction(self.uiShowTimestampInChatAct)
        self.menuSetting.addAction(self.uiDisableAutoColorNicks)
        self.menuSetting.addAction(self.uiHideGamesWithoutRomAct)
        self.menuSetting.addAction(self.uiFilterFavoriteLobbies)
        self.menuSetting.addAction(self.menuLogging.menuAction())
        self.menuAbout.addAction(self.uiSRKForumAct)
        self.menuAbout.addAction(self.uiSRKWikiAct)
        self.menuAbout.addAction(self.uiJPWikiAct)
        self.menuAbout.addSeparator()
        self.menuAbout.addAction(self.uiStrevivalAct)
        self.menuAbout.addAction(self.uiHitboxViewerAct)
        self.menuAbout.addAction(self.uiSafejumpGuideAct)
        self.menuAbout.addAction(self.uiMatchVideosAct)
        self.menuAbout.addSeparator()
        self.menuAbout.addAction(self.uiGNGWebAct)
        self.menuAbout.addAction(self.uiAboutAct)
        self.menubar.addAction(self.menuAction.menuAction())
        self.menubar.addAction(self.menuSetting.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.uiQuitAct, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close)
        QtCore.QObject.connect(self.uiClearChatHistoryAct, QtCore.SIGNAL(_fromUtf8("triggered()")), self.uiChatHistoryTxtB.clear)
        QtCore.QObject.connect(self.uiAwayAct, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.uiAfkChk.setChecked)
        QtCore.QObject.connect(self.uiAfkChk, QtCore.SIGNAL(_fromUtf8("clicked()")), self.uiAwayAct.trigger)
        QtCore.QObject.connect(self.uiFocusOnChatAct, QtCore.SIGNAL(_fromUtf8("triggered()")), self.uiChatInputEdit.setFocus)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)