Commit Graph

29182 Commits

Author SHA1 Message Date
Philippe Saint-Pierre 852e061a74 Allow TextSearch add-on to be used also on volumes.
This fixes ticket #3386.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-25 04:16:09 +00:00
Philippe Saint-Pierre bb6301b264 Ask confirmation in case the application would try to overwrite an existing file.
This is fixing ticket #3815.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 23:48:16 +00:00
Michael Lotz 5c8e597e90 Don't try to use disk extensions for non-disk devices (like actual floppies or
emulated ones on CD-boot). One of my laptops returns bogus drive parameters
and another one silently fails the read, previously preventing CD-boot on both.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 23:16:26 +00:00
Ingo Weinhold 4219390212 Moved main window related source to a subdirectory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 23:07:21 +00:00
Ingo Weinhold 660ec153db Added more interesting columns to the threads table.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 22:55:00 +00:00
Ingo Weinhold 1e336eba17 Do an actual analysis of the scheduling data -- basically equivalent to what
the kernel scheduling analysis does.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 22:53:28 +00:00
Ingo Weinhold 3355e888b1 Added Int64TableColumn.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 22:45:39 +00:00
Ingo Weinhold 106fd6b5cb * Make the wait object hash table larger than the maximum number of wait
objects we're going to add, so we get less slot collisions.
* Use the "Unchecked" versions of the OpenHashTable Insert()/Remove() methods,
  since we have interrupts disabled.
* Fixed wrong check that caused the wait object info events not to be filled in.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 22:44:26 +00:00
François Revol 3fb1b5231c Add /bin/trash and /bin/untrash commands to the image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 16:54:36 +00:00
Stephan Aßmus 3bbb00b48d * Only except BFS partitions as target volumes. Installer does not initialize
partitions by itself. When it does, this check can be removed again... for
  now DriveSetup is to be used and so there is no code duplication.
* Check if the target volume is non-empty and present an appropriate warning.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 16:28:38 +00:00
Michael Lotz c2c3d40c7b Check the status value for validity before waiting for a device. If it has an
invalid value, assume the device is not present. Should fix long boot pauses
in VMWare and maybe also on some hardware.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 16:03:01 +00:00
Stephan Aßmus 7a65816a64 * Tweaked text here and there (also thanks to Alexandre for proof-reading!)
* Renamed _UpdateMenus() to _UpdateControls().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 15:45:34 +00:00
Stephan Aßmus b4eca493bb * Prevent the user from chosing the same disk for source and destination.
* Keep the info text and the Begin button in consistent state at all times
  according to the selection of the disks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 15:32:40 +00:00
Stephan Aßmus 4e65d35a57 No need to truncate the labels in layout-managed mode...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 15:18:55 +00:00
Stephan Aßmus 9ba6067e9d Thou shalt compile before thou commitst!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:29:39 +00:00
Stephan Aßmus 5902980135 * Adopted naming scheme for private methods
* Sorted methods to reflect order in .cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:24:20 +00:00
Stephan Aßmus 35c3b2d2a1 * Do not try to prevent read-only partitions, we will/should initialize it
with BFS anyways.
* Use the partition path, not the parent path. This also makes displaying IDs
  really superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:19:18 +00:00
Axel Dörfler 11efbf0160 * Applied patch by Olivier to implement more mouse reporting modes, and thus
fixing bug #2854. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:15:18 +00:00
Stephan Aßmus 7cd194fffb If Deskbar is not running, prevent minimizing (untested).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:14:52 +00:00
Stephan Aßmus 3ac4a7392e Now showing "important information before installing". It mentions that you
should already have a partition ready and also offers some info on integrating
Haiku into a GRUB boot menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:09:41 +00:00
Stephan Aßmus 2e80f194d5 Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:08:11 +00:00
François Revol e963a92370 Add trash to the build. (no, not add the build to the trash!)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 13:57:24 +00:00
François Revol 1ecccf181e Fix debug build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 13:48:12 +00:00
Stephan Aßmus 7ff74a7b9b * Converted to use layout-management.
* New logo specific to R1 Alpha/1.
* "Setup Partitions" is now always visible, since it will most likely be
  required to prepare a partition for installation anyways.
* The optional packages are still in the GUI, but are collapsed by default as
  before. As there are currently no optional packages, a message will be
  displayed if no optional packages are found on the source partition.
* The default label for the "Onto" popup is now "Please choose target" instead
  of the first partition found, even though it is not actually selected yet.
* The EULA window is still shown, but it's not based on a BAlert anymore.
* Only make main window non-minimizable if the Deskbar is not running
  (untested).
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 12:24:25 +00:00
Axel Dörfler 8c8c904aca * Fixed wrong indentation, and number of blank lines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 12:13:22 +00:00
François Revol 9b65e90569 Update yasm to 0.8.0, Build was done by Disreali. Thanks scottmc.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 11:37:24 +00:00
Stephan Aßmus 2468b98190 Fixed links to BePDF's own docs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:47:27 +00:00
Joachim Seemer cdf057b0ca Set MIME type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:32:02 +00:00
Axel Dörfler 6f440aed2c * net_socket_module_info::acquire_socket() now returns whether or not the
socket could be acquired, ie. when its reference count is 0, it cannot be
  acquired anymore. This requires the protocol to do proper locking, though.
* The TCP EndpointManager now checks the return value of acquire_socket(), and
  only returns the endpoint if that succeeded.
* This fixes bug #2197.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:12:30 +00:00
Axel Dörfler c9928eb11a * Moved random_file_actions to the other file system tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:06:32 +00:00
Axel Dörfler bf9f608567 * The multiple file creation was not correct, and could create way more files
than planned. Now, it always adds 10% to the max file/dir count unil 50% is
  reached.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:03:44 +00:00
Axel Dörfler 3ea61f1f22 * Add option -a to always check before contents are removed.
* Print the settings on start in verbose mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 10:01:11 +00:00
Axel Dörfler 8eb51285d3 * Made _GetUnchecked() return nothing, as it was ignored anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 09:58:54 +00:00
Stefano Ceccherini 33ce19159d if opening a document failed because the system is shutting down, don't ask the user if he wants to open the document with another application, since that would fail as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 05:11:56 +00:00
Rene Gollent 60553668bc Update Vision to build 090423. Includes url parsing rewrites courtesy of mmu_man to handle all URL types registered in the mime DB, and a fix for a crash reported by Matt Madia.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 03:59:39 +00:00
François Revol 4f5d92c0d5 Fix bad args for VLC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 21:17:06 +00:00
Oliver Ruiz Dorantes 6971db8cca Do not leak the delegate, as suggested by Stippi
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 21:01:57 +00:00
Stephan Aßmus 2384ec2866 Preparation for using layout-management, improvements to absolute layout for
the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 20:04:31 +00:00
Oliver Ruiz Dorantes b9068dbf95 - Change LocalDevice getter for HCI id
- Fix some new some std::nothrow on critical allocations among kit and server
- Some styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:47:01 +00:00
Stephan Aßmus 072f1c320c Updated to new header indentation style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:42:51 +00:00
Stephan Aßmus bc6c545be0 80 char/line cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:35:14 +00:00
Stephan Aßmus 8baeb63aa2 Probably not good to invalidate the layout in the destructor...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:31:22 +00:00
Stephan Aßmus 5d2a1fb46e More style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:29:58 +00:00
Stephan Aßmus 3e3d7acb90 In some ways, this is unrelated, but I had to combine this anyhow:
* Extend the PaneSwitch BControl from Tracker, so it can draw on/off labels.
  This has the added benefit that you can click the label to expand/collapse,
  like for example in the Get Info window (Permissions).
* I also added font-sensitivity features to PaneSwitch, and it can be used
  in layouted windows (untested).
* This made the "DrawButton" in the Installer superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 18:25:37 +00:00
François Revol dd2625bfb0 Some print-specific CSS rules, after those I did on my resume:
- inline acronym definitions and remove the dotted underline
- inline urls for a tags with printurl class (we don't want all of them printed)
- noprint class for things we might not want to print at all


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 15:38:16 +00:00
Ingo Weinhold a7ccfc910c Added WaitObjectListener destructor. Hopefully fixes the gcc 2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 14:53:18 +00:00
Ingo Weinhold 227fe7d34a * Scheduler/wait object listener:
- Moved scheduler listening interface to <listeners.h> and added more
    convenient to use templatized notification functions.
  - Added a listener mechanism for the wait objects (semaphores, condition
    variables, mutex, rw_lock).
* system profiler:
  - Hopefully fixed locking issues related to notifying the profiler thread
    for good. We still had an inconsistent locking order, since the scheduler
    notification callbacks are invoked with the thread lock held and have to
    acquire the object lock then, while the other callbacks acquired the object
    lock first and as a side effect of ConditionVariable::NotifyOne() acquired
    the thread lock. Now we make sure the object lock is the innermost lock.
  - Track the number of dropped events due to a full buffer.
    _user_system_profiler_next_buffer() returns this count now.
  - When scheduling profiling events are requested also listen to wait objects
    and generate the respective profiling events. We send those events lazily
    and cache the infos to avoid resending an event for the same wait object.
  - When starting profiling we do now generate "thread scheduled" events for
    the already running threads.
  - _user_system_profiler_start(): Check whether the parameters pointer is a
    userland address at all.
  - The system_profiler_team_added event does now also contain the team's name.
* Added a sem_get_name_unsafe() returning a semaphore's name. It is "unsafe",
  since the caller has to ensure that the semaphore exists and continues to
  exist as long as the returned name is used.
* Adjusted the "profile" and "scheduling_recorder" according to the system
  profiling changes. The latter prints the number of dropped events, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 13:47:52 +00:00
Ingo Weinhold 1c800aa1f9 Updated TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 12:19:36 +00:00
Ingo Weinhold 9d7f0c336a * Moved the TableColumn subclasses to TableColumns.{cpp,h}.
* Added Int32TableColumn and BigtimeTableColumn classes.
* Evaluate the timestamps of the events that have one and maintain the
  fLastEventTime field, so we get estimated team/thread creation/deletion
  times.
* Added some columns to the threads table (ID, creation and deletion time).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 23:32:33 +00:00
Ingo Weinhold b623e81cf7 The string setter didn't reset the flags.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 23:22:16 +00:00