History log of /haiku/src/apps/diskprobe/FindWindow.cpp
Revision Date Author Comments
# e39fc9c4 31-Oct-2023 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: Make FindWindow use BLayoutBuilder

* No other functional change intended.

Change-Id: I2f95e66ce79ed0a26bb848973466227e80620171
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7086
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 1bf0271f 07-Sep-2016 Gabriel Maia <gbl08ma@gmail.com>

DiskProbe: select Find window text

Select the text to find as the Find window is opened.
This makes the behavior more consistent with other apps.
Fixes the main subject of #10844.

Also removes trailing whitespace.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


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


# f2afc4be 12-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by diver: Localize Find window title. Thanks! Closes ticket #6593.


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


# e77e4cff 21-Jun-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Jorma Karvonen (#6080) : improve diskprobe localization.


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


# 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


# 40dd3b47 21-Nov-2009 Philippe Saint-Pierre <stpere@gmail.com>

DiskProbe :
Use the Insert method when pasting text into the find window
rather than SetText.

This fixes ticket #3344 while making more sense semantically.


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


# 72dace95 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Make the FindWindow closeable with the escape key.


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


# cb744e5c 21-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Implemented Copy(), Cut(), and Paste() for the hex mode. Additionally, the
text view will now accept raw data in text mode as well.
* This closes bug #3327.


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


# fc165838 15-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Fixed a bug that I introduced with revision 1.9 when fixing the selection
deletion: you just couldn't delete over a ' ' with backspace...
Merged B_BACKSPACE and B_DELETE handling again.
Applied suggestions made by Stefano, like using ByteAt(x) over Text()[x].


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


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

Now saves the current find settings, too (find mode and case sensitivity).
Updated the about requester to read "Haiku" instead of "OpenBeOS".


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


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

Could not delete a selection using backspace if that selection started
at the first character.


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


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

Set a minimum size where the window is still usable and looks okay.
The checkbox and the "find" button are now in the same row to make
the window a bit smaller.


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


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

Uppercase letters were accidently converted in the wrong way, and therefore,
ignored in the find panel.


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


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

Implemented case insensitive search. It's now available in hex mode as well.


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


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

Fixed bug in GetHexFromData() (accidently used Text() instead of the data
parameter passed in).
Now correctly restores the whole state (find mode and case sensitivity).


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


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

The FindWindow can now restore a previous state; it's now set to the
state from the window that opened it.


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


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

Added missing hex <-> data conversions. Find now works fine.


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


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

Hex mode text input now works. BTextView is really lacking in some parts.


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


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

Implemented a find panel. It's one application wide panel that will always
target the last activated window.
Not yet complete - work in progress.


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


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


# f2afc4be649536b1da5edae3447c374df7de83b1 12-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by diver: Localize Find window title. Thanks! Closes ticket #6593.


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


# e77e4cff3e5e8b778a6522b894664f507b9fa978 21-Jun-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Jorma Karvonen (#6080) : improve diskprobe localization.


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


# 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


# 40dd3b47ca56aee55e7a8690743bd49a4b758ad0 21-Nov-2009 Philippe Saint-Pierre <stpere@gmail.com>

DiskProbe :
Use the Insert method when pasting text into the find window
rather than SetText.

This fixes ticket #3344 while making more sense semantically.


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


# 72dace9557f523f8ffcea6506489f7eebf921893 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Make the FindWindow closeable with the escape key.


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


# cb744e5c22ef247b919d429877409b31444fbada 21-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Implemented Copy(), Cut(), and Paste() for the hex mode. Additionally, the
text view will now accept raw data in text mode as well.
* This closes bug #3327.


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


# fc1658382d8acc8ce9b7392f165c2c5e78d07aef 15-Dec-2004 Axel Dörfler <axeld@pinc-software.de>

Fixed a bug that I introduced with revision 1.9 when fixing the selection
deletion: you just couldn't delete over a ' ' with backspace...
Merged B_BACKSPACE and B_DELETE handling again.
Applied suggestions made by Stefano, like using ByteAt(x) over Text()[x].


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


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

Now saves the current find settings, too (find mode and case sensitivity).
Updated the about requester to read "Haiku" instead of "OpenBeOS".


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


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

Could not delete a selection using backspace if that selection started
at the first character.


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


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

Set a minimum size where the window is still usable and looks okay.
The checkbox and the "find" button are now in the same row to make
the window a bit smaller.


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


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

Uppercase letters were accidently converted in the wrong way, and therefore,
ignored in the find panel.


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


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

Implemented case insensitive search. It's now available in hex mode as well.


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


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

Fixed bug in GetHexFromData() (accidently used Text() instead of the data
parameter passed in).
Now correctly restores the whole state (find mode and case sensitivity).


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


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

The FindWindow can now restore a previous state; it's now set to the
state from the window that opened it.


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


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

Added missing hex <-> data conversions. Find now works fine.


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


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

Hex mode text input now works. BTextView is really lacking in some parts.


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


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

Implemented a find panel. It's one application wide panel that will always
target the last activated window.
Not yet complete - work in progress.


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