Commit Graph

26932 Commits

Author SHA1 Message Date
Alexandre Deckner e522ba55ba * In single window navigation, tracker wasn't restoring the view origin (current scrolling) properly. It was reseting the origin even after
successfully loading the saved state. Reworked the logic to make that work properly (this also needed checking if the state read succeeded). This 
fixes part of #2441. There is still an issue when sometimes the view state is not saved properly, more tomorrow! 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 01:41:45 +00:00
François Revol fcbcb00e18 Turn off debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 00:06:42 +00:00
François Revol 2cf4975b4b Add FAT32 support. This allows the bootloader to find a BFS image file (currently named BEOS\IMAGE.BE) and start booting for it, until the kernel tries to mount the boot partition.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 23:54:04 +00:00
Michael Lotz a04a170937 bonefish + mmlr:
Don't use the spinlock in arch_debug_serial_puts if we're inside the kernel
debugger. This fixes a tripplefault when faulting with said spinlock held
(due to a NULL string argument for example).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 23:49:24 +00:00
Michael Lotz 945a6a41ac bonefish + mmlr:
* Add possibility to restart a complete pipe through B_KDEBUG_RESTART_PIPE.
* Implement tail in the kernel debugger making use of the former.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 23:43:27 +00:00
Axel Dörfler 669ab2141b * The "info" KDL command now also dumps the built-in SVN revision.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 21:24:32 +00:00
Alexandre Deckner 404bf9d1ab * Simply check if fTrashContextMenu->Window() is non NULL. This should be the definitive
solution :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 21:14:16 +00:00
Stephan Aßmus 1cbca49a83 zooey + stippi:
* Fix the calculation of the fTextRect member. The BeOS behavior (and also the
  previous Haiku behavior) was to recalculate the "bottom" always. This was not
  taken care of in SetTextRect() (needs to override the passed bottom).
* The insets are already tracked in fLayoutData, use this in
  _UpdateScrollBars() to calculate the correct data width/height (an
  improvement over the BeOS behavior it seems).
* Try to minimize the need to call _Refresh(), which reduces flickering a whole
  lot.
* Fix several instances where fTextRect was recalculated based on Bounds() and
  the saved insets, where it was broken when the BTextView was scrolled.

Fixes #2784.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 21:07:37 +00:00
Stephan Aßmus 431dc47dde Patch by Artur Wyszynski with some changes by myself:
* Resolved TODO: The type of the gradient is no longer encoded twice in the
  app_server link protocoll.
* Moved instantiation of the BGradient into the LinkReceiver::ReadGradient()
  method.
* Check success for (at least) ReadGradient() in ServerWindow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 19:47:00 +00:00
Alexandre Deckner 2259002bdb * Augmented the cellSize of the BColorControl to 8, it was previously clamped to that value
anyway, but now BColorControl actually respects this setting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 17:45:20 +00:00
Ingo Weinhold e5b1c10e58 Calm down debug output a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 17:19:45 +00:00
Stephan Aßmus 2748e5b7f6 patch by Artur Wyszynski:
Build fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 17:08:51 +00:00
Stephan Aßmus b355a208d1 patch by Artur Wyszynski:
* Fixed some bugs in the archiving code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 16:14:41 +00:00
Stephan Aßmus 714c386ac3 packageinstaller:
* Reworded info_prepare() for clarity. 
* info_get_package_version() and info_get_package_name() were returning
  memory from a local variable. They return an error code now, possibly
  from info_prepare().

installedpackages:
* Simplifications and refactoring.
* Improve the layout of the interface (using layout management).
* Fix coding style issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 16:12:08 +00:00
Rene Gollent 8cca2102aa Fix build (ShowingAwarePopupMenu was not added to libtracker's build, resulting in undefined sym errors).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:43:05 +00:00
Stephan Aßmus 7b31874607 Before anything bad happens to my Haiku disk, check the WIP alpha logo into
the repo... It's not supposed to be final yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:41:39 +00:00
Stephan Aßmus d90ca97492 * Add some more tracing.
* Add the case where H.264 info needs to be extracted.
(Had this laying on my hard drive for a while, hope you have not worked
on it again, David...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:40:27 +00:00
Stephan Aßmus 699e7d89e4 Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:38:34 +00:00
Stephan Aßmus 822f932f1a Enable the H.264 codec in the avcodec decoder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:37:42 +00:00
Alexandre Deckner 618c7ffa85 * There was indeed a problem with my previous attempt at fixing #353. This should be much
better!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:35:59 +00:00
Axel Dörfler 2f8909e465 * Removed the old "andrew" code. IIRC it was a start to rework Terminal, but
it's so outdated by now, that it's hardly of any use now. Of course, it's
  still in the SVN history if you want to have a look at it :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:27:52 +00:00
Stephan Aßmus de5ced9331 I re-saved all icons in Icon-O-Matic (actually to get the proper icons
in Haiku), but the binaries have appearantly changed slightly, probably of
some optimization that Icon-O-Matic is now doing. No functional or visual
changes should have taken place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:00:40 +00:00
Stephan Aßmus 740530e47c Created a Firefox icon from the original SVG logo that can be downloaded
from Wikipedia. I tried to fix any issues and approximate the original logo
as best as I could. (tqh, I can send you an .rdef if you need it.) The icon
size could be further reduced by re-using paths. I named a couple of paths
accordingly when I spotted duplicates.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:58:10 +00:00
Stephan Aßmus f85d9ecab8 Patch by zuMi:
* A new icon for NetSurf (although the original logo can and has been made
  into a HFIV icon by Guiseppe, but I find the surfing monkey quite cool
  and would prefer that if it's alright with the NetSurf crew.)
* A new icon for a Chat application, or perhaps the Chat Kit server? :-)
* A new icon for RSS Feeds. Either for a file/bookmark type or an app?

Nice work, zuMi, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:54:41 +00:00
Stephan Aßmus bda7cd8dce Added a simple sphere for using as a reference for other icons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:46:38 +00:00
Axel Dörfler 4a29c739af * When adding new bitmaps, Pairs now checks if it already got it (in case two
apps are using the same icon).
* This fixes bug #2694.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:45:51 +00:00
Axel Dörfler 08a6ab444b * Added a _MouseDistanceSinceLastClick() that returns the square of the pixel
distance of the last click and the point passed in.
* Use this one to delay starting of character wide selections.
* Also, treat double/triple clicks as single clicks if the mouse moved too far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:06:25 +00:00
Axel Dörfler 61fc0bb6be * Adjusted the difficulty levels a bit to fit better with what you likely get.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 13:11:59 +00:00
Axel Dörfler 6a63492f6c * When switching Terminals via Command-G, we now also take the workspace
information into account, ie. we now behave like the Terminal on BeOS, and only
  allow to switch between the Terminal windows of one workspace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:48:19 +00:00
Ingo Weinhold 628808166c mmlr: On some keyboards another keycode maps to backslash.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:43:40 +00:00
Axel Dörfler 051bb0bb64 * Added a comment to SO_BINDTODEVICE.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:33:59 +00:00
Axel Dörfler 302809b46f * Moved duplicated initializers to the _InitObject() method.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:23:17 +00:00
François Revol a326b4f1b1 Fix the BeOS build. Yeah I know I'm the only one building Terminal on Zeta...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 11:53:43 +00:00
Axel Dörfler c2f7e34f8d * When resizing the Terminal, we now show a small BStringView that displays the
current size of the Terminal in characters.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 10:24:53 +00:00
Oliver Tappe 39fbf5509b bonefish + zooey:
* Fixed a general problem with respect to overriding of the reserved
  virtual function slots: instead of statically invoking the method
  that corresponds to the reserved slot on the class that contains the
  slot, we now invoke the virtual Perform() method. Perform() then dispatches 
  the method invocation to the "proper" class, i.e. the highest class in the 
  hierarchy that  actually implements the requested method.
  This fixes a crash in apps that use liblayout's MSlider class and
  should fix one or other spurious bug with old apps or libraries, too.
* added new header folder 'binary_compatibility' that contains files that
  define the method codes and data structures required by Perform()
* looked for and implemented all used reserved virtual slot functions to
  invoke Perform() where necessary or to pass on the method call statically
  (for slots that were already maintained by Be)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 09:29:06 +00:00
Axel Dörfler f00aecf4b6 Cleanup in AllocateBlocks():
* Replaced "group" with groupIndex, "group" is now a reference to the
  AllocationGroup.
* Renamed some variables for clarity.
* No functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 09:12:45 +00:00
Oliver Tappe bc6a5f8697 bonefish + zooey:
* added tracing of stack traces to userspace entries


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 09:04:37 +00:00
Axel Dörfler ab8b37cf9f * Fixed another check, the warning "first free too late" was printed even
though there was no problem.
* Nevertheless, improved output of that warning :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 08:49:53 +00:00
Michael Lotz 39e9e0e43b Fix typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 08:08:31 +00:00
Michael Lotz c2b295654c Initialize the parameters to NULL so that a later reload doesn't try to free
uninitialized memory. Fixes a crash on boot with a preloaded settings file
present that wasn't used before the boot device was available (like the vm
settings file).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 08:06:30 +00:00
Rene Gollent 1138737b87 Fix regression introduced in r28116: Due to the change in variable names, the
wrong version of ConvertFromScreen() was now used, resulting in the calculation
being computed and thrown away. This broke BMenu, probably amongst other things.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 01:59:39 +00:00
Axel Dörfler b06a5d91f9 * Fixed a bad bug (that I introduced with one of the last commits...) that
could check memory beyond the block and then tried to allocate that on the
  correct block (would possibly lead to KDL).
* Made AllocationBlock::Allocate() and Free() inline.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 01:21:31 +00:00
Axel Dörfler 0945268d80 * GetMouse() now survives being called with NULL parameters for location or
buttons.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 00:02:54 +00:00
Axel Dörfler 8cc45109d2 * Fixed build when DEBUG_ALLOCATION_GROUPS is not defined, thanks Rene.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 22:58:21 +00:00
Axel Dörfler 98ec129e53 * I obviously need some sleep: messed up the fix, and forgot some parenthesis...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 22:49:13 +00:00
Axel Dörfler 4986b5c767 * Fixed the wrong check for the largest block: it was always checked, no matter
if the largest block was marked invalid or not. Thanks for testing, luroh :-)
* Fixed warning.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 22:42:49 +00:00
Axel Dörfler c709ef9805 * Changed how the string for the UUID hash is build.
* Accidently did not start at different positions in the string to build the
  hash, but just added some value to the hash...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 22:30:43 +00:00
Axel Dörfler a8744b0ee9 * Each allocation group now lazily maintains the largest free block separately,
so that allocations can be directly fulfilled from that block without having
  to search for it.
* This should further improve the allocator's performance, but it could need
  more tuning (ie. when to rebuild the free block).
* Added debugging code to check if the largest block is maintained correctly;
  it's currently turned on (DEBUG_ALLOCATION_GROUPS) which makes allocations
  actually pretty slow - I'll disable it again after it has been tested a bit
  more.
* Added a "bfs_allocator_blocks" KDL command that allows you to show all
  tracing entries that affect a specific block (only available if BFS has
  been compiled with tracing support).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 22:14:10 +00:00
Michael Lotz 4977d0be6c Fix build under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 21:47:05 +00:00
Stephan Aßmus 991547ef6c Patch by Artur Wyszynski:
* Implemented BGradient, BGradientLinear, BGradientRadial,
  BGradientDiamond, BGradientConic and BGradientRadialFocus
  new Interface Kit classes.
* Implemented all the (AGG-based) backend necessary in
  the app_server to render gradients (Painter, DrawingEngine)
* app_server/View can convert a BGradient layout to screen
  coordinates.
* Added BGradient methods of the Fill* methods in BView.
* Implemented a test app and added it to the image as a
  demo.
* Adopted Icon-O-Matic and libs/icon in order to avoid
  clashing with the new BGradient class. Re-use some
  parts where possible.

Awesome work, Artur! Thanks a lot. Now a more modern
looking GUI has just become much easier to implement! :-)

TODO:
* Remove the need to have gradient type twice in the
  app_server protocol.
* Refactor some parts of the patch to remove duplicated
  code (Painter, DrawingEngine).
* Adopt the BPicture protocol to know about BGradients.
* Review some parts of the BArchivable implementation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 21:27:42 +00:00