1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 21:05:27 +03:00
Commit Graph

425 Commits

Author SHA1 Message Date
Paul Cercueil
5f1cff6d0f Build file extensions filter from the MIME types present on the OPK
This feature is enabled only if libxdgmime is available.
2012-10-22 23:40:09 +02:00
Paul Cercueil
e7e21b424b Use the '%f' token to insert the selected file on the params.
Other tokens available are '%F', '%u' and '%U'.
It replaces the previous token '[selFile]'.
2012-10-22 23:34:33 +02:00
Paul Cercueil
0fc6ac67f0 Hide the 'params' option from the user on the contextual menu
The user shouldn't care at all about what is given as a parameter.
The 'params' option is only used by the links provided with GMenu2X.
2012-10-22 23:12:21 +02:00
Paul Cercueil
d6cdb90c81 Before launching any app, update the standard I/O file descriptors 2012-10-20 17:32:17 +02:00
Paul Cercueil
6a9f429f32 Update "exec" to aim the binary if a change of directory if needed 2012-10-17 23:48:11 +02:00
Paul Cercueil
0ddc562bf1 Fix icon not appearing on loading menu of OPK packages based links 2012-10-17 23:43:44 +02:00
Paul Cercueil
79ea2349c4 Dingux: set all the system links (except Terminal) as non-editable 2012-10-17 23:43:36 +02:00
Paul Cercueil
170a7dc4c6 Add "editable" parameter: when "false", the link can't be modified.
If omitted, the default value is "true".
2012-10-17 23:43:32 +02:00
Paul Cercueil
c1a95a2fa6 Removed unused class variable 'useRamTimings' from LinkApp 2012-10-17 23:43:27 +02:00
Paul Cercueil
4a60aa000d Load the OPK in the section defined by their "Categories" parameter 2012-10-09 01:41:57 +02:00
Paul Cercueil
c58c726954 configure.in: update libopk check to match latest libopk API 2012-10-08 19:51:30 +02:00
Paul Cercueil
ef18841eb1 Fix build when libopk is not present. 2012-10-08 19:46:50 +02:00
Paul Cercueil
f6c19d0aa1 Mount the OPK packages in order to execute the binary included. 2012-10-08 08:22:48 +02:00
Paul Cercueil
909fef2f3a Update to use the latest libopk API. 2012-10-08 08:19:59 +02:00
Paul Cercueil
876f2cff86 Fix a bug where only some parameters were read from the links files. 2012-10-08 06:09:37 +02:00
Paul Cercueil
cd4809343b During init, load all packages in CARD_ROOT/*/apps 2012-10-07 21:51:25 +02:00
Paul Cercueil
61d22e26e6 LinkApp: Added support for reading OPK packages. 2012-10-07 21:50:07 +02:00
Paul Cercueil
e3837fce68 If a filename contains '#' don't check if the file exists. 2012-10-07 20:08:25 +02:00
Paul Cercueil
0cbb5ee09a Make loadPNG() able to read files from OPK packages.
The filename passed to it should contain the filename of the squashfs
image, the character '#', and the filename of the .png file contained
inside the package.

E.g.:
/tmp/package.opk#icon.png
2012-10-07 20:04:30 +02:00
Paul Cercueil
45be8af9f0 configure.in: Perform a check for the 'libopk' library. 2012-10-07 19:58:40 +02:00
Paul Cercueil
3dc12d06ea menu.cpp: Don't use stat() to know if a FS entry is a directory
The pointer returned by readdir() already informs us of the type
of the FS entry.
2012-10-06 17:38:58 +02:00
Paul Cercueil
16d66d0dbc Remove unused (proprietary-licensed for some) XCF fonts. 2012-06-25 00:39:37 +02:00
Paul Cercueil
1241523105 Removed variable/function to get the directory of the executable.
The application shouldn't care from which directory it is being
executed.
2012-06-24 23:19:45 +02:00
Paul Cercueil
cf20f3673e Use function getSkinPath() instead of reading the dir of the binary
... which was certain to fail as the skins are not located on
/usr/bin.
2012-06-24 23:18:02 +02:00
Paul Cercueil
a21650d6b3 Don't re-execute gmenu2x on error, just call main() again. 2012-06-24 23:01:28 +02:00
Paul Cercueil
0d9977e54c Open battery/USB file handlers only when needed. 2012-06-24 22:48:50 +02:00
Paul Cercueil
7484ad2ef0 Check if USB cable is plugged before returning the battery level. 2012-06-24 22:41:16 +02:00
Paul Cercueil
64db1d7912 Don't scan the NAND as it's already done elsewhere.
If mounted, the NAND should be present as /media/ccnandb1 (dingux
build) but /media is already scanned.
2012-06-24 22:19:36 +02:00
Paul Cercueil
d6621584e3 Removed last bits of the "backlight" feature. 2012-06-15 00:13:59 +02:00
Paul Cercueil
21fee6ccd1 Removed last bits of the "volume" feature. 2012-06-14 23:59:39 +02:00
Paul Cercueil
dd047010ed Removed old commented code. 2012-06-14 23:53:19 +02:00
Paul Cercueil
9263c782e7 Drop GP2X platform support.
The GP2X build was unused and totally broken.
2012-06-14 23:45:57 +02:00
Paul Cercueil
374371c1d2 Removed unused (and broken) TV-out feature. 2012-06-14 22:53:50 +02:00
Paul Cercueil
bc2b5d51ed Removed unused function GMenu2X:setGamma() 2012-06-14 20:14:19 +02:00
Paul Cercueil
1080527822 Don't log the console-based apps. 2012-06-14 17:39:59 +02:00
Maarten ter Huurne
e5a92271a6 Use title case for Dingoo link titles.
Also renamed "ALSA mixer" to "Sound Mixer", since end users might not
know/care what ALSA is.
2012-04-28 13:04:11 +02:00
Paul Cercueil
45595e296b dingux: added a link to disable the graphic mode of the framebuffer 2012-04-27 17:59:22 +02:00
Paul Cercueil
c2576d418b Read the credits from the "about.txt" file.
The credits have also been updated.
2012-04-27 17:42:09 +02:00
Paul Cercueil
8dbf6f6906 dingux: added a link to toggle TV output. 2012-04-26 19:39:52 +02:00
Paul Cercueil
454a73d623 dingux: renamed links on "settings" to force menu layout 2012-04-18 02:23:13 +02:00
Paul Cercueil
4d3310f60e dingux: added a link to "alsamixer". 2012-04-18 02:18:30 +02:00
Paul Cercueil
a4e25cbc7b dingux: added a "system info" link on the settings tab. 2012-04-18 02:08:52 +02:00
Paul Cercueil
d227a8a6f1 Removed full path to skin files on the links
This did prevent theming the poweroff/reboot/suspend buttons.
2012-04-18 02:05:22 +02:00
Paul Cercueil
d1328d791c Switch to tty1 for console apps (Dingux build only).
Console apps are always launched on tty1. However it can occur that
the console displayed on the framebuffer is another one, so we have
to explicitely activate tty1.
2012-04-18 01:35:46 +02:00
Paul Cercueil
e6ca072c46 Added a "show console" link parameter (Dingux build only). 2012-04-13 19:21:49 +02:00
Paul Cercueil
7687212b4e Removed the "wrapper" feature.
It is up to the system to restart GMenu2X when the application exits.
2012-04-13 18:12:30 +02:00
Maarten ter Huurne
8f57afcf53 Explicitly convert 32-bit integers to 16-bit.
GCC 4.7.0 warns that C++11 considers doing this implicitly ill-formed.
2012-04-10 23:01:16 +02:00
Maarten ter Huurne
46f2edbc76 BrowseDialog: Code layout cleanup.
No functional changes, except for fetching "topBarHeight" only once.
2012-04-10 22:55:19 +02:00
Maarten ter Huurne
58d6077e5c Touchscreen: Avoid constructing an SDL_Rect for is-inside tests.
Made the SDL_Rect versions of the methods call the plain-int versions
instead of vice versa.
2012-04-10 22:44:56 +02:00
Maarten ter Huurne
b248aaf808 Surface cleanup.
Use unsigned ints for width and height, like SDL does.
We're using the SDL typedefs there after all.

Include argument names in header when type name does tell everything.

Use whitespace in argument lists.
2012-04-10 22:33:43 +02:00