Commit Graph
100 Commits
Author SHA1 Message Date
Adrien Destugues 873914a020 cdda: use singly linked list for attribute cookies
The list is only iterated forward so there is no need for a doubly
linked one.
No functional changes.
2014-12-17 17:34:25 +01:00
Adrien Destugues a28398b3a2 userlandfs: NULL pointer dereference
get_vnode could be called with a NULL privateNode in the kernel, but not
in userlandfs. This would crash in cdda mount code (and from a grep
search, also with several other filesystems).

Now cdda can be mounted with userlandfs, and CDs read that way, but for
some reason there is no CDDB renaming of the tracks in that case.
2014-12-17 15:29:36 +01:00
Adrien Destugues c4793b242c fix adding or removing items to an open BMenu
The menu would try to relayout itself, but fail to get the supermenu
bounds as the looper for it was not locked in that case.

This fixes the crash with two downsides:
* The menu width isn't adjusted to match the parent menu (mostly visible
in BMenuFields)
* There is some flickering as the menu is updated

Fixes #9863 (Network prefs part).
2014-12-17 10:23:40 +01:00
Adrien Destugues cf01ee8a45 Add the DejaVu fonts to the nightly profile. 2014-12-17 08:47:05 +01:00
Adrien Destugues 7cb12e75ae Screenshot: list a writable "artwork" directory.
Fixes #10928.
2014-12-16 16:56:34 +01:00
Adrien Destugues 4738a0e182 Remove built-in cal command.
* Replaced by gcal package
* Fixes #9696.
2014-12-16 14:31:04 +01:00
Adrien Destugues 92ab3ad71f Add a package for gcal. 2014-12-16 14:17:08 +01:00
Adrien Destugues 7b2bc3a6d3 Make the Haiku package depend on vl_gothic.
* Makes sure there is at least one font installed
* Fixes #11581.
2014-12-16 09:39:02 +01:00
Adrien Destugues 4696958aa4 BBox: fix minimal size when using layouted mode.
It is possible to set a custom layout on a BBox, which is then applied
to the children excluding the label. However, the label size must still
be used when computing the minimal size of the BBox in that case.
2014-12-15 11:12:56 +01:00
Adrien Destugues 04c56ae26b Revert "FileTypes: make space for BBox titles"
This reverts commit f0eb9fcd93.

Fixing this in BBox is better.
2014-12-15 11:04:36 +01:00
Adrien Destugues 244f97dc27 LayoutItem: better documentation for SetExplicitMinSize.
This is a bit counter-intuitive, at least to me, as forcing the minimal
size can lead to the item being smaller than it would otherwise.
2014-12-15 10:46:11 +01:00
Adrien Destugues 40e05d88f9 Remove now unneeded MediaAlert class. 2014-12-15 09:56:31 +01:00
Adrien Destugues b245bc8dbd Media Prefs: rework the BNotification code
* Factor out the notification sending in a single method
* Tweak the "progress" values so the progress bar goes from 0 to 100% in
order, and only once, during the restart
* Remove one notification that was needlessly sent twice
* Some other small cleanups

Final fix for #8171.
2014-12-15 09:52:36 +01:00
Adrien Destugues 18bd706d85 Add package for the Substrate screensaver. 2014-12-12 16:43:58 +01:00
Adrien Destugues 3bcb69811b BOptionPopUp: call the superclass AttachedToWindow.
It's ther that the view background color is inherited from the parent.
Fix option popups having a white background eg. in MediaPlayer
preferences.

Thanks to DeadYak for noticing the problem.
2014-12-12 16:18:34 +01:00
Adrien Destugues f0eb9fcd93 FileTypes: make space for BBox titles
In some locales the title is longer than the space there is for it. Make
sure the boxes are wide enough for the title to display completely.

Fixes #11611.
2014-12-12 16:11:07 +01:00
Adrien Destugues 27627e22db DataTranslations: remove SetExplicitMinSize
It prevents the window to get big enough for some of the translators.

Fixes #11612.
2014-12-12 15:53:25 +01:00
Adrien Destugues 03f1ea8e5c Add package for Chat.
* This should be merged with the changes done in Dengon and Jabber4BeOS,
so let's raise the awareness of people about those by having packages
for it!
2014-12-12 13:51:01 +01:00
Adrien Destugues 042bb68ed6 BGameSound: make Worms Armageddon sounds work
* When the endianness is not intialized, assume B_MEDIA_HOST_ENDIAN.
This is probably what was meant (and this is what Worms Armageddon
means).
* Move creation of the media nodes back to the initialisation instead of
StartPlaying, otherwise an extra node is created each time the sound is
played.
2014-12-11 17:17:55 +01:00
Adrien Destugues bf57c148f7 BGameSound: cleanup and several fixes
* Use a template to avoid repeating the panning code for each type
* Rearrange the initialization of BSimpleGameSound so the data is only
copied 0 or 1 times (it was copied 2 or 3 times in some cases) between
the passed buffer and the final one,
* Don't execute the panning code on streams with only 1 channel as this
makes no sense and it will read and write outside the buffers
* Abort early in GameSoundBuffer::Play if fIsPlaying is false.

Fix the crashes in Worms Armageddon. Doesn't fix the sounds being mostly
white noise.
2014-12-11 16:02:59 +01:00
Adrien Destugues 94d14479bb ListView: computate disabled color only for disabled items. 2014-12-11 10:39:51 +01:00
Adrien Destugues e3686c1bd2 ffmpeg add-on: fix typo. 2014-12-11 10:38:41 +01:00
Adrien Destugues 9a83a303b4 Add colorspace converter for YUV420P10LE to RGB32.
Fixes #9141.
2014-12-11 10:24:02 +01:00
Adrien Destugues d7d0a0284b ffmpeg: get pixel format names from libavutil.
No need to reimplement this when ffmpeg already provides it. Moreover,
our version was outdated and did not handle all color spaces.
2014-12-11 09:37:47 +01:00
Adrien Destugues 265f299627 ListView: move the color setting code to DrawItem
... so it can also be used by OutlineListView.

Fixes #11598.
2014-12-11 08:44:54 +01:00
Adrien Destugues 75fe62cd00 Add package for Slayer. 2014-12-10 16:40:17 +01:00
Adrien Destugues ea22ee950d Update boost packages against newly built ICU.
Thanks to cdesai for providing rebuilt packages!
2014-12-10 16:36:23 +01:00
Adrien Destugues 6f20778781 ControlLook: fix DrawActiveTab with subpixel rectangle
Fixes #4078.

When font hinting is disabled, the width of a string may not be an
integer number of pixels. This results in the tab position also being
non-integer, and the drawing code doesn't handle this, resulting in part
of the tab being shifted 1px to the right.

Snap the rectangle to the pixel grid so the runding error doesn't
happen.
2014-12-10 13:50:19 +01:00
Adrien Destugues cbb8ebbbbb Set item colors in BListView instead of BStringItem
* Fixes #3970 without introducing the bugs from BeOS
* Makes it easy to override BStringItem just to change the text color.
* Makes it easy to implement custom list items using the correct colors.
2014-12-10 13:34:51 +01:00
Adrien Destugues 524288065b Test for #3970.
* This shows the problem in Haiku, it is not easily possible to change the
color of BStringItem.
* It also shows that the BeOS implementation doesn't restore the view
state after drawing items, so the last item in the list also draws
green, and selecting the first also makes it green.
2014-12-10 13:30:10 +01:00
Adrien Destugues 04f884284c Colorcontrol: show resulting colors in the slider
Instead of showing plain red, green and blue color ramps, show what
the color would be if you moved the sliders to each point.

This is what was done on Mac OS classic and is also used in some other
tools to help you targetting a particular color.

It also limits the need for a color preview, which BColorControl
currently doesn't include, forcing apps to implement one themselves.

Fixes #3790 (the patch there didn't apply anymore, so I redid the work.
Credits for the change should go to stpere).
2014-12-10 11:33:58 +01:00
Adrien Destugues d18ae0336e ape_reader: setup for hybrid build.
I forgot that media add-ons are hybrid by default. Fixes the build.
2014-12-10 11:00:49 +01:00
Adrien Destugues 1148ea734e AVCodecDecoder: remove annoying assert.
According to Colin this is not supposed to happen, but it does. Since
the affected video otherwise decodes just fine, I think it is safe to
disable the assert and not annoy our users.

Fixes #11409.
2014-12-10 10:03:59 +01:00
Adrien Destugues d181ea48ed Add the ape reader to the image again.
Fixes #7048.
2014-12-10 09:40:20 +01:00
Adrien Destugues ff72ec4fee APE reader: optimize seeking
* The APE SDK can only decode rather big chunks at a time (several
seconds), so our reader keeps an internal buffer of the last decoded
chunk.
* However, this was always dropped when seeking, meaning the same few
seconds of sound were decoded again and again.
* I'm not sure why MediaPlayer is trying to seek to the position it
already is at, but we can make it work, so why not.

Now the existing buffer is reused if possible when seeking. This makes
it possible to play APE files in MediaPlayer.

Also, several more style fixes.
2014-12-10 09:34:51 +01:00
Adrien Destugues 5480f203d3 APE reader: style fixes. 2014-12-10 09:11:22 +01:00
Adrien Destugues 2311bdf24f AssembleNasm: add source dir to include path.
This makes it possible to %include local files. nasm doesn't allow this
otherwise (include paths are assumed relative to the working directory).

Fixes build of ape_reader.
2014-12-09 17:53:44 +01:00
Adrien Destugues 0fecd3e882 Build fix. 2014-12-09 17:30:55 +01:00
Adrien Destugues 7148abdcc2 HttpForm: implement copy constructor.
Thanks to GCI studdent arroyoc for finding that this was missing and
HttpRequest.SetFormData couldn't work.
2014-12-09 17:05:02 +01:00
Adrien Destugues ff68ae9837 ffmpeg: disable runtime frame rate changes support.
This change was introduced by Colin for DVB-T support, however it also
breaks the timing of several MP4 files. The code is incomplete and
computes slightly to very wrong frame rates (one video plays about twice
as fast as needed, another one attempts to play at 30000 FPS).

I suspect similar problems would be found when changing the frame rate
in DVB-T streams in the same way, so I'm disabling this code for now
until a correct solution is found or we manage to use a newer version of
ffmpeg (where there is an actual framerate field in the format and it
doesn't need to be derived from the time_base anymore).

This restores the previous behavior of computing the framerate at the
AVFormatReader level, that is, once per stream, rather than once per
frame. At the stream level we have enough data to compute an "average"
frame rate, and there is also an "r_frame_rate" (real frame rate) which
may be usable for this. Not having working DVB-T hardware to experiment
with that yet, I'll leave it to others.

Fixes #11283 and the last remaining problem in #4512.
2014-12-09 15:42:49 +01:00
Adrien Destugues dca4966cd6 ScreenTest: style fixes. 2014-12-09 15:17:20 +01:00
Adrien Destugues 77476b38fe ffmpeg gfx_conv_c: Style fixes. 2014-12-09 14:59:12 +01:00
Adrien Destugues d5b78822f7 Implement Y'CbCr 4:1:0 to RGB32 conversion.
* Also known as the YUV9 FourCC and used in SVQ1 (early QuickTime)
videos.
* Fixes part of #4512 (one more video played correctly) and replay of
all old Quicktime videos when you don't have overlay support.
2014-12-09 14:30:28 +01:00
Adrien Destugues 0edd73e467 FileTypes: fix layout of the FileTypeWindow.
* Fixes #10359.
* Thanks to Laurent Chea for investigating and identifying the problem.
His patch was not used because it makes more changes than needed.
2014-12-09 09:50:54 +01:00
Adrien Destugues ae0218ed54 SATDecorator: use the correct tab color
The tab color used for the SAT highlight was hardcoded to the default
yellow. Instead get it from the decorator settings.

Fixes #11571.
2014-12-09 09:34:08 +01:00
Adrien Destugues 4380baa4d7 DataTranslations: avoid layout jumping
* Constrain the list and "right view" sizes so the layout doesn't change
for each translator.
* Fixes #6897.
2014-12-09 08:47:09 +01:00
Adrien Destugues d23c413188 Interpolating resampler: un-break it.
The interpolation was performed only on the samples in a buffer,
without "linking" with the previous one. This can't work.
* Remember the last sample from a buffer to be able to use it when
interpolating the first samples of the next one
* Adjust the kernel to properly loop over all samples in the buffer

Fixes #9438.
2014-12-08 19:07:45 +01:00
Adrien Destugues dab42bf05b MixerToy: do an initialisation run on the mixer
The Interpolating mixer has internal state which must be setup by a
previous frame (we assume 0 for the first frame). Since we work on
exactly a period of the wave here, sending the same data twice works as
it should.
2014-12-08 18:51:47 +01:00
Adrien Destugues 258fbe371b MixerToy: app for testing mixer resamplers.
* Shows a source wave (black), a sampled version of it (red), and a
resampled version of that using the mixer (green).
* Debugging tool for #9438. Shows that the drop/repeat resampler is
working ok, but interpolate is quite broken.
2014-12-08 18:10:31 +01:00
Adrien Destugues 9f9d972f79 Minimal documentation for BOptionPopUp.
This was available in R5 but somehow went missing from our version of
the Be Book (it is documented in the release notes in Tycom Systems
version). Document the more important methods of it, at least.
2014-12-08 14:38:09 +01:00
Adrien Destugues 27606dae36 Mixer resampler: refactor using templates.
There is no need to copypaste the resampling code which is mostly the
same for all formats. However, gcc2 is confused by member function
templates (I hit an internal compiler error) so the resampling code was
moved to a static function instead.
2014-12-08 12:43:45 +01:00
Adrien Destugues bd67cb1531 Outsource VL-Gothic font.
Fixes #11576.
2014-12-08 09:28:08 +01:00
Adrien Destugues f87c1cec88 Mouse prefs: further layout fixes.
* Use BSeparatorView instead of trying to replicate it with a BBox
* Use B_USE_SMALL_SPACING instead of 7.

Fixes #11528.
2014-12-08 08:39:55 +01:00
Adrien Destugues e1424d2104 Update arm_none_eabi_gcc and _newlib packages. 2014-12-06 11:17:04 +01:00
Adrien Destugues 8f4cd9c976 Improve Workspaces Zoom() implementation
* Do not move the window, this is annoying
* Instead of putting the window at a fixed size, keep the current width
and adjust the height so the preview has a correct aspect ratio.

Fixes #5034.
2014-12-05 15:28:54 +01:00
Adrien Destugues c4e8d88f7c app_server: fix gradients with no stops at the ends
When a gradient has no stop at offset 0 or 255, the drawing code will
not automatically complete the gradiet with the first or last color,
instead agg interpolation generated invalid random colors.

To avoid this, insert extra stops at the start and end in the
DrawingEngine when we prepare the gradient for drawing. We just copy the
first and last stops to new stops at offsets 0 and 255, which makes sure
the gradients covers the whole range and gives the expected result.

Fixes #2945.
2014-12-05 14:52:31 +01:00
Adrien Destugues 96bac1b30b Add a test for #2945. 2014-12-05 14:51:47 +01:00
Adrien Destugues 336c69d9c4 Add credits for the Slovenian translation.
Will be included starting tomorrow.
Fixes #11157.
2014-12-05 12:50:39 +01:00
Adrien Destugues 654d47f356 Magnify: fix layout with big font sizes
* Move the menu to the left side so it doesn't overlap the status.
* Fixes #6934.
2014-12-05 10:20:44 +01:00
Adrien Destugues 522f368179 Update mc, mtr, colors, pecorename, netpulse packages. 2014-12-04 13:19:16 +01:00
Adrien Destugues 8e8d5c85b8 Remove vmware driver from the image. 2014-12-04 12:54:44 +01:00
Adrien Destugues 1554429045 Remove the vmware graphics and mouse drivers.
They are now available as a package in HaikuDepot.
2014-12-04 12:48:23 +01:00
Adrien Destugues 7291c0a8d9 Expander: escape backslashes in path.
Fixes #9969.
2014-12-04 10:20:32 +01:00
Adrien Destugues db7fc944bd FileTypes: disallow directories only where it makes sense.
Better fix for #8805.
2014-12-04 09:28:05 +01:00
Adrien Destugues 529cd177b5 BFilePanel: allow to change the node flavors
There doesn't seem to be anything ini the implementation that would
cause a problem, as long as you don't try to change this while the
window is already open.
2014-12-04 09:26:49 +01:00
Adrien Destugues 14c42c3783 Synaptics: remove useless delay.
As pointed by Axel and explained in Synaptic docs, the touchpad should
delay the first command itself until it's ready, so an arbitrary delay
should not be needed after reset.

Note: I don't have a touchpad on my machine. Please test this :)
2014-12-04 08:43:17 +01:00
Adrien Destugues a3a6fd837a makebootable: remove outdated "compatibility" options.
Fixes #3779.
2014-12-03 18:00:20 +01:00
Adrien Destugues 06e005d120 Add package for vmware addons
Fixes #3838.
2014-12-03 16:51:03 +01:00
Adrien Destugues c2872486ec Reset PS/2 devices before probing as synaptics touchpad.
Patch from dukscry, fixes #8616.
2014-12-03 13:18:47 +01:00
Adrien Destugues 721e32f7a0 Network prefs: missing DoCatalogs invocation.
Fixes #11191.
2014-12-03 11:28:06 +01:00
Adrien Destugues 71da5aebd1 Fix vim to create its own setting folder
GCI2014.
2014-12-03 09:15:56 +01:00
Adrien Destugues 5da82e3a10 DiskUsage: align tab focus mark with label.
Fixes #6905.
2014-12-03 08:41:09 +01:00
Adrien Destugues 4f6ee86881 Sniffing rule for MP4 files.
Fixes #9621.
2014-12-02 17:04:30 +01:00
Adrien Destugues 4ca1c2476e Default decorator: localize about box. 2014-12-02 15:30:08 +01:00
Adrien Destugues a2cb1737d8 Screen prefs: force weight of the two boxes
Depending on the locale and string length the layout could leave only a
small part of the window for the rightmost part, which is the important
thing. Force the weight of each side so we have a more balanced window.
2014-12-02 11:40:14 +01:00
Adrien Destugues 8b46ee25ac Screen prefs: move driver info to main window
* Fixes relevant part of #5125
* The remaining information (serial number, frequency ranges) is
"advanced" and can be hidden in the tooltip. However, the video driver
used may be important important information, if you want to know if you
are using VESA, or if you have multiple video cards (Optimus for
example).
2014-12-02 11:17:58 +01:00
Adrien Destugues 0cd7643bd3 usb_disk, usb_floppy: missing const. 2014-12-02 09:15:26 +01:00
Adrien Destugues 38ec030ace FileDevice: implement icon ioctls
Fixes #9320.
2014-12-02 09:04:56 +01:00
Adrien Destugues c37e6238d5 HaikuWebKit 1.4.8 2014-12-02 08:25:27 +01:00
Adrien Destugues 7c6b2fa6f1 Fix credits for Lithuanian translation. 2014-12-01 18:41:13 +01:00
Adrien Destugues 3f3d95fb3e Update freetype and add fontconfig packages.
Required for work on completing BFont implementation (::Blocks and
::IsFullAndHalfFixed can be provided using fontconfig data), as well as
a more correct font overlay and/or language > font mapping.
2014-12-01 15:23:42 +01:00
Adrien Destugues acf1d9714e Locale: fix selection of format when Default'ing
Using item->SetExpanded does not work in a BOutlineListView as the
status of the list is then out of sync. The child items are not actually
added to the visible list, and trying to select them won't work.

Using list->Expand() instead works fine, so do that.

Fixes the remaining part of #6805.
2014-12-01 15:12:30 +01:00
Adrien Destugues 3d2cd4484d NetFS package: fix require on usrland_fs
* This was missing an underscore.
* Fixes #11541.
2014-12-01 11:18:18 +01:00
Adrien Destugues 97bb6cddcb Mouse Prefs: use a thinner and lighter outline
suggested by Axel and Stephan, this makes the mouse look better, and the
button numbers (the important part here) stand out more.
2014-12-01 10:49:53 +01:00
Adrien Destugues 3deab26b88 Remove useless stub driver.
* There are already ways to mount disk images of various formats, no
need for this one which doesn't have anything implemented.
2014-11-28 14:49:07 +01:00
Adrien Destugues 6dee50beeb Add package for BeMines.
Fixes #9208.
2014-11-28 14:11:49 +01:00
Adrien Destugues 069804d7ca FileTypes: prevent picking folder as preferred app
* I'm not sure why this was changed back in 2006, the file panel is
reused in various cases but I don't see one where selecting a folder
would make sense.
* If I missed something, then different file panels should be used for
the different cases.

Fixes #8805.
2014-11-28 11:45:26 +01:00
Adrien Destugues 122fdeece7 FontDemo: fix overwriting of family with style.
Menus were wrongly set to SetLabelFromMarked (probably from a previous
version of the UI without the nested font menu).

Fixes #11517.
2014-11-28 10:48:32 +01:00
Adrien Destugues 344180b745 FontDemo: convert to layout code.
Fixes #9241.
2014-11-27 17:49:22 +01:00
Adrien Destugues f448e83bdd Build fix. 2014-11-27 17:15:22 +01:00
Adrien Destugues 1a08983193 Network: use string_for_size for transfer rates.
Don't ask translators to translate these units over and over again.
2014-11-27 16:55:36 +01:00
Adrien Destugues b549b15d81 Mouse prefs: better looking mouse.
* I went with my own graphics as the one in the preflet didn't look that
nice
* The clicked button is shown using a bold font rather than filling it
grey. I was too lazy to find the correct BShapes for all cases (1, 2 and
3 button mouses)

Fixes #6825.
2014-11-27 16:13:19 +01:00
Adrien Destugues 4c7f391f32 Add a <limits> header for gcc2.
Hacked from the gcc4 version. There may be wrong values returned in some
cases.

Fixes #6701.
2014-11-27 12:14:39 +01:00
Adrien Destugues 56abf4aa37 Fix std::isnan and friends for gcc2.
gcc2 was relying on the c99 functions being there, but they are not in
the std namespace.
* Disable the C99 functions and macros in C++ mode
* Redefine them as inline functions in cmath in the std namespace.

Fixes #7396.
2014-11-27 10:58:49 +01:00
Adrien Destugues 5211ae5d68 Terminal: use BPopUpMenu in BMenuFields.
Using a BMenu works, but it doesn't look as good.
Thanks to Diver for noticing this.
2014-11-27 10:53:16 +01:00
Adrien Destugues f4e8886fae CharacterMap: Fix 64-bit build 2014-11-27 09:11:46 +01:00
Adrien Destugues 3d06e082bc BOptionPopUp: move mennu setup to AttachedToWindow
* There is no need to delay this to AllAttached
* Apps may want to override the SetDivider, and doing it as late as
AllAttached can be annoying.

Fixes #10734.
2014-11-27 09:00:23 +01:00
Adrien Destugues 052e5d936f Workspaces: remove "about" menu item.
The about box is kept, and can be shown from the replicants.

Fixes #8165.
2014-11-26 16:42:50 +01:00
Adrien Destugues 7b5ea03f20 Icon-O-Matic: import SVG gradient names.
The names are often program generated, but better than no name at all.
2014-11-26 14:51:59 +01:00
Adrien Destugues 42272d2342 OutlineListView: yet another list/fullList mismatch.
Fixes #5817.
2014-11-26 13:48:52 +01:00