History log of /haiku/src/preferences/filetypes/IconView.h
Revision Date Author Comments
# f673ac0d 23-Mar-2024 Axel Dörfler <axeld@pinc-software.de>

FileTypes: Renamed some IconView members to avoid confusion

* fIcon -> fIconBitmap
* fIcanData -> fIcon
* Minor style fixes.

Change-Id: I16a99b41698824dacfe694d87826c137fa76dcbe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7546
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# d3da4f98 28-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: Refactor icon handling to use BControlLook::ComposeIconSize().

Fixes #17907.


# 37cebf68 17-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all warnings in FileTypes preflet and enabled -Werror

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


# 54123ac0 17-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* style adjustments - no functional change

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


# 8d7c9617 07-Aug-2010 Jérôme Duval <korli@users.berlios.de>

CID 1318: IconView::Invoke() should match BControl::Invoke() signature.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37965 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


# 20ca748a 16-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

* Fixed a memory leak when creating the drag bitmap.
* Added an optional modification message that is triggered whenever the
view adopts a new icon.


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


# 7cb11339 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* TypeIconView now inherits from IconView and only adds the icon source label
to it - it also inherits all the features like drag&drop, of course.
* IconView now inherits from BControl instead of BView, might need some more
work to properly handle the invocation message stuff, though.
* The "Remove Icon" menu item was always enabled, no matter if there was an
icon or not; also it was not properly detected wether or not a MIME type
had an icon when building the menu.
* Dragging in MIME type mode now works as well.
* Added some getter methods to the IconView to retrieve the data it has.
* Some other cleanup, like adding missing consts.


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


# b724cb64 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

IconView can now also be set to a MIME type instead of a file or a buffer.
Untested actually, but FileTypesWindow's TypeIconView will be merged to this
one soon.


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


# 035f2c2a 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

When dragging an icon into an icon view that gets its icon from its MIME type,
the vector icon is now retrieved as well.


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


# 745e7694 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* The IconView is now keyboard navigable, and can be invoked (via the enter key),
or the current icon be deleted (using the delete key).
* Drag&drop between IconViews should now also work as expected for all icon
types (only the large icon was taken into consideration before).
* Improved error handling in the Icon::CopyTo() methods


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


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

Moved icon_for_type() to IconView.cpp.


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


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

* Extended the IconView quite a bit to support what we need:
- supports drag&drop from icons (only tested for non-vector icons yet)
- allows to remove/edit/add icons (there is still need for support in Icon-O-Matic
for this to work completely)
- has a mode where it stores the changed icon data in an object rather than
directly to disk; this object can maintain all BeOS icon types
- reacts to live updates from file icons
- supports different view sizes (for later or uses in other apps)
* works again on BeOS (it crashed before because of a BeOS "feature").
* in the Application window, the "supported types" listview will now be enlarged
with the window instead of the long version description.
* To compensate for that, the latter now shows a scroll bar.
* Application delivered supported type icons are now shown as well, and can
be edited - they're not yet saved, though.


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


# 50751440 07-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Beginnings of the application type window - doesn't do anything yet, but at
least it looks more or less okay (long description border isn't right yet)
and is font sensitive.


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


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

* Added an icon view to the file type window.
* Renamed the IconView class in the FileTypesWindow to TypeIconView.


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


# 37cebf6883e52061e1c31f263eacdd2d04078e4e 17-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all warnings in FileTypes preflet and enabled -Werror

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


# 54123ac0e823379dba82c26ac21a7cf8c2791c4a 17-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

* style adjustments - no functional change

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


# 8d7c9617f10ae6d0757f4b69ed6a17abef30e1e7 07-Aug-2010 Jérôme Duval <korli@users.berlios.de>

CID 1318: IconView::Invoke() should match BControl::Invoke() signature.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37965 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


# 20ca748ade7ec9372490aaca418e25939d435340 16-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

* Fixed a memory leak when creating the drag bitmap.
* Added an optional modification message that is triggered whenever the
view adopts a new icon.


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


# 7cb11339a0623be7d5e3009d75d57bbb353e841a 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* TypeIconView now inherits from IconView and only adds the icon source label
to it - it also inherits all the features like drag&drop, of course.
* IconView now inherits from BControl instead of BView, might need some more
work to properly handle the invocation message stuff, though.
* The "Remove Icon" menu item was always enabled, no matter if there was an
icon or not; also it was not properly detected wether or not a MIME type
had an icon when building the menu.
* Dragging in MIME type mode now works as well.
* Added some getter methods to the IconView to retrieve the data it has.
* Some other cleanup, like adding missing consts.


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


# b724cb640860c7ef2ec2dc6f592d3a88098a6dac 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

IconView can now also be set to a MIME type instead of a file or a buffer.
Untested actually, but FileTypesWindow's TypeIconView will be merged to this
one soon.


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


# 035f2c2a4d3d4a291620cab84f03d07f1a11a22b 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

When dragging an icon into an icon view that gets its icon from its MIME type,
the vector icon is now retrieved as well.


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


# 745e7694e587ba8af494e9fbda9b087766ab6209 15-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

* The IconView is now keyboard navigable, and can be invoked (via the enter key),
or the current icon be deleted (using the delete key).
* Drag&drop between IconViews should now also work as expected for all icon
types (only the large icon was taken into consideration before).
* Improved error handling in the Icon::CopyTo() methods


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


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

Moved icon_for_type() to IconView.cpp.


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


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

* Extended the IconView quite a bit to support what we need:
- supports drag&drop from icons (only tested for non-vector icons yet)
- allows to remove/edit/add icons (there is still need for support in Icon-O-Matic
for this to work completely)
- has a mode where it stores the changed icon data in an object rather than
directly to disk; this object can maintain all BeOS icon types
- reacts to live updates from file icons
- supports different view sizes (for later or uses in other apps)
* works again on BeOS (it crashed before because of a BeOS "feature").
* in the Application window, the "supported types" listview will now be enlarged
with the window instead of the long version description.
* To compensate for that, the latter now shows a scroll bar.
* Application delivered supported type icons are now shown as well, and can
be edited - they're not yet saved, though.


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


# 507514408c37d12c3d24dafa1bcd0265b753fdeb 07-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Beginnings of the application type window - doesn't do anything yet, but at
least it looks more or less okay (long description border isn't right yet)
and is font sensitive.


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


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

* Added an icon view to the file type window.
* Renamed the IconView class in the FileTypesWindow to TypeIconView.


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