Commit Graph

6911 Commits

Author SHA1 Message Date
Axel Dörfler
0a6895778a Fixed warning (reordered constructors).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 07:36:49 +00:00
Axel Dörfler
362c1dfc8a Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 07:04:10 +00:00
Axel Dörfler
7a3ca20551 Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 06:58:53 +00:00
Axel Dörfler
8afcf72a6a Added a small visual test for the BScrollView class: it will create a window
with all possible different scrollview combinations (horiz/vert/border/highlight).
The Jamfile will build two versions, ScrollViewTest and ScrollViewTest_r5;
the former compiles our ScrollView.cpp in, while the latter just uses the
one in libbe.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 06:33:57 +00:00
Axel Dörfler
8b35053e1a The scroll bars are now actually placed at the correct location.
The Draw() method now draws all supported borders, but no highlighting yet.
CalcFrame() now seems to work correctly.
Fixed warnings due to missing return codes from non-implemented methods.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 06:30:53 +00:00
shatty
6db6a6824b realign to page on sync loss
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 05:26:42 +00:00
Axel Dörfler
16fe6dd90f Added almost empty BScrollView implementation. It will actually create
the scroll bars, but it won't do much more yet; no border, no highlighting,
no ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 03:31:13 +00:00
Axel Dörfler
26021c2c52 Fixed two bugs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 02:50:31 +00:00
Axel Dörfler
dfa1093a41 Rewrote the BScrollView header from scratch.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 02:06:12 +00:00
shatty
65a8a591f1 less whacking on the disk during seek to zero. prettier debug output. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 22:56:41 +00:00
Ingo Weinhold
1b89aa98ff Made the Unit test stuff a bit more mwcc/mwld friendly. It still doesn't build right out of the box with our build system, but with a few changes to the build system it can be done (I'm not going to do that, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 21:38:04 +00:00
beveloper
5e88de2dea fixed "`status_t status' might be used uninitialized in this function" error
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 19:03:38 +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
shatty
8b876a958c smooth play patch
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 14:49:40 +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
shatty
dc51127a5d seek and sync, it doesn't get much better than this
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 13:10:28 +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
f53ccd0b49 The target view of the scroll view must be moved to the origin (doesn't
matter in this context, though).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 11:56:10 +00:00
shatty
73da0c41c1 new and improved start time for better sync���!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 10:39:50 +00:00
shatty
eaa176da6c fixes for start_time returned from vorbis/speex, makes nplay work better in seeking. I note that this also made MediaPlayer stop reporting a bunch of dropped frames at every seek.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 10:12:50 +00:00
shatty
3f71285861 seeking in ogg
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 09:46:13 +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
shadow303
8e900a6933 Clean up a couple warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 02:26:27 +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
beveloper
91a3abc0dc Then the video fourcc is 0 or 'fake', the compression ID is used instead. This fixes problems with a few AVI files.
Disabled most debugging output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 22:37:52 +00:00
beveloper
7be5d9c6ad disabled most debugging output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 22:36:25 +00:00
Ingo Weinhold
aa94570a34 Changes to make the CPPUnit build on PPC (with mwcc *shudder*).
Courtesy of Oliver Tappe.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 19:57:58 +00:00
Axel Dörfler
69cb3c1013 Moved the TimeSourceOp() call to the beginning of the TIMESOURCE_OP event
(as described by Marcus).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 16:41:07 +00:00
shatty
56b91b1a41 streaming detection based on SEEK_END, tested and working in MediaPlayer for ogg streams from SoundPlay live encoder (oggenc)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 09:56:53 +00:00
Axel Dörfler
cd58ac9968 Minitiure optimizations for BString: eliminated a superfluous variable,
and removed the "newData" calculation, since "dataLen" already contained
the same value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 04:06:44 +00:00
Axel Dörfler
b70fa5139e We now dynamically add scroll bars to the parameter web view!
Some BeOS classes really are very stupid or just inferior:
- added DynamicScrollView class that adds and removes scroll bars as needed
  and automatically takes care of the correct scroller range and proportions.
- added TabView class that is smart enough to resize its container view
  and the tab views as well.

Both classes could be used in other environments, too. DynamicScrollView
would be a nice addition to BScrollView R2 - might be put into a shared
source directory for now (or into libbe's BPrivate namespace?).
The TabView additions could almost be moved to BTabView without breaking
compatibility, just the resizing mode of the tab views have to be respected.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 03:54:48 +00:00
beveloper
fce6c4e478 start soundcard time source
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 23:33:36 +00:00
Philippe Houdoin
0669f665be Remove this stupid cyclic dependency I once introduced...
Should unbreak the userland net stack build process.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 22:50:42 +00:00
beveloper
ec276f43a0 bugfix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 20:54:35 +00:00
beveloper
8a8f7088fe removed dead code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 20:53:13 +00:00
beveloper
745f0912e6 removed AC-3
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 20:51:14 +00:00
shatty
da249551cb fix for expiration date bug. need to mod by blkmod and also use mod by blkmod in curaddr. new TRACE variant (commented out since it is a heavy cpu hog).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 09:14:27 +00:00
Ingo Weinhold
906937de1b Added missing include. Compiles on PPC again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 21:54:07 +00:00
Phil Greenway
610bb7fd59 Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 20:32:05 +00:00
DarkWyrm
747e75bf8d Updated decorators to reflect the removal of _layerdata
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 20:31:40 +00:00
DarkWyrm
67387a90b7 Removed the crash in ViewDriver when moving the cursor off the bottom edge of the screen
Replaced LayerData component of Decorator with DrawData
Fixed unfocused draw bug in DefaultDecorator::DrawBlendedRect
Added some copying methods to FBBitmap and ServerBitmap
Removed a lot of disabled code from ViewDriver file
Implemented and fixed font functions in DisplayDriver
Updates to the BitmapDriver to the reflect changes in DisplayDriver


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 20:27:26 +00:00
DarkWyrm
14ef62299d Implemented and fixed font functions in DisplayDriver
Added some copy functions to ServerBitmap
Replaced LayerData component of Decorator with DrawData


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 20:26:01 +00:00