Nebuleon Fumika
349e758b3b
Load previews from the previews/ subdir of the current dir in selectors.
...
This does away with per-link selector directories in link files. It is assumed
that, if a user has access to write files to be launched by an application at
some location, he or she also has access to write files in the previews/
subdirectory under it.
2014-07-17 02:02:23 +02:00
Nebuleon Fumika
aca6025533
Selector previews are now shown with alpha 128 and fill the screen.
...
The alpha change is so that:
* some of the background is still visible, which includes the name of the
application for which the selector is being called, its description, and
text in the status bar;
* the preview, if bright, does not obscure the file names too much.
Selector previews are now shown full-screen (320x240) instead of being a
160x160px square on the right.
2014-07-17 02:00:12 +02:00
Paul Cercueil
917cbf7208
Various changes related to translations
2014-07-15 14:25:17 +02:00
Paul Cercueil
c72266d771
Remove the 'Selector alias file' feature
...
Who seriously used that?
2014-07-15 14:25:17 +02:00
Paul Cercueil
e63ad99ba9
Set row size to 20px minimum in file list if browsing directories
2014-01-16 16:02:29 +01:00
Paul Cercueil
ca3df65daa
Remove hardcoded sizes and positions in Selector
2014-01-16 01:19:30 +01:00
Paul Cercueil
e86a96c73f
Fixes the Selector returning empty file/directory names
...
This fixes commit ba5ef51269
2013-09-07 16:47:18 -04:00
Paul Cercueil
ba5ef51269
Make the Selector return the canonicalised absolute pathname
2013-09-05 19:23:27 -04:00
Paul Cercueil
20339c8849
Allow exiting the selector with B when not in explorer mode
2013-08-30 07:02:56 -04:00
Maarten ter Huurne
6c80a663e1
Check for empty strings using empty() instead of comparing to ""
2013-08-16 09:16:04 +02:00
Maarten ter Huurne
8472acc26c
Removed checks for manuals and screenshots in JPEG and BMP format
...
Support for loading JPEG and BMP images was removed a long time ago,
so there is no point in looking for files in those formats.
2013-08-14 13:30:17 +02:00
Maarten ter Huurne
b18e3fa6a8
Don't pass screen coordinates to drawScrollBar()
...
The scroll bar always spans the content area of the screen: the
position and height depend only on the theme and not on who is
drawing it.
Note that the coordinates passed were wrong in most cases, so this
commit fixes the scroll bar positioning for several dialogs.
2013-08-14 11:47:29 +02:00
Maarten ter Huurne
724aefe482
Renamed ASFont class to just Font
...
Originally the font implementation was based on SFont, but it was
recently replaced by an SDL_ttf based implementation, so the name
no longer made sense.
2013-08-03 22:30:12 +02:00
Maarten ter Huurne
fb8f4e6e72
The "tr1" namespace is no longer needed now that we're on C++11
2013-08-01 14:37:56 +02:00
Maarten ter Huurne
f28e4f6d89
Minimized gmenu2x.h.
...
Everything that does not need to be shared was moved to gmenu2x.cpp.
2011-10-23 17:27:29 +02:00
Maarten ter Huurne
aea1c44020
utilities: Replace min/max functions by the versions from STL.
2011-10-23 17:00:23 +02:00
Maarten ter Huurne
a01d892eb6
More header cleanups.
...
This time the focus was on removing namespace imports from headers.
2011-10-23 16:43:56 +02:00
Maarten ter Huurne
e0e7e87ebc
Massive header cleanup.
...
The main goal is to avoid including "gmenu2x.h" from headers.
But I did various other cleanups as well while I was at it.
2011-10-23 16:13:02 +02:00
Maarten ter Huurne
315bf0a180
InputManager: C++-style type definitions.
...
There is no need to typedef enums and structs in C++.
Put types defined by InputManager inside the class namespace.
Changed type names to CamelCase.
2011-10-23 09:04:12 +02:00
Ayla
759eefd676
The files "a.png" and "b.png" have been renamed to "cancel.png" and "accept.png".
2011-09-18 03:40:33 +02:00
Ayla
826d622285
Modified the key shortcuts for the generic file/dir selector class.
2011-09-18 03:23:47 +02:00
Maarten ter Huurne
8a81837c04
Surface: Make pixel format conversion explicit.
...
Instead of having the copy constructor convert to display format, the new
copy constructor preserves the pixel format and a separate method was
introduced to convert surfaces to display format.
The code was made more robust as well: it should no longer crash if the
wallpaper cannot be loaded.
2011-06-03 11:46:36 +02:00
Maarten ter Huurne
a35a7e2c35
Introduced enums for text alignment in the ASFont class.
2011-05-09 05:17:25 +02:00
Ayla
563cb34a89
Rewrote the whole input system.
...
Gmenu2X will no longer eat 100% CPU ;)
2010-09-17 22:34:26 +02:00
Ayla
7c9364780b
Replaced every message output by calls to the log macros.
2010-09-17 22:31:09 +02:00
bartbes
e9941dc4fd
Now only allows file browsing up to /, CARD_ROOT is /card/
2010-08-03 17:49:34 +02:00
bartbes
ba9af53c21
Changed the file browser to use / as root and added ability to see extensionless files (i.e. executables)
2010-08-03 17:32:54 +02:00
Maarten ter Huurne
8032d96a17
Converted public fields of FileLister to private.
2010-07-27 21:41:35 +02:00
Maarten ter Huurne
28a041ea80
Add constant for SD card root.
...
In the future, this should be part of a device abstraction, but having a single constant is an improvement over having duplicated string literals.
2010-07-04 03:19:52 +02:00
Maarten ter Huurne
660b4f01aa
In "utilities.h", only include those headers that are needed by the definitions in "utilities.h".
2010-06-19 04:44:03 +02:00
Maarten ter Huurne
9f21df7fed
Replaced "hash_map" by "unordered_map" to get rid of deprecation warnings.
2010-06-18 00:45:16 +02:00
Lars-Peter Clausen
6da573f303
Move methods only used by dialogs from the GMenu2x class to a common base class
...
for all dialog classes.
2010-05-05 14:35:52 +02:00
Lars-Peter Clausen
dd0c4eb72a
Fix rootdir check.
2010-05-03 14:20:56 +02:00
Lars-Peter Clausen
7fd1ab032a
Use a simple array instead of a hashmap for the colors.
2010-05-02 19:53:06 +02:00
Lars-Peter Clausen
40a26e1a9c
pass strings by reference where possible
2010-05-02 14:38:16 +02:00
Mirko Lindner
cddcd72e33
initial commit - needs clean-up
...
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
2010-02-04 12:33:47 +01:00