qmm.ab.widgets module

class qmm.ab.widgets.ABCListRowItem(filename: Optional[str], archive_manager: qmm.filehandler.ArchivesCollection)[source]

Bases: QListWidgetItem

filename

Returns the name of the archive filename, suitable for path manipulations.

hashsum

Returns the sha256 hashsum of the archive.

modified

Return last modified time for an archive, usually time of creation.

name

Return the name of the archive, formatted for GUI usage.

Transfrom the ‘_’ character into space.

refresh_strings()[source]

Called when the game’s folder state changed.

Reinitialize the widget’s strings, recompute the conflicts then redo all triaging and formatting.

set_gradients()[source]
set_text_color()[source]
qmm.ab.widgets.FILESTATE_COLORS = {'conflicts': (135, 33, 39, 255), 'ignored': (219, 219, 219, 255), 'matched': (91, 135, 33, 255), 'mismatched': (132, 161, 225, 255), 'missing': (237, 213, 181, 255)}

Gradients of colors for each file of the tree widget.

class qmm.ab.widgets.FileState(r, g, b, a)[source]

Bases: enum.Enum

An enumeration.

conflicts = (135, 33, 39, 255)
ignored = (219, 219, 219, 255)
matched = (91, 135, 33, 255)
mismatched = (132, 161, 225, 255)
missing = (237, 213, 181, 255)
qcolor