Commit Graph

761 Commits

Author SHA1 Message Date
Filippos Karapetis e157b7044e GUI: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
sluicebox c67e41688c GUI: Fix Rotation mode option
- Changing rotation back to "<default>" had no effect
- Unchecking "Override" checkbox did not change rotation
- "Override" checkbox initialization was not affected by rotation
2024-12-05 15:01:22 -08:00
Eugene Sandulenko d77634d7fd JANITORIAL: Whitespace fix to kick Weblate 2024-11-08 02:08:25 +01:00
Vladimir Serbinenko 488353480f SDL, COMMON: Support screen rotation 2024-09-29 02:10:39 +03:00
Tarek Soliman abd00eeefe GUI: Fix saving Global Options when cloud is disabled 2024-08-29 18:55:39 -05:00
Tarek Soliman 9428447537 GUI: Fix opening Global Options when cloud is disabled
Regression caused by 0beb356156
2024-08-09 02:34:04 -05:00
scummvmuser 43f88c7d01 GUI: rebuild if _aspectCheckbox is expected
Fixes or works around https://bugs.scummvm.org/ticket/15243 . This may
not be appropriate, but it avoids a segfault (nil _aspectCheckbox) for
me when I've specified `--disable-aspect` and switch from SDL to
OpenGL, anyway.
2024-07-04 19:12:41 +03:00
Le Philousophe d01827b509 GUI: Make auto saves update check work with PluginManagerUncached
This also unloads detection before loading the engines.
2024-06-30 18:39:06 +02:00
Le Philousophe c93f53b491 PLUGINS: Rename getEngineFromMetaEngine to getEngineFromDetectionPlugin
Update comments and variable names accordingly.
This now matches what this function really do.
2024-06-30 18:39:06 +02:00
Le Philousophe 2645b1431c PLUGINS: Rename findPlugin to findDetectionPlugin
This function does return a MetaEngineDetection plugin
2024-06-30 18:39:06 +02:00
Eugene Sandulenko 0beb356156 GUI: Solve accumulated mess with the cloud defines
We were disabling way too much things when the cloud was disabled,
e.g. icon packs are now available when cloud is disabled.

Also, now we enable local server when SDL_Net is present, even if the
cloud is disabled.
2024-06-14 15:21:34 +02:00
Cameron Cawley afb383f3b1 GUI: Remove automatic scrollbars from TabWidget 2024-06-14 01:15:12 +02:00
Cameron Cawley 35077b3e95 GUI: Use a separate scroll container for the paths tab 2024-06-14 01:15:12 +02:00
Cameron Cawley 65e843c5da GUI: Separate the scroll container from the remap widget 2024-06-14 01:15:12 +02:00
athrxx d7e8a54756 AUDIO/GUI: add Mac sound option 2024-05-30 20:10:51 +02:00
Matthew Jimenez 5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Lars Sundström 3c36c1fbc3 GUI: Put backend options tab elements into a ScrollContainer
The backend options tab is for backend specific options. The backends
supporting it implements the function buildBackendOptionsWidget which
defines the options elements and layout.

The backend options tab layout may differ depending on the current
domain. The options in the "Global options" tab applies to all games
while the options in the "Game options" tab only applies to a specific
game. The options in the "Global config" options tab can be set during
game play. Some options, e.g. graphics cannot be changed while running
the game while backend options can.

The first version of the backend options tab was a non-scrollable
container. The "Game options" tab includes an "Override Global options
checkbox" which, when checked, enables the options defined by the
backend.

The number of iOS7 backend options increased rapidly which caused some
options to fall outside the tab container on screens with limited
space in height. An attempt to fix that was made by the same creator
of this commit in the commit: 8db736f155

The attempt was not perfect in any way, else this commit wouldn't
exist... The "Override Global options checkbox" on the "Game options"
tab became misplaced. It also required the backend to add padding
to GUI elements it shouldn't know of.

To fix this properly put the backend options tab in a single Scroll-
Container. This way the "Override Global options checkbox" can be
properly placed related to the backend options widgets. All backend
options can also be accessed in every backend options tab layout,
Global options, Game options and Global config thanks to the scrollbar
automatically provided by the ScrollContainer.

Update all themes with the new layout.
2024-03-11 01:03:37 +01:00
Eugene Sandulenko 6db11ef605 GUI: Allow manual setting of custom GUI scale values
We keep this value and do not override it
2024-01-20 20:56:53 +01:00
Eugene Sandulenko c1aca01197 GUI: Add percentage values to the gui scale values 2024-01-20 20:34:45 +01:00
Eugene Sandulenko 10a7b42587 GUI: Added more GUI scale values
Should we add a slider perhaps?
2024-01-20 20:15:59 +01:00
elasota 6a1909a162 GUI: Fix garbled browser last path on Windows 2024-01-08 17:18:40 +02:00
Cameron Cawley 5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe ed9ded9e83 GUI: Migrate GUI to Path class 2023-12-24 13:19:25 +01:00
Le Philousophe 2f34975164 COMMON: Make shaders API use the Path class 2023-12-24 13:19:25 +01:00
Le Philousophe 01ebece807 COMMON: Make getDefaultConfigFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe d9a8131ba2 COMMON: Make getDefaultLogFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Thierry Crozat 0577893055 GUI: Indicate when a default soundfont is used in options 2023-12-03 16:17:32 +00:00
Eugene Sandulenko ab2b2b2396 GUI: CLarified captions for downloading shaders and icons
THe users get confused as they think it is some kind of a refresh.

Use "Download Icons" instead of "Update Icons". Same for the shaders.
2023-11-11 00:00:18 +01:00
Le Philousophe 0043d344a9 BACKENDS: Avoid passing arguments by value in cloud and networking
Use references everywhere it's possible.
Use override keyword to raise errors when there are discrepancies.
2023-10-29 01:51:38 +02:00
Thierry Crozat 8f9cdff4a7 GUI: Add function in GuiManager to query if low-res GUI should be used
The same condition was scattered around in the code to switch between
normal labels and images and their lowres counterparts. Factorizing
that condition in a function will allow changing it easily.
2023-10-09 21:04:08 +01:00
Thierry Crozat aa7572ef1e GUI: Fix testing width for lowres labels on HiDPI screens 2023-10-09 21:04:08 +01:00
AndywinXp 74769d00ff GUI: Fix crash when no shader was set 2023-10-04 23:39:35 +02:00
Eugene Sandulenko 272f884419 GUI: Fix crash in shader controls 2023-09-20 09:49:09 +02:00
Eugene Sandulenko 4875573f66 GUI: Disable shader controls instead of hiding them. Prvides better UX 2023-09-17 20:38:37 +02:00
Ankush Dutt c1d1e4e411 DLC: Add dlcpath in Global Options 2023-09-14 08:22:56 +02:00
Cameron Cawley 9c86add634 ENGINES: Remove MetaEngineDetection::parseAndCustomizeGuiOptions() 2023-08-28 22:59:50 +02:00
elasota 8bb2afd217 AUDIO: Change default GM device to "auto" 2023-08-28 22:06:19 +02:00
Eugene Sandulenko d9dbed2d3c GUI: Better wording for the fixed size font checkbox tooltip 2023-07-19 21:34:33 +02:00
Eugene Sandulenko 73ea1caedf GUI: Added checkbox to disable BDF scaling. Bump theme version 2023-07-19 15:30:22 +02:00
antoniou79 68c293a004 GUI: Ommit aspect ratio checkbox if this feature is missing
Also fix compilation when building for --disable-aspect (buggy end bracket in backends/graphics/surfacesdl/surfacesdl-graphics.cpp)
2023-06-17 20:21:29 +02:00
Miro Kropacek 6e4d7798f9 GUI: Remove redundant redraw calls
When calling any of:

- Widget::setEnabled
- EditTextWidget::setEditString
- EditableWidget::setEditString
- StaticTextWidget::setLabel

there is no need to call neither GuiManager::scheduleTopDialogRedraw nor
Widget::markAsDirty afterwards -- they set up the call by themselves.

Also, refactor a couple of code blocks into calling just
GuiManager::redrawFull as it does the same thing.
2023-05-10 22:52:48 +02:00
elasota eab1a92a6d GUI: Fix signed/unsigned mismatches 2023-04-09 12:50:01 +02:00
Alexander Tkachov f3149a9b5d CLOUD: Add new connection wizard
- remove Options widgets of the old wizard;
- add CloudConnectionWizard dialog;
- remove old widgets and add new ones in the layouts;
- update local webserver to allow passing a callback that needs to be called if storage was connected via /connect_cloud.
2023-04-08 16:20:11 +02:00
D G Turner 0cfc163515 GUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warning 2023-03-28 23:27:10 +01:00
Eugene Sandulenko 8952ceaa2f GUI: Process empty log path and gracefully process unreadable paths 2023-03-27 00:24:46 +02:00
Eugene Sandulenko 1737d9bd9d I18N: Fix I18N comment placement 2023-03-25 20:54:17 +01:00
Eugene Sandulenko 07a52898ed GUI: Reflect command line override for the log path 2023-03-25 19:44:15 +01:00
Eugene Sandulenko cf578e832b GUI: Expose Debug Level int the GUI (Misc tab), bump theme version 2023-03-25 17:11:21 +01:00
Eugene Sandulenko 42c68234bb GUI: Display scummvm.log path and add viewer 2023-03-25 17:11:21 +01:00
Cameron Cawley 079713e7a8 GUI: Simplify palette code 2023-02-08 00:09:39 +01:00