Xiangfu Liu
9986a1f08f
update the gmenu2x.sh, add shell script head
...
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2010-10-17 20:46:34 +08:00
Ayla
69c702f88c
When adding a new link, the default brightness is now -1.
...
Note that the brightness values between -1 and 5 won't be accepted, and will be set back to 5.
2010-10-13 22:15:55 +02:00
Ayla
5cd92b76ae
The selector filters will now match also the files with an extension in uppercase.
...
Please note that the selector filters have to be entered in lowercase.
2010-10-13 22:09:43 +02:00
Ayla
ffdc8de2ac
User can now increase/decrease by 10 the values of clock, brightness etc.
2010-09-19 00:50:16 +02:00
Ayla
08468776f4
When a foo.dge file is loaded, the image file foo.png will be automatically assigned.
2010-09-18 21:28:54 +02:00
Ayla
ddb5171750
Rewrote the input.conf file so that it will match the previous changes.
2010-09-17 22:35:53 +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
c6c3dfe8e0
Added some signal handlers, so that gmenu2x will exit correctly if a TERM signal occurs or after a segfault.
2010-09-17 22:32:41 +02:00
Ayla
7c9364780b
Replaced every message output by calls to the log macros.
2010-09-17 22:31:09 +02:00
Ayla
7d0c0e958c
Adding a new file, debug.h, containing useful macros to output information:
...
DEBUG, INFO, WARNING, ERROR. The log level can be set using the LOG_LEVEL define.
2010-09-17 22:28:23 +02:00
Xiangfu Liu
0775638dbc
add the Picture URL file README,
2010-09-05 22:58:12 +08:00
Xiangfu Liu
b41d0a1405
add some wallpapers,
...
picture lisensed at :
http://creativecommons.org/licenses/by-sa/2.0/deed.en
http://creativecommons.org/licenses/by/2.0/deed.en
URL:
http://www.flickr.com/photos/55948751@N00/3831916479/sizes/m/in/photostream/
http://www.flickr.com/photos/theklan/1276710183/sizes/z/in/photostream/
http://www.flickr.com/photos/libertinus/891434640/sizes/z/in/photostream/
http://www.flickr.com/photos/hamed/281311122/sizes/z/in/photostream/
2010-09-05 22:45:35 +08:00
bartbes
5c05348ba9
Automatically switches CARD_ROOT to / when CARD_ROOT doesn't exist
2010-09-01 22:50:43 +02:00
bartbes
cf9628a4cc
More fixed for when CARD_ROOT doesn't exist
2010-09-01 22:11:24 +02:00
bartbes
6381674f57
Fixed segfault when CARD_ROOT didn't exist & added _CARD_ROOT
...
compile-time define to set CARD_ROOT
Note that you shouldn't set CARD_ROOT (or _CARD_ROOT) to /, because that
might mess things up.
2010-09-01 17:37:27 +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
b54a595e26
Improved conversion from color enum to string and vice versa.
...
The stringToColor() and colorToString() methods were changed into file-scope functions, so they can be inlined by the compiler.
The colorNames array is now used for lookups in both directions, removing duplication of the color names.
The missing "selectionBg" entry was added to the colorNames array.
2010-07-28 16:15:52 +02:00
Maarten ter Huurne
c91a190f28
Remove support for exceptions.
...
This reduces the binary size by almost 150K.
2010-07-28 03:55:00 +02:00
Maarten ter Huurne
599628fa38
Remove Google sparsehash library.
...
GMenu2X now uses tr1::unordered_map instead, which results in a much smaller binary.
The Google library might have its uses when high performance is required, but for us a smaller binary is more important since that reduces startup time.
2010-07-28 03:37:40 +02:00
Maarten ter Huurne
4ddc189847
Use tr1::unordered_map instead of google::dense_hash_map in class GMenu2X.
...
This reduces the binary size by about 260K.
2010-07-28 03:31:41 +02:00
Maarten ter Huurne
4dade329f7
Use tr1::unordered_map instead of google::dense_hash_map in SurfaceCollection.
...
This reduces the binary size by about 45K.
2010-07-28 03:16:40 +02:00
Maarten ter Huurne
c84fea65a2
Minimize namespace pollution by SurfaceCollection class.
2010-07-28 03:13:27 +02:00
Maarten ter Huurne
d082f7f280
Minimize namespace pollution in MenuSetting class hierarchy.
...
This should be done for all source files, but it is too much to do all at once.
2010-07-28 02:36:46 +02:00
Maarten ter Huurne
961e030670
Made MenuSettingMultiString a subclass of MenuSettingStringBase.
2010-07-28 02:06:49 +02:00
Maarten ter Huurne
44bed79d5c
Give adjustInput() an empty default implementation and remove empty overrides.
...
Again a slight reduction in binary size.
2010-07-28 01:52:05 +02:00
Maarten ter Huurne
d1d55a7666
Added MenuSettingStringBase, an abstract base class for MenuSettingString, MenuSettingFile and MenuSettingDir.
...
This removes a lot of duplicate source code and also decreases the binary size slightly.
2010-07-28 01:46:32 +02:00
Maarten ter Huurne
9d05af2881
Removed duplicate code between MenuSettingFile and its MenuSettingImage subclass.
...
Also performed some cosmetic fixes.
2010-07-28 00:54:00 +02:00
Maarten ter Huurne
ac30153cfc
Declared methods abstract where possible; moved destructor implementation out of header.
...
Together this reduces the binary size by about 7.5K on mipsel.
2010-07-28 00:38:47 +02:00
Maarten ter Huurne
eff06b0319
Remove code duplication between the two constructors of MenuSettingBool.
2010-07-27 23:45:53 +02:00
Maarten ter Huurne
9fcaa2b8fa
Give LinkApp a direct reference to the InputManager object instead of fetching it from the GMenu2X object.
2010-07-27 23:22:46 +02:00
Maarten ter Huurne
0ce743426a
Give SettingsDialog a direct reference to the Touchscreen and InputManager objects instead of fetching them from the GMenu2X object.
2010-07-27 23:09:16 +02:00
Maarten ter Huurne
d03dbea9bd
Give InputDialog a direct reference to the Touchscreen and InputManager objects instead of fetching them from the GMenu2X object.
2010-07-27 22:56:03 +02:00
Maarten ter Huurne
4468464505
Give Button a direct reference to the Touchscreen object instead of fetching it from the GMenu2X object.
2010-07-27 22:12:28 +02:00
Maarten ter Huurne
8032d96a17
Converted public fields of FileLister to private.
2010-07-27 21:41:35 +02:00
Maarten ter Huurne
0c6e23e869
Converted public fields of InputManager to private.
2010-07-27 21:29:06 +02:00
Maarten ter Huurne
0cd6b8264c
Converted public fields of LinkApp to private.
...
Although exposing a read/write reference to a private field is not much better than having a public field.
Well, at least we are explicit about the nasty stuff now.
2010-07-27 21:26:02 +02:00
Maarten ter Huurne
8a9aac028b
Converted public fields of Menu to private.
2010-07-27 21:12:15 +02:00
Maarten ter Huurne
b718658bf1
Converted public fields of MenuSetting to private.
2010-07-27 21:01:52 +02:00
Maarten ter Huurne
8f98a4b135
Converted public fields of MessageBox to private.
2010-07-27 20:59:28 +02:00
Maarten ter Huurne
4de52ca2a1
Converted public fields of MenuSettingInt to private.
2010-07-26 06:02:37 +02:00
Maarten ter Huurne
40ead3b642
Converted public fields of InputDialog to private.
2010-07-26 05:58:06 +02:00
Maarten ter Huurne
07bad5ade1
Removed unused field from class Button.
2010-07-26 05:51:09 +02:00
Maarten ter Huurne
0586595de5
Converted public fields of Selector to private.
2010-07-26 05:47:46 +02:00
Maarten ter Huurne
b78ffa704a
Converted public fields of Touchscreen to private.
2010-07-26 05:45:56 +02:00
Maarten ter Huurne
ea7b4ec002
Removed unused field.
2010-07-26 05:08:56 +02:00
Maarten ter Huurne
43b7c3db78
Removed unnecessary "using" statements.
...
These classes don't use any vectors.
2010-07-26 04:45:50 +02:00
Maarten ter Huurne
1237c59cfe
FileDialog must only pick regular files.
...
Thanks to Ayla for finding and fixing.
2010-07-26 04:43:03 +02:00
Maarten ter Huurne
4738f4b232
Make sure confirm() actually confirms.
...
The "result" field was never set to true.
The only way it could be true was because the uninitialized value happened to be non-zero.
Thanks to Ayla for this fix.
2010-07-26 04:31:16 +02:00
Maarten ter Huurne
727d9e95d5
Fixed missing field initialization.
...
The "close" field was read before it was written.
Thanks to Ayla for this fix.
2010-07-26 04:29:38 +02:00