History log of /haiku/src/apps/fontdemo/ControlView.cpp
Revision Date Author Comments
# 6182c5ad 10-Dec-2020 Murai Takashi <tmurai01@gmail.com>

fontdemo: Fix null pointer dereference

Fix possible null pointer dereference at line 314
when 'submenu' is NULL at line 297.
Pointed out by cppcheck.

Change-Id: I054f63d574f4a9608df49d48ee74b87cd0116f69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3492
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# a8c0b1c8 02-Oct-2018 Kacper Kasper <kacperkasper@gmail.com>

FontDemo: fix font style submenu placement

Change-Id: I1182fb466e5007b728410872991eea7fd6018fdf
Reviewed-on: https://review.haiku-os.org/609
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 928f78f5 20-Aug-2016 Adrien Destugues <pulkomandy@pulkomandy.tk>

FontDemo: localization security fixes

- Avoid use of fixed size buffer without checks, use BString.SetToFormat
instead.
- Use the same format for the initial setting of the values, so there
are less strings to translate, and locales using a different
representation for numbers get the right thing done as well.
- Fix initial label for the outline slider, which did not show the value
unlike others (problem spotted by Diver, thanks!)


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# 122fdeec 28-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FontDemo: fix overwriting of family with style.

Menus were wrongly set to SetLabelFromMarked (probably from a previous
version of the UI without the nested font menu).

Fixes #11517.


# 344180b7 27-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FontDemo: convert to layout code.

Fixes #9241.


# 14701d3e 29-May-2013 John Scipione <jscipione@gmail.com>

Font Demo: Tweak layout of menu fields.

Need to add more height to the menu fields because we
no longer resize them automatically for fixed size mode
(for BeOS compat) and the text was shorter in BeOS.


# 7f4d1af4 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# a5763448 29-Oct-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Karvjorm : localize FontDemo (#7349).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 494c97f7 02-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patch from Karvjorm for #6126 to add console messages from FontDemo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40086 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6c9cec4 02-Jun-2010 Matt Madia <mattmadia@gmail.com>

Fixed capitalization of demo string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37003 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c9714ba 02-Jun-2010 Matt Madia <mattmadia@gmail.com>

Automatic whitespace cleanup. No functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37002 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b70ffa1a 13-Aug-2007 Michael Lotz <mmlr@mlotz.ch>

Fix off by one error in FontDemo. Should fix bug #1393.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f4841beb 19-Apr-2007 Jérôme Duval <korli@users.berlios.de>

added a menu to change the drawing mode
bounding boxes are now drawn alternatively red and green to differenciate between characters


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b3fab23 15-Feb-2007 Jérôme Duval <korli@users.berlios.de>

build fix for gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20139 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7652959 06-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

Added a FontDemo replacement, contributed by Mikael Konradson.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17745 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 122fdeece7169a2a55fdb4ea5aabaa2de1ba6bdb 28-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FontDemo: fix overwriting of family with style.

Menus were wrongly set to SetLabelFromMarked (probably from a previous
version of the UI without the nested font menu).

Fixes #11517.


# 344180b745382739599785a821295dbf32a0e7ca 27-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

FontDemo: convert to layout code.

Fixes #9241.


# 14701d3ec941382b6c9543d9d15be7c5aecb1f6e 29-May-2013 John Scipione <jscipione@gmail.com>

Font Demo: Tweak layout of menu fields.

Need to add more height to the menu fields because we
no longer resize them automatically for fixed size mode
(for BeOS compat) and the text was shorter in BeOS.


# 7f4d1af49dd1d67ecbf1d934eddd92cae7c4c558 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# a576344849833885d2e1eda3d77461306a30bbca 29-Oct-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Karvjorm : localize FontDemo (#7349).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 494c97f7f9a7f4f3b8642573f65820a3d4f8e329 02-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patch from Karvjorm for #6126 to add console messages from FontDemo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40086 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6c9cec4d0dfed8c2d1993e9385e10f56a3de48d 02-Jun-2010 Matt Madia <mattmadia@gmail.com>

Fixed capitalization of demo string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37003 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c9714ba3046ae02a165681fd4b4c12be20ba3dd 02-Jun-2010 Matt Madia <mattmadia@gmail.com>

Automatic whitespace cleanup. No functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37002 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b70ffa1a186cd44c9531c44eb5891d1f92a7d39b 13-Aug-2007 Michael Lotz <mmlr@mlotz.ch>

Fix off by one error in FontDemo. Should fix bug #1393.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f4841bebd44b42b3f285b545086e562e13b241a5 19-Apr-2007 Jérôme Duval <korli@users.berlios.de>

added a menu to change the drawing mode
bounding boxes are now drawn alternatively red and green to differenciate between characters


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b3fab2364f0f719c48f213243d84f8ae697ef71 15-Feb-2007 Jérôme Duval <korli@users.berlios.de>

build fix for gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20139 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b7652959706ec2bd94c4a5586945e05df6dab4d4 06-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

Added a FontDemo replacement, contributed by Mikael Konradson.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17745 a95241bf-73f2-0310-859d-f6bbb57e9c96