489 Commits

Author SHA1 Message Date
Axel Dörfler
902673ec27 The settings are now also always saved in little endian.
When the settings are loaded, all parameters are checked for validity.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 09:07:57 +00:00
Axel Dörfler
7fff3ed096 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
2004-02-24 08:52:35 +00:00
Axel Dörfler
d11ec0829b 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
2004-02-24 07:24:05 +00:00
Axel Dörfler
595bb3098e Implemented initial attribute support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 07:21:11 +00:00
Axel Dörfler
32069a88fa Made the attribute type accessible read-only.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 07:15:56 +00:00
Axel Dörfler
9ee2211f9a Ignored the file size - it would have shown imaginary contents of a file
in its last block.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 04:36:14 +00:00
Axel Dörfler
84a09d60e1 No longer takes an attribute for a file, or a device for an attribute.
Implemented attribute support.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 04:32:01 +00:00
Axel Dörfler
a0858e6e27 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
2004-02-24 04:29:23 +00:00
Axel Dörfler
cf54799833 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
2004-02-24 03:39:23 +00:00
Axel Dörfler
6a3227322b Added a selection observer notice (in addition to cursor position).
Now listens to B_SELECT_ALL, and B_COPY.
B_COPY copies the selection as "application/octect-stream" and, if
it's a valid ASCII string, also as "text/plain".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 03:33:14 +00:00
Axel Dörfler
0e3cec8c6d Moved the message/notice constants to the bottom.
Added a message that initiates a data update from the editor.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 03:30:22 +00:00
Axel Dörfler
053bb7380a Added a UpdateIfNeeded() method that you can call when you are not
interested in the data at all.
No longer imitates the BHandler observer model, but directly send
its update messages to the observers.
Now also stores the entry_ref of the file/device in the editor.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 03:27:45 +00:00
Axel Dörfler
d2adccea19 Rotate what? Added degree symbol.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 16:05:11 +00:00
Axel Dörfler
fec798f4df 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
2004-02-18 16:00:36 +00:00
Axel Dörfler
075968bf03 Now has one central DataBounds() method that's used by GetPreferredSize()
and others.
MouseMoved() no longer passes an invalid position to SetSelection() (avoiding
the selection to be changed unexpectedly). It will now also make sure that the
position hovered by the mouse is visible.
PositionAt() no longer skips points that are not inside the valid bounds (even
the wrong bounds), but clips the point to be inside of it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 15:02:31 +00:00
Axel Dörfler
602992140d Implemented proper focus handling in DataView instead of forcing focus
whenever the window got activated.
New DataView::MakeVisible() makes sure the specified position is visible
in the view, and scrolls to it if not (both, horizontally and vertically).
Implemented cursor navigation and selection extension in the DataView class.
Fixed a bug in DataView::SetSelection() that could let slip through invalid
values.
Renamed DataEditor observer notices.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 14:37:09 +00:00
Axel Dörfler
d556aa00c8 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
2004-02-18 14:31:23 +00:00
Axel Dörfler
b797c2778b 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
2004-02-18 12:26:18 +00:00
Axel Dörfler
6a2a85f498 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
2004-02-18 12:11:20 +00:00
Axel Dörfler
b95c3b6860 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
2004-02-18 04:34:04 +00:00
Axel Dörfler
15fef5f790 Too bad the DataEditor did not report the correct size for devices... :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 04:20:44 +00:00
Axel Dörfler
5475e6e54c 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
2004-02-18 03:34:10 +00:00
Axel Dörfler
e805d89711 Added support for different number bases in the offset column.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 03:28:37 +00:00
Axel Dörfler
f7efc8f447 The DataEditor class is now subclasses from BLocker instead of aggregating
it. This way, it can directly be used in the BAutolock class, and also provides
some more sophisticated locking functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 02:31:48 +00:00
Axel Dörfler
04d3a3dedf Now can also retrieve the size of a disk device.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 02:05:31 +00:00
Axel Dörfler
4a66542685 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
2004-02-12 22:57:27 +00:00
Axel Dörfler
bf74bb653a Implemented the selection code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 20:38:57 +00:00
Axel Dörfler
8b6c387e95 Fixed the wrong return type of ViewSize().
Reduced the number of state message types.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 20:33:46 +00:00
Axel Dörfler
90828ad15d 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
2004-02-12 04:21:33 +00:00
Axel Dörfler
bc005359f2 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
2004-02-12 03:09:22 +00:00
Axel Dörfler
990e75bacf Started to implement the DataView class that will be the view to the editor.
For your entertaining it already shows the first block of the file/device.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 03:07:15 +00:00
Axel Dörfler
f748e2d460 Extended watching mechanism (it now works more like the BHandler watching
mechanism) - it's not really used yet, though.
Fixed some variable initialization bugs and missing return values.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 03:00:56 +00:00
Axel Dörfler
632ef26708 The OpenWindow now accepts file drops (i.e. from Tracker) and automatically
opens these files.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 02:58:48 +00:00
Axel Dörfler
bc2c92cd36 Removed no longer used code (was only there for testing purposes of the DataEditor).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 02:57:30 +00:00
Axel Dörfler
416271b759 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
2004-02-10 20:10:13 +00:00
Axel Dörfler
f8e65da910 Fixed the slider resizing mode and drawing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-10 15:39:54 +00:00
Axel Dörfler
56aa406a66 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
2004-02-10 15:34:29 +00:00
Axel Dörfler
5d5bcda961 Now has a handy constant for the window cascade amount in pixel. Set that
one to 20 (instead of 15) which fits DiskProbe's value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-10 12:05:21 +00:00
Axel Dörfler
a0bf290624 Fixed window cascading.
Moved position of first window a bit more to the center.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-10 04:26:03 +00:00
Axel Dörfler
92ad515183 Implemented the document handling foundation for DiskProbe.
Does not yet maintain the window position on disk (nor any other settings).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-10 04:17:16 +00:00
Michael Phipps
c5cd141413 Removed a crashing bug in the options parsing. Improved the time handling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-10 03:42:12 +00:00
Axel Dörfler
e9dcd87490 Fixed calculation of the menu bar height and the position of the views below.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 03:05:49 +00:00
Waldemar Kornewald
b917144621 Changed output style and comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 18:08:02 +00:00
François Revol
32b68b5f10 avoid getting it under Deskbar when it's set as always-on-top.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-05 15:40:10 +00:00
Philippe Houdoin
1678ada6d1 Make distinct "route" target name for both bin command and rebirth route network protocol module...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 22:51:12 +00:00
François Revol
bdb2cb7960 Added licence notice; anyone knows better ?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 19:45:20 +00:00
François Revol
a8e7c82fd7 fix a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 19:42:17 +00:00
François Revol
837c5110d1 Found top.c in some public source from R3... that's the original one,
with a pointer to a mirror.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 19:40:10 +00:00
Phil Greenway
83c60cc9e2 Factor updated by Chris Simmons
Sleep by Chris Simmons

New with
this version is ability to handle milliseconds and microseconds in
addition to seconds, minutes, hours, days like in standard 'sleep'.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 21:03:54 +00:00
Phil Greenway
0202a6eb59 id by Chris Simmons
Just a small note about 'id'... All testing I've been able to perform on my machine in compiling it was done under BONE.

Seeing as how BeOS does not have true multi-user yet, it was impossible for me to simulate the usage of multiple users, groups, the group list functions.

It appears to work as intended, reporting the ID and NAME of the current and requested USERNAME, but further testing is required to be sure.

I've removed the -a argument, and implemented as best as I could this spec:

http://www.opengroup.org/onlinepubs/007904975/utilities/id.html

No effort has been made yet to deal with posix LOCALE issues, yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 21:02:18 +00:00