Commit Graph

28397 Commits

Author SHA1 Message Date
Rene Gollent
d7b73de2fd Fix logic error that was coincidentally also triggering a gcc4 warning/error on build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 22:45:19 +00:00
Ingo Weinhold
85ea1e09d3 * Refactored node locking methods. There's now a LockIterator class which helps
with locking.
* Implemented methods for locking two directories. It's a bit complex, since
  we need to enforce a global locking order on the node tree to avoid
  deadlocks. Untested yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 22:41:00 +00:00
Stephan Aßmus
d63a77f913 Didn't spot this coding style violation! Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 17:58:56 +00:00
Ingo Weinhold
edae667b94 * Removed the asynchronous I/O methods. We won't implement them for the time
being.
* Introduced locking for FileCookie.
* Implemented SetFlags() and FSync().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 17:23:37 +00:00
Axel Dörfler
d1996fdfd6 * Fixed regression; the key labels could be drawn out of the button border.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 17:21:15 +00:00
Stephan Aßmus
661d0430d0 * Patch by Ziyu Yu. The bootman window doesn't need to be resizable.
Fixed ticket #2330.
* Additionally, I fixed the bootman window popping up at some place and then
  centering.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:59:21 +00:00
Rene Gollent
a27b5524c8 Fix code style violation (thanks Axel! ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:26:15 +00:00
Ingo Weinhold
880d0bde5a acquire_spinlock[_nocheck]() do now panic() when they couldn't acquire the
spinlock for a long time. That should help to analyze system "freezes"
involving spinlocks. In VMware on a Core 2 Duo 2.2 GHz the panic() is
triggered after 20-30 seconds. The time will be shorter on faster machines.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:16:39 +00:00
Axel Dörfler
5dac0ee0d9 * Removed the GLife entry for now. Maybe something is going to happen there? :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:03:29 +00:00
Stephan Aßmus
23b0de5eb2 Cleanups, mostly to make diffing it against the original file from Tracker
more easy. It's not so nice that this code is replicated, there could be
refactoring to get a base-class which is used by both Tracker and Backgrounds
and the Tracker version extends it for the caching, while the Background
preflet extends it in other ways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 14:10:02 +00:00
Stephan Aßmus
af20d1a13e Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 14:07:33 +00:00
Alexandre Deckner
df8b89cbf7 * Return B_ERROR if the window couldn't be locked, thanks stippi
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 13:33:36 +00:00
Alexandre Deckner
82e6d2ffcd * Lock the popup menu window when archiving, fixes #1775
* Made the drag detection less sensitive as most simple clicks would initiate an unwanted drag.
* Don't show the dragger's popup from its original parent window (not a shelf) for all buttons, as in R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 11:07:45 +00:00
Gerasim Troeglazov
1d5db3c036 *fix prototype
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 05:28:47 +00:00
Rene Gollent
40ae63da1d No longer necessary.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 02:18:03 +00:00
Rene Gollent
076cc460a0 Have BFS create the BEOS:APP_SIG index by default also. Otherwise launching applications by signature off any partition other than one created via the build system will fail by default (since that one currently adds the index manually in build_haiku_image).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 02:17:05 +00:00
Gerasim Troeglazov
2016e43e55 Clone of the Linux SimpleClock screensaver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 01:12:57 +00:00
Ingo Weinhold
b747212f50 Implemented WriteStat() (backend for chown(), chmod(), utime(), truncate()).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 01:12:11 +00:00
Rene Gollent
0296b82ae6 Add several extra scheduler hook functions to allow the scheduler(s) to maintain private housekeeping data on the thread structs. These hooks are called on thread creation/destruction and when prepping a thread for use. Review welcome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 00:58:20 +00:00
Ingo Weinhold
4ecbee4f94 * Our error codes are already negative, so return ENOSYS instead of -ENOSYS.
* fuse_fs_utimens(): Fall back to the utime() hook, if utimens() is not
  available.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 00:50:44 +00:00
Ingo Weinhold
3cf43c2651 Removed the fs_vnode_ops::create_dir() parameter for returning the ID of the
newly created dir. The VFS really doesn't need it and for some file systems
it might not be easy to get by. Several file systems (e.g. rootfs and fat)
were ignoring the parameter anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 00:16:34 +00:00
Karsten Heimrich
82d2e399b4 * port of known OSX screensaver done by Calum Robinson called Flurry (the default one on OSX)
* add to build but not to the image since

 - misses some configuration stuff
 - does not look as good as it could be because of missing double buffering
 - does crash screen_blanker on hide (as all GL screensaver did that i tested)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:49:41 +00:00
Karsten Heimrich
ea1bae881b * fix wrong date diff calculation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:40:40 +00:00
Stephan Aßmus
681c2e4425 The button and menu field draw routines take a background color into account,
which makes the resessed frame blend better with the surroundings. This can
be seen best in Keymap, where a different color is set on some buttons, but
the resessed frame should still be the same across all those buttons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:34:19 +00:00
Ingo Weinhold
cd4ee847c4 * Added support for symlink and directory creation, as well as entry deletion
(directories and other nodes).
* Removed methods we can't possibly implement, since the FUSE interface doesn't
  provide them and we can't emulate them.
* A FUSEEntry does now also own a reference to its parent directory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:33:18 +00:00
Axel Dörfler
0a39e39616 * Add capability to load other keyboard layouts from disk. It even works :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:11:18 +00:00
Karsten Heimrich
c26731ec52 * add default constructor
* fix broken Time_t function
* take the missing days into account when adding months



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 22:31:11 +00:00
Axel Dörfler
a869d32e0c * The L-shaped "enter" key can now also be drawn almost right (uses
BControlLook plus some clipping to do its magic).
* Fixed scancode only mode of the keyboard layout view.
* Fixed filter thanks to Rene.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 22:25:07 +00:00
Axel Dörfler
c31467186f * Added IBM Laptop international keyboard layout.
* Added LEDs to the 105-key internal one.
* Always choose the variable with the longest matching name instead of the
  first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 22:22:59 +00:00
Jérôme Duval
4acbaafd89 * added help for image KDL command
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 21:05:06 +00:00
Karsten Heimrich
09fde55c7f * revert r29708, need to change some more stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 21:03:21 +00:00
Karsten Heimrich
6d585c1cb0 * fixed broken Time_t since i changed BDate to be able to go back before 1970
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 20:49:46 +00:00
Jérôme Duval
934e233b60 * don't copy /var (bug #3584)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 20:42:35 +00:00
Axel Dörfler
3c394ad89e * Added support for LED status indicators.
* The look isn't perfect yet, but well; improvements welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 17:49:46 +00:00
Axel Dörfler
495c8b848b * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:44:54 +00:00
Axel Dörfler
84e80da081 * The default drag&drop action is now copy, if you drag with the second mouse
button, you switch the keys.
* Switching the same key with different modifiers held works now.
* The drop target is now reevaluated when a modifier key is pressed, as the
  key originating the drag cannot be its target (but only with the same
  modifiers pressed).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:05:00 +00:00
Axel Dörfler
477f84638b * SetKey() now supports changing the fChars array and the key_map offsets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:02:39 +00:00
Axel Dörfler
6aa7b63552 * The message filter now does not do anything anymore when the source keymap
matches his own (field now added to the KeyboardLayoutView fake B_KEY_DOWN
  messages).
* The default action for keyboard to keyboard drag&drop is to switch the keys
  now.
* When a key is overwritten by a drop, the old key is now sent to the text
  view, so that it's not lost (if that was a mistake you can now easily revert
  it without having to press the "Revert" button and lose all changes).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 15:14:23 +00:00
Stephan Aßmus
0699a8833e Sorry, this fixes the build. I accidentally commited headers/os/interface
instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 14:53:10 +00:00
Axel Dörfler
53f936a0a7 * The Keymap now has a listener mechanism for changes.
* If the current Keymap is changed, the selection and use/revert buttons now
  actually work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 14:43:21 +00:00
Axel Dörfler
be09c2a190 * Now handles dead keys via the mouse as well.
* Added _InvalidateKey() variant.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 14:42:10 +00:00
Axel Dörfler
6b9767aa8a * The text control is now back - instead of overwriting BTextView::KeyDown(),
we now use a plain BTextControl, and a custom message filter. For some reason,
  BHandler::AddFilter() does not work, though, this needs some investigation.
* Enabled the font menu again, the font in the text control is changed as well.
* Made the default window size a bit smaller on large screens.
* Scrolling to the selection does not seem to work before Show() - looks like
  a bug in the layout implementation.
* Moved some methods around to match their declaration order.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:52:54 +00:00
Axel Dörfler
53c926befb * Added the ability to set a target that will receive fake B_KEY_DOWN
messages generated when pressing the keys.
* The font size is now adapted to match the key size better, maximum size is
  the current plain font.
* The keys you drag around now generate a useful B_MIME_DATA message, that other
  views can accept as well.
* Implemented support for changing the keymap via drag&drop.
* Added SetFont() method to change the font used by the keys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:46:09 +00:00
Axel Dörfler
d66f475749 * Forgot to implement DefaultKeySize().
* Renamed default keymap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:41:33 +00:00
Axel Dörfler
6835544f8f * Started implementing a SetKey() function to change the current keymap;
right now, it can only replace keys with the same mapped length.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:34:59 +00:00
Stephan Aßmus
a62f575a80 BuyNow was renamed to DebugNow... sorry about forgetting HaikuImage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 11:41:58 +00:00
Stephan Aßmus
7aa46bb66b Changing BuyNow to DebugNow (part 2 of 2).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 11:40:26 +00:00
Stephan Aßmus
0f7b37bb12 Changed BuyNow to DebugNow (part 1 of 2).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 11:39:16 +00:00
Stephan Aßmus
94e66d170f Fixed recently introduced regressions with layouted BMenuFields. When passing
fixedSize=true to the private BMenuBar class, it would set the follow mode
in AttachedToWindow() such that BMenu would calculate the minimum width
differently. Also fixes ticket #3606.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 10:54:24 +00:00
Stephan Aßmus
fdfeaa4eec Small code simplifications. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 10:52:01 +00:00