Commit Graph

47027 Commits

Author SHA1 Message Date
Axel Dörfler
67988f501a NodeMonitor: Resolve mount points for B_WATCH_CHILDREN.
* When a watched directory contains a mount point, we need to resolve
  the actual parent directory of the mount point in the file system to
  serve the monitor.
2016-03-28 14:31:27 +02:00
Axel Dörfler
6f7fc2204b NodeMonitor: Added B_WATCH_CHILDREN flag.
* Added a directory argument for notify_{stat/attribute}_changed().
* This allows to watch only a directory, and get the notifications for
  all of its files, not just add/remove entry notifications.
2016-03-28 14:31:27 +02:00
Dario Casalinuovo
55f28f1396 MediaPlayer: Fix logic inversion 2016-03-27 21:49:57 +02:00
Dario Casalinuovo
b7f7c6e0a8 MediaPlayer: Fix style in Playlist.h 2016-03-27 21:34:19 +02:00
Dario Casalinuovo
bcf30a5eb5 MediaPlayer: Add support code for url items
* It needs further work to avoid the AudioSupplier being
recreated every time. It makes the BMediaFile to redo the sniffing
process various times.
2016-03-27 21:34:19 +02:00
Dario Casalinuovo
e00ede2b48 MediaPlayer: Add UrlPlaylistItem 2016-03-27 21:34:18 +02:00
Dario Casalinuovo
9ab61bb71c PluginManager: Fix build for x86_64 2016-03-26 00:39:14 +01:00
Rene Gollent
a204259b1c BShape: Fix issues for debug build.
As part of the refactoring that was done for app_server layer support,
the private shape_data struct was updated to derive from BReferenceable.
However, BShape's destructor was never updated to reflect this, and
consequently attempts to use a debug build of libbe would consistently
throw the user into the debugger due to BReferenceable's sanity check
against non-zero deletes that weren't on the stack.

It should be noted though that there are probably a few things that could
be factored out and/or simplified with that class in general, since e.g.
when copying its data from another shape_data instance, it uses C++ array
allocations, while when being manipulated by BShape directly, the latter
uses alloc/realloc/free.
2016-03-25 19:32:58 -04:00
Dario Casalinuovo
8c7679851f Move MediaIO in it's own header 2016-03-25 22:44:56 +01:00
Dario Casalinuovo
2250435e4c PluginManager: Add debug to wrapper 2016-03-25 22:23:35 +01:00
Dario Casalinuovo
25527aff5c MediaIOWrapper: IsEndless was not used the right way
* The idea is to just identify when a BMediaIO is able
to tell the whole size of the data, but caching needs
more complex policies to be successful.
2016-03-25 22:22:31 +01:00
Dario Casalinuovo
22c9314255 MediaExtractor/PluginManager: Add plugin deletion when extractor die 2016-03-25 22:20:35 +01:00
Dario Casalinuovo
3733e4b2ab PluginManager/AddOnManager: Add streamers support code 2016-03-25 22:20:03 +01:00
Dario Casalinuovo
b777602827 MediaFile: Rework to support BUrl sources 2016-03-25 22:19:47 +01:00
Dario Casalinuovo
20ae088fa5 MediaWriter: Add new BUrl functionality 2016-03-25 22:19:03 +01:00
Dario Casalinuovo
a2b3f12698 MediaExtractor: Adapt to new BUrl functionality 2016-03-25 22:18:15 +01:00
Dario Casalinuovo
b1ccc05864 AddOnManager: Initial support for streamer addons 2016-03-25 22:17:13 +01:00
Dario Casalinuovo
63e1708eee Finalize StreamerPlugin
* Add cpp file.
* Make Sniff virtual.
2016-03-25 22:16:36 +01:00
Dario Casalinuovo
0d88bf3ac4 MediaIO: Review behavior regarding object inheritance 2016-03-25 22:07:50 +01:00
Dario Casalinuovo
050118ef53 Remove TODOs 2016-03-25 22:06:19 +01:00
Dario Casalinuovo
382c78dfac BMediaIOWrapper: Check if we can really seek the data. 2016-03-25 22:06:09 +01:00
Dario Casalinuovo
36ffce0a14 BMediaIOWrapper: Delete data in destructor 2016-03-25 22:05:07 +01:00
Dario Casalinuovo
ef167f1150 BMediaIOWrapper: Refer on fallback buffer Position()
* Write the data into the fallback buffer when emulating
pseudo seeked writes.
2016-03-25 22:04:53 +01:00
Dario Casalinuovo
deb9166054 PluginManager: Refactor of MediaIOWrapper
* Use BPositionIO version of Read/Write.
* Implementation of fallback buffering.
* Other cleanup.
2016-03-25 22:00:27 +01:00
Dario Casalinuovo
6efbc4bb54 BMediaFile: Move BBufferIO usage into the plugin manager
* Add InitCheck for the wrapper status.
2016-03-25 21:55:13 +01:00
Dario Casalinuovo
a6b34a8c45 ffmpeg: Initial switch to BMediaIO 2016-03-25 21:54:54 +01:00
Dario Casalinuovo
b42aac7bf5 PluginManager: Initial switch to BMediaIO 2016-03-25 21:54:46 +01:00
Dario Casalinuovo
7b79e0694e Add prototype BMediaIO interface 2016-03-25 21:54:24 +01:00
John Scipione
6a8276c464 BSlider: Remove non be_control_look drawing code 2016-03-22 12:00:37 -07:00
John Scipione
8e7b383abf Slider: Replace min_c and max_c with std::min and std::max 2016-03-22 12:00:37 -07:00
John Scipione
8be1a5f082 Slider: Style fixes
Pointer style
Newlines
Indentation
Compare against NULL or 0 explicitly
use single floating point precision for float literals (i.e. use 0.0f)
2016-03-22 12:00:36 -07:00
John Scipione
5f6a4730cb Appearance: Live update antialiasing text color
...when panel text color changes in addition to panel bg color.
2016-03-22 12:00:36 -07:00
John Scipione
8b902d940a IK: Use panel text color for select control labels
NOTE: This should have no effect on the colors of these labels unless
you have changed the panel text color and control text colors to be
different. Both are black by default.

In the case of the menu field, spinner, check box, radio button,
slider, and text control labels we want to draw these labels using
the panel text color instead of the control text color because they
are drawn on top of the panel color. (the menu field label color was
changed in a previous commit in this push).

In all cases except the menu field the label color is specified by
temporarily unsetting the B_IS_CONTROL flag while drawing the label.
All use control look to draw the label.

The control text color is meant to be used for text INSIDE the control,
not the label text that accompanies the control -- at least that's the
way I understand it.
2016-03-22 12:00:36 -07:00
John Scipione
5b2aa7f856 ControlLook: style changes only
whitespace
indent fix (tiny)
2016-03-22 12:00:35 -07:00
John Scipione
59e1b2f4ce BMenuField: Change label to panel text color
...instead of menu item text color when the label is unselected.

Menu item text color seems to make sense when the control is unselected
because we use selected menu item text color when the control is
selected, but, this isn't the case. We color the label background using
the menu item color because we are reproducing similar behavior of
BeOS R5. However, when the menu field is unselected the label needs to
draw so that it goes on the panel bg color.
2016-03-22 11:59:15 -07:00
Zoltan Mizsei
846a5b0272 printf's converted to TRACE
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-03-20 18:12:45 +01:00
Rene Gollent
8c524c608d Debugger: Add more information to image list.
ImageListView:
- Add columns for the respective start and end addresses of the text and data
  segments  of each image. Correspondingly, adjust the table model to return
  the appropriate fields from the image's info. This can come in handy for
  quickly determining the approximate location of an otherwise unknown memory
  address, among other things.
2016-03-19 23:13:18 -04:00
Rene Gollent
20122a6a77 LegacyPackageInstaller: Fix x86_64 build. 2016-03-19 16:30:53 -04:00
Rene Gollent
b679d8afa0 Debugger: Fix #12693.
DwarfImageDebugInfo:
- When resolving the address of a PIC function that a value was
  returned by, check if the resulting address actually belongs to
  the same image as the caller. If not, find the appropriate image
  for the new address. Combined with the previous commits, this fixes
  the issue that functions called indirectly by PLT entry that jumped
  to another image entirely wouldn't be mapped back to their
  corresponding FunctionDebugInfo instance, and thus would be skipped
  since we  couldn't determine a type to associate the return value with.
2016-03-19 16:30:52 -04:00
Rene Gollent
4f21e03d09 Debugger: Avoid unnecessary work in ThreadHandler.
ThreadHandler:
- When stepping over a function call, ensure that we actually have a valid
  value for the stepped over function address before adding a return value
  info entry. While this had no visible adverse effect, it did result in
  unnecessary work when creating the list of variables to display later,
  since such entries would have no valid function to resolve to, and thus
  had to be ignored/thrown away.
2016-03-19 16:30:50 -04:00
Rene Gollent
06c2f877e6 Debugger: Fix udis86 usage for resolving target address.
DisassemblerX86{64}:
- Fix problematic usage of udis86 that was broken during an update.
  Rather than calling the appropriate udis86 function to retrieve the
  operand, we were accessing it directly on the ud struct, which was
  fully filled in implicitly in previous versions of the library. However,
  in the updated version of udis86, the operands are only lazily decoded on
  request, and as such this data was invalid, leading to us not resolving
  target addresses properly. This primarily affected determining the location
  of return values.
2016-03-19 16:30:49 -04:00
Rene Gollent
6e97df31a0 Debugger: Add team event handling to expression window.
ExpressionEvaluationWindow:
- Add team listener hooks for the various thread state changes.
- Implement these to react accordingly and keep the thread/frame menus
  up to date with running program changes, whether due to user interaction
  in the main team window, or background activities of the debugged app.
  Previously the evaluation window needed to be closed and reopened to
  refresh these appropriately.
2016-03-19 16:30:47 -04:00
John Scipione
b001655640 BWindow & WebPostive: Move TextView detection code
... from WebPositive to BWindow. This way every window will detect
Command+Arrows and send them to BTextView if a BTextView has focus
instead of just WebPositive.

https://www.freelists.org/post/haiku-development/Wordwise-jumping-with-CTRL-in-BTextView

This trick doesn't work in Vision though...

Fixes #9913
2016-03-17 17:54:20 -07:00
John Scipione
3c1bde87b6 WebPostive: Tiny style fix
new lines between case statements that don't fall-through

I'm sorry for the noise. I just wanted to get rid of these very old commits.
2016-03-17 16:04:37 -07:00
John Scipione
105a543e3d BWindow: Rename string to bytes 2016-03-17 15:19:45 -07:00
John Scipione
2ab6ca298a BWindow: Style fixes 2016-03-17 15:19:32 -07:00
John Scipione
a99b9010f8 BWindow: Reorder includes 2016-03-17 15:18:14 -07:00
Alexander von Gluck IV
ca95e9dad9 intel_extreme: Add initial work for DDI ports 2016-03-15 18:12:28 -05:00
Julian Harnath
4fab1ac618 ifconfig: add "[-]ht" control option for WLAN devices
* "ht" and "-ht" enable or disable the use of HT mode
  (high throughput, 802.11n) for the wireless network device

* Analogous to the option with the same name in FreeBSD's ifconfig

* Disabling HT before associating with an AP is a workaround for
  connection instability issues encountered with iprowifi4965
  driver
2016-03-15 21:59:03 +01:00
Julian Harnath
310238937c Network Kit: add BNetworkDevice::Control
* Allows to do an arbitrary ioctl on the network device

* For ifreq and ieee80211req requests
2016-03-15 21:59:03 +01:00
John Scipione
53f75ce5d6 BColorControl: Remove fOffscreenView pointer
...and rename fBitmap to fOffscreenBitmap to make it more clear what it is.

We don't need to save a pointer to both the offscreen bitmap and
the offscreen view, just the bitmap. We can access the view by calling
fOffscreenBitmap->ChildAt((int32)0). This gives us back a _reserved private
variable slot.

In the (unlikely) case that _InitData() is called with offscreen = false but
the fOffscreenBitmap is not NULL, delete fOffscreenBitmap before
setting it to NULL so that memory is not leaked.
2016-03-12 19:14:26 -08:00
John Scipione
76b9d53bd0 BColorControl: Rebuild control after mode switch
App Server sends each window a message that the screen has changed:
https://www.haiku-os.org/legacy-docs/bebook/BWindow.html#BWindow_ScreenChanged
Propegate B_SCREEN_CHANGED message to all child views first

Tell BColorControl to read the B_SCREEN_CHANGED message and reinitialize itself.

* Only reinit if switching to or from B_CMAP8
* Initialize all pointers to NULL in constructor
* Don't destroy and rebuild offscreen view (and text views) on reinit
* Reinitialize offscreen view on reinit.

Fixes #8035

Also initialzing the pointers to NULL in constructor fixes #12673
2016-03-12 19:13:35 -08:00
John Scipione
0e3b3f92ef BColorControl: Awesome style fixes 2016-03-12 19:10:58 -08:00
John Scipione
8db20d05cb BColorControl: Standardize on useOffscreen
...instead of doubleBuffered for the flag that specifies whether or not to
draw using an offscreen buffer.

Also remove the (not currently used) text from the docs since the parameter
is being used.
2016-03-12 19:10:38 -08:00
Michael Lotz
3108c9bed0 ioapic: Fix 64 bit build with tracing enabled, some cleanup.
* Use print format macros to fix the 64 bit build.
* Correct a typo in the shift of the trigger mode definition. As the
  value is 0 either way, this does not make a functional difference.
* Use macros instead of values in comparisons.
2016-03-12 13:34:01 +01:00
Michael Lotz
91ea4fb48a usb_ecm: Use the current configuration instead of a fixed one.
This allows usb_ecm to work in case it is part of a device using
different configurations for different types of interfaces and ECM is
not the first configuration.
2016-03-12 13:15:49 +01:00
Michael Lotz
b62bb24fe4 USB: Force spec mandated control pipe max packet sizes.
While the USB descriptors are specifically built in such a way that it's
always possible to correctly query the max packet size, some devices
unfortunatley use bogus values in their descriptors and rely on the
stack to use the mandated values.

This fixes USB devices in VirtualBox when EHCI emulation is used. This
really is a bug in their descriptor emulation though.
2016-03-12 13:13:04 +01:00
Michael Lotz
3da7be22fb EHCI: Current qtd field in qh overlay has no terminate bit.
Don't initialize the current qtd field with the terminate bit as it does
not exist in this field. While the lower 5 bits are documented as being
ignored anyway, this is more correct. Should cause no functional change.
2016-03-12 13:12:35 +01:00
Michael Lotz
ad72f4caed EHCI: Fix alignment check, the mask wasn't wide enough.
As this is only an assert that shouldn't ever be triggered, this doesn't
change anything in normal operation.
2016-03-12 13:12:11 +01:00
Michael Lotz
3648dc8709 EHCI: Style cleanup only, no functional change.
Change < B_OK to != B_OK for status_t results and to < 0 for ids.
2016-03-12 13:11:54 +01:00
Alexander von Gluck IV
3d1bd895ad intel_extreme: Properly use VBIOS panel mode
* Move current_mode into the accelerant as the
  driver doesn't care.
* Record panel_mode in driver and present to accelerant
* eDP, if no EDID and mobile, leave edid incomplete.
  Mode set should notice that and fall back to panel_mode
2016-03-11 18:20:28 -06:00
John Scipione
27c801a130 BTabView: Draw right border even if 1 tab
The right border is seen on active tabs giving them a bit of a shadow.
2016-03-10 18:57:38 -08:00
John Scipione
a0ea818b3f BTabView: Move first tab over by B_WINDOW_SPACING
BTabView::DrawTabs() got a makeover:
Draw the tab background across the whole view, then draw the tabs,
finally draw the rightmost tab's right border.
2016-03-10 18:14:58 -08:00
John Scipione
31c8f7b193 BTabView: Style fixes 2016-03-10 18:14:40 -08:00
Automatic Committer
5663c4ad12 Update usb.ids from www.linux-usb.org 2016-03-10 05:20:17 +01:00
Alexander von Gluck IV
a81f65eae5 Merge branch 'master' into intel-extreme 2016-03-09 17:11:08 -06:00
Augustin Cavalier
9bd7e4014f Tracker: Restore original PoseView/TitleView names except in BFilePanel.
Should've fixed #12635, but it doesn't. No idea why; perhaps
	request.AddSpecifier("Window", "/boot/home/Desktop");
doesn't work anymore?
2016-03-07 18:04:49 -05:00
Augustin Cavalier
80bc632afd BStatusBar: Restore the old blue-ish color from before the Set*Color changes. 2016-03-07 16:08:00 -05:00
Augustin Cavalier
361738c0ad Revert "PackageInstaller: Attempt to fix 64-bit build."
This reverts commit bb4cd92eae.

We probably should change this API before R2.
2016-03-07 15:52:22 -05:00
Augustin Cavalier
bb4cd92eae PackageInstaller: Attempt to fix 64-bit build. 2016-03-07 15:38:24 -05:00
Augustin Cavalier
d3626243b0 PackageInstaller: Fix layout in UninstallView, use BLayoutBuilder. 2016-03-07 15:19:42 -05:00
Augustin Cavalier
eaf0a567c5 PackageInstaller: Merge "InstalledPackages" and "PackageInstaller".
Now if you start LegacyPackageInstaller with no filenames passed, you get
the "installed packages" window, from which you can uninstall stuff.

Fixes #10612.
2016-03-07 15:08:58 -05:00
Humdinger
5f73d5000d Close Workspaces window with ESC
As discussed on the ML [1].
Try making the Workspaces window really big, hide window tab and border,
assign CTL + ^ to the Workspaces applet. Now you can quickly summon the
applet with CTRL + ^ and equally quickly dismiss it with ESC.

[1] http://www.freelists.org/post/haiku-development/Close-Workspaces-applet-with-ESC
2016-03-06 08:41:11 +01:00
Alexander von Gluck IV
be587ecfe0 radeon_hd: Clean up PCI ID names and add a few missing 2016-03-04 17:12:08 -06:00
Jérôme Duval
214f8799db try to fix gcc5 build on buildbot.
* I'd only reproduce the kernel build failure locally, weird.
2016-03-04 20:23:17 +01:00
Adrien Destugues
96e59cca3c SerialConnect: allow custom baudrates from the GUI 2016-03-04 20:01:58 +01:00
Adrien Destugues
3b4f50d3fb Style fix.
Thanks to axel for watching!
2016-03-04 20:01:58 +01:00
John Scipione
fad740e391 DeskCalc: Estimate n! using 9 term Stirling's
Approximation for n >= 1000

Factorial
Actual Value (truncated)
Approximation

1000!
4.0238726007709377354370243392300398571937E2567
4.0238726007709377354370243392307         E2567

10000!
2.8462596809170545189064132121198688901480E35659
2.8462596809170545189064132121197         E35659

100000!
2.824229407960347874293421578024535518477E456573
2.824229407960347874293421578024         E456573

Close enough!
2016-03-03 12:03:49 -08:00
John Scipione
261bdbab6d Use 5 factor Stirling's Series 2016-03-03 10:07:25 -08:00
John Scipione
fb4dcb4965 Use Stirling's approximation for n! 2016-03-03 10:07:25 -08:00
Rudolf Cornelissen
d20632f53c app_server: (hopefully) fixed overlay on CMAP8, fixed char leaking on 15 and 16bit depth. See ticket #12613 2016-03-03 16:39:54 +01:00
Automatic Committer
d05a2d9920 Update pci.ids from pciids.sourceforge.net 2016-03-03 05:20:23 +01:00
Alexander G. M. Smith
f765016ffd mail: Detect terminal input, end of file, better argument parsing.
* If the input is a terminal rather than a file or pipe, only then look
  for the single period on a line as end of text.  Also look for end of
  file as an end of the text, so that piped in text works.
* Parse multiple e-mail addresses properly, adding a comma between them
  (a space doesn't work).  Also allow mixing of "to" e-mail addresses
  and command line switches, previously all "to" addresses had to be
  at the end.
* Fewer blank lines in the output, make it look nicer, remove things
  like a redundant display of the body text before text was read.  Also
  no output text when just piping in a message.
* Avoid buffer overrun by using fgets instead of gets.
* Use stderr for text the user likely doesn't want to save, and for
  prompts that would be invisible if stdout was redirected to a file.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-03-02 22:11:15 -05:00
Adrien Destugues
93ea83e53d Allow custom baud rates for FTDI serial ports
- Termios: cf{get,set}{i,o}speed can handle arbitrary speed values.
- The value is stored in the appropriate fields of the termios structure
  in this case. The old constants (stored in the flags) are preserved
  for BeOS binary compatibility.
- Adjust the FTDI FT232* driver to accept custom rates, by replacing the
  hardcoded regster values with a function that will compute it
  according to FTDI documentation (confirmed giving the same values for
  the existing baudrates).
2016-02-27 19:08:53 +01:00
Adrien Destugues
44547a899c usb_serial: add PID for FTDI FT231X.
- Same driver as other FTDI chips, but less IO pins.
2016-02-27 15:56:33 +01:00
François Revol
e89ef1fef7 U-Boot: TRACE fdt_serial instead of dprintf
and disable it by default (it would hang on some platforms anyway).
2016-02-26 22:59:33 +01:00
François Revol
c82af4bebe U-Boot: try to use virtual-reg to get the UART
XXX: possibly only for _BOOT_MODE?
2016-02-26 22:58:45 +01:00
François Revol
14cfccd011 U-Boot: add a 'physical' arg to fdt_get_device_reg()
If false, try to use the virtual-reg property first.
2016-02-26 22:58:17 +01:00
François Revol
73ef47f70a loader: TRACE undefined symbols
While the kernel shouldn't have any, it happens on platforms missing new features.

Make it explicit.
2016-02-26 22:57:06 +01:00
François Revol
8c5db3649d Workspaces: Add switch-on-wheel user setting
Currently only applies when in a window, not when replicated
(then it always switches).

Feel free to fix (need to create the settings object when replicated).
2016-02-26 21:53:34 +01:00
Alexander von Gluck IV
236a3e937a intel_extrme: Better tracing, note when dp no-link 2016-02-23 17:50:39 -06:00
Alexander von Gluck IV
721ba9af43 intel_extreme: Clean up DisplayPort Port class
* DisplayPort != DigitalPort
* i2c needs wrapped in DP AUX transaction code
* Mode-setting comes with DP link training as well
* We need to try and share DP code with radeon_hd
2016-02-23 14:10:14 -06:00
Alexander von Gluck IV
9975620612 intel_extreme: Prepare for DisplayPort AUX comms 2016-02-23 13:39:10 -06:00
Jérôme Duval
269796df9d ffmpeg: add TODO on reimplementing deinterlace for ffmpeg 3. 2016-02-21 14:52:31 +01:00
Jérôme Duval
f97f2394ca ffmpeg: update build with version 3.0.
* untested.
2016-02-19 21:44:36 +01:00
Jérôme Duval
0d6b5d2667 via.accelerant: fix x86_64 build.
* untested.
2016-02-19 21:44:35 +01:00
Alexander von Gluck IV
bab64f65bb Merge remote-tracking branch 'upstream/master' into intel-extreme 2016-02-19 10:17:42 -06:00
Alexander von Gluck IV
c9c61669ea intel_extreme: Add general pipe configuration and adjust color space 2016-02-19 00:09:43 -06:00
Automatic Committer
a93682c096 Update pci.ids from pciids.sourceforge.net 2016-02-18 05:20:27 +01:00
Adrien Destugues
6071ca9209 Allow to build CharacterMap for the test_app_server.
- I needed to test missing glyphs, and none of the available test apps
  allowed to do so.
2016-02-14 21:12:33 +01:00