History log of /haiku/src/tests/kits/game/chart/ChartWindow.cpp
Revision Date Author Comments
# f8d7e36f 27-Oct-2023 Niels Sascha Reedijk <niels.reedijk@gmail.com>

UI text: minor fixes to strings (courtesy of jt15s)

Change-Id: Iebeb64eeea2fd98cf0f7a86be759939d86b600b3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7083
Reviewed-by: humdinger humdinger <humdinger@mailbox.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>


# d231c2a7 09-Dec-2015 looncraz <looncraz@looncraz.net>

tests: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0018-0019 from looncraz.


# cdec47c9 02-Jul-2015 Philippe Saint-Pierre <stpere@gmail.com>

Workaround timing issues in Chart

When run on a VM (VBox, vmware), the timing calculations done were giving weird
results (< 1ms), messing with the logic (div by zero introduced).

Should take care of ticket #89.


# c06fd795 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Chart: fix endianness swap.

* This is most likely dead code currently (it is used only when the
framebuffer is big endian, and the the cpu is little endian)
* Fixes a warning.
* Can't confirm if B_SWAP_INT32 is really supposed to swap the value
in-place, or if this is a bug in Chart. Probably the latter.


# 77342b3a 15-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Chart: clear view when switiching to BDirectWindow

Even when BDirectWindow is used, the back buffer data can be copied to
the front buffer. This happens when resizing or moving the window, and
when moving the cursor above it.

Since Charts does not touch the whole window when redrawing (it only
erases previous stars and draws new ones) this led to the last frame
drawn on the back buffer to stay visible until stars erased it.

Clearing the back buffer view with the current "sapce color" makes this
much less visible.

Fixes #96.


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

Chart: tweak menu field widths. Don't ResizeToPreferred()


# 99f76d5d 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Chart: fixes 64 bit warnings


# 3f0a22c8 21-Apr-2013 Philippe Saint-Pierre <stpere@gmail.com>

Chart Demo: Fix for failure to detect already opened popup windows

Clicking on the FPS, color chart or any other buttons meant to make a popup
window appear was failing to detect and re-focus an already opened popup.


# 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.


# abbd8f35 12-Apr-2012 John Scipione <jscipione@gmail.com>

Update default Charts window width

* Set the window width default to 845px which is just enough
to fit the controls along the top in the default font size and locale.
* Fix an obvious type in a comment in ChartWindow.cpp


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

Patch by taos (#7529): localize Chart.


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


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

Patch by Humdinger:
Changed strings to sentence case in various places. This is the
case-misc.diff part of ticket #5169.


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


# 050ad934 27-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Automatic whitespace cleanup.


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


# 1d7d03eb 16-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fix gcc4 warnings.


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


# b482d055 16-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fix gcc4 warning, small style changes

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


# 446d046c 12-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

CID 325: Be defensive and check the results of the dynamic_casts.


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


# a61498c8 01-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed some warnings (gcc4)

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


# 8d6c93fb 04-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed all member variables to fit our guidelines. Removed useless workaround for an old beos bug

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


# c0728ccd 04-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

The placement of the animation view was off by one to the left. This
caused bug #96.


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


# d619599a 09-Feb-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some more forgotten style changes


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


# 5e9bdfc4 30-Apr-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Chart doesn't hang on quit anymore (bug 431)

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


# e060f469 12-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Font rendering under Haiku directly still looks different from the font rendering
in the test environment; the visual glitches should now be fixed.


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


# 10b26c62 10-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added some check for B_INTERRUPTED in semaphores acquisitions. Could fix bug #89, although I can't reproduce it in Qemu

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


# ce3f3b5a 02-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Slightly improved font sensitivity of the top bar.


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


# f2c54a03 02-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

* Made it look better when running under Haiku. Restricts the maximal font size to
12 points to make sure it'll look acceptable.
* Fixed direct window rendering by disabling moving the animation area around
(would have to be changed in DirectConnected() as well).
* Refresh and density sliders now ResizeToPreferred().
* Some cleanup.


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


# ffa2503b 17-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

first style changes

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


# 3b39bd1d 05-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

slightly better layout, the left view accomodates its width to fit the controls. The boxes inside it don't, yet.

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


# 448641c5 04-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed all the warnings in Chart. This app is still VERY font-insensitive and it doesn't do ANY error checking, but I won't fix it. At least, not now.

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


# be51f21d 02-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added chart demo

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


# cdec47c9277ab622dd4c59eb7f91b8134c67f1f3 02-Jul-2015 Philippe Saint-Pierre <stpere@gmail.com>

Workaround timing issues in Chart

When run on a VM (VBox, vmware), the timing calculations done were giving weird
results (< 1ms), messing with the logic (div by zero introduced).

Should take care of ticket #89.


# c06fd795744b834f885a5860d5895f9464dd82ea 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Chart: fix endianness swap.

* This is most likely dead code currently (it is used only when the
framebuffer is big endian, and the the cpu is little endian)
* Fixes a warning.
* Can't confirm if B_SWAP_INT32 is really supposed to swap the value
in-place, or if this is a bug in Chart. Probably the latter.


# 77342b3ad85c1b3d9d96aa0ff7f66e6a941fb735 15-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Chart: clear view when switiching to BDirectWindow

Even when BDirectWindow is used, the back buffer data can be copied to
the front buffer. This happens when resizing or moving the window, and
when moving the cursor above it.

Since Charts does not touch the whole window when redrawing (it only
erases previous stars and draws new ones) this led to the last frame
drawn on the back buffer to stay visible until stars erased it.

Clearing the back buffer view with the current "sapce color" makes this
much less visible.

Fixes #96.


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

Chart: tweak menu field widths. Don't ResizeToPreferred()


# 99f76d5df5d52be2e05edb944d10926d92eb6109 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Chart: fixes 64 bit warnings


# 3f0a22c88b3e48cc134a2ead55f032e330e3f57d 21-Apr-2013 Philippe Saint-Pierre <stpere@gmail.com>

Chart Demo: Fix for failure to detect already opened popup windows

Clicking on the FPS, color chart or any other buttons meant to make a popup
window appear was failing to detect and re-focus an already opened popup.


# 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.


# abbd8f35166ebfe427c77242bffe6f0fd18ef93a 12-Apr-2012 John Scipione <jscipione@gmail.com>

Update default Charts window width

* Set the window width default to 845px which is just enough
to fit the controls along the top in the default font size and locale.
* Fix an obvious type in a comment in ChartWindow.cpp


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

Patch by taos (#7529): localize Chart.


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


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

Patch by Humdinger:
Changed strings to sentence case in various places. This is the
case-misc.diff part of ticket #5169.


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


# 050ad934becd6f77ba5b1be449cab65c3809533f 27-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Automatic whitespace cleanup.


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


# 1d7d03eba1cf252e405045f7ff7b77e364bd0151 16-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fix gcc4 warnings.


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


# b482d05552e0cefb7569b48f819ce7ac48a4f3d9 16-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fix gcc4 warning, small style changes

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


# 446d046c5e9268ff45674b5888271efddef1f4a1 12-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

CID 325: Be defensive and check the results of the dynamic_casts.


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


# a61498c87ded8213cb5984bd21f7928abb824335 01-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed some warnings (gcc4)

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


# 8d6c93fb2a1aa66d4ca5b89ebc306d778817ae20 04-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed all member variables to fit our guidelines. Removed useless workaround for an old beos bug

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


# c0728ccd2a9b736d2bef0df8233bc65aae2980f9 04-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

The placement of the animation view was off by one to the left. This
caused bug #96.


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


# d619599aa3e736e75996deea346467d77702dda0 09-Feb-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some more forgotten style changes


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


# 5e9bdfc4d71ef343bb4c1b0967acf428f72c117d 30-Apr-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Chart doesn't hang on quit anymore (bug 431)

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


# e060f469822cd328675832d2ea3eaef86cf0cf4e 12-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Font rendering under Haiku directly still looks different from the font rendering
in the test environment; the visual glitches should now be fixed.


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


# 10b26c62df73faf2c7140df437cd310c32fd6655 10-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added some check for B_INTERRUPTED in semaphores acquisitions. Could fix bug #89, although I can't reproduce it in Qemu

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


# ce3f3b5af23322c085c300ef38da16a348df0317 02-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Slightly improved font sensitivity of the top bar.


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


# f2c54a03a6841a0693036529d8012b4a93851003 02-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

* Made it look better when running under Haiku. Restricts the maximal font size to
12 points to make sure it'll look acceptable.
* Fixed direct window rendering by disabling moving the animation area around
(would have to be changed in DirectConnected() as well).
* Refresh and density sliders now ResizeToPreferred().
* Some cleanup.


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


# ffa2503b55c87122933b998f988437a4e98b745c 17-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

first style changes

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


# 3b39bd1d07bfeaaf11e97d36deaa39e02e5d0da7 05-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

slightly better layout, the left view accomodates its width to fit the controls. The boxes inside it don't, yet.

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


# 448641c5c114e6575027786868c6f854b7094543 04-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed all the warnings in Chart. This app is still VERY font-insensitive and it doesn't do ANY error checking, but I won't fix it. At least, not now.

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


# be51f21d8a84d24fd5b1d72c567258f4f130f0b2 02-Jan-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added chart demo

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