Commit Graph
5037 Commits
Author SHA1 Message Date
D G Turner 4af395ebb9 GUI: Jamnitorial Cleanup of Code Formatting
No functional change.
2024-03-30 17:26:24 +00:00
D G Turner e52f32cdd2 GUI: Fix Signed vs. Unsigned GCC Compiler Warnings 2024-03-30 17:17:04 +00:00
kunxl-gg da3c3d097c GUI: Fix selector position after removing a game.
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Added algorithm for feature

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Fix merge conflicts

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Added conditional statement

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Removed equality sign in getNextPos

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Fix lint issues

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Fix redundant variables

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Removed redundant include

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Fix lint issues

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>

Fix lint issues

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
2024-03-28 13:47:02 +01:00
Matthew Jimenez 9cb227e000 GUI: Replace byte arrays with Palette class in image album dialog 2024-03-14 08:42:07 +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
Le Philousophe 4591a74b82 GUI: Don't display save and extra path when it's the default one 2024-03-02 12:59:03 +01:00
Christian Kündig 82d0a4b06c EMSCRIPTEN: Load icons directly (not from an archive) 2024-02-27 17:07:13 +01:00
Darkhood148 1acc434bf5 GUI: Improve algorithm of drag-selection process in gui/console.cpp
Redrawing only the affected lines instead of the whole dialog box
2024-02-11 16:35:52 +01:00
Darkhood148 cc214d0f4d GUI: Implement auto scrolling when drag-selecting text 2024-02-11 16:35:52 +01:00
Darkhood148 2f552e423c GUI: Add feature to copy text from console 2024-02-11 16:35:52 +01:00
Torbjörn Andersson e14e571ec1 GUI: Hopefully fix download dialog regression
I don't know how to test this, but appendComponent() returns a new path,
so use that instead of assuming it added things to the existing path. I
discussed this with lephilousophe before committing.
2024-02-10 10:43:04 +01:00
Torbjörn Andersson a1c8db3201 JANITORIAL: Clean up some whitespace and double semicolons 2024-01-29 19:32:00 +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
Cameron Cawley f3fbd2477c GRAPHICS: Allow specifying separate xdpi and ydpi values in loadTTFFont 2024-01-08 23:41:50 +01:00
elasota 6a1909a162 GUI: Fix garbled browser last path on Windows 2024-01-08 17:18:40 +02:00
Cameron Cawley f63ed4b9c3 COMMON: Fix translation of error messages 2024-01-02 01:00:54 +02:00
Eugene Sandulenko 8722701a94 ALL: Set copyright year to 2024 2024-01-01 00:04:27 +01:00
Eugene Sandulenko be1781ea40 GUI: Disable translations in the HelpDialog
MacFonts have only ASCII, not even accented characters, making
all of the translation renderings broken.
2023-12-31 09:51:36 +01:00
Eugene Sandulenko bf3117e935 COMMON: Switch debug channels to a hashmap
We used to use a bitfield there, which was restricting the total
number of flags to 32 (unless we switch to uint64, which is suboptimal).
Moreover, with the introduction of the global debug flags, we have
even fewer bits to flip, and this shared nature was restricting
the introduction of more global debug channels.

The goal for the bitfield was to make it possible to put a debug message into
more than one channel. But this feature was practically not used by the engines.
This was removed by the previous commits.

This commit turns the debug channels into a hashmap and puts the global channel
IDs after 100000.

There is no absolute need to renumber the existing debug channels, but
I could follow with an engine or two.
2023-12-28 01:41:10 +01:00
Cameron Cawley 5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Eugene Sandulenko 00440cfe86 HELP: Added explanation what ScummVM is and where to get help for Android and iOS 2023-12-26 15:21:23 +01:00
Le Philousophe ed9ded9e83 GUI: Migrate GUI to Path class 2023-12-24 13:19:25 +01:00
Le Philousophe fc3f03d21d COMMON: Make EVENT_DROP_FILE use a Path 2023-12-24 13:19:25 +01:00
Le Philousophe db41390587 BACKENDS: Make browser_lastpath a Path object 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 802c91554f COMMON: Make extrapath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe bfc61439fb COMMON: Make themepath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe dc7fadef28 COMMON: Make iconspath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe 87e9a406fa BACKENDS: NETWORKING: Use Path instead of String for local files
Use references when applicable too.
2023-12-24 13:19:25 +01:00
Le Philousophe 460be938f3 CLOUD: Make cloud use Path for local folders and files 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
Le Philousophe fd0267cfd1 GUI: Make TextViewerDialog use a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe 74a6158347 GUI: Add a PathWidget
It stores a Path and displays an optional placeholder if the path is
empty.
It is based on StaticTextWidget and doesn't allow edits.
2023-12-24 13:19:25 +01:00
Eugene Sandulenko 5a26faa859 GUI: Regenerate default icons set 2023-12-16 21:31:44 +01:00
Eugene Sandulenko 91c04fa311 DISTS: Rename cloud_connection.zip to helpdialog.zip and add it to the dist lists 2023-12-16 21:09:36 +01:00
CadiH c4e9f37368 GUI: adds cloud connection to inline help 2023-12-16 20:58:44 +01:00
Lars Sundström 8db736f155 GUI: Add scrollbar to backend options widget
Make the backend options widget be of type ScrollContainerWidget.
This will allow backends to decide whether the options dialogue
should be scrollable or not.

Note, this changes the default padding. If not changing the padding
the scrollbar might disappear. Update the padding in each backend
instead.
2023-12-16 19:37:33 +01:00
Eugene Sandulenko dd5c527ef9 GUI: Exclude fonts-cjk from theme building 2023-12-15 12:51:56 +01:00
Thierry Crozat ebf5979cf4 GUI: Fix resizing RichTextWidget
There were two main issues:
1. The intermediate surface on which the rich text is drawn was not
   resized when the widget was resized. This resulted in text being
   cut.
2. The Graphics::MacText does not properly handle width changes,
   Resize is not handled at all if there is a table, but even when
   there is no table it can have issues with the font.
   As a workaround it is now recreated instead of being resized.
2023-12-14 16:56:48 +01:00
Thierry Crozat bdd0f36fe6 GUI: Bump theme version and regenerate themes 2023-12-14 16:56:48 +01:00
Thierry Crozat 5d118c4849 GUI: Add inner margin in RichTextWidget 2023-12-14 16:56:48 +01:00
Thierry Crozat 7b7bf3f711 GUI: Fix layout for HelpDialog tab content
No specific layout was defined for the rich text widget. It tried
to use the layout of the tab widget, but that did not work properly.
The rich text widget was at the correct location, but did not have
the correct size. It was bigger than the parent tab widget, which
can be clearly seen when the scrollbar is visible.
2023-12-14 16:56:48 +01:00
Thierry Crozat eabc131307 GUI: Improve a bit the "Where to get the games" help text 2023-12-12 22:46:26 +00:00
Eugene Sandulenko 743bd78fb4 GUI: Fix crash when adding a game in some circumstances 2023-12-12 01:16:39 +01:00
Le Philousophe 26b02dcd91 GUI: Clear error when starting an new state when downloading 2023-12-10 11:45:26 +01:00
Le Philousophe f1ae05d3b0 GUI: Cancel pending requests when clearing cache
And properly restart a file list download
2023-12-10 11:45:20 +01:00