1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00
Rare/rare/ui
loathingKernel 400625975d Dialogs: Re-implement Launch and Login dialogs on top of a few common super-classes
To keep dialogs in a common format and allow them to share the same
properties, three classes of dialogs have been implemented inheriting from
each other.

The classes are `BaseDialog` -> `ButtonDialog` -> `ActionDialog`

* Basedialog: is the basis of all dialogs and is responsible for
rejecting close requests from the window manager and the keyboard.
It also restricts access to `exec()` and `exec_()` because they are harmful.
It serves as the basis of Launch and Login dialogs

* ButtonDialog: is offering buttons for accepting or rejecting the presented
option. It implements its own buttons and exposes abstract methods to
implement handling in them. It restricts access to `close()` because these
dialogs should always product a result.
It is the basis of Uninstall, Selective dialogs.

* ActionDialog: in addition to the ButtonDialog, it offers an action buttom
with to validate the form or to make the dialog unable to close. It serves
as the basis of Install and Move dialogs.
2023-12-24 21:08:26 +02:00
..
components Dialogs: Re-implement Launch and Login dialogs on top of a few common super-classes 2023-12-24 21:08:26 +02:00
utils Ui: Delete QtCore.QMetaObject.connectSlotsByName from UI python files 2023-02-04 17:38:07 +02:00
__init__.py Add __init__.py in ui folder for setuptools.find_packages() 2021-05-21 16:48:33 +02:00