summaryrefslogtreecommitdiff
path: root/apps/plugins/calculator.c
AgeCommit message (Collapse)Author
2011-10-02fuze+: fix calculator keymapAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30661 a1c6a512-1295-4272-9138-f99709370657
2011-10-02fuze+: add calculator keymapAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30660 a1c6a512-1295-4272-9138-f99709370657
2010-11-30HD300 - plugins keymapsMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28712 a1c6a512-1295-4272-9138-f99709370657
2010-11-02MPIO HD200: rename button defines to adhere how they are labeled on the device.Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28443 a1c6a512-1295-4272-9138-f99709370657
2010-11-02Begin committing keymap plugins for the Philips GoGear HDD6330.Robert Menes
Not all keymaps are completed, but I want to get some initial work I did under version control. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28442 a1c6a512-1295-4272-9138-f99709370657
2010-08-25Remove build conditions inside .c plugin filesRafaël Carré
Rather use the Makefile to specify which files must be built Fix color builds with test plugins enabled (test_scanrate gave an empty .o file) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27886 a1c6a512-1295-4272-9138-f99709370657
2010-08-24Second try: Introduce plugin_crt0.c that every plugin links.Thomas Martitz
It handles exit() properly, calling the handler also when the plugin returns normally (also make exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-23Revert "Introduce plugin_crt0.c that every plugin links."Thomas Martitz
Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23Introduce plugin_crt0.c that every plugin links.Thomas Martitz
It handles exit() properly, calling the handler also when the plugin returns normally (also it makes exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-05-14Move math.h to firmware/libc/include/ and fix slight incompatibilities ↵Thomas Martitz
between our and the host's math.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26020 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz
directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Add MPIO HD200 port - changed filesMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
2010-02-13Packard Bell Vibe 500: More plugin keymaps (second portion).Szymon Dziok
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657
2009-12-15Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, andTomer Shalev
to target naming conventions in general git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
2009-12-02Start committing plugin keymaps for the Philips GoGear SA9200.Robert Menes
I still have more plugins to finish, but this is an initial start and I can at least get them under version control in case I need to revise any. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23813 a1c6a512-1295-4272-9138-f99709370657
2009-10-09calculator: use home as clear button for sansa fuzeRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23027 a1c6a512-1295-4272-9138-f99709370657
2009-08-31 * Fix plugin keymaps for VX777Maurus Cuelenaere
* Enable plugins for VX777 * Fix VX777 simulator All done by Aaron DeMille. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22576 a1c6a512-1295-4272-9138-f99709370657
2009-08-04Commit FS#10251. Plugins for the YH-820, YH-920, and YH-925 by Jens Erdmann ↵Michael Giacomelli
with improvements and bitmap graphics by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22149 a1c6a512-1295-4272-9138-f99709370657
2009-08-03Calculator: Enable absolute mode for touchscreens.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22131 a1c6a512-1295-4272-9138-f99709370657
2009-08-03Remove various ABS() definitions with a single one using typeof (if using ↵Thomas Martitz
gcc) to avoid multiple evaluations of the input expressions. Speex still uses its own as I didn't want to change this imported code too much. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22129 a1c6a512-1295-4272-9138-f99709370657
2009-08-02Pluginlib: Add support for general buttons. Add menu and quit buttons to ↵Karl Kurbjun
Reversi. MRobe 500: Modify touch handler to return the previous data always rather than 0 when there is no touch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22110 a1c6a512-1295-4272-9138-f99709370657
2009-07-30fix deleteAnimation in calculator plugin.Teruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22088 a1c6a512-1295-4272-9138-f99709370657
2009-05-22FS#10211 Clear full size of display of calculator; not rounded size.Steve Gotthardt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21026 a1c6a512-1295-4272-9138-f99709370657
2009-04-21Add initial plugin keymaps for M:robe 500Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20765 a1c6a512-1295-4272-9138-f99709370657
2009-04-10FS#10075 - FUZE: QUIT Plugin by selecting BUTTON_HOME by Johannes Schwarz. ↵Thomas Martitz
Updates the plugin keymap to use Long Home to exit plugins to be more inline with the core keymap. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20680 a1c6a512-1295-4272-9138-f99709370657
2009-04-07Enable plugins on the Onda VX747Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20647 a1c6a512-1295-4272-9138-f99709370657
2009-01-24remove MEM_FUNCTION_WRAPPERS, and private mem* implementations from plugins, ↵Andrew Mahone
and replace with pluginlib implementations in plugins/lib/gcc-support.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19847 a1c6a512-1295-4272-9138-f99709370657
2009-01-24Plugins for the Philips HDD1630. The keymaps are largely untested on the ↵Mark Arigo
device (patches welcome). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19846 a1c6a512-1295-4272-9138-f99709370657
2009-01-16revert/fix parts of r19673, as it changed some e200 keymaps and introduces ↵Dominik Wenger
not-needed FIXME comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19778 a1c6a512-1295-4272-9138-f99709370657
2009-01-16loader-initialized global plugin API:Andrew Mahone
struct plugin_api *rb is declared in PLUGIN_HEADER, and pointed to by __header.api the loader uses this pointer to initialize rb before calling entry_point entry_point is no longer passed a pointer to the plugin API all plugins, and pluginlib functions, are modified to refer to the global rb pluginlib functions which only served to copy the API pointer are removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19776 a1c6a512-1295-4272-9138-f99709370657
2009-01-04Commit FS#9617 - Keymaps for Plugins fuze by Thomas Martitz.Michael Giacomelli
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19673 a1c6a512-1295-4272-9138-f99709370657
2008-12-12m200v4: rename Keys, so they match better other targets with similar ↵Dominik Wenger
key-layout. Enable plugins, add keymaps for plugins. More keymap improvements needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19405 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Added keymaps for ZVM to plugins. Enabled zvm plugin building in ↵Björn Stenberg
tools/configure. FS#9605 by Adam Hogan and Robert Menes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19335 a1c6a512-1295-4272-9138-f99709370657
2008-11-28Sansa Clip: build plugins (FS#9578)Rafaël Carré
Use unmodified C200 keymap when possible, variation of it when not Use Archos bitmaps when possible Current problems: - Pegbox plugin shows display corruption (corruption is different in the simulator) - Bubbles plugin misses 1 or 2 bottom lines, but if we gain back these lines it occupies a too small area of the screen - Splitted screen (yellow/blue) is a bit weird in most plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19252 a1c6a512-1295-4272-9138-f99709370657
2008-10-07IAUDIO67_PAD: Add keymaps for most of the plugins, they are not all tested yet.Vitja Makarov
IAUDIO7: Define MODEL_NAME in config git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18730 a1c6a512-1295-4272-9138-f99709370657
2008-10-02Fix FS#9296 by catching repeat events for wheel targets too, moved a bit of ↵Nils Wallménius
code around to simplify things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18680 a1c6a512-1295-4272-9138-f99709370657
2008-08-23Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREENMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-18More calculate button changes: make the 'calculate' shortcut also work on ↵Marianne Arnold
the M5X5, the Ipod and the Gigabeat S pad. Also make 'select' actually select the number under the cursor and use 'menu' for calculating instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17731 a1c6a512-1295-4272-9138-f99709370657
2008-06-17Make the 'calculate' shortcut work on the H10 padMarianne Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17728 a1c6a512-1295-4272-9138-f99709370657
2008-06-061) Implement generic touchscreen detection library for the pluginsMaurus Cuelenaere
2) Adapt minesweeper, pegbox & calculator to it 3) Simplify gui/bitmap/list.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17695 a1c6a512-1295-4272-9138-f99709370657
2008-05-13Plugin parameters should be const.Steve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
2008-05-07FS#8953 by Alexander Levin making all buttons in the calulator reachable ↵Nils Wallménius
using scroll wheels with a small tweak by me to make it work for ipods git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17405 a1c6a512-1295-4272-9138-f99709370657
2008-05-01Oops, use the mem* function wrapper macro to make gcc happyNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17300 a1c6a512-1295-4272-9138-f99709370657
2008-05-01Adapt the calculator to larger displays and use the UI font if it fits. Use ↵Nils Wallménius
reversed colours instead of inverted colours for selection, fixes FS#8951 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17299 a1c6a512-1295-4272-9138-f99709370657
2008-04-27FS#8708: D2/m:robe500 touchscreen keymaps by Andreas Mueller.Rob Purchase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17261 a1c6a512-1295-4272-9138-f99709370657
2008-04-12Optimise some more line drawing calls.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17083 a1c6a512-1295-4272-9138-f99709370657
2008-03-22D2: Enable plugin building (using initial keymaps from FS#8708 by Andreas ↵Rob Purchase
Mueller, with some tweaks). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16751 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Adapt most single-file plugins to the M3 keypad and screen. It's still ↵Jens Arnold
preliminary, as many plugins now can't be left without the remote. The plugins need to be converted to use the action API (but not pluginlib actions). Plugins are not enabled yet. * Simplify the bitmap handling in the source of some plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16737 a1c6a512-1295-4272-9138-f99709370657
2008-03-18- add button descriptions to the m:robe 100 manual for the majority of pluginsRobert Kukla
- add gigabeat button descriptions which were missing - fix a few inconsistencies I noticed doing the above (mainly outstanding r13278 follow-ons) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16693 a1c6a512-1295-4272-9138-f99709370657