History log of /haiku/src/preferences/filetypes/ApplicationTypesWindow.cpp
Revision Date Author Comments
# 1ad4f095 02-Feb-2024 Máximo Castañeda <antiswen@yahoo.es>

FileTypes ApplicationTypesWindow: fix UI updates

Fixes #5050 and the info staying empty after selecting a just
deselected item.

Change-Id: I519f7b260658e8e5a1671b854b0980d2fcde8352
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7370
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>


# 93f6ca70 10-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

FileTypes: ensure there is enough space to display app info

Fixes #15793


# 7457ccb4 13-Aug-2018 Augustin Cavalier <waddlesplash@gmail.com>

BMessageFormat: Rename to BStringFormat.

The ICU class is named MessageFormat, but on Haiku, it sounds too much
like something related to BMessage (which it isn't in the slightest)
and not part of the Locale system. It works almost entirely with BStrings,
so naming it BStringFormat makes much more sense.

OK'ed by PulkoMandy and Humdinger.


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

preferences: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.


# d0ac6099 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use B_USE_WINDOW_SPACING

Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.


# f3dd3a96 23-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn't exist.

If the filetype existed but the entry_ref did not, then the path from
the previously shown application would be used. This fixes that.


# 0267bc5f 23-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: We don't plan on building for BeOS, so get rid of the ifdef.


# 4b947a07 08-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

More BMessageFormat rework.

I'm stopping this now, I heard we want to leave those as GCI tasks.


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


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


# be887b8b 14-Dec-2011 Hannah Boneß <hannah@animux.de>

Update layout building code in FileTypes preflet.

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


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


# 25fd5c7b 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


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


# 91f74b0c 21-May-2010 Axel Dörfler <axeld@pinc-software.de>

* The spacing was hard coded to 3 since r36405 which made the whole thing look
poorly with the default font size, I wonder why no one noticed that before
applying.
* This also hid some bugs in the layouting code causing the doubled spacing to
be used.
* Fixed some weird layout in FileTypeWindow.
* Changed some code to BLayoutBuilder in a few cases.
* Made sure the list views have a better default size, and resize with the
window.
* Removed superfluous checks if be_control_look is NULL.
* Enlarged the icon size in the main window to 48 pixels.
* I've worked around some strange resizing in the ApplicationTypesWindow by
setting a max size for the list view. Also, setting a max limit for the
BStringView on the right side had no effect on layouting (only the text
was cut).


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


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# b1c66135 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# f2d5f97a 22-Apr-2010 Jérôme Duval <korli@users.berlios.de>

reorder includes


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


# aaef889b 14-Apr-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localize FileTypes.
It does not use the layout kit yet, so the tranlation doesn't look perfect. Anyone willing to update it ?


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


# 987acd11 07-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

The copyright year was mistakenly changed when sentance casing these files. this is now fixed.


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


# 0b2fbbfa 24-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Humdinger to convert all the preference panels to sentance case.
Also update the localization catalogs as needed.
CPUFrequency localization is broken : the current code works, but the DoCatalogs jamrule is not powerful enough to properly extract the catkeys.


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


# 9c1a9b92 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


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


# 11f685ec 09-Jun-2007 Jonas Sundström <jonas@kirilla.com>

Listview deselection fix. Edit button added. Open in Tracker renamed Show in Tracker.

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


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

* FileTypes now stores and retrieves its settings.
* The "Show Icons" option now defaults to true.


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


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

* New types are now no longer directly added, but delayed a bit (via a BMessageRunner);
this is done so that the type can be fully installed before investigating it.
* When the preferred app of a type changes, the "is application" property will be
reexamined - this should help in letting new application types appear in the
FileTypesWindow list, but not in the ApplicationTypesWindow list.
* Added a progress window for removing uninstalled apps.


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


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

* Work-around for strange BRoster::FindApp() behaviour is no longer needed.
* Fixed wrong height of the signature and path views.


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


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

Version description was one pixel too low, dunno how I missed that before.


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


# 688b1b71 15-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

* Added a version box to the application types views.
* StringView didn't initialize fEnabled.


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


# 041ea260 15-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

More work on FileTypes:
* You can now edit and add extensions.
* The internal name view is no longer a disabled BTextControl, but a simple
customized BStringView like view.
* New "Application Types" window in the making.
* MimeTypeListView can now have icons and supports a flat mode as well
as an application only mode.


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


# f3dd3a96c8376a066ccb6c86478db20aaa8c03cc 23-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn't exist.

If the filetype existed but the entry_ref did not, then the path from
the previously shown application would be used. This fixes that.


# 0267bc5f2243f0b9e2fb2cfe1daa2c8ba9a1020d 23-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

FileTypes: We don't plan on building for BeOS, so get rid of the ifdef.


# 4b947a07d31f8823c24d5c40a3e023c5ccefae33 08-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

More BMessageFormat rework.

I'm stopping this now, I heard we want to leave those as GCI tasks.


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


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


# be887b8b1377a9f8419b05fb0f5fbfd32fb8a952 14-Dec-2011 Hannah Boneß <hannah@animux.de>

Update layout building code in FileTypes preflet.

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


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


# 25fd5c7b3558df58baee955efafec15fd2ceadae 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


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


# 91f74b0c0282179dd3fff1610d98ee3c8f2df76d 21-May-2010 Axel Dörfler <axeld@pinc-software.de>

* The spacing was hard coded to 3 since r36405 which made the whole thing look
poorly with the default font size, I wonder why no one noticed that before
applying.
* This also hid some bugs in the layouting code causing the doubled spacing to
be used.
* Fixed some weird layout in FileTypeWindow.
* Changed some code to BLayoutBuilder in a few cases.
* Made sure the list views have a better default size, and resize with the
window.
* Removed superfluous checks if be_control_look is NULL.
* Enlarged the icon size in the main window to 48 pixels.
* I've worked around some strange resizing in the ApplicationTypesWindow by
setting a max size for the list view. Also, setting a max limit for the
BStringView on the right side had no effect on layouting (only the text
was cut).


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


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# b1c66135aaec3a620da112814360a539c094740c 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# f2d5f97a0c0ff7b01fb23b95c93155d0d07e0cea 22-Apr-2010 Jérôme Duval <korli@users.berlios.de>

reorder includes


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


# aaef889bfb923a15df9ed3f6d7a31a941a1fe9ca 14-Apr-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localize FileTypes.
It does not use the layout kit yet, so the tranlation doesn't look perfect. Anyone willing to update it ?


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


# 987acd111bd88fd406544c98f652f7969b8a4064 07-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

The copyright year was mistakenly changed when sentance casing these files. this is now fixed.


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


# 0b2fbbfaa9d35d304991f3543276c8e46f155460 24-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Humdinger to convert all the preference panels to sentance case.
Also update the localization catalogs as needed.
CPUFrequency localization is broken : the current code works, but the DoCatalogs jamrule is not powerful enough to properly extract the catkeys.


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


# 9c1a9b926aa0b1890a011a44398379d1c47f09c1 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


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


# 11f685ec2bb398ebec4346402500ff382ea6aa3b 09-Jun-2007 Jonas Sundström <jonas@kirilla.com>

Listview deselection fix. Edit button added. Open in Tracker renamed Show in Tracker.

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


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

* FileTypes now stores and retrieves its settings.
* The "Show Icons" option now defaults to true.


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


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

* New types are now no longer directly added, but delayed a bit (via a BMessageRunner);
this is done so that the type can be fully installed before investigating it.
* When the preferred app of a type changes, the "is application" property will be
reexamined - this should help in letting new application types appear in the
FileTypesWindow list, but not in the ApplicationTypesWindow list.
* Added a progress window for removing uninstalled apps.


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


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

* Work-around for strange BRoster::FindApp() behaviour is no longer needed.
* Fixed wrong height of the signature and path views.


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


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

Version description was one pixel too low, dunno how I missed that before.


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


# 688b1b719ca09d069ac1c70eb98ee3c285470479 15-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

* Added a version box to the application types views.
* StringView didn't initialize fEnabled.


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


# 041ea260089705137d559753470b0eec731e5640 15-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

More work on FileTypes:
* You can now edit and add extensions.
* The internal name view is no longer a disabled BTextControl, but a simple
customized BStringView like view.
* New "Application Types" window in the making.
* MimeTypeListView can now have icons and supports a flat mode as well
as an application only mode.


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