History log of /haiku/src/preferences/filetypes/AttributeListView.cpp
Revision Date Author Comments
# 19d1cffe 12-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: Prevent a potential snprintf overflow.


# e23f9373 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: Use list view color constants

...instead of hardcoding black.

Only you can prevent hard-coded colors.

Make sure to set both high color and low color so we don't get
anti-aliasing glitches.

Also, use be_control_look->DefaultLabelSpacing() instead of 5.0f.

Only you can prevent hard-coded label spacings.

Also return early if text is NULL (not set).

Fixes a small part of #10840


# c35a9fd0 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: make middle bar darker

... matching the rest of the list view borders.

* Don't draw the middle bar in DrawItem(), that already happens in
owner->Draw(), no reason to draw it twice.
* Update copyright header.


# ada54af0 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: Style fixes


# b25611ea 26-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

FileTypes: Localize Attribute List Views (types and display) #7321.


# 5084d0d4 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# c8cbb276 07-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Try to remember the last selected attribute, or select a new attribute
if all other attributes are the same as before. This first is helping
a feature I am going to commit next, the other is making sure that a
newly created attribute is selected, I pondered other options to realize
this feature against the highly asynchronous model updates, but this
seems to be most robust and highly unlikely to be triggered in accident.


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


# ce6bec05 30-Sep-2010 Axel Dörfler <axeld@pinc-software.de>

* Based on Adrien's idea to use special unicode characters, I've added rating
and checkbox as new display_as types - editing, however, works the same as
before.


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


# 954d79e2 29-Sep-2010 Axel Dörfler <axeld@pinc-software.de>

* Added first working "display_as" type "duration".
* Changed Media:Length to int64, and use the new duration view in Tracker.
* Renamed the pretty name for video's Media:Length to "Runtime" (that's how it's
called in IMDB, and I was never really fond of "Playing Time").
* FileTypes AttributeWindow needed to check the display-as types, as well as
if the contents are acceptable when opening, too.
* Minor cleanup.


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


# 50a2f6d7 21-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Puh... basically this is the patch by "yourpalal" from ticket #5690, which
converts the FileTypes preflet to use layout management. However, I had to
revert r36252, apply the patch and then manually add r36252 back on top.
I have fixed issues both in the layout management patch (broken layout
in the ApplicationTypesWindow) as well as the translation (untranslated labels
in alerts) and other problems with composed strings (one problem remains, but
already had a TODO). However, the hard work was taken care of by yourpalal!
Thanks a bunch!


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


# ca8b3261 05-Dec-2009 Stephan Aßmus <superstippi@gmx.de>

According to the BeBook, BListView passes the flags unchanged to the BView
constructor. This means we have to provide B_FRAME_EVENTS ourselves, if we
want don't want to enforce this in the BListView code. This fixes ticket
#5081 (Attribute list view scrollbar not maintained when window size changes).


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


# 89fe2e17 20-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Completed the "display as" functionality as far as FileTypes is concerned for now.


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


# 067c811f 26-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* "Extra Attributes" can now be added as well.
* Moved AttributeListView and AttributeItem into its own file.
* Can now be compiled on R5 systems again.

(coded by axeld)



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


# e23f93739b311bfb52a81390ea80e0c5317a4f2d 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: Use list view color constants

...instead of hardcoding black.

Only you can prevent hard-coded colors.

Make sure to set both high color and low color so we don't get
anti-aliasing glitches.

Also, use be_control_look->DefaultLabelSpacing() instead of 5.0f.

Only you can prevent hard-coded label spacings.

Also return early if text is NULL (not set).

Fixes a small part of #10840


# c35a9fd0a7c56ed052938684886cbbbb80c5e378 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: make middle bar darker

... matching the rest of the list view borders.

* Don't draw the middle bar in DrawItem(), that already happens in
owner->Draw(), no reason to draw it twice.
* Update copyright header.


# ada54af0c94b0d013efb469c7ef9ed7e52367f89 27-Jun-2014 John Scipione <jscipione@gmail.com>

FileTypes: Style fixes


# b25611eac04e0350faa5d71dc04a01252eef448e 26-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

FileTypes: Localize Attribute List Views (types and display) #7321.


# 5084d0d451501f3c026d593dc109cbb76d7688fc 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# c8cbb2763f8b250d756b711816af78b4829f32d2 07-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Try to remember the last selected attribute, or select a new attribute
if all other attributes are the same as before. This first is helping
a feature I am going to commit next, the other is making sure that a
newly created attribute is selected, I pondered other options to realize
this feature against the highly asynchronous model updates, but this
seems to be most robust and highly unlikely to be triggered in accident.


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


# ce6bec05aaa3aba9fa357710a79af0810bb5a176 30-Sep-2010 Axel Dörfler <axeld@pinc-software.de>

* Based on Adrien's idea to use special unicode characters, I've added rating
and checkbox as new display_as types - editing, however, works the same as
before.


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


# 954d79e24415c797708727e4c446d77b54dbf7c8 29-Sep-2010 Axel Dörfler <axeld@pinc-software.de>

* Added first working "display_as" type "duration".
* Changed Media:Length to int64, and use the new duration view in Tracker.
* Renamed the pretty name for video's Media:Length to "Runtime" (that's how it's
called in IMDB, and I was never really fond of "Playing Time").
* FileTypes AttributeWindow needed to check the display-as types, as well as
if the contents are acceptable when opening, too.
* Minor cleanup.


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


# 50a2f6d7b20e0c0b24b47f85622e445bf84e81a8 21-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Puh... basically this is the patch by "yourpalal" from ticket #5690, which
converts the FileTypes preflet to use layout management. However, I had to
revert r36252, apply the patch and then manually add r36252 back on top.
I have fixed issues both in the layout management patch (broken layout
in the ApplicationTypesWindow) as well as the translation (untranslated labels
in alerts) and other problems with composed strings (one problem remains, but
already had a TODO). However, the hard work was taken care of by yourpalal!
Thanks a bunch!


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


# ca8b3261b1d33a2842619d988b729e85d0c105cc 05-Dec-2009 Stephan Aßmus <superstippi@gmx.de>

According to the BeBook, BListView passes the flags unchanged to the BView
constructor. This means we have to provide B_FRAME_EVENTS ourselves, if we
want don't want to enforce this in the BListView code. This fixes ticket
#5081 (Attribute list view scrollbar not maintained when window size changes).


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


# 89fe2e175ea025304e167719c798aa63a9e45559 20-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Completed the "display as" functionality as far as FileTypes is concerned for now.


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


# 067c811fe8a97ada78c00d4ee14510b6ac0dbbfc 26-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* "Extra Attributes" can now be added as well.
* Moved AttributeListView and AttributeItem into its own file.
* Can now be compiled on R5 systems again.

(coded by axeld)



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