1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-31 00:28:38 +02:00
gmenu2x/src
Nebuleon Fumika 69d6c0006c TextDialog: Improve the average and worst-case performance of word wrapping
This affects manuals, About GMenu2X, and the Log Viewer.

Instead of trying to compute the width of the entire string, then backing
off one word at a time, TextDialog::preProcess now performs a binary search
on Font::getTextWidth(string) and backs off to the last fitting space, if
there is one, at the last moment.

In Japanese and Chinese text, words are not usually separated by spaces.
Text in these languages is now wrapped when it would reach the edge of the
screen.
2014-07-19 02:35:09 +02:00
..
.gitignore Let git ignore files we expect to be generated during the build. 2010-06-17 18:45:52 +02:00
background.cpp Moved all code for opening the context menu into the Menu class 2013-08-09 19:09:57 +02:00
background.h Put background painting and global keys in new Background layer 2013-08-09 18:01:51 +02:00
battery.cpp Put background painting and global keys in new Background layer 2013-08-09 18:01:51 +02:00
battery.h Put background painting and global keys in new Background layer 2013-08-09 18:01:51 +02:00
browsedialog.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
browsedialog.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
buttonbox.cpp Pass a Surface to ButtonBox' and IconButton's paint function 2014-01-16 01:19:34 +01:00
buttonbox.h Pass a Surface to ButtonBox' and IconButton's paint function 2014-01-16 01:19:34 +01:00
clock.cpp Code factorisation (Add function inject_user_event() to utilities) 2013-08-28 13:14:08 -04:00
clock.h Made Clock destruction safe 2013-08-09 03:13:02 +02:00
contextmenu.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
contextmenu.h Query animation status instead of storing it 2013-08-12 19:41:56 +02:00
cpu.cpp Replaced every message output by calls to the log macros. 2010-09-17 22:31:09 +02:00
cpu.h Set CPU frequency through sysfs. 2010-07-04 03:04:42 +02:00
debug.h Revert the log level to INFO 2013-07-29 13:02:06 -04:00
delegate.h Drop incredibly dirty and huge file FastDelegate.h 2013-07-29 12:58:25 -04:00
dialog.cpp Renamed ASFont class to just Font 2013-08-03 22:30:12 +02:00
dialog.h Move methods only used by dialogs from the GMenu2x class to a common base class 2010-05-05 14:35:52 +02:00
dirdialog.cpp Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
dirdialog.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
filedialog.cpp Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
filedialog.h Match all files by default in the file dialog 2013-07-08 02:24:09 -04:00
filelister.cpp Use the "*" filter to match all files 2013-07-08 02:21:42 -04:00
filelister.h More header cleanups. 2011-10-23 16:43:56 +02:00
font.cpp Removed support for multi-line text drawing 2014-07-19 00:43:05 +02:00
font.h Removed support for multi-line text drawing 2014-07-19 00:43:05 +02:00
gmenu2x.cpp Add constructors for RGBAColor 2014-07-19 00:43:06 +02:00
gmenu2x.h Fix setting default values for configuration entries. 2014-07-19 00:43:05 +02:00
gp2x.h initial commit - needs clean-up 2010-02-04 12:33:47 +01:00
helppopup.cpp Allow layers to play animations 2013-08-11 01:35:43 +02:00
helppopup.h Implemented layer system for painting and events 2013-08-06 01:55:32 +02:00
iconbutton.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
iconbutton.h Pass a Surface to ButtonBox' and IconButton's paint function 2014-01-16 01:19:34 +01:00
imagedialog.cpp Removed unnecessary includes of SDL_gfx header 2014-07-19 00:43:05 +02:00
imagedialog.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
imageio.cpp Fix issues with loading images with alpha disabled. 2014-07-17 01:25:41 +02:00
imageio.h Fix issues with loading images with alpha disabled. 2014-07-17 01:25:41 +02:00
inputdialog.cpp Removed unnecessary includes of SDL_gfx header 2014-07-19 00:43:05 +02:00
inputdialog.h InputDialog: header cleanup. 2011-10-23 12:46:52 +02:00
inputmanager.cpp Make the button repeat rate (after the first repetition) a user setting. 2014-07-19 00:43:05 +02:00
inputmanager.h Make the button repeat rate (after the first repetition) a user setting. 2014-07-19 00:43:05 +02:00
layer.h Query animation status instead of storing it 2013-08-12 19:41:56 +02:00
link.cpp Introduced custom application launch text 2014-07-19 01:09:16 +02:00
link.h Introduced custom application launch text 2014-07-19 01:09:16 +02:00
linkapp.cpp Introduced custom application launch text 2014-07-19 01:09:16 +02:00
linkapp.h Load previews from the previews/ subdir of the current dir in selectors. 2014-07-17 02:02:23 +02:00
Makefile.am Removed Button class 2013-08-14 04:26:04 +02:00
mediamonitor.cpp Code factorisation (Add function inject_user_event() to utilities) 2013-08-28 13:14:08 -04:00
mediamonitor.h Add a MediaMonitor, which will watch CARD_ROOT for mountpoints 2013-07-19 12:37:56 -04:00
menu.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
menu.h Sort links once they have all been added to the menu 2014-01-19 23:07:54 +01:00
menusetting.cpp Pass a Surface to ButtonBox' and IconButton's paint function 2014-01-16 01:19:34 +01:00
menusetting.h Drop GP2X platform support. 2012-06-14 23:45:57 +02:00
menusettingbool.cpp Renamed ASFont class to just Font 2013-08-03 22:30:12 +02:00
menusettingbool.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingdir.cpp Various changes related to translations 2014-07-15 14:25:17 +02:00
menusettingdir.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingfile.cpp Various changes related to translations 2014-07-15 14:25:17 +02:00
menusettingfile.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingimage.cpp Use function getSkinPath() instead of reading the dir of the binary 2012-06-24 23:18:02 +02:00
menusettingimage.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingint.cpp Renamed ASFont class to just Font 2013-08-03 22:30:12 +02:00
menusettingint.h Drop GP2X platform support. 2012-06-14 23:45:57 +02:00
menusettingmultistring.cpp Drop incredibly dirty and huge file FastDelegate.h 2013-07-29 12:58:25 -04:00
menusettingmultistring.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingrgba.cpp Renamed ASFont class to just Font 2013-08-03 22:30:12 +02:00
menusettingrgba.h Drop GP2X platform support. 2012-06-14 23:45:57 +02:00
menusettingstring.cpp Drop incredibly dirty and huge file FastDelegate.h 2013-07-29 12:58:25 -04:00
menusettingstring.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00
menusettingstringbase.cpp Renamed ASFont class to just Font 2013-08-03 22:30:12 +02:00
menusettingstringbase.h SettingsDialog: simplify code using InputManager::waitForPressedButton(). 2011-10-23 09:38:59 +02:00
messagebox.cpp Removed unnecessary includes of SDL_gfx header 2014-07-19 00:43:05 +02:00
messagebox.h MessageBox: header cleanups. 2011-10-23 11:32:16 +02:00
monitor.cpp Code factorisation (Add function inject_user_event() to utilities) 2013-08-28 13:14:08 -04:00
monitor.h Stop watching a directory when it has been reported as removed 2013-07-19 14:35:45 -04:00
powersaver.cpp Initialize the timers subsystem of SDL at the beginning 2013-07-22 00:20:18 -04:00
powersaver.h Reinitialize the powersaver timer when a suspend has been detected. 2012-02-02 23:36:26 +01:00
selector.cpp Removed unnecessary includes of SDL_gfx header 2014-07-19 00:43:05 +02:00
selector.h Remove the 'Selector alias file' feature 2014-07-15 14:25:17 +02:00
settingsdialog.cpp Removed unnecessary includes of SDL_gfx header 2014-07-19 00:43:05 +02:00
settingsdialog.h Massive header cleanup. 2011-10-23 16:13:02 +02:00
surface.cpp Use our own alpha blended rectangle outline instead of SDL_gfx 2014-07-19 00:43:06 +02:00
surface.h Use our own alpha blended rectangle fill instead of SDL_gfx 2014-07-19 00:43:06 +02:00
surfacecollection.cpp Fix issues with loading images with alpha disabled. 2014-07-17 01:25:41 +02:00
surfacecollection.h Fix issues with loading images with alpha disabled. 2014-07-17 01:25:41 +02:00
textdialog.cpp TextDialog: Improve the average and worst-case performance of word wrapping 2014-07-19 02:35:09 +02:00
textdialog.h Fixed text area coordinates in TextDialog 2013-08-14 13:25:07 +02:00
textmanualdialog.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
textmanualdialog.h Massive header cleanup. 2011-10-23 16:13:02 +02:00
touchscreen.cpp Drop GP2X platform support. 2012-06-14 23:45:57 +02:00
touchscreen.h Drop GP2X platform support. 2012-06-14 23:45:57 +02:00
translator.cpp Check for empty strings using empty() instead of comparing to "" 2013-08-16 09:16:04 +02:00
translator.h The "tr1" namespace is no longer needed now that we're on C++11 2013-08-01 14:37:56 +02:00
utilities.cpp TextDialog: Improve the average and worst-case performance of word wrapping 2014-07-19 02:35:09 +02:00
utilities.h TextDialog: Improve the average and worst-case performance of word wrapping 2014-07-19 02:35:09 +02:00
wallpaperdialog.cpp Use the font's suggested line height instead of its ascent and descent. 2014-07-17 02:03:02 +02:00
wallpaperdialog.h Made GMenu2X::ts private. 2011-12-23 14:03:05 +01:00