1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00
Rare/rare/components
loathingKernel 0ea4b1a824 Dialogs: Re-implement all dialogs on top of a few common super-classes
Also add a dialog to select optional downloads before verifying
and refactor the move widget into a full-fledged dialog.

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.

Accordingly all dialogs in Rare have been updated to use these classes.
2024-02-12 21:52:07 +02:00
..
dialogs BrowserLogin: Add dedicated application mode to Rare for the webview login page 2024-02-12 21:51:42 +02:00
tabs Dialogs: Re-implement all dialogs on top of a few common super-classes 2024-02-12 21:52:07 +02:00
__init__.py RareCore: Move entitlements request into an independent worker 2024-01-19 01:28:10 +02:00
main_window.py Various WIP 2024-02-12 21:52:07 +02:00
tray_icon.py Various WIP 2024-02-12 21:52:07 +02:00