MCPcopy Create free account
hub / github.com/Syncplay/syncplay / addBottomLayout

Method addBottomLayout

syncplay/ui/GuiConfiguration.py:1234–1282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1232 self.stackedLayout.addWidget(self.messageFrame)
1233
1234 def addBottomLayout(self):
1235 config = self.config
1236
1237 self.bottomButtonFrame = QtWidgets.QFrame()
1238 self.bottomButtonLayout = QtWidgets.QHBoxLayout()
1239 self.helpButton = QtWidgets.QPushButton(QtGui.QIcon(resourcespath + 'help.png'), getMessage("help-label"))
1240 self.helpButton.setObjectName("help")
1241 self.helpButton.setMaximumSize(self.helpButton.sizeHint())
1242 self.helpButton.released.connect(self.openHelp)
1243
1244 self.resetButton = QtWidgets.QPushButton(QtGui.QIcon(resourcespath + 'cog_delete.png'), getMessage("reset-label"))
1245 self.resetButton.setMaximumSize(self.resetButton.sizeHint())
1246 self.resetButton.setObjectName("reset")
1247 self.resetButton.released.connect(self.resetSettings)
1248
1249 self.runButton = QtWidgets.QPushButton(QtGui.QIcon(resourcespath + 'accept.png'), getMessage("run-label"))
1250 self.runButton.released.connect(self._runWithoutStoringConfig)
1251 self.runButton = QtWidgets.QPushButton(QtGui.QIcon(resourcespath + 'accept.png'), getMessage("run-label"))
1252 self.runButton.pressed.connect(self._runWithoutStoringConfig)
1253 self.runButton.setToolTip(getMessage("nostore-tooltip"))
1254 self.storeAndRunButton = QtWidgets.QPushButton(QtGui.QIcon(resourcespath + 'accept.png'), getMessage("storeandrun-label"))
1255 self.storeAndRunButton.released.connect(self._saveDataAndLeave)
1256 self.bottomButtonLayout.addWidget(self.helpButton)
1257 self.bottomButtonLayout.addWidget(self.resetButton)
1258 self.bottomButtonLayout.addWidget(self.runButton)
1259 self.bottomButtonLayout.addWidget(self.storeAndRunButton)
1260 self.bottomButtonFrame.setLayout(self.bottomButtonLayout)
1261 if isMacOS():
1262 self.bottomButtonLayout.setContentsMargins(15, 0, 15, 0)
1263 else:
1264 self.bottomButtonLayout.setContentsMargins(5, 0, 5, 0)
1265 self.mainLayout.addWidget(self.bottomButtonFrame, 1, 0, 1, 2)
1266
1267 self.bottomCheckboxFrame = QtWidgets.QFrame()
1268 if isMacOS():
1269 self.bottomCheckboxFrame.setContentsMargins(3, 0, 6, 0)
1270 else:
1271 self.bottomCheckboxFrame.setContentsMargins(0, 0, 0, 0)
1272 self.bottomCheckboxLayout = QtWidgets.QGridLayout()
1273 self.alwaysshowCheckbox = QCheckBox(getMessage("forceguiprompt-label"))
1274
1275 self.enableplaylistsCheckbox = QCheckBox(getMessage("sharedplaylistenabled-label"))
1276 self.bottomCheckboxLayout.addWidget(self.showmoreCheckbox)
1277 self.bottomCheckboxLayout.addWidget(self.enableplaylistsCheckbox, 0, 2, Qt.AlignRight)
1278 self.alwaysshowCheckbox.setObjectName(constants.INVERTED_STATE_MARKER + "forceGuiPrompt")
1279 self.enableplaylistsCheckbox.setObjectName("sharedPlaylistEnabled")
1280 self.bottomCheckboxFrame.setLayout(self.bottomCheckboxLayout)
1281
1282 self.mainLayout.addWidget(self.bottomCheckboxFrame, 2, 0, 1, 2)
1283
1284 def tabList(self):
1285 self.tabListLayout = QtWidgets.QHBoxLayout()

Callers 1

__init__Method · 0.95

Calls 4

getMessageFunction · 0.90
isMacOSFunction · 0.90
sizeHintMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected