Start adding options for the editor

This commit is contained in:
Raoul Snyman 2021-08-03 19:55:51 -07:00
parent 4ae8ac1397
commit 67bdb36c31
Signed by: raoul
GPG Key ID: F55BCED79626AE9C

View File

@ -38,12 +38,18 @@ class ConfigureDialog(QtWidgets.QDialog):
self.category_stack = QtWidgets.QStackedWidget(self)
self.category_stack.setObjectName('category_stack')
self.category_layout.addWidget(self.category_stack)
# General settings
self.general_page = QtWidgets.QWidget()
self.general_page.setObjectName('general_page')
self.category_stack.addWidget(self.general_page)
# Editor settings
self.editor_page = QtWidgets.QWidget()
self.editor_page.setObjectName('editor_page')
self.category_stack.addWidget(self.editor_page)
self.editor_layout = QtWidgets.QFormLayout(self.editor_page)
self.editor_font_combobox = QtWidgets.QFontComboBox(self.editor_page)
self.editor_layout.addRow('Font', self.editor_font_combobox)
# Renderer settings
self.renderer_page = QtWidgets.QWidget()
self.renderer_page.setObjectName('renderer_page')
self.category_stack.addWidget(self.renderer_page)
@ -54,6 +60,7 @@ class ConfigureDialog(QtWidgets.QDialog):
self.render_options_stack = QtWidgets.QStackedWidget(self)
self.render_options_stack.setObjectName("render_options_stack")
self.render_layout.addWidget(self.render_options_stack)
# Buttons
self.button_box = QtWidgets.QDialogButtonBox(self)
self.button_box.setOrientation(QtCore.Qt.Horizontal)
self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel |