Commit Graph

32767 Commits

Author SHA1 Message Date
Stefano Ceccherini
6b87afd360 Made the Find Window a bit wider by default, moved some functions around,
got rid of MenuUtil.h/cpp.
Some style change.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 16:03:20 +00:00
Ingo Weinhold
d73033ce64 * Made PackageDomain BReferenceable.
* LeafNode/Directory: We make sure that the added PackageNode with the newest
  modified time is always at the head of the list. This is the package node
  whose stat, attribute data and, in case of non-directory nodes, also content
  data will be returned. This results in a well-defined algorithm what happens
  when multiple directories contain the same file -- the newest file wins.
* Resolved most TODOs regarding error handling when adding a package domain,
  package, or package node.
* Volume::_AddPackageContentRootNode(): Fixed the back tracking loop. It would
  just continue with siblings of the given root node, causing them to be added
  more than once, leading to data structure corruption.
* We now listen to the packages directory. When packages are added or removed
  their contents is automatically added/removed to the file system. We don't
  listen to the package files themselves yet. I.e. modifying an "installed"
  package in place respectively copying/downloading it there will probably not
  work correctly.
  Due to a limitation in the userlandfs the mechanism works correctly only when
  using the kernel module. When running the userland version, one better leaves
  the packages directory alone while packagefs is mounted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 15:43:37 +00:00
Jérôme Duval
b7b67e723a correctly ordered
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 15:26:19 +00:00
Clemens Zeidler
2591def6e5 - Delay creation of the DPC queue to the point when it is first used. Need this to load acpi in the early boot phase.
- Automatic whitespace cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 10:39:49 +00:00
Jérôme Duval
8684e35ad7 added wcsdup to wchar.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 08:39:38 +00:00
Stefano Ceccherini
64fd88f56a Tweak a bit the layout of the preference window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 22:51:39 +00:00
Stefano Ceccherini
143981329c Converted the Terminal Find Window to the layout api keeping (more or less)
the previous look.
Would be nice if the window was a bit wider, but I don't know how to force
that (accepting advices).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 22:29:11 +00:00
Stefano Ceccherini
e79dab79c8 Forgot to delete this
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 20:45:11 +00:00
Stefano Ceccherini
17ecdb5b2f TermView doesn't know about PrefHandler anymore (again), so that, in case
it's used as replicant (but I think it won't work anymore, yet),
it doesn't influence the global settings.
TermWindow saves the preferences on quit, if the PrefWindow was never
instantiated. This allows the window size to be saved also when it's
resized manually (not via menu).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 20:34:03 +00:00
Stefano Ceccherini
bf00b7798c Fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 19:50:33 +00:00
Stefano Ceccherini
70f7a8ad0f Cleanup: removed unused messages constant and classes, merged AppearPrefView
with PrefView, moved main from Terminal.cpp to TermApp.cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 19:47:24 +00:00
Stefano Ceccherini
a5ec0eeb43 Renamed the BMessengers to make clearer to which messengers they
refer to. Made some parameters const references. Removed leftovers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:35:54 +00:00
Stephan Aßmus
f89fd840a0 bonefish+stippi:
PThreads didn't have their array for the TLS values initialized.
From what we can tell, this would have been a problem for any program using
pthreads, but since all threads are pthreads now, it was much more likely to
be encountered. Like in Beam as reported in #4949 (which via libbind seems
to use some pthread stuff).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:08:56 +00:00
Stefano Ceccherini
c1ca410b12 Work in progress: converting the terminal preference window to the layout api
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:05:48 +00:00
Stephan Aßmus
d2b45aa3de Avoid an invalid GCC warning by using a union.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 16:37:47 +00:00
Axel Dörfler
5cea99288b * Unlock the auto locker before deleting the object or else you will find
yourself in KDL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 16:33:09 +00:00
Axel Dörfler
54ca879739 * Also write the bitrate as attribute.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 15:16:13 +00:00
Ingo Weinhold
4d7a736bbf Some more style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 13:57:20 +00:00
Ingo Weinhold
0d1fab522b * Added flag KMESSAGE_CLONE_BUFFER, which will cause buffer passed to SetTo()
to be cloned.
* Added "flags" parameter to the SetTo(const void*,...) version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 13:52:23 +00:00
Axel Dörfler
aea141f906 * This is a temporary work-around to let "ls" show UTF-8 characters, even
though it won't determine the correct display width.
* The actual fix would be to have the wide character API working, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:58:17 +00:00
Axel Dörfler
d77fe260cb * Added missing "continue" as pointed out by Siarzhuk. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:26:15 +00:00
Ingo Weinhold
395fb0895f Style cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:04:12 +00:00
Ingo Weinhold
1c61ec1aad Fixed gcc 4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:03:27 +00:00
Axel Dörfler
51576592ed * This more or less fixes bash's UTF-8 support, and closes ticket #215.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 10:33:13 +00:00
Ingo Weinhold
2425ac35d9 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 08:14:03 +00:00
Ingo Weinhold
9136af73da Our functions deserve to be pretty.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 08:06:05 +00:00
Ingo Weinhold
c77f643a2b Added support for in-kernel node monitoring ({add,remove}_node_listener()).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 07:59:09 +00:00
Ingo Weinhold
c89002c82c * Added missing include.
* Made buildable for userland.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 07:56:18 +00:00
Ingo Weinhold
3386d3985c Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 07:14:48 +00:00
Ingo Weinhold
9837ec16c8 Fixed spelling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 07:10:23 +00:00
Stephan Aßmus
6e190ec6a4 * Created icons for MediaPlayer playlists
* Properly register playlist mimetype in MediaPlayer. Double clicking them
  will now open them in MediaPlayer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 22:55:43 +00:00
Axel Dörfler
a8b3406203 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 22:00:24 +00:00
Fredrik Modeen
a9591c50fd Change back _FindValidFileName to use BString, don't know what I was thinking, thanks Jerome and Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 21:51:36 +00:00
Fredrik Modeen
689b99a74c Additional CLI parameters for Screeshot (Ticket #3816) and some cleanup (I hope), using Translator kit now instead of own PNG when using CLI. More changes will follow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 20:47:17 +00:00
Ingo Weinhold
f0a0bca5bb Should have been part of r34137. Request definitions for the new I/O request
functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 16:33:52 +00:00
Ingo Weinhold
ef58ee846b * Added method PackageDataReader::ReadDataToOutput(), which writes the read
data to a DataOutput.
* Implemented packagefs' io() hook and changed the read() hook implementation
  to use the file cache. It's now possible to mmap() files and thus execute
  programs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 16:31:16 +00:00
Ingo Weinhold
8af6418b5c Implemented support for the recently introduced I/O request calls
io_request_{offset,length}(), {read_from,write_to}_io_request().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 16:26:40 +00:00
Ingo Weinhold
1748a3cb45 IOBuffer::SetVecs(): fUser was initialized incorrectly, if the vecs referred
to physical memory whose address would accidentally satisfy the
IS_USER_ADDRESS() check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 16:23:22 +00:00
Ingo Weinhold
778aa3bf62 transfer_io_request_data(): There was some confusion about the isWrite
parameter and request->IsWrite(). The parameter means whether we want to
write to the request's I/O buffer (therefore renamed it to writeToRequest),
while request->IsWrite() indicates whether the request is a write request.
One can only write to a read request's buffer and vice versa.
IOBuffer::LockMemory() also wants to know whether the request is a write
request, not whether we want to write to the memory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 16:19:59 +00:00
Alexandre Deckner
46cac7f7dd * No need to show an error alert when the preflet is already running, it behaves
as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 14:39:48 +00:00
Bruno G. Albuquerque
7d39f1f137 - Get the process information of the correct team by using get_team_usage_info
instead of getrusage.
- Thanks François for insisting on this. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 12:48:45 +00:00
Stephan Aßmus
e663610e84 * Made opening playlist items asynchronous (in the Controller thread).
* Resolved TODO: Use the existing "FileChanged" notification in the main
  window to adopt the UI to the currently playing item.
* When opening a file takes some time, the window is now free to start hidden
  and setup a message runner to unhide it after 150 msecs.
* When launching MediaPlayer with files, the 150 msecs delay is used to
  start the window hidden and pop up right at the correct location for audio.
  If opening the first audio file takes less than 150 msecs, the window will
  already show as soon as possible.
* While opening a file in the Controller, the window will say so in the
  disabled seek slider instead of showing the message "Drop media files here.".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 12:27:25 +00:00
Axel Dörfler
1221df2dd8 * Improved floating point display.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 11:53:38 +00:00
Axel Dörfler
afad65b245 * Bitmaps and pictures now maintain their client reference independently;
clients can no longer release more references than they own.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 10:42:19 +00:00
Stephan Aßmus
25fcb499b4 Since the window now starts hidden for a brief moment, calling IsHidden() on
the views in the FrameResized() hook which does the layout had some
unanticipated results. We need to know relative to the views themselves. This
fixes the video view being visible despite audio-only content.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 10:07:25 +00:00
Stephan Aßmus
98df5c0e73 Disabled some debugging left-over from the recent commits.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 10:04:33 +00:00
Stephan Aßmus
aaf92d5ce3 Disabled tracing in the AudioAdapter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 10:04:11 +00:00
Axel Dörfler
94d188ea83 * Added application/x-asf to the supported types.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 10:01:05 +00:00
Stephan Aßmus
3160994355 Removed left-over spotted by korli, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 09:51:10 +00:00
Scott McCreary
964a28d1ec Updated cmake to release 2.8.0 and libtool to 2.2.6b
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 09:05:46 +00:00