retype.ui.customisation_dialog

Functions

descl(text)

hline()

npxspinbox(value)

pxspinbox([value, suffix])

Classes

BookViewSettingsWidget(bookview_settings[, ...])

CheckBox(desc[, parent])

ConsoleFontSelector(font[, parent])

CustomisationDialog(config, window, ...[, ...])

Delegate([parent])

LibraryPathsModel(paths[, parent])

LibraryPathsWidget(library_paths[, parent])

PathDelegate([parent])

PathSelector(path[, parent, window_title])

PromptEdit(prompt[, parent])

RDictDelegate([parent])

RDictEntryEditor(substr, reps[, parent])

RDictModel(rdict[, parent])

RDictWidget(rdict[, parent])

WindowGeometrySelector(window, dims[, parent])

class retype.ui.customisation_dialog.BookViewSettingsWidget(bookview_settings, parent=None)[source]

Bases: QWidget

changed
setSaveFontSizeOnQuit(state)[source]
set_(settings)[source]
updateSetting(name, val)[source]
class retype.ui.customisation_dialog.CheckBox(desc, parent=None)[source]

Bases: QCheckBox

changed
set_(value)[source]
value()[source]
class retype.ui.customisation_dialog.ConsoleFontSelector(font, parent=None)[source]

Bases: QFontComboBox

set_(font)[source]
class retype.ui.customisation_dialog.CustomisationDialog(config, window, saveConfig, prevView, getBookViewFontSize, parent=None)[source]

Bases: QDialog

accept(self)[source]
maybeSaveCertainThings()[source]
restoreDefaults()[source]
revert()[source]
setSelectors(config)[source]
sizeHint(self) QSize[source]
update(self)[source]
update(self, a0: QRect) None
update(self, a0: QRegion) None
update(self, ax: int, ay: int, aw: int, ah: int) None
class retype.ui.customisation_dialog.Delegate(parent=None)[source]

Bases: QStyledItemDelegate

paint(self, painter: QPainter, option: QStyleOptionViewItem, index: QModelIndex)[source]
sizeHint(self, option: QStyleOptionViewItem, index: QModelIndex) QSize[source]
toDoc(index)[source]
class retype.ui.customisation_dialog.LibraryPathsModel(paths, parent=None)[source]

Bases: QAbstractListModel

INVALID_TEMPLATE = '<span style="color:red">{}</span>'
changed
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
flags(self, index: QModelIndex) Qt.ItemFlags[source]
insertRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]
removeRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]
rowCount(self, parent: QModelIndex = QModelIndex()) int[source]
setData(self, index: QModelIndex, value: Any, role: int = Qt.ItemDataRole.EditRole) bool[source]
class retype.ui.customisation_dialog.LibraryPathsWidget(library_paths, parent=None)[source]

Bases: QWidget

addPath()[source]
changed
modifyPath()[source]
removePath()[source]
selectedRowIndex()[source]
setModel(library_paths)[source]
set_(library_paths)[source]
class retype.ui.customisation_dialog.PathDelegate(parent=None)[source]

Bases: Delegate

createEditor(self, parent: QWidget, option: QStyleOptionViewItem, index: QModelIndex) QWidget[source]
setModelData(self, editor: QWidget, model: QAbstractItemModel, index: QModelIndex)[source]
class retype.ui.customisation_dialog.PathSelector(path, parent=None, window_title='Select path')[source]

Bases: QWidget

browse()[source]
changed
set_(value)[source]
value()[source]
class retype.ui.customisation_dialog.PromptEdit(prompt, parent=None)[source]

Bases: QLineEdit

set_(prompt)[source]
class retype.ui.customisation_dialog.RDictDelegate(parent=None)[source]

Bases: Delegate

createEditor(self, parent: QWidget, option: QStyleOptionViewItem, index: QModelIndex) QWidget[source]
setModelData(self, editor: QWidget, model: QAbstractItemModel, index: QModelIndex)[source]
class retype.ui.customisation_dialog.RDictEntryEditor(substr, reps, parent=None)[source]

Bases: QWidget

reps()[source]
substr()[source]
class retype.ui.customisation_dialog.RDictModel(rdict, parent=None)[source]

Bases: QAbstractListModel

INVALID_TEMPLATE = '<div style="color:red"><p><b>Substring:</b> <code>\'<u style="color:blue">{0}</u>\' ({1})</code><br>\nReplacements list: <code><b>{2}</b></code></p></div>'
TEMPLATE = '<p><b>Substring:</b> <code>\'<u style="color:blue">{0}</u>\' ({1})</code><br>\nReplacements list: <code><b>{2}</b></code></p>'
changed
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
flags(self, index: QModelIndex) Qt.ItemFlags[source]
insertRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]
removeRows(self, row: int, count: int, parent: QModelIndex = QModelIndex()) bool[source]
rowCount(self, parent: QModelIndex = QModelIndex()) int[source]
setData(self, index: QModelIndex, value: Any, role: int = Qt.ItemDataRole.EditRole) bool[source]
class retype.ui.customisation_dialog.RDictWidget(rdict, parent=None)[source]

Bases: QWidget

addEntry()[source]
changed
modifyEntry()[source]
removeEntry()[source]
selectedRowIndex()[source]
setModel(rdict)[source]
set_(rdict)[source]
class retype.ui.customisation_dialog.WindowGeometrySelector(window, dims, parent=None)[source]

Bases: QWidget

changed
connectSelector(name, signal)[source]
setSaveOnQuit(state)[source]
setSelectorsValuesByWindow()[source]
set_(dims)[source]
updateDim(name, val)[source]
valuesByWindow()[source]
retype.ui.customisation_dialog.descl(text)[source]
retype.ui.customisation_dialog.hline()[source]
retype.ui.customisation_dialog.npxspinbox(value)[source]
retype.ui.customisation_dialog.pxspinbox(value=0, suffix=' px')[source]