-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.py
157 lines (150 loc) · 8.81 KB
/
gui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Adaptive.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(367, 200)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QtCore.QSize(367, 200))
MainWindow.setMaximumSize(QtCore.QSize(367, 200))
MainWindow.setWindowTitle("Adaptive - Settings")
MainWindow.setStatusTip("")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setToolTip("")
self.centralwidget.setObjectName("centralwidget")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 691, 281))
self.tabWidget.setToolTip("")
self.tabWidget.setToolTipDuration(0)
self.tabWidget.setWhatsThis("")
self.tabWidget.setObjectName("tabWidget")
self.modeTab = QtWidgets.QWidget()
self.modeTab.setToolTip("")
self.modeTab.setToolTipDuration(0)
self.modeTab.setStatusTip("")
self.modeTab.setWhatsThis("")
self.modeTab.setObjectName("modeTab")
self.modeBox = QtWidgets.QGroupBox(self.modeTab)
self.modeBox.setGeometry(QtCore.QRect(20, 20, 321, 51))
self.modeBox.setObjectName("modeBox")
self.chooseMode = QtWidgets.QComboBox(self.modeBox)
self.chooseMode.setEnabled(True)
self.chooseMode.setGeometry(QtCore.QRect(10, 20, 301, 22))
self.chooseMode.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
self.chooseMode.setObjectName("chooseMode")
self.configBox = QtWidgets.QGroupBox(self.modeTab)
self.configBox.setGeometry(QtCore.QRect(20, 90, 321, 51))
self.configBox.setObjectName("configBox")
self.chooseConfig = QtWidgets.QComboBox(self.configBox)
self.chooseConfig.setGeometry(QtCore.QRect(10, 20, 301, 22))
self.chooseConfig.setObjectName("chooseConfig")
self.tabWidget.addTab(self.modeTab, "")
self.configsTab = QtWidgets.QWidget()
self.configsTab.setToolTip("")
self.configsTab.setToolTipDuration(0)
self.configsTab.setObjectName("configsTab")
self.configList = QtWidgets.QListWidget(self.configsTab)
self.configList.setGeometry(QtCore.QRect(20, 20, 231, 121))
self.configList.setObjectName("configList")
self.addCurrent = QtWidgets.QPushButton(self.configsTab)
self.addCurrent.setGeometry(QtCore.QRect(270, 30, 75, 23))
self.addCurrent.setObjectName("addCurrent")
self.removeConfig = QtWidgets.QPushButton(self.configsTab)
self.removeConfig.setGeometry(QtCore.QRect(270, 70, 75, 23))
self.removeConfig.setObjectName("removeConfig")
self.renameConfig = QtWidgets.QPushButton(self.configsTab)
self.renameConfig.setGeometry(QtCore.QRect(270, 110, 75, 23))
self.renameConfig.setObjectName("renameConfig")
self.tabWidget.addTab(self.configsTab, "")
self.settingsTab = QtWidgets.QWidget()
self.settingsTab.setToolTip("")
self.settingsTab.setToolTipDuration(0)
self.settingsTab.setObjectName("settingsTab")
self.pathBox = QtWidgets.QGroupBox(self.settingsTab)
self.pathBox.setGeometry(QtCore.QRect(20, 100, 321, 51))
self.pathBox.setObjectName("pathBox")
self.pathText = QtWidgets.QLineEdit(self.pathBox)
self.pathText.setGeometry(QtCore.QRect(10, 20, 241, 20))
self.pathText.setText("")
self.pathText.setReadOnly(True)
self.pathText.setObjectName("pathText")
self.pathBrowse = QtWidgets.QToolButton(self.pathBox)
self.pathBrowse.setGeometry(QtCore.QRect(260, 20, 51, 19))
self.pathBrowse.setObjectName("pathBrowse")
self.startWithWin = QtWidgets.QCheckBox(self.settingsTab)
self.startWithWin.setGeometry(QtCore.QRect(30, 70, 161, 17))
self.startWithWin.setObjectName("startWithWin")
self.windowOnStartup = QtWidgets.QCheckBox(self.settingsTab)
self.windowOnStartup.setGeometry(QtCore.QRect(30, 10, 171, 17))
self.windowOnStartup.setObjectName("windowOnStartup")
self.updateOnStartup = QtWidgets.QCheckBox(self.settingsTab)
self.updateOnStartup.setGeometry(QtCore.QRect(30, 40, 161, 17))
self.updateOnStartup.setObjectName("updateOnStartup")
self.tabWidget.addTab(self.settingsTab, "")
self.aboutTab = QtWidgets.QWidget()
self.aboutTab.setToolTip("")
self.aboutTab.setToolTipDuration(0)
self.aboutTab.setObjectName("aboutTab")
self.icon = QtWidgets.QLabel(self.aboutTab)
self.icon.setGeometry(QtCore.QRect(20, 20, 111, 111))
self.icon.setText("")
self.icon.setScaledContents(True)
self.icon.setObjectName("icon")
self.creds = QtWidgets.QLabel(self.aboutTab)
self.creds.setGeometry(QtCore.QRect(150, 20, 261, 61))
self.creds.setObjectName("creds")
self.sourceCode = QtWidgets.QPushButton(self.aboutTab)
self.sourceCode.setGeometry(QtCore.QRect(150, 92, 75, 21))
self.sourceCode.setObjectName("sourceCode")
self.checkUpdates = QtWidgets.QPushButton(self.aboutTab)
self.checkUpdates.setGeometry(QtCore.QRect(190, 122, 101, 21))
self.checkUpdates.setObjectName("checkUpdates")
self.reportBug = QtWidgets.QPushButton(self.aboutTab)
self.reportBug.setGeometry(QtCore.QRect(260, 92, 75, 21))
self.reportBug.setObjectName("reportBug")
self.tabWidget.addTab(self.aboutTab, "")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
self.modeBox.setTitle(_translate("MainWindow", "Mode"))
self.chooseMode.setToolTip(_translate("MainWindow", "Select a gamemode"))
self.configBox.setTitle(_translate("MainWindow", "Config"))
self.chooseConfig.setToolTip(_translate("MainWindow", "Select a config for the above gamemode"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.modeTab), _translate("MainWindow", "Modes"))
self.addCurrent.setToolTip(_translate("MainWindow", "Import the current League\'s config into Adaptive"))
self.addCurrent.setText(_translate("MainWindow", "Add Current"))
self.removeConfig.setToolTip(_translate("MainWindow", "Remove the selected config"))
self.removeConfig.setText(_translate("MainWindow", "Remove"))
self.renameConfig.setToolTip(_translate("MainWindow", "Rename the selected config"))
self.renameConfig.setText(_translate("MainWindow", "Rename"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.configsTab), _translate("MainWindow", "Configs"))
self.pathBox.setTitle(_translate("MainWindow", "League of Legends\' Path"))
self.pathBrowse.setToolTip(_translate("MainWindow", "Browse for League path"))
self.pathBrowse.setText(_translate("MainWindow", "Browse"))
self.startWithWin.setToolTip(_translate("MainWindow", "Start with Windows"))
self.startWithWin.setText(_translate("MainWindow", "Start Adaptive with Windows"))
self.windowOnStartup.setText(_translate("MainWindow", "Show this window on startup"))
self.updateOnStartup.setText(_translate("MainWindow", "Check for updates on startup"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.settingsTab), _translate("MainWindow", "Settings"))
self.creds.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:20pt; font-weight:600;\">Adaptive v1.0</span></p><p><span style=\" font-size:10pt;\">by Ria</span></p></body></html>"))
self.sourceCode.setToolTip(_translate("MainWindow", "Adaptive\'s Github"))
self.sourceCode.setText(_translate("MainWindow", "Source Code"))
self.checkUpdates.setText(_translate("MainWindow", "Check for updates"))
self.reportBug.setText(_translate("MainWindow", "Report bug"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.aboutTab), _translate("MainWindow", "About"))