summaryrefslogtreecommitdiff
path: root/apps/plugins/calculator.c
AgeCommit message (Collapse)Author
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
2008-03-01M:Robe 100: add button definition/bitmaps to plugins and enable compilationRobert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16469 a1c6a512-1295-4272-9138-f99709370657
2008-02-17Plugins now enabled and working for the Gigabeat S.Will Robertson
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16323 a1c6a512-1295-4272-9138-f99709370657
2007-09-20Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by ↵Marianne Arnold
Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
2007-07-27Rockbox compiles and boots now on the 2nd gen, but doesn't work properly yet.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14021 a1c6a512-1295-4272-9138-f99709370657
2007-05-19attempt to make the Gigabeat button mappings in the plugins more logical and ↵Marcoen Hirschberg
in line with the mapping in rockbox itself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13436 a1c6a512-1295-4272-9138-f99709370657
2007-04-08FS #6759: Support tan function in calculator plugin. Patch by Luke Blaney.Dan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13070 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Rename some macros to account for the recently added M5 port. No code changes.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold
500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
2007-02-17Accept FS#6662. Thanks to Nick Vanderweit. No need to define PI as Barry Wardell
it is already defined as M_PI in math.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12355 a1c6a512-1295-4272-9138-f99709370657
2007-01-14Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI ↵Dave Chapman
simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
2006-10-26Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the ↵Barry Wardell
nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
2006-08-30Correct credits for the calculator pluginLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10804 a1c6a512-1295-4272-9138-f99709370657
2006-08-03Barry Wardell's keymappings for H10Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10446 a1c6a512-1295-4272-9138-f99709370657
2006-06-30To avoid having to use the main unit when accidentally launching a plugin ↵Kevin Ferrare
from the remote, plugins now support remote quit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
2006-02-24More iPod 3G work from Seven Le MesleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
2006-02-24first gigabeat commitMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
2006-02-24Button driver for iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8828 a1c6a512-1295-4272-9138-f99709370657
2006-01-18Matt v.d. Westhuizen's iAudio X5 keypad adjustmentsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
2006-01-15New plugin loader. Solves the crashes introduced with the .bss changes while ↵Jens Arnold
keeping the small binary size. The model & api version check is now part of the plugin loader. Codecs are not yet adapted, but the old method still works for them. Simulator plugins are not (yet) version-checked. API version numbering restarted, as this is an all-new system. Uses the target ID from configure, so don't change that too often. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8349 a1c6a512-1295-4272-9138-f99709370657
2005-12-19Remove IPOD_NANO_PAD definition - the Nano's keypad has turned out to be ↵Dave Chapman
identical to the other 4G models git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8262 a1c6a512-1295-4272-9138-f99709370657
2005-12-14iPod: Initial attempt at button mappings for plugins. All plugins now ↵Dave Chapman
compile, but more work is needed with the more complex ones to make them iPod friendly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8233 a1c6a512-1295-4272-9138-f99709370657
2005-06-29Hristo Kovachev's keypad fixes for the H300 buildDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6912 a1c6a512-1295-4272-9138-f99709370657
2005-06-24First part of graphics api rework. Special functions, parameter handling, ↵Jens Arnold
pixel functions, lines and filled primitives done for black & white core, main display. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
2005-02-10iRiver: Working keys for the calculatorLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5893 a1c6a512-1295-4272-9138-f99709370657
2005-02-04adapted to build on iRiverDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5784 a1c6a512-1295-4272-9138-f99709370657
2005-01-26Changed several places to use button_clear_queue() to empty the button ↵Jens Arnold
queue. Added the ability to empty the (system's) button queue to the X11 simulatr. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5665 a1c6a512-1295-4272-9138-f99709370657
2005-01-02Start with the basic button layout if the basic operators are not available ↵Jens Arnold
separately (Ondio keypad) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5525 a1c6a512-1295-4272-9138-f99709370657
2004-10-17Plugin rework 2: (most) Compile-time keyboard configuration, for Ondio ↵Jens Arnold
adaption. (all) Now using the default event handler, standard placement is now in switch() default case. (calendar, chip8) Fixed usb handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5295 a1c6a512-1295-4272-9138-f99709370657
2004-08-21M+ always copied the power part of the result, even after performing an ↵Linus Nielsen Feltzing
addition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5002 a1c6a512-1295-4272-9138-f99709370657
2004-07-26Removed lots of CR characters, and adapted to the new event handlingLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4956 a1c6a512-1295-4272-9138-f99709370657