Commit Graph

55665 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
Adrien Destugues 97dfeb9670 Make some headers C89 safe again
- Allows to use FindDirectory.h in C89 sourcecode (no C++ style comments
  allowed)
2016-03-27 16:58:38 +02:00
autonielx af6cb5f94e Update translations from Pootle 2016-03-26 07:28:31 +01: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 3d8e0d38e1 Add initial design of StreamerPlugin 2016-03-25 22:09:03 +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
Humdinger 7bdf408e99 Fixed gphoto2_x86 package
There was a typo in the PROVIDES of the recipe that left the package
un-installable. Thanks vidrep for reporting and Diver for spotting
the issue! Closes #12694.
2016-03-20 17:13:07 +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
Humdinger 26c7e032ec Update gphoto2_x86 and libgphoto2_x86 packages. 2016-03-19 19:00:07 +01:00
autonielx 2d38e8a9cb Update translations from Pootle 2016-03-19 06:44:07 +01: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