History log of /haiku/src/kits/interface/ColumnTypes.cpp
Revision Date Author Comments
# 058be77b 04-Mar-2024 Emir SARI <bitigchi@me.com>

BColumnListView: use automatic formatting for i18n

Use BDateTimeFormat, BDateFormat, and BNumberFormat for
various date, time, decimal, and percent formatting.

Change-Id: I994563d207db8bd28342ca6543b69a356ced38af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7505
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 70f1070b 15-Jul-2018 Janus <janus2@ymail.com>

BColumnListView: BSizeColumn sort with big files works as expected

- Use off_t to compute the difference
- Fixes #14279

Change-Id: I253f16bb75501904ff59ac603a4680c66cfec33f


# 85b350ed 05-Apr-2015 Janus <janus2@ymail.com>

BColumnListView: BRow height is proportional to font size.

* Add a BRow default constructor that use font size to compute height.
* Min height size for Title and Row are decoupled.
* The font ratio for Title and Row are decoupled.
* For small font use min height (set to usual 16.0).
* Better baseline formula.
* Fixes #11944.


# 539dc1bc 02-Dec-2014 John Scipione <jscipione@gmail.com>

A bunch of style fixes

No functional changes intended


# 69d85497 04-May-2013 Rene Gollent <anevilyak@gmail.com>

Fix update issues in BStringColumn.

In some cases, BStringColumn wouldn't properly detect that an update was
needed, and would consequently fail to truncate a string as needed with
a column resize.


# 7bcbf187 06-Nov-2012 Rene Gollent <anevilyak@gmail.com>

Optimize column preferred width calculation a bit.

Move calculating the width of the column title itself out to
OutlineView::GetColumnPreferredWidth(). Previously, each pass would
compute the width of both the field itself and the column title,
leading to considerable redundant work. Also, take outline level indent
into account in the resulting width. Should improve performance a bit.


# 74e28840 08-Aug-2012 Rene Gollent <anevilyak@gmail.com>

64-bit fixes. Gets Debugger fully compiling on x86-64.


# 975867a4 13-Jul-2012 Rene Gollent <anevilyak@gmail.com>

Fix drawing bug in BStringField.

- If a string column was exactly the correct pixel width for the strings
contained within it, they would skip attempting to truncate the string.
However, the truncated string was always used for final drawing, with
the end result that the fields would be drawn blank. This would sometimes
manifest itself in Debugger where things like ID columns wound wind up
showing no data until one resized the column.


# 13cb3584 01-Nov-2008 Jérôme Duval <korli@users.berlios.de>

takes into account the column title width


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


# 2c558054 29-Oct-2008 Jérôme Duval <korli@users.berlios.de>

supports double clicking column title separator to preferred column size


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


# bbf31e4d 20-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* If bitmaps are drawn with alpha channel, it helps to setup the correct
alpha mode. Thanks to Ralf Schuelke for pointing this out.
* Also check the bitmap color space and only use alpha drawing for bitmaps
with valid alpha channel.
* Don't just reset the parent to B_OP_OVER, but use the previous mode.


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


# 7837924c 14-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* Fixed warnings.
* Minor cleanup.


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


# f9d5f90e 09-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Added missing ColumnTypes.cpp/.h to sourcetree, and added it to the build.
This should make our BColumnListView completely usable.
(ColumnTypes files were taken from imkit SVN)



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


# 85b350edda4aeadaf382acefd349b13737a4df5d 05-Apr-2015 Janus <janus2@ymail.com>

BColumnListView: BRow height is proportional to font size.

* Add a BRow default constructor that use font size to compute height.
* Min height size for Title and Row are decoupled.
* The font ratio for Title and Row are decoupled.
* For small font use min height (set to usual 16.0).
* Better baseline formula.
* Fixes #11944.


# 539dc1bc53a60fc507d1d5b82e872030f0b06e2f 02-Dec-2014 John Scipione <jscipione@gmail.com>

A bunch of style fixes

No functional changes intended


# 69d85497fd4aca0c7b200ab6faea27c28d8e35b1 04-May-2013 Rene Gollent <anevilyak@gmail.com>

Fix update issues in BStringColumn.

In some cases, BStringColumn wouldn't properly detect that an update was
needed, and would consequently fail to truncate a string as needed with
a column resize.


# 7bcbf187d0197d78ce4b2b15f2747f8ae1d6093a 06-Nov-2012 Rene Gollent <anevilyak@gmail.com>

Optimize column preferred width calculation a bit.

Move calculating the width of the column title itself out to
OutlineView::GetColumnPreferredWidth(). Previously, each pass would
compute the width of both the field itself and the column title,
leading to considerable redundant work. Also, take outline level indent
into account in the resulting width. Should improve performance a bit.


# 74e288401db48905cf1c10a4560c4315da061bf3 08-Aug-2012 Rene Gollent <anevilyak@gmail.com>

64-bit fixes. Gets Debugger fully compiling on x86-64.


# 975867a4ffb3f114b8d6e5db0fb557fd9101e05a 13-Jul-2012 Rene Gollent <anevilyak@gmail.com>

Fix drawing bug in BStringField.

- If a string column was exactly the correct pixel width for the strings
contained within it, they would skip attempting to truncate the string.
However, the truncated string was always used for final drawing, with
the end result that the fields would be drawn blank. This would sometimes
manifest itself in Debugger where things like ID columns wound wind up
showing no data until one resized the column.


# 13cb35848bb71f92417fa118012c806caad8b6a0 01-Nov-2008 Jérôme Duval <korli@users.berlios.de>

takes into account the column title width


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


# 2c558054feef23be08bfdbdf1eade199af97bde8 29-Oct-2008 Jérôme Duval <korli@users.berlios.de>

supports double clicking column title separator to preferred column size


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


# bbf31e4d1f92c6387e94f03196a4bf28d6081fe4 20-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* If bitmaps are drawn with alpha channel, it helps to setup the correct
alpha mode. Thanks to Ralf Schuelke for pointing this out.
* Also check the bitmap color space and only use alpha drawing for bitmaps
with valid alpha channel.
* Don't just reset the parent to B_OP_OVER, but use the previous mode.


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


# 7837924c494606fb927c52e9f9231270a508e55f 14-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* Fixed warnings.
* Minor cleanup.


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


# f9d5f90ecccab13439d9445633fc4bc44683e9d9 09-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Added missing ColumnTypes.cpp/.h to sourcetree, and added it to the build.
This should make our BColumnListView completely usable.
(ColumnTypes files were taken from imkit SVN)



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