History log of /haiku/src/apps/diskprobe/AttributeWindow.cpp
Revision Date Author Comments
# 744a3927 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use templatized version of BLayoutBuilder

...also more B_USE_WINDOW_SPACING


# a1e032c8 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

DiskProbe: rewrite to use layout code.

The main goal is to use a layout aware tab view in the attribute editor
window, removing some hacks that caused #10480.


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


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


# a021189b 17-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of DiskProbe and small style cleanups.
Closes ticket #5916, thanks a bunch!


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


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

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 4fba3522 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


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


# 58e5eff9 10-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Some refactoring and cleanups.
* Started a "View As" feature which will allow you to use the type
editor for the file itself - not yet enabled (or working).


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


# 527b14e9 09-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

Renamed AttributeEditors.{cpp|h} to TypeEditors.{cpp|h}.


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


# 6f850dfd 26-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Build fixes for the R5/Dano target, no longer relies on the COMPILE_FOR_R5 macro.


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


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



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


# 86daa6f2 17-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Now also shows the volume name instead of the entry_ref name for root directories.


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


# 871fa04f 10-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Added a comment for the R5 BTabView::Select() workaround - also uses
Window() instead of Parent() now, since I'd guess that's the culprit.


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


# d858695d 03-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Some R5 fixes that don't affect Dano/Zeta, and hopefully won't affect us, too:
- BWindow::SetSizeLimits() don't change the window size if it's bigger than the
maximum.
- BTabView::Select() crashes when the view is not yet attached to a window.
- BMenuItem::DrawContent() has wrong drawing mode set (not really a big issue,
but I think Draw() should call DrawContent() with correct and usable values)


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


# c1381da9 29-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Fixed a crashing bug when there is no TypeEditorView.


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


# fa78c88e 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The attribute editors are now subclassing TypeEditorView which has a
CommitChanges() method. Editors like the MimeTypeEditor will use this
to propagate their current content when the window receives QuitRequested().
Brought the StringEditor to a usable state (note, currently, all attribute
editors can only change what's there; they cannot change the size of the
attribute - this will be fixed at a later point).


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


# 768673c6 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Changed the default button to remove the attribute, as that's a bit more
convenient and actually shows some trust in the users decision :-)
Also changed the text to make clear that this action is not covered by
the undo functionality.


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


# 0adaff85 26-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Now checks if there are any outstanding changes in the editor when the
window is closed.
Also, it now reports errors from the save operation if there were any.
Enabled the "Print" and "Page Setup" menu items.


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


# c0ced84a 26-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The Save/Print menu items of the ProbeView were added too soon, so that
BInvoker::SetTarget() could not work yet (before the view was added to
the window).


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


# 6781cbdc 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Removed the "Block/Write" menu item, and introduced new "Save" menu items;
they are not yet working, though.


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


# c7a76e9f 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Moved the attribute editors into a separate file.


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


# 7e55eac3 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added a simple image/icon view for the attributes.


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


# 02f331d5 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

We no longer need to hold the editor lock for DataEditor::Replace().


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


# 7d7f16ac 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The AttributeWindow has now possibly two editors, one raw editor (the
standard ProbeView), and one type editor. Started to implemented different
type editors, so far we have: BooleanEditor, StringEditor (not yet fully
working), NumberEditor, and MimeTypeEditor (not complete).
Needed to trick quite a bit to get BTabView to do what I want, since we
cannot detach the ProbeView without losing all of its menus.
All editor views share one backend DataEditor object, so everything is
synchronized and updated automatically.


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


# 36a79516 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added two more menu items "Save" (non-functional) and "Remove from File"
(working).


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


# 7fff3ed0 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented R5 compatible settings.
The number base type (hex or decimal) and the window frame is already
correctly maintained (font size is only displayed, but not yet changed).
I don't know the meaning of the last 4 bytes in DiskProbe_data, but
it's probably not that bad.


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


# d11ec082 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented initial attribute support.
ProbeWindow is now the base class for FileWindow and AttributeWindow.
Currently, attribute window has no special additional controls, but that will come.


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


# a1e032c8759a701911e7946dfafab713cdf7bb35 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

DiskProbe: rewrite to use layout code.

The main goal is to use a layout aware tab view in the attribute editor
window, removing some hacks that caused #10480.


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


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


# a021189bbbbc8b7a32322aed13714bdc54696dd7 17-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of DiskProbe and small style cleanups.
Closes ticket #5916, thanks a bunch!


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


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

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 4fba3522e02906506b6c713ef5b57d72e9458fef 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


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


# 58e5eff96f4f697e9bac1389c4e07661c25a7ff8 10-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Some refactoring and cleanups.
* Started a "View As" feature which will allow you to use the type
editor for the file itself - not yet enabled (or working).


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


# 527b14e9d548c05336910cdee47c2e5218c06885 09-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

Renamed AttributeEditors.{cpp|h} to TypeEditors.{cpp|h}.


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


# 6f850dfd449d3e2976aa5107d15c440dd807c087 26-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Build fixes for the R5/Dano target, no longer relies on the COMPILE_FOR_R5 macro.


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


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



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


# 86daa6f28cc8d51d41a2c6227f4756e0780c67f9 17-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Now also shows the volume name instead of the entry_ref name for root directories.


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


# 871fa04fc9156a4ee74091e836d416d896cce00b 10-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Added a comment for the R5 BTabView::Select() workaround - also uses
Window() instead of Parent() now, since I'd guess that's the culprit.


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


# d858695df82cc9e457637675ea28d97629e75b0c 03-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

Some R5 fixes that don't affect Dano/Zeta, and hopefully won't affect us, too:
- BWindow::SetSizeLimits() don't change the window size if it's bigger than the
maximum.
- BTabView::Select() crashes when the view is not yet attached to a window.
- BMenuItem::DrawContent() has wrong drawing mode set (not really a big issue,
but I think Draw() should call DrawContent() with correct and usable values)


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


# c1381da97cd8e985f0c4d30b0a7f06b96b3b5b02 29-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Fixed a crashing bug when there is no TypeEditorView.


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


# fa78c88efa86b28739793f23312a04b3ee38b5b8 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The attribute editors are now subclassing TypeEditorView which has a
CommitChanges() method. Editors like the MimeTypeEditor will use this
to propagate their current content when the window receives QuitRequested().
Brought the StringEditor to a usable state (note, currently, all attribute
editors can only change what's there; they cannot change the size of the
attribute - this will be fixed at a later point).


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


# 768673c687e72a9a244dc08d177d3b144a3a5a82 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Changed the default button to remove the attribute, as that's a bit more
convenient and actually shows some trust in the users decision :-)
Also changed the text to make clear that this action is not covered by
the undo functionality.


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


# 0adaff854a59d08e9d7d28d6498298b593489a09 26-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Now checks if there are any outstanding changes in the editor when the
window is closed.
Also, it now reports errors from the save operation if there were any.
Enabled the "Print" and "Page Setup" menu items.


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


# c0ced84a6248d4e3349cbaec8dcac86651083db5 26-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The Save/Print menu items of the ProbeView were added too soon, so that
BInvoker::SetTarget() could not work yet (before the view was added to
the window).


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


# 6781cbdc9b74b5fa54d623c023c62c4650924e65 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Removed the "Block/Write" menu item, and introduced new "Save" menu items;
they are not yet working, though.


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


# c7a76e9f26b0ffa09c424d5e877332b3e8455b85 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Moved the attribute editors into a separate file.


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


# 7e55eac3360c511f6549500f48acfba9b741d377 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added a simple image/icon view for the attributes.


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


# 02f331d59cc3da01f37bbfe32cb13b16da7a8496 25-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

We no longer need to hold the editor lock for DataEditor::Replace().


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


# 7d7f16ac72b81c07046d33e9cb39dbe97888f619 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The AttributeWindow has now possibly two editors, one raw editor (the
standard ProbeView), and one type editor. Started to implemented different
type editors, so far we have: BooleanEditor, StringEditor (not yet fully
working), NumberEditor, and MimeTypeEditor (not complete).
Needed to trick quite a bit to get BTabView to do what I want, since we
cannot detach the ProbeView without losing all of its menus.
All editor views share one backend DataEditor object, so everything is
synchronized and updated automatically.


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


# 36a7951646e2db0768eb637a666422cb4725b816 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added two more menu items "Save" (non-functional) and "Remove from File"
(working).


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


# 7fff3ed096826c2efe41f10c2fea71a5e0b4656f 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented R5 compatible settings.
The number base type (hex or decimal) and the window frame is already
correctly maintained (font size is only displayed, but not yet changed).
I don't know the meaning of the last 4 bytes in DiskProbe_data, but
it's probably not that bad.


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


# d11ec0829ba34a871b5b8104feddb0ef7e1e918a 24-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented initial attribute support.
ProbeWindow is now the base class for FileWindow and AttributeWindow.
Currently, attribute window has no special additional controls, but that will come.


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