Commit Graph

46467 Commits

Author SHA1 Message Date
John Scipione
a42b9a43df MediaConverter: output box fixes size, truncate long path
Update path truncation if output box is resized.

Other changes:
* Set duration text box to a smaller explicit width
* Increase min sources width and replace magic constant
* Some style fixes, especially to comments
2013-08-31 00:48:18 -04:00
John Scipione
83010212f7 MediaConverter: Add label and control explicitly 2013-08-31 00:48:18 -04:00
John Scipione
53bb96c547 MediaConverter: Set slider percentage live 2013-08-31 00:48:17 -04:00
John Scipione
4d891825cd MediaConverter: Set initial text in constructor 2013-08-31 00:48:17 -04:00
John Scipione
a9adf1a6b6 MediaConverter: Set ListView min size font relative 2013-08-31 00:48:16 -04:00
John Scipione
87077901ca MediaConverter: Make the window not vertically resizable 2013-08-31 00:48:16 -04:00
John Scipione
ce74de863f MediaConverter: Update copyright year 2013-08-31 00:48:14 -04:00
Niels Sascha Reedijk
27bee1b427 Update translations from Pootle 2013-08-31 06:14:04 +02:00
Pawel Dziepak
35cc5c9897 vfs: Allow non-null-terminated UNIX socket pathnames
This patch fix one of the compatibility issues mentioned in #3255. It
allows applications to call bind() or connect() passing an sockaddr_un
structure with a pathname that is not null-terminated.

Some systems did not require pathname in sockaddr_un::sun_path to be
null-terminated, instead the end of the string is determined by the size
of the structure passed as an argument of bind() or connect().

The standard is a bit vague in this matter but suggest that the path
should be null-terminated and the functions bind() and connect() should
be given sizeof(sockaddr_un) as a structure size.
2013-08-31 05:41:12 +02:00
John Scipione
d691c48ca6 Tracker: get StringWidth of menuField, not view 2013-08-30 23:17:03 -04:00
Jérôme Duval
86af5f159b VirtioRNG: add to the image 2013-08-29 18:47:48 +02:00
Jérôme Duval
8d2bf6953e random: add a Virtio RNG module
* The default module is replaced by the Virtio RNG module when found.
* This can have the undesired effect of rendering /dev/urandom slow.
* Tested with the following QEmu command line option:
-device virtio-rng-pci,rng=rng0 -object rng-random,filename=/dev/random,id=rng0
* moved random.h to private/drivers headers.
2013-08-29 18:47:48 +02:00
Jérôme Duval
eb5639c43e device_manager: tune the search paths
* the Virtio RNG PCI device has the class 0, so can't be found using usual
paths. Add 0 to _AlwaysRegisterDynamic() and "busses/virtio" in _GetNextDriverPath()
for non generic drivers to help finding virtio_pci.
* The RNG Virtio device is generic and needs "busses/random" to find virtio_rng.
2013-08-29 18:47:45 +02:00
Jérôme Duval
f73fb1051d random: added a bus interface for RNG modules.
* Yarrow RNG is the default RNG module.
2013-08-29 18:47:45 +02:00
Alexander von Gluck IV
8f7f28a7c3 OpenGL: Upgrade to Mesa 9.2
* The needed LLVM libraries are now within
  the Mesa optional build package.
* The swpipe renderer needs some work still
  and will likey change, swrast is fully
  functional.
2013-08-28 16:18:44 -05:00
Fredrik Holmqvist
f0aee2b4ea Enable targets for EFI on binutils.
objcopy needs to know about EFI targets if we want to build EFI Applications.
Also minor whitespace removal.
2013-08-28 19:59:56 +02:00
Adrien Destugues
2ec188b903 Fix thread safety issue in chunked http transfers.
* The use of a static variable for storing the chunk size made it shared between all instances of BUrlProtoclHttp.
* Inline the function at the single place where it is used, and allocate the variable on the stack instead.

The whole receiving loop should be split into chunked and non-chunked variants to improve code readability.
2013-08-27 20:36:29 +02:00
Jérôme Duval
7032e70330 random: move to bus_managers/ 2013-08-27 20:28:56 +02:00
Jérôme Duval
98b4807f88 random: convert to the new driver API
* also move to a bus manager, we can then attach to the root device.
* updated copyright info.
2013-08-27 20:28:55 +02:00
Jérôme Duval
749f8f2d72 random: separate the software generator from the driver. 2013-08-27 20:28:52 +02:00
Adrien Destugues
8ce846e2b1 Fix infinite loop with huge tooltips
* With a tooltip big enough trying to align below or above the mouse, the algorithm would loop endlessly trying to fit it on either side.
 * After trying each side once, set alignment to middle to try to show as much as the tooltip as possible.

A way to trigger this is browsing WebKit github repository in WebPositive. Github will show the full commit message in a tooltip when you hover a file or directory, and some of
their messages are big enough to overflow my desktop.
2013-08-26 22:34:06 +02:00
Jérôme Duval
0edcbd2754 apic: serialize writes to x2apic MSR...
as required by the specifications (it isn't needed with memory mapped i/o).
2013-08-26 21:48:33 +02:00
Jérôme Duval
787773400c Added x2APIC support.
* Mostly useful for virtualization at the moment. Works in QEmu.
* Can be enabled by safemode settings/menu.
* Please note that x2APIC normally requires use of VT-d interrupt remapping feature
on real hardware, which we don't support yet.
2013-08-26 21:08:21 +02:00
John Scipione
e9eb899aa4 BFont docs: Update SetEncoding() with some new info 2013-08-25 21:36:50 -04:00
John Scipione
4385f73996 Revert "Menu: check numBytes == 1 on KeyDown"
This reverts commit 44dc533861.
2013-08-25 19:40:00 -04:00
John Scipione
163fc310f7 Revert "MenuField: Make sure input is a single byte"
This reverts commit 4e075e0f4c.
2013-08-25 19:39:47 -04:00
John Scipione
7462734202 MenuBar: Fix sticky menu issue. #6408 comment:9 2013-08-25 00:22:07 -04:00
John Scipione
60a7f11599 Menu: Handle Keyboard input better.
When you push an arrow key obscure the cursor so that it doesn't get in the
way of the menu items. BeOS R5 also did this.

When you select an item with Enter or Space, or cancel with Escape, set the
super menu to close in _QuitTracking() if you've specified onlyThis == false.
Also, show the cursor here in case you haven't moved the mouse since it was
obscured.

This fixes a problem where when you select an item in a menu via the keyboard
while your mouse is over the parent menu item or menu field it would pop the
menu back up again even though you've made your selection or cancelled.
2013-08-25 00:17:41 -04:00
John Scipione
3dd9ff2b5d BMCMenuBar: Refactor MakeFocus()
Get rid of unused fRunner variable.

It is very basic now, it just works.

Also, renamed msg to message in MessageReceived() and
declared MakeFocus() above it (alphabetically).
2013-08-25 00:09:28 -04:00
John Scipione
8f74b98905 MenuField: Remove unused variables
fSelected and fTransition
2013-08-25 00:09:16 -04:00
John Scipione
44dc533861 Menu: check numBytes == 1 on KeyDown 2013-08-25 00:08:44 -04:00
John Scipione
cccc4076db Menu and friends: Style fixes, no functional
... changes intended.

* 80 char limit fixes
* Indentation fixes
* Braces style fixes
* Use ternary operator where appropriate
* Rename menuItem to just item and declare it once outside
  the loop
* Omit 3rd param of GetMouse() because it is default
* Rename variables eg state => focused and menu => submenu
* Indent comments below line they apply to
* Reword some comments
* Add some #pragmas
2013-08-25 00:05:02 -04:00
John Scipione
f5bb831108 Menu: Silly code optimization
Always set releasedOnce to true here instead of setting it true in the
case that it is false. It's almost certainly faster and clearer to always do
the assignment than to incur the cost of the conditional and branch.
2013-08-24 01:58:12 -04:00
John Scipione
4e075e0f4c MenuField: Make sure input is a single byte 2013-08-24 01:58:10 -04:00
Niels Sascha Reedijk
ef9294ec86 Update translations from Pootle 2013-08-24 06:13:48 +02:00
Siarzhuk Zharski
d516d16129 USB audio/SiS7018: Set controls_count on list mix ioctl
Looks like it works with default controls count 128 on default Haiku
builds but force media-addons-server to crash in case KDEBUG_LEVEL is set
to 0. Thanks to Vitaly Diger for pointing out and testing this issue.
2013-08-22 10:52:26 +02:00
John Scipione
d5de9547c7 Menu: some helpful comments 2013-08-21 19:46:39 -04:00
Oliver Tappe
d1716b277c Fix #9928: broken printf specifiers "%La" and "%LA"
* fix unitialized variables in __printf_fphex() in case of architectures
  without support for long double - this triggered unreliable results
  or crashes when using %La or %La on x86
* activate long double implementation in use for x86_64 for x86, too,
  as they share the long double format
2013-08-21 18:01:14 +02:00
John Scipione
9422c92ea3 MenuField: Open the menu bar when the label is clicked
Fixes #6894

Private DrawLabel() method renamed to _DrawLabel() and rest of drawing
code moved to new private method _DrawMenuField(). These methods both
check to make sure that they are drawing in a valid rect that intersects
updateRect.

When label or menu is selected Draw a the label background in the selected
menu color matching the behavior of BeOS R5.

_DrawLabel() calls be_control_look->DrawLabel()

Update copyright year in MenuField.h
2013-08-21 04:20:58 -04:00
John Scipione
408c0ee4cd MenuField: enable/disable the menu field when...
the child menu bar or the child menu bar's menu is enabled/disabled.

This means that there is just one status we have to check, the menu
fields, and the child menus agree. This change takes practical form
in the Backgrounds preflet which disables the placement menu when
the image is set to "None", but, only the menu got disabled and not the
parent menu field so the label was erroneously still drawn as enabled.
2013-08-20 18:15:13 -04:00
John Scipione
ac359925f5 Revert "don't open the menu if it's disabled."
This reverts commit ce8253d97b.
2013-08-20 18:13:14 -04:00
John Scipione
3de334b9f4 MenuField: need stdio.h if TRACE enabled
* Also update authors adding myself
2013-08-20 17:02:28 -04:00
John Scipione
db85cbe0b5 MenuItem: Set and restore the low color too
A small revision on my last published commit, set and restore the
low color in addition to the high color when drawing the menu item
because DrawString() will produce nicer looking results if the low
color of the view matches the color it draws on due to anti-aliasing.
2013-08-20 16:50:05 -04:00
John Scipione
dec0a3523d MenuItem: Fix disabled sub-menu item color
See #6610 comment:15 for details.

Firstly, don't save and restore the super menu's low color
since it never changes, instead, save and restore the super
menu's high color which does get altered here.

Secondly, set the high color to
B_MENU_SELECTED_ITEM_TEXT_COLOR only if the menu item
is activated and enabled, otherwise set the high color by tinting the
background color which might be
B_MENU_SELECTED_BACKGROUND_COLOR or
B_MENU_BACKGROUND_COLOR depending on whether
the item is selected or not.

Thirdly, complete the TODO by using a lighten tint if the menu
has a dark background and vice-versa.

This third item is actually a good candidate for a BControlLook
function because the disabled tint should depend on whether the
background color of the thing you're disabling is light or dark.
2013-08-20 16:20:56 -04:00
John Scipione
6048f54145 Screen prefs: Use menu field layout methods
... to layout the menu field label and menu in the grid. This makes
the label and grid layout correctly, the AddMenuField() method should
be deprecated or fixed as it lays out the menu field differently.

Also replace numeric spacing units with font relative spacing units.
2013-08-20 14:43:16 -04:00
Jessica Hamilton
ffd71d3d19 MediaPlayer: revert hrev38440
With #6610 fixed, it is now possible to open disabled menus in a
menubar, so the workaround introduced in hrev33840 is no longer
needed.

Signed-off-by: John Scipione <jscipione@gmail.com>
2013-08-20 13:47:56 -04:00
Jerome Duval
a17e9da139 XHCI/UHCI USB: forgot to get the x86 PCI module. 2013-08-20 19:42:59 +02:00
Jerome Duval
c2cfbd70fe intel_extreme: add MSI support 2013-08-20 19:42:58 +02:00
John Scipione
83ea4af492 BMenu: Don't hit test separator items
Fixes #4147 while not causing the regression described in #6610
like hrev35248 did.
2013-08-20 13:34:14 -04:00
John Scipione
77850e8dba Revert "BMenu return only enabled items"
Patch by "stimut"

This reverts commit abc26ba8ad.

Reverting this patch fixes #6610
2013-08-20 13:30:31 -04:00