History log of /haiku/src/apps/diskprobe/ProbeView.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 58d81e5a 23-Dec-2022 Humdinger <humdingerb@gmail.com>

DiskProbe: Fix view colors not being live

The background color under the icon in the main window and
the attribute icon editor didn't change live.

Change-Id: I5618f66c3d2f91c5d18b6ee9870a87b02bbe3a38
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5960
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 2c563c4c 12-Oct-2022 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: Added 4096 byte block size

* It's a quite common block size on disks nowadays.

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


# a57ccf38 26-Aug-2022 Augustin Cavalier <waddlesplash@gmail.com>

DiskProbe: Use BControlLook::ComposeIconSize() and adjust font size computation.


# c5702ad4 09-Nov-2021 Mikael Konradsson <mikael.konradsson@outlook.com>

DiskProbe: Clean up old compiler pragmas for BeOS and Dano.

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


# 7ae9eac3 22-Oct-2021 Humdinger <humdingerb@gmail.com>

Diskprobe: fix scrollbar insets

Fixes #17558.
Change-Id: I89863e7fcfa61292ac0ef3ccb7752e5c45519c61

Change-Id: I2e4ca735c00bb078ccf203e52e72e1c2f5481e90
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4893
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: John Scipione <jscipione@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# e85413ad 02-Nov-2018 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: Coding style cleanup

* Not complete, no functional changes intended.


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


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


# bafcf016 08-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: improved layout scaling.

* Don't use a fixed size font for the header controls, but one that
depends on the default plain font size.
* Minor cleanup.


# ef69f5d9 01-Jan-2015 Markus Himmel <markus@himmel-villmar.de>

DiskProbe: Make block offset and file offset editable

Fix #4046

Signed-off-by: François Revol <revol@free.fr>

GCI2014 task https://www.google-melange.com/gci/task/view/google/gci2014/5488784896425984


# 2824c5d3 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


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


# 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


# a31ac990 04-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Diskprobe: some 64 bit fixes

* also warnings about comparisons between signed and non signed.


# 776c58b2 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


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


# 53e3cc52 26-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Some buffers become too small for localized strings. Pointed out by Diver. Thanks.
Fixes #6664 and #6591.


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


# dfe0a36e 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Corrected the comment to B_TRANSLATE calls that has problems with
displaying it on HTA. In request from Diver.

PS:It is a "second part" of r40564 changes missed by me. I'm sorry for the noise.



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


# dcdbb901 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Corrected the comment to B_TRANSLATE call that has problems with
displaying it on HTA. In request from Diver.



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


# 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


# dec094bb 28-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added expression support to the position text control. It's not quite the
direly missing "Go To" function, but better than nothing.


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


# aa6b2770 28-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed gcc 4 warnings.


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


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

* Use the new get_device_icon() call under Haiku. This fixes bug #3325.
* Whitespace cleanup.


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


# a6277def 23-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

CID 1156 complained that this was an uninitialized variable, though it was
merely a completely unneccessary one.

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


# 22e1bd07 20-Jul-2008 Michael Lotz <mmlr@mlotz.ch>

DiskProbe also used B_RGB32 instead of B_RGBA32 and would therefore display a black background on the icon.

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


# a9dfa85e 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* DataEditor::SetTo() now checks if the reported block size is zero and then sets
it to the 512 byte default - this fixes bug #960.
* IconView::UpdateIcon() now uses 8-bit icon for get_device_icon(), as B_RGB32 cannot
work in this case.
* Also, in case it couldn't get an icon, it now tries to show the generic icon instead.


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


# 73b7614a 06-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

DiskProbe now correctly monitors vector icon changes in the header.


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


# 250cc422 03-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

Obviously, the R5 icon code has problems when converting to 32 bit (crashes here) :-/


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


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

Added support for the vector icons to FileTypes and DiskProbe.


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


# 900a5491 28-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Only overrides BSlider::DrawBar() if compiled for BeOS (would look okay under R5, too, though).


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


# e5316854 11-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Instead of letting the window reroute the messages, I just learned the
target can also simply be set to the preferred handler by using the
BInvoker::SetTarget(NULL, Looper()) form.


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


# b4ca6a8f 11-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Cut/Copy/Paste messages and B_SELECT_ALL are now sent to the window, which then
passes them to the focus view. Before, only the data view got those messages
(because they are accessible over the menu, and had the data view as target).


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


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

Now uses DataEditor::AttributeRef() where appropriate.
The definition of BEOS_R5_COMPATIBLE is no longer necessary, due to improvements
to our build system.
For root directories, the attributes are now taken from that directory; previously,
only the device was tested for attributes (which doesn't have any in BeOS).


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


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

Fixed typo.


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


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

Added two other unusual font sizes (11 & 13 pt). We may remove then again if
those doesn't look good with our font renderer :)


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


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

Set the stop button font to the small one.
A bit more space for the stop button - it now looks good even in Dano/Zeta.


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


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

Improved the placement of the "Stop" button with smaller window sizes.
It will now also follow the right border of the window.
Enlarged the minimum window width a bit, so that the stop button can no
longer overlay the position text control.


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


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

Unbroke the selection menu item message I broke with the previous change...


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


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

Fixed the file size check for the selection items - accidently compared
blocks with bytes.
Switched the block offset to using the "block" instead of "position" field
in the kMsgPositionUpdate message.


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


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

Added missing shortcuts as reported by Oscar.


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


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

R5 obviously doesn't have B_SHINE_COLOR, B_SHADOW_COLOR, and B_HIGHLIGHTED_CONTROL_COLOR.
Set the shell variable COMPILE_FOR_R5 to 1 when compiling DiskProbe for
R5; it will use default values for the colors in this case.


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


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

Now listens to file/attribute changes.


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


# 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


# 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


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

Only updates the block position view when searching is in progress.


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


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

The PositionSlider now darkens its filled color if its drawn disabled.


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


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

Implemented find functionality. The find panel is still missing though, it
just searches for "test".
The find itself is implemented in DataEditor::Find() which sets the editor
in read-only mode and searches for the specified data. It will update a
progress monitor, it will find data no matter if it's on a view size break,
and it is interruptible at any time.
The DataEditor change methods now respect the read-only mode, and return
B_NOT_ALLOWED in this case.
Renamed the UpdateLooper class to EditorLooper class, since it now also
runs the find action.
The ProbeView class now maintains the "Find Again" menu item; it's target
message always contains the item that last searched for.
The HeaderView will now show a "Stop" button while the search operation
is in progress; it also acts as the Find() progress monitor.


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


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

Replaced lazy mode text positioning with real code.
Turns out it didn't work with the menu in sticky mode (because of the triggers).


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


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

Added some missing consts.
The header will now get the entry_ref from the editor, and not the one
passed to the view (because it may have redirected it).


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


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

The DataEditor always starts in the device native block size or 512 for all
other file types, but the block size menu didn't take that into account, it
always showed "512" to be active when started.
Also, if the DataEditor has a block size that is not yet part of the block
size menu, it will be added and made current.


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


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

Implemented the bookmark menu.
Added a possible "block" member for the kMsgPositionUpdate message.


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


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

ProbeView accidently didn't listen to kDataViewPreferredSize events.
Implemented the "Fit" font size setting.


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


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

Implemented changing the block size - that caused several changes to
DataEditor::SetViewSize()/SetViewOffset() because they did not correctly
update some values under certain circumstances.
There is now a kMsgDataEditorParameterChange instead of just ...OffsetChange;
the message will contain information about what has changed exactly.
Added a new kDataViewPreferredSize notifier that indicates a change of
the preferred size of the DataView. The ProbeView now listens to that
instead of knowing when to update the window limits.


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


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

Save() actually always displayed an error requester, even if there was no error.
Started working on the block size menu.


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


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

Now made the kSignature constant accessible in an appropriate way.
Implemented the print view stuff (as borrowed from ShowImage). Not yet tested
because the print_server is funny today over here...


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


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

The HeaderView now checks the position before it propagates it for kMsgPositionUpdate.


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


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

Now maintains the state of the "Save" menu item.
It will now call DataEditor::Save() in B_SAVE_REQUESTED, but it doesn't yet
notify the user on errors (other then printing them to stdout).


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


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

Connected the font size menu. "Fit" doesn't work yet, though.


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


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

Now maintains the Selection/Native/Swapped menu items (which contain the
block position where the currently selected bytes would point to).


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


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

"int32 * uint32" doesn't give what I wanted (the "previous block" function
was broken).
"Write" had the wrong shortcut (and I already wondered...).
The PositionSlider now correctly disables itself when it's not needed. Added
some nice disabled drawings for the slider bar.


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


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

Now maintains the state of the undo/redo menu items.
Fixed the size limits when the view is buried a bit deeper in the hierarchy.
Tried to disable the slider when it's of no use, but it has no effect...


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


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

ProbeView now monitors attribute changes of its file (and update its attributes menu).


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


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

Implemented initial attribute support.


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


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

Now correctly displays the block size of the file (didn't round up).


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


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

Now maintains the "Paste" menu item - it is enabled/disabled when there
is data available in the clipboard or not. "Copy" and "Select All" now
work.
All position updates are now handled by a separate looper class (UpdateLooper),
and are actually applied at the editor. UpdateLooper will send a kMsgUpdateData
to its target synchronously when necessary. Seeking a file now works nicely
and very smooth.
HeaderView::MessageReceived() and UpdateLooper::MessageReceived() only
consider the most current update message for kMsgSliderUpdate resp.
kMsgPositionUpdate.


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


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

The HeaderView now tracks the current position itself, and also maintains
the last position. The "next", "previous", and "back" position changing
menu items do now work.
Cleaned up target notification for the HeaderView.
"Block/Write" accidently had the wrong short-cut.


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


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

Moved the forced focus out of the DataView and into the ProbeView, since
that should not be the default behaviour of the DataView class.


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


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

The cursor position is now correctly maintained in the HeaderView as well.


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


# 6a2a85f4 17-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The PositionSlider can now use the original slider bar when DRAW_SLIDER_BAR
is not defined.


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


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

The PositionSlider no longer allows to go beyond the last block (starting
with 0!) by one. Also, SetFileSize() now checks if the position is within
valid bounds.
The device offset is now correctly maintained (it also adds the view offset).
The view offset is now taken into account, too (but it doesn't yet get any
updates from the DataView).


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


# 5475e6e5 17-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The header view is now completely working. The position control accepts
decimal, hexadecimal, and octal values (it is using strtoll(..., 0);)
Setting the number base type does now work, too.
Updated the Slider class to a PositionSlider class that creates the
illusion of supporting off_t values - almost (see note in Position()).


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


# 4a665426 12-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The scroll bars now work correctly.
Mouse wheel support added.


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


# 90828ad1 11-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Changed the ConvertLine() method to produce almost exactly the same
output as the original DiskProbe.
fFontSize and fAscent are now automatically maintained when the font
size is changed. Rendering improved (spacing and location).
The maximum window size is now set to contain the whole data view.


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


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

Now contains the DataEditor for the file.
No longer uses the node monitoring itself, but the watching mechanism
provided by the DataEditor (it now even does this at the right place).
Removed some variables now maintained by the DataEditor.


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


# 416271b7 10-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added a ScrollView to let the window appear more complete :)
The gradient below the header is now drawn by the scroll view, and no longer
by the HeaderView.
The ProbeView can now add a BMenuBar to a window if there is none yet - it
will also create a file menu there and add its print menu items (which is
now in a separated method and called by the ProbeWindow, too).


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


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

Fixed the slider resizing mode and drawing.


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


# 56aa406a 10-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Does this look familiar? Copied the DiskProbe UI - not functional yet, though.


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


# bafcf01610d4357686bf4fc4e778864e13bc26dc 08-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: improved layout scaling.

* Don't use a fixed size font for the header controls, but one that
depends on the default plain font size.
* Minor cleanup.


# ef69f5d94187a90c1f6b3cac057b3485f83d80ba 01-Jan-2015 Markus Himmel <markus@himmel-villmar.de>

DiskProbe: Make block offset and file offset editable

Fix #4046

Signed-off-by: François Revol <revol@free.fr>

GCI2014 task https://www.google-melange.com/gci/task/view/google/gci2014/5488784896425984


# 2824c5d3a428b1f52fb41e7cf84ef1690cfadc80 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


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


# 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


# a31ac990cc82daeccd7c8deb39e0c634643418fc 04-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Diskprobe: some 64 bit fixes

* also warnings about comparisons between signed and non signed.


# 776c58b2b56d8bcf33638a2ecb6c697f95a1cbf3 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


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


# 53e3cc52279fecc7bacbad823f80ec60a4ab931c 26-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Some buffers become too small for localized strings. Pointed out by Diver. Thanks.
Fixes #6664 and #6591.


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


# dfe0a36e63452c9b51bcddfb50c89c2200c11e30 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Corrected the comment to B_TRANSLATE calls that has problems with
displaying it on HTA. In request from Diver.

PS:It is a "second part" of r40564 changes missed by me. I'm sorry for the noise.



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


# dcdbb901e4133f83ff966c747f81dfc88e5fe516 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Corrected the comment to B_TRANSLATE call that has problems with
displaying it on HTA. In request from Diver.



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


# 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


# dec094bb735bafc1e49888b1b0dcac22f1467bbf 28-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added expression support to the position text control. It's not quite the
direly missing "Go To" function, but better than nothing.


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


# aa6b2770fcb82b6ca9228a080e64394410bd6251 28-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed gcc 4 warnings.


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


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

* Use the new get_device_icon() call under Haiku. This fixes bug #3325.
* Whitespace cleanup.


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


# a6277def2a660445fa58228d5f3eb68deef3eba8 23-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

CID 1156 complained that this was an uninitialized variable, though it was
merely a completely unneccessary one.

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


# 22e1bd0701b29a36454e07c1b9b83e7f1f801b15 20-Jul-2008 Michael Lotz <mmlr@mlotz.ch>

DiskProbe also used B_RGB32 instead of B_RGBA32 and would therefore display a black background on the icon.

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


# a9dfa85e4e1d06fa4f19cdeb99f147f490c4ab79 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* DataEditor::SetTo() now checks if the reported block size is zero and then sets
it to the 512 byte default - this fixes bug #960.
* IconView::UpdateIcon() now uses 8-bit icon for get_device_icon(), as B_RGB32 cannot
work in this case.
* Also, in case it couldn't get an icon, it now tries to show the generic icon instead.


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


# 73b7614aa0c88313c15ca77b0b3d21cc1801ae7e 06-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

DiskProbe now correctly monitors vector icon changes in the header.


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


# 250cc422bee31bb100fde1b26cfd9caf042a91bb 03-Nov-2006 Axel Dörfler <axeld@pinc-software.de>

Obviously, the R5 icon code has problems when converting to 32 bit (crashes here) :-/


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


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

Added support for the vector icons to FileTypes and DiskProbe.


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


# 900a549127a8b251d49d54a60a00caf2fc1e634d 28-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Only overrides BSlider::DrawBar() if compiled for BeOS (would look okay under R5, too, though).


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


# e53168541fb023a1a1731ee016361ca10da16b98 11-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Instead of letting the window reroute the messages, I just learned the
target can also simply be set to the preferred handler by using the
BInvoker::SetTarget(NULL, Looper()) form.


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


# b4ca6a8fc13e6b05ad63be6f6788fe412674c94f 11-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Cut/Copy/Paste messages and B_SELECT_ALL are now sent to the window, which then
passes them to the focus view. Before, only the data view got those messages
(because they are accessible over the menu, and had the data view as target).


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


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

Now uses DataEditor::AttributeRef() where appropriate.
The definition of BEOS_R5_COMPATIBLE is no longer necessary, due to improvements
to our build system.
For root directories, the attributes are now taken from that directory; previously,
only the device was tested for attributes (which doesn't have any in BeOS).


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


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

Fixed typo.


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


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

Added two other unusual font sizes (11 & 13 pt). We may remove then again if
those doesn't look good with our font renderer :)


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


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

Set the stop button font to the small one.
A bit more space for the stop button - it now looks good even in Dano/Zeta.


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


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

Improved the placement of the "Stop" button with smaller window sizes.
It will now also follow the right border of the window.
Enlarged the minimum window width a bit, so that the stop button can no
longer overlay the position text control.


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


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

Unbroke the selection menu item message I broke with the previous change...


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


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

Fixed the file size check for the selection items - accidently compared
blocks with bytes.
Switched the block offset to using the "block" instead of "position" field
in the kMsgPositionUpdate message.


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


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

Added missing shortcuts as reported by Oscar.


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


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

R5 obviously doesn't have B_SHINE_COLOR, B_SHADOW_COLOR, and B_HIGHLIGHTED_CONTROL_COLOR.
Set the shell variable COMPILE_FOR_R5 to 1 when compiling DiskProbe for
R5; it will use default values for the colors in this case.


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


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

Now listens to file/attribute changes.


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


# 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


# 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


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

Only updates the block position view when searching is in progress.


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


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

The PositionSlider now darkens its filled color if its drawn disabled.


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


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

Implemented find functionality. The find panel is still missing though, it
just searches for "test".
The find itself is implemented in DataEditor::Find() which sets the editor
in read-only mode and searches for the specified data. It will update a
progress monitor, it will find data no matter if it's on a view size break,
and it is interruptible at any time.
The DataEditor change methods now respect the read-only mode, and return
B_NOT_ALLOWED in this case.
Renamed the UpdateLooper class to EditorLooper class, since it now also
runs the find action.
The ProbeView class now maintains the "Find Again" menu item; it's target
message always contains the item that last searched for.
The HeaderView will now show a "Stop" button while the search operation
is in progress; it also acts as the Find() progress monitor.


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


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

Replaced lazy mode text positioning with real code.
Turns out it didn't work with the menu in sticky mode (because of the triggers).


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


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

Added some missing consts.
The header will now get the entry_ref from the editor, and not the one
passed to the view (because it may have redirected it).


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


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

The DataEditor always starts in the device native block size or 512 for all
other file types, but the block size menu didn't take that into account, it
always showed "512" to be active when started.
Also, if the DataEditor has a block size that is not yet part of the block
size menu, it will be added and made current.


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


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

Implemented the bookmark menu.
Added a possible "block" member for the kMsgPositionUpdate message.


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


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

ProbeView accidently didn't listen to kDataViewPreferredSize events.
Implemented the "Fit" font size setting.


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


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

Implemented changing the block size - that caused several changes to
DataEditor::SetViewSize()/SetViewOffset() because they did not correctly
update some values under certain circumstances.
There is now a kMsgDataEditorParameterChange instead of just ...OffsetChange;
the message will contain information about what has changed exactly.
Added a new kDataViewPreferredSize notifier that indicates a change of
the preferred size of the DataView. The ProbeView now listens to that
instead of knowing when to update the window limits.


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


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

Save() actually always displayed an error requester, even if there was no error.
Started working on the block size menu.


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


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

Now made the kSignature constant accessible in an appropriate way.
Implemented the print view stuff (as borrowed from ShowImage). Not yet tested
because the print_server is funny today over here...


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


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

The HeaderView now checks the position before it propagates it for kMsgPositionUpdate.


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


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

Now maintains the state of the "Save" menu item.
It will now call DataEditor::Save() in B_SAVE_REQUESTED, but it doesn't yet
notify the user on errors (other then printing them to stdout).


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


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

Connected the font size menu. "Fit" doesn't work yet, though.


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


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

Now maintains the Selection/Native/Swapped menu items (which contain the
block position where the currently selected bytes would point to).


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


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

"int32 * uint32" doesn't give what I wanted (the "previous block" function
was broken).
"Write" had the wrong shortcut (and I already wondered...).
The PositionSlider now correctly disables itself when it's not needed. Added
some nice disabled drawings for the slider bar.


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


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

Now maintains the state of the undo/redo menu items.
Fixed the size limits when the view is buried a bit deeper in the hierarchy.
Tried to disable the slider when it's of no use, but it has no effect...


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


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

ProbeView now monitors attribute changes of its file (and update its attributes menu).


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


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

Implemented initial attribute support.


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


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

Now correctly displays the block size of the file (didn't round up).


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


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

Now maintains the "Paste" menu item - it is enabled/disabled when there
is data available in the clipboard or not. "Copy" and "Select All" now
work.
All position updates are now handled by a separate looper class (UpdateLooper),
and are actually applied at the editor. UpdateLooper will send a kMsgUpdateData
to its target synchronously when necessary. Seeking a file now works nicely
and very smooth.
HeaderView::MessageReceived() and UpdateLooper::MessageReceived() only
consider the most current update message for kMsgSliderUpdate resp.
kMsgPositionUpdate.


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


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

The HeaderView now tracks the current position itself, and also maintains
the last position. The "next", "previous", and "back" position changing
menu items do now work.
Cleaned up target notification for the HeaderView.
"Block/Write" accidently had the wrong short-cut.


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


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

Moved the forced focus out of the DataView and into the ProbeView, since
that should not be the default behaviour of the DataView class.


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


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

The cursor position is now correctly maintained in the HeaderView as well.


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


# 6a2a85f49813a3761dd157d1669eea20c8790091 17-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The PositionSlider can now use the original slider bar when DRAW_SLIDER_BAR
is not defined.


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


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

The PositionSlider no longer allows to go beyond the last block (starting
with 0!) by one. Also, SetFileSize() now checks if the position is within
valid bounds.
The device offset is now correctly maintained (it also adds the view offset).
The view offset is now taken into account, too (but it doesn't yet get any
updates from the DataView).


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


# 5475e6e54cd9f6c59e20ad4bfddfa22ff588c5ad 17-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The header view is now completely working. The position control accepts
decimal, hexadecimal, and octal values (it is using strtoll(..., 0);)
Setting the number base type does now work, too.
Updated the Slider class to a PositionSlider class that creates the
illusion of supporting off_t values - almost (see note in Position()).


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


# 4a665426852e1490193317aeec0f2ee2882a027f 12-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The scroll bars now work correctly.
Mouse wheel support added.


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


# 90828ad15df5eaeac9cb26bfadecb22e2f627506 11-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Changed the ConvertLine() method to produce almost exactly the same
output as the original DiskProbe.
fFontSize and fAscent are now automatically maintained when the font
size is changed. Rendering improved (spacing and location).
The maximum window size is now set to contain the whole data view.


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


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

Now contains the DataEditor for the file.
No longer uses the node monitoring itself, but the watching mechanism
provided by the DataEditor (it now even does this at the right place).
Removed some variables now maintained by the DataEditor.


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


# 416271b7596dfd45862ecb1dd19fd29f46e23426 10-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Added a ScrollView to let the window appear more complete :)
The gradient below the header is now drawn by the scroll view, and no longer
by the HeaderView.
The ProbeView can now add a BMenuBar to a window if there is none yet - it
will also create a file menu there and add its print menu items (which is
now in a separated method and called by the ProbeWindow, too).


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


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

Fixed the slider resizing mode and drawing.


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


# 56aa406a66e68df0194898aa2184de91262d89b3 10-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Does this look familiar? Copied the DiskProbe UI - not functional yet, though.


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