summaryrefslogtreecommitdiff
path: root/apps/gui/yesno.c (follow)
Commit message (Collapse)AuthorAge
* scroll_engine: Rename scroll_stop* functions to be more consistent with the ↵Thomas Martitz2013-12-14
| | | | | | lcd api. Change-Id: I8ada10b96bfb628cca0331689e8b936ae47c7e1c
* yesno/touchscreen: Only accept on touch release.Thomas Martitz2012-08-15
| | | | | | | | Keeping the touchscreen pressed during a screen transition can lead to accidental actions. action_wait_for_release() currently doesn't work properly for touchscreen, so it's better to not transition before release. Change-Id: I37bd67945b05fff1b4a5452313f6415a247e3af9
* Fix missed buttons in action.c if action_wait_for_release() was calledThomas Martitz2012-08-15
| | | | | | | | | | | | | | with no button pressed. If e.g. two yesno screens directly follow each other the button release of the first one was incorrectly accepted in the second one. The fix exposed another problem in action.c if action_wait_for_release() is called when no button is actually pressed. The next press was silently eaten. This time re-introducing FS#12723 is avoided by leaving the offending hunk out in yesno.c. Change-Id: Icfe57375067f51f5c8177f3585cd47ceec9dcf0d
* Revert "fix erroneous button read in yesno screen and missed buttons in ↵Jonathan Gordon2012-08-14
| | | | | | action.c." This reverts commit 15775c8badac65ad9d7477a1706c019703c15b47.
* fix erroneous button read in yesno screen and missed buttons in action.c.Thomas Martitz2012-07-18
| | | | | | | | | If two yesno screens directly follow each other the button release of the first one was incorrectly accepted in the second one. The fix exposed another problem in action.c if action_wait_for_release() is called when no button is actually pressed. The next press was silently eaten. Change-Id: Iaa5f246f7ea1fd775606620a989cdaec74a9305e
* protect the yes/no screen from extra keypresses (which can happen if you ↵Jonathan Gordon2011-12-28
| | | | | | display 2 yes/no screens too quickly) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31452 a1c6a512-1295-4272-9138-f99709370657
* Changed the FOR_NB_SCREENS macro to always be a for loop that declares its ↵Björn Stenberg2011-10-15
| | | | | | own loop variable. This removes the need to declare this variable in the outer scope. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657
* Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno ↵Jonathan Gordon2011-07-21
| | | | | | api worth reusing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30183 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#12098 by ignoring battery update events in the yesno screen.Nils Wallménius2011-05-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29828 a1c6a512-1295-4272-9138-f99709370657
* Make the yes/no screen useable in the stylus touchscreen mode, add 2 ↵Jonathan Gordon2010-08-26
| | | | | | soft-buttons. Also make bottom left yes in grid mode to line up with the new button git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27890 a1c6a512-1295-4272-9138-f99709370657
* Fix two viewport related charcell bugs: crashes in the yesno screen and the ↵Jens Arnold2010-04-11
| | | | | | USB screen. This mess should really be fixed properly by enabling viewport management for charcell. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25587 a1c6a512-1295-4272-9138-f99709370657
* fix FS#10957 - the wps backdrop is always shown in the "create bookmark?" ↵Jonathan Gordon2010-02-08
| | | | | | ask screen (Actual fix is to always enable the theme in the yesno screen) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24560 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#9842 by stopping scrolling before leaving the yesno screen.Thomas Martitz2009-09-05
| | | | | | Seems there are more of this scrolling problems around. In this case it's a rather old bug actually. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22633 a1c6a512-1295-4272-9138-f99709370657
* redo how the statusbar updates are done. send the EVENT_GUI_ACTIONUPDATE ↵Jonathan Gordon2009-01-05
| | | | | | | | | | event every time get_action() is called. The event wont be as realiable (timewise) as before, but seems to work better This also fixes FS#9761. Also set the lcd font back to the ui font from the debug screens which use sysfont git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19681 a1c6a512-1295-4272-9138-f99709370657
* fix the yesno screen which I accidently broke with the last commitesJonathan Gordon2008-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19624 a1c6a512-1295-4272-9138-f99709370657
* Decouple the statusbar drawing from the rest of the screen drawing. it is ↵Jonathan Gordon2008-12-31
| | | | | | | | | | | | not drawn roughly 4x per second automatically. viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
* revert that scroll engine stuff... good in theory, but broken.Jonathan Gordon2008-07-02
| | | | | | | commit a band-aid fix for FS#9140 which is fine untill someone decides to not use the whole screen for it... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17916 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | 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
* total removal of gui_textarea. The only thing using the text_message struct ↵Jonathan Gordon2008-05-29
| | | | | | is the yesno screen so move its definition to yesno.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17653 a1c6a512-1295-4272-9138-f99709370657
* Delete whitespace to make 'Id' keyword behave as desiredNils Wallménius2008-05-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17501 a1c6a512-1295-4272-9138-f99709370657
* doh! fix yellow.Jonathan Gordon2008-05-11
| | | | | | | | | | remove the calls to stop_scroll(), clear_viewport() does that nothing should be using screens[].nb_lines anymore... change the list code to be a good example. (playlist_viewer is the last thing using it which needs fixing) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17456 a1c6a512-1295-4272-9138-f99709370657
* and the time/date screen...Jonathan Gordon2008-05-11
| | | | | | | also change the order the yes/no screen clears the viewport.. stop_scroll should be called before clear or you might get artifacts git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17455 a1c6a512-1295-4272-9138-f99709370657
* more textarea to viewport conversion... yes/no screen...Jonathan Gordon2008-05-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17454 a1c6a512-1295-4272-9138-f99709370657
* Const police raid, making a lot of pointers to lang strings const and ↵Nils Wallménius2008-04-26
| | | | | | removing some ugly casting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17251 a1c6a512-1295-4272-9138-f99709370657
* Straighten out voicing of yesno dialogs.Stéphane Doyon2007-11-07
| | | | | | | | | Make it so gui_syncyesno_run() does not modify the text_messages passed as argument, simplify the code and even reduce size a bit. The key is to support voicing at the level of the text_message itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15505 a1c6a512-1295-4272-9138-f99709370657
* FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not ↵Steve Bavin2007-10-19
| | | | | | just menus), hopefully save some space. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
* Convert IDs to strings before using them, fixes FS #7564Peter D'Hoye2007-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14304 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#6159 'Add voice to roughly 100 splash screens and yes-no menus' by ↵Nils Wallménius2007-08-06
| | | | | | Stephane Doyon with some minor tweaks by me. Rerun 'configure' and do a 'make clean' before rebuilding your voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14213 a1c6a512-1295-4272-9138-f99709370657
* *** Lang v2 cleanup (FS#6574) ***Nils Wallménius2007-08-05
| | | | | | | | | | | | | | | | | | | 1) Introduces apps/features.txt that controls which strings are included for each target based on defines. 2) .lng and .voice files are now target specific and the format versions of both these file types have been bumped, which means that new voice files are needed. 3) Use the 'features' mechanism to exclude strings for targets that didn't use them. 4) Delete unused and deprecated and duplicated strings, sort strings in english.lang Some string IDs were changed so translations will be slightly worse than before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14198 a1c6a512-1295-4272-9138-f99709370657
* remove the need for action_signalscreenchange().Jonathan Gordon2007-07-22
| | | | | | | Fixes problems with targets where the ACTION_STD_CANCEL event is a combo git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13956 a1c6a512-1295-4272-9138-f99709370657
* Ignore SYS_CHARGER_DISCONNECTED event in yesno screen (other events may need ↵Peter D'Hoye2007-06-16
| | | | | | to be filtered as well) as it made the auto-ROLO question close immediatly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13635 a1c6a512-1295-4272-9138-f99709370657
* Make a couple of private functions 'static'Nils Wallménius2007-03-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12770 a1c6a512-1295-4272-9138-f99709370657
* The list should reset the x margin when it finishes drawing. Not leave Jonathan Gordon2007-03-03
| | | | | | | it up to the next screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12570 a1c6a512-1295-4272-9138-f99709370657
* really fix the yes/no screen now, also id3 viewer shows the status barJonathan Gordon2006-08-17
| | | | | | | correctly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10630 a1c6a512-1295-4272-9138-f99709370657
* * fix pitchscreenJonathan Gordon2006-08-16
| | | | | | | | | * stop yes/no screen eating the first press sometimes * add enter id3 button from wps in irivier * update keymap-h10 from Barry Wardell git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10614 a1c6a512-1295-4272-9138-f99709370657
* Finally, the new button action system is here, thanks to Jonathan Gordon. ↵Linus Nielsen Feltzing2006-08-15
| | | | | | Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657
* AB-repeat mode for software codecs. Accessible through menu as a repeat ↵Brandon Low2006-01-21
| | | | | | mode, with buttom mappings much like those on other rockbox targets for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8409 a1c6a512-1295-4272-9138-f99709370657
* kill gcc4 warningsDaniel Stenberg2005-12-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
* Commited George Styles's patch which added multi-screen support to the ↵Kevin Ferrare2005-11-22
| | | | | | delete menu (gui_yesno) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8045 a1c6a512-1295-4272-9138-f99709370657
* generic multi-screen support for yes/no screens (like the one when reseting ↵Kevin Ferrare2005-11-18
settings or when firmware has changed) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7951 a1c6a512-1295-4272-9138-f99709370657