1
0
Fork 0
mirror of synced 2024-09-12 07:36:33 +12:00
Commit graph

49 commits

Author SHA1 Message Date
loathingKernel
837b391350
PathEdit: Allow for the completer's root path to be set at runtime.
This allows to complete from relative paths, such use exe override

Fix constructor argument names to follow Qt's types.
Set the same filters as the dialog for the completer.
Use the completer's icon provider for the dialog.

Force Rare to use Qt's file dialog instead of the native one.
2023-03-15 22:49:18 +02:00
loathingKernel
e55c40448c
Misc: rename get_size to format_size 2023-03-06 00:39:23 +02:00
loathingKernel
0e161eb4d2 Use Worker base class for runnables in legendary settings and ubisoft widget.
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-02-27 23:49:44 +02:00
loathingKernel
5938835249 ExtraWidgets: Remove IndicatorLineEdit and PathEdit and update imports 2023-02-18 17:29:41 +02:00
loathingKernel
ecc1bd8d5c IndicatorLineEdit: Run edit callback function asynchronously
Execute the edit callback function in a thread. By executing it in a thread
we don't have to wait for longer validation procedures to finish to
continue updating the UI. This is most notable in the MoveGamePopUp
which is heavy on disk IO.

Because we cannot use special text formatting in a thread, the
indicator messages have been reworked while also becoming extensible.

A dictionary of extended reasons can be specified through the
`IndicatorLineEdit.extend_reasons()` method.

The dictionary has to follow the following format
```
python
{
	MyIndicatorReasons.REASON: self.tr("Reason message")
	MyIndicatorReasons.OTHER_REASON: self.tr("Other reason message")
}
```

In the above example `MyIndicatorReasons` is a subclass of `IndicatorReasons`
which should be specified as follows

```
python
MyIndicatorReasons(IndicatorReasons):
	REASON = auto()
	OTHER_REASON = auto()
```
2023-02-18 14:37:37 +02:00
loathingKernel
61749f9acd EOSWidget/UbiActivationHelper: Move them from Settings to ImportSync 2022-11-03 22:34:50 +02:00
loathingKernel
3ecbae0564 Utils: Rename utils.py to misc.py to not confuse PyCharm checker 2022-08-02 10:42:38 +03:00
loathingKernel
5c1ff81370 LegendarySettings: clean_manifests expects more values 2022-08-02 10:42:38 +03:00
Dummerle
c26a30d9c9
Add load meta settings for 32 bit and macos 2022-03-21 23:00:32 +01:00
Dummerle
59a59ddfcc
Rename settings_widgets + fix pylint error 2022-03-14 17:23:54 +01:00
Dummerle
58c9e69231
Add MangoHud Settings + move some settings widgets to extra folder 2022-03-14 17:23:54 +01:00
Stelios Tsampas
d6ef44b2f9
Rare: Implement global objects as functions that return a single instance 2022-02-25 20:22:45 +02:00
Stelios Tsampas
fa686c5166
LegendarySettings: Add EosWidget directly in the left layout 2022-02-07 22:10:18 +02:00
Stelios Tsampas
8ac8822194
LegendarySettings: Add Ubisoft and EOS widget to the left layout only 2022-02-07 20:15:17 +02:00
aznd
9b59707a10
Unify strings formatting (#158)
* Part 1: Unifying strings

* Part 2: Unifying strings

* Part 3: Unifying strings

* Fix missing close bracket

* Remove unneeded str()
2022-02-01 22:29:34 +01:00
Dummerle
25c04d2812
Add Reasons to IndicatorLineEdit as tooltip 2022-01-24 16:56:14 +01:00
Dummerle
0cea43f0d1
Add Epic Overlay Settings in Legendary Settings + Update Legendary submodule 2022-01-24 16:56:12 +01:00
Dummerle
021dedc3d6
Add refresh game meta button 2021-12-27 16:33:56 +01:00
Stelios Tsampas
8f89eb6e88
Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
Dummerle
cc95d231b6
Move Ubisoft logic to external class 2021-12-13 20:53:21 +01:00
Dummerle
e2fe157e13
Add Ubisoft activation in legendary settings 2021-12-12 01:46:38 +01:00
Dummerle
f5f1a889c6
Fix many bugs: store, game launch with confirmation; changed some info to debug logs; regenerate placeholder.ts 2021-11-19 23:58:07 +01:00
Stelios Tsampas
7156490952
Add initial implementation of WineResolver
Remove borders from EGLSync lists.
Color install/uninstall buttons correctly in DLC tab
Adjust InstallDialog because the check function runs early now.
2021-11-13 00:34:31 +01:00
Dummerle
a5f26c8a23 Rename shared.legendary_core to core 2021-10-14 23:18:13 +02:00
Stelios Tsampas
e9c0cab47b Woops forgot some adjustments 2021-10-11 11:41:01 +03:00
Dummerle
c9b9ab6814 Fix some typing errors for python 3.8 2021-10-10 22:08:31 +02:00
Stelios Tsampas
463443796d Adjust BrowserLogin to use IndicatorLineEdit
Adjust Locale in `LegendarySettings` to use `IndicatorLineEdit`
Adjust `InstallDialog` to conform with new `PathEdit` `edit_func` specification

This commit temporarily removes `EGLSync` from `LegendarySettings`
as it is being worked on.
2021-10-10 20:47:26 +03:00
Dummerle
3bf6692760 Add shared.py 2021-10-07 20:19:24 +02:00
Dummerle
b951c1af5f Fix locale and update pylint test 2021-09-14 17:56:55 +02:00
Dummerle
1bb33d911c You can now launch and link origin games 2021-09-13 22:27:37 +02:00
Dummerle
bb4f08691a Fix set locale to legendary locale + reformatting 2021-09-13 20:24:09 +02:00
Dummerle
c1338b7526 Add locale settings 2021-09-13 19:46:50 +02:00
Stelios Tsampas
228c3ab03e Move EGL Sync page into the main LegendarySettings page and make it useful. (WIP)
Move GameInfo to its own file.
Use get_pixmap in GameDlcWidget to get the pixmap.
Remove unused function from RareSettings.
Convert About to FormLayout.
2021-09-12 14:23:40 +03:00
Stelios Tsampas
7a9daad2b1 Add more download options in legedary settings tab 2021-09-11 16:08:50 +03:00
Dummerle
d11cc7abf3 add legendary submodule and rename custom_legendary to legendary in imports 2021-09-06 21:10:18 +02:00
Dummerle
134c06a726 Update translation and remove notify-py as dependency 2021-09-01 22:12:27 +02:00
Dummerle
a5997f62ab replace os.name with platform.system() to differentiate between mac and linux 2021-06-20 21:55:31 +02:00
Dummerle
e0916a0fa6 fix some bugs 2021-05-19 21:20:35 +02:00
Dummerle
df5e83352a Add egl sync options 2021-05-19 21:09:14 +02:00
Dummerle
3934b18050 Add structure for egl-sync 2021-05-19 13:33:16 +02:00
Stelios Tsampas
fc8b8bad37 Move .ui and the corresponding .py files into the rare directory under ui for clarity 2021-05-18 01:57:20 +03:00
Stelios Tsampas
8c882177e1 Make PathEdit more self-contained 2021-05-18 01:57:20 +03:00
Stelios Tsampas
748d51f31f Improve PathEdit a bit more
Add placeholder text
Remove some unused variables
Open dialog starting from path if set
2021-05-18 01:57:20 +03:00
Stelios Tsampas
4c0cc0caf9 Follow style on import lines 2021-05-18 01:57:20 +03:00
Stelios Tsampas
b138766f1d Updated the settings UI to use widgets generated through Qt Designer
Since many lines were changed due to components being reused, the more
important are listed below per file. Static strings were moved to the UI files for
translation purposes and some messages have been re-worded.

`extra_widgets.py`: PathEdit now contains the save button and the dialog can also filter by name, all forms using it have been updated
`rare.py`: Updated the look and fixed a bug where the Image Directory wouldn't change if `img_dir` wasn't specified in the settings file
`legendary.py`: Update the look, changed the Max Workers option into a SpinBox
`linux.py`: Update the look, changed Wine Executable option in to a PathEdit that filters for `wine` and `wine64`.
`game_settings.py`: Updated to reflect the changes in `linux.py` settings widget.  Added the system `compatibilitytools.d` to be search for potential proton versions
2021-05-18 01:57:20 +03:00
Dummerle
6deabf4a92 Reformatting, 1.3.0 2021-04-22 14:34:06 +02:00
Dummerle
20663f4992 Download tab issues; Cleanup: use get_size from utils 2021-04-17 10:50:25 +02:00
Dummerle
c0881261a0 Settings improvements 2021-04-08 11:09:17 +02:00
BuildTools
63cfb6727b lowercase snake case 2021-04-07 22:42:30 +02:00
Renamed from rare/components/tabs/Settings/legendary.py (Browse further)