3175 Commits

Author SHA1 Message Date
Ingo Weinhold
7a6825716a Nested WaitForJob()s didn't work correctly, when the job an outer
_ProcessJobs() loop waited for was processed by an inner one. Instead the loops
now check the state of the waiting job -- it will be changed from waiting as
soon as the job it waits for is done.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-21 04:34:55 +00:00
Jonas Sundström
7914280cb8 Less hardcoding of paths. Adding shared private OpenWithTracker().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 14:50:01 +00:00
Jonas Sundström
1932021874 Restore the initial copyright year.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 10:24:43 +00:00
Jonas Sundström
6a400ee80f Move mailbox symlink from ~/mail/mailbox to ~/config/settings/Mail/mailbox as requested in #4580. Create in/out/draft folders at build time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 23:33:20 +00:00
Jonas Sundström
8362330647 Resource clean-up. Removing bitmap icons. Updating copyright dates. Removing dead code and redundant comments. Ending files in a newline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 19:08:43 +00:00
Jonas Sundström
eef66737ce Ending the Shutdown menu superitem label with an ellipsis hints that a dialog will follow. It also helps show that the superitem is actually selectable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 14:58:30 +00:00
Jonas Sundström
95a67fecbd Language nit: 'setup' != 'set up'
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 14:28:08 +00:00
Stephan Aßmus
2291f75684 Fixed bugs in reference counting. The transform boxen need to acquire refs to
the objects they transform. Fixes ticket #4536.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 10:05:27 +00:00
Stephan Aßmus
3b56969814 Added tool tips to the non-obvious buttons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 09:54:29 +00:00
Stephan Aßmus
224c9ca6d7 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 09:53:52 +00:00
Stephan Aßmus
9368e58be4 * Re-enabled tool tips as those are now supported in Haiku.
* Make sure settings are saved rightaway whenever they change. (Solves a
  ticket which I cannot seem to find right now.)
* Some improvements to the NamePanel layout/size (when setting descriptions).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 09:53:19 +00:00
Michael Pfeiffer
cc8605dc75 Fixed typo.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 07:15:29 +00:00
Philippe Saint-Pierre
4c58935dca MidiPlayer : CenterOnScreen
* Remove the local version (not really working) of CenterOnScreen and use the shared one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 06:20:51 +00:00
Philippe Saint-Pierre
8e32a27e6f SoundRecorder : Several style "fixup". No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 05:19:52 +00:00
Philippe Saint-Pierre
0da53e3dd0 Installer : truncated string in menu fields
* Delay the display of the alert just a little bit, to let the menu fields enough time to adjust.

Fixes ticket #3893.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 03:44:10 +00:00
Philippe Saint-Pierre
8b93f21c22 Expander: Smarter window resize
* Rather than enlarging the window on (potentially) every line, simply keep the largest delta and use it only once at the end of the listing.

Ref: r33073 and ticket #3797.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 03:09:52 +00:00
Philippe Saint-Pierre
80c5515366 Expander: Smarter window sizing
* When using the "Show Content" feature, enlarge the window horizontally rather than wrapping.

Ref: enhancement request #3797.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-12 02:59:50 +00:00
Stephan Aßmus
4ca1875ae9 Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-07 19:46:40 +00:00
Stephan Aßmus
43eaa79d33 Handle the .OptionalPackageDescription files correctly in the UnzipEngine.
Decided it would be easiest there, since it already needed to know about them.
Tested with a whole bunch of our packages and it appends them correctly to the
AboutSystem COPYRIGHTS attribute.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-07 19:45:39 +00:00
Jonas Sundström
ec577ecf2f Removing printf committed by accident.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-07 04:19:01 +00:00
Jonas Sundström
4230fe9a76 Simplified window accounting and application quitting. Added silent relaunch. Serialize prefs saving through app. Replaced deprecated B_CLOSE_REQUESTED with B_QUIT_REQUESTED for Command-W. Set Command-Q to target application.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-07 04:12:22 +00:00
Jonas Sundström
cbced9ed90 Removing unused bitmaps on request by Ralf Schülke. Thanks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 21:02:11 +00:00
Jonas Sundström
3360020ab0 If moved to Trash, close window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 20:42:23 +00:00
Jonas Sundström
c7a206e9b1 ¡Ya basta! No more bitmap icons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 18:37:48 +00:00
Stephan Aßmus
72586154d7 * Finished ProgressReporter
* Integrated ProgressReporter into CopyEngine and UnzipEngine.
* Integrated unzipping to main installer engine. Since there are currently no
  .zip files in the _packages_ folder (and not even a _packages_ folder
  itself), this is completely invisible, but it works.

TODO: Adjust the build system to optionally copy packages into _packages_
instead of extracting them. Like for the CD build profile mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 17:23:31 +00:00
Jonas Sundström
c12764b812 Also state Be, Inc. copyright. Remove bitmap icons.
-alphabranch

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 16:38:00 +00:00
Bruno G. Albuquerque
0c19bd4a85 - Update our entry_ref when the underlying file is moved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 14:08:41 +00:00
Bruno G. Albuquerque
1d175bb86a - Fix break statements indentation.
- Remove debug left-over.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 13:01:20 +00:00
Stephan Aßmus
41974e4319 * Changed the UnzipEngine to be a BCommandPipe::LineReader itself, this
simplified the code somewhat (maintaining of state).
* UnzipEngine does a more complete parsing of the .zip contents and maintains
  a hashmap of item names to byte size entries. During unzipping later on, this
  allows to know how many bytes were unzipped for the given item.
* Test whether folders from the .zip already exists, and exclude them from the
  item count, since unzip will not report creating folders that already
  existed.
* Added the unzipping of packages in the _package_ folder to WorkerThread, but
  it is currently commented out to keep Installer in a working state. It would
  work, but the problem is that the progress bar would reset itself at the
  moment (for every package).
* Started a ProgressReporter class that will later be used by all CopyEngine and
  UnzipEngine instances. This is work in progress and not yet part of the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 10:26:51 +00:00
Bruno G. Albuquerque
ccc2cf7f03 - When the associated people file is deleted, close the window instead of
reseting it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 22:59:57 +00:00
Stephan Aßmus
2d304daf77 Ignore some more entries from the bootable CD. Should fix ticket #4403, test
pending.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 08:54:41 +00:00
Bruno G. Albuquerque
a7291500f1 People was always more of a tech-demo than a real app, so I just decided to
make it more interesting in this respect.

- Uses node monitors to react to external changes. Updates the window
  contents accordingly.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 00:58:12 +00:00
Stephan Aßmus
dce00bc179 Added UnzipEngine, work in progress. This actually unzips, but the progress
reporting is incomplete and it is not yet used for anything, it's not even
part of the build. I am testing it in a selfcontained little test.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:55:03 +00:00
Stephan Aßmus
8e3916f8ef Extracted SemaphoreLocker into it's own file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:53:06 +00:00
Axel Dörfler
6761e2d915 * PowerStatus now checks if full_capacity is valid, based on a patch by tqh.
This closes bug #4305.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:00:17 +00:00
Stephan Aßmus
d478944d26 * Some menu items were enabled for the completely wrong partitions, because
the BPartition pointer in _UpdateMenus() was toast after calling
  CancelModifications() on the disk. Most importantly, the Mount/Unmount
  items are now correctly enabled/disabled. And you can no longer initialize
  mounted partitions...
* Added some debug output to help track down why BDiskDeviceRoster
  notifications don't work anymore. I am pretty sure those did work at one
  time.

+alphabranch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 19:57:48 +00:00
Stephan Aßmus
f7a0f575a8 When no settings file is found, resize the list view and the window such that
all columns are seen (taking care not to become bigger than the screen) and
center the window on screen.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 11:42:18 +00:00
Stephan Aßmus
e5f148ddec It was a bad idea to calculate the text margin when drawing the first column.
Now it is explicitely calculated, which makes getting the preferred size
more reliable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 11:38:03 +00:00
Stephan Aßmus
8028111912 Size ContentSize() seems to be unreliable for read-only media, and also since
we may allow initializing partitions from within the Installer, it's better to
use Size() for now. Should fix the CD install source to display as 800 +some
Bytes.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 09:58:25 +00:00
Stephan Aßmus
da268834ab Update the progress bar more often during file copies (every 2 MB instead of
every 10, which was not smooth enough).

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 09:23:22 +00:00
Jonas Sundström
9eb3adda45 Adapted to use TrackerAddonAppLaunch.h. A little cleanup. Not necessary for alphabranch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 01:28:59 +00:00
Jonas Sundström
c5d2ebc76a Introducing a private method for launching a Tracker addon as a stand-alone application. Updated TextSearch to use it. Matthijs Hollemans license is MIT. Not important for alphabranch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 00:48:48 +00:00
Fredrik Modeen
c6c220e98f Open playlist from the playlist window hits B_REFS_RECEIVED and the drag and drop out side of playlistview hits B_SIMPLE_DATA, so adding append_index from the B_REFS_RECEIVED fixes the ticket #4332.
+ spel fix.

Stippi what do you think?

+alphabranch

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 12:17:33 +00:00
Joachim Seemer
9e8e4a372f Applied a small patch that has ALT+R assigned to 'Rotate Indices Right' and ALT+SHIFT+R to 'Rotate Indices Left'. Fixes #4183. +alphabranch
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 14:21:25 +00:00
Michael Lotz
8d5e993169 mmlr+anevilyak:
Unconditionally release the reader sem when the previous buffer size was 0
instead of testing for fParserWaiting as there is a race condition between
setting it to true in the parser thread and checking for it in the reader
thread so a release_sem() could be missed causing #4343. To reduce the possible
side effect of needlessly looping through acquire_sem() for too many
unconditionally released sems, we eat them in the parser thread once we're sure
we can't miss an event because of that. Also added a TODO about a memcpy()
optimization as pointed out by Rene.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 02:15:20 +00:00
François Revol
241dbd3785 Fix warnings about deprecated automatic (char *) cast.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:17:24 +00:00
Stephan Aßmus
3ceab7ef3f Fixed problem with the AddPathCommand. When ownership of the added paths is
not transfered to the commmand, it needs to add references. If not more of
such problems are lurking, it could already fix ticket #4104. Note that you
can build Icon-O-Matic with referencable tracing turned on (generic/support/
Referenceable.cpp). The backtrace in #4104 would specifically hint at a
problem with assigning paths to shape and then unassigning them. Assigning
them didn't add the references that unassigning the paths removed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:16:40 +00:00
Jonas Sundström
6199266476 Patch by Fredrik Ekdahl, slightly modified. Added Fredrik to list of Contributors.
+alphabranch

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-25 22:05:47 +00:00
Stefano Ceccherini
a632bfec28 fix gcc4 warnings (+alphabranch)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-24 18:49:36 +00:00
Stefano Ceccherini
230fd426a9 fix gcc4 warnings (+alphabranch)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-24 18:48:57 +00:00