Commit Graph

55639 Commits

Author SHA1 Message Date
Dario Casalinuovo e4704eb6f9 MediaDefs/MediaRoster: Increase code consistency
* Also fix a possible issue with List::Get, the code returned
after a Get() error. While I doubt if this happens the next
items will be still valid, I prefer to continue until we reach
the end of the items, and in case of a SyncToRoster request we will
at least get the list empty. We might have a blocking call
on the other end, so it's our own duty to at least try to avoid
this in any case. As final result at least we will get the list
empty.
2016-04-22 15:53:34 +02:00
Dario Casalinuovo 76889670db shutdown_media_server: Finalize rework of synchronization
* When the user isn't requesting a custom notification, it will
be a BMediaRoster job to do it.
* Reintroduce BMediaRoster::SyncToServices, this time based on local
message passing rather than a global semaphore.
* SyncToServices is used in launch_media_server to make the process
more launch_daemon safe and faster in the average case.
* It was an error to add notifications in the media_server.
* Fixes #12717.
2016-04-21 19:02:27 +02:00
Automatic Committer 721adc92d3 Update pci.ids from pciids.sourceforge.net 2016-04-21 05:20:17 +02:00
Rene Gollent c084d6c49a Debugger: Minor tweak.
LocalTargetHostInterface:
- Set interface's friendly name to include local hostname.
2016-04-20 20:50:02 -04:00
Rene Gollent aed5c39d97 Debugger: Implement host interface roster listener.
TargetHostInterfaceRoster:
- Add Listener interface. For now, this simply notifies the listener of
  changes to the active debugger count.
- Adjust show new team window command to automatically fall back to the local
  interface window if one isn't specified. Fixes the Start New Team menu item
  in the TeamWindow. The latter will later be expanded to show the available
  interfaces to start a new team on in a submenu.

Debugger:
- Implement roster listener interface in order to know when to attempt
  application quit.

With this commit, all necessary work to isolate the application from the target
host is complete, and work on the actual remote interface and protocol can
begin.
2016-04-20 20:47:56 -04:00
Rene Gollent 8527cd4d28 Debugger: Add host listener implementation.
TargetHostInterfaceRoster:
- Implement TargetHostInterface's Listener interface. This allows us
  to more cheaply track the total number of running team debuggers,
  as well as automatically removing an interface that is destroyed.
2016-04-20 20:47:32 -04:00
Rene Gollent 5bb138f751 Debugger: Add listener interface for TargetHostInterface. 2016-04-20 20:47:30 -04:00
Rene Gollent a1afac4dca Debugger: Rework to fully use TargetHostInterface.
Application objects:
- Rework and simplify to take into account that they will no longer be
  directly managing the team debugger list. Requests to start a new debugger
  are still funnelled through here however, and as such, said requests must
  now provide the appropriate target host to start with. Adjust StartTeamWindow
  and TeamsWindow accordingly.
- On global init, always create an instance of the local interface.

TargetHostInterface:
- Convert to BLooper and implement TeamDebugger's Listener interface.
  TargetHostInterfaces now directly manage their TeamDebugger instances,
  and consequently take over the equivalent duties that the main application
  previously had.
- Adjust signatures of Attach/CreateTeam to add const. Adjust
  LocalTargetHostInterface accordingly.
- Add accessor to determine if a given interface is local or not. Will be
  needed for the TeamDebugger's file manager eventually so it knows if it
  needs to request remote files if no matching local file is found.
- Add accessor to start a TeamDebugger instance, and corresponding options
  structure.

TargetHostInterfaceRoster:
- Minor adjustments to host interface initialization to take into account
  needing to start the looper.
- Add accessor for number of running team debuggers, for the main app to
  use when deciding to quit.

TeamDebugger:
- Add accessor for SettingsManager. Needed for the case of a restart request,
  as the host interfaces do not have direct access to it.

TeamsWindow:
- For now, always grab the local host interface when initializing the window.
  Once the remote interface is implemented, this will need to be adjusted, but
  the appropriate UI for creating/selecting it is needed first anyways.

With these changes, the main application is fully host-agnostic, and all
management of actual debuggers is delegated to their parent host interfaces.
There still needs to be a listener interface for the host interface and/or
roster though, so that the application can be made aware of when debuggers
quit, as this drives whether it's time to terminate the app or not.
2016-04-20 20:47:29 -04:00
Alexander von Gluck IV 52da2024d0 Revert "bluetooth: Add kit, server, and preflet to image"
This reverts commit d16a0a9fc2.
2016-04-19 22:28:16 -05:00
Alexander von Gluck IV f0f01d2a89 bluetooth: Fix preferences build? Works here (again) 2016-04-17 15:07:41 -05:00
Alexander von Gluck IV d16a0a9fc2 bluetooth: Add kit, server, and preflet to image
* Server not started until requested (via preflet) for now.
2016-04-17 13:39:16 -05:00
Alexander von Gluck IV 30f6fed181 bluetooth: Fix preferences build 2016-04-17 13:38:04 -05:00
Humdinger f6ed4d08d1 Added 64bit package of youtube-dl 2016-04-17 17:54:44 +02:00
Jérôme Duval 3dc39e1e66 Add x86 packages for fontconfig, qt5, qscintilla, qsseditor. 2016-04-16 10:06:36 +02:00
Humdinger 6c70875a11 Updated youtube-dl package to 2016.04.13 2016-04-16 08:42:06 +02:00
Alexander von Gluck IV 3b0f09dbfd intel_extreme: Fix blurry native LVDS mode
* Intel panel scaling was making native mode blury
* Resolutions < native result in a non-scaled screen for now.
* We should look into using the hardware scaler vs
  doing fake scaling.
* Resolves #12716
2016-04-15 18:05:04 -05:00
Humdinger b01c2fffa3 Added BeGet package
BeGet - a GUI for wget - is only alpha quality, but works somewhat.
See its issues at HaikuArchives:
https://github.com/HaikuArchives/BeGet/issues
2016-04-15 14:48:40 +02:00
Jérôme Duval 43316ed272 Update gcc5 packages for x86 and x86_gcc2. 2016-04-15 05:28:18 +02:00
Automatic Committer 9537eae948 Update pci.ids from pciids.sourceforge.net 2016-04-14 05:20:21 +02:00
Jessica Hamilton ddef999990 Add gnuefi package for x86_64. 2016-04-14 13:39:43 +12:00
Rene Gollent 0a1838cb44 Debugger: Implement Create/Attach on LocalTargetHostInterface.
LocalTargetHostInterface:
- Implement the create and attach functionality. In theory, this completes
  everything that's needed in order to adjust the main application to do
  all debugger interface creation via the roster.
2016-04-13 20:10:19 -04:00
Rene Gollent 7dde731f40 Debugger: Add missing roster method implementations.
TargetHostInterfaceRoster:
- Implement counting/retrieving interfaces, as well as requesting the
  creation of a new instance.
2016-04-13 20:10:17 -04:00
John Scipione fbf9ac1ce4 ScreenSaver: Center window on screen 2016-04-13 15:50:30 -07:00
John Scipione a60b9ee3ac Screensaver: Set explicit min width for fSettingsView
Also make some new const variables to make some math more opaque
i.e. don't use as many magic constants.

This works great at 12pt font size, decenly at all other sizes. There is a
bit of jitter at 13pt and 24pt for some reason when moving from a default
settings view to another settings view.
2016-04-13 15:50:30 -07:00
John Scipione 4f0eceacb4 Screensaver: Move Puck up alphabetically 2016-04-13 15:50:30 -07:00
John Scipione 53dc6af917 Screensaver: Blackness not Darkness 2016-04-13 15:50:30 -07:00
John Scipione e9208b6876 ScreenSaver: Rename BuildScreenSaverDefaultSettingsView
...to just DefaultSettingsView

It is just as obvious what it does in context, but shorter.

Rename the function it contains from
BuildDefaultScreenSaverSettingsView to
BuildDefaultSettingsView
2016-04-13 15:50:30 -07:00
John Scipione 3801c37b90 Screensaver: Update Default Settings View to use Layout
and standard insets so that they match other screen savers
2016-04-13 15:50:30 -07:00
John Scipione 63d59e1081 Nebula: Use default insets
Simplify layout
2016-04-13 15:50:11 -07:00
John Scipione 523f450de0 Nebula: Pass view Bounds() instead of Frame() into SettingsView
This was why the view was not where it should be.
2016-04-13 15:41:40 -07:00
John Scipione e5147b1d89 Nebula: Set View color in constructor
We don't need to wait for AttachedToWindow for view color
unlike high and low color.
2016-04-13 15:40:23 -07:00
John Scipione a6ab3387c7 Nebula: Style fixes
80 char limit
add/update some pragmas
2016-04-13 15:40:22 -07:00
John Scipione ebfc2fc68e Gravity: Use LayoutBuilder directly on view 2016-04-13 14:22:47 -07:00
John Scipione 263e936e87 Gravity: Fixup scroll bar range 2016-04-13 14:13:23 -07:00
John Scipione 3456c51030 Gravity: remove extra spaces 2016-04-13 14:13:23 -07:00
Jérôme Duval 319b17f5cc Update glew packages for x86. 2016-04-13 21:14:35 +02:00
Humdinger 7c265be0d4 Updated Filer package
The link to Filer in $binDir pointed into the abyss...
2016-04-13 19:19:35 +02:00
Jérôme Duval 22e9780d40 Add graphite2 and harfbuzz packages for x86.
* Update glib2 and cmake packages for x86.
2016-04-13 19:12:06 +02:00
Jérôme Duval 0ca0c372c5 Updated gcc packages for x86_64. 2016-04-13 18:56:07 +02:00
John Scipione a80db836bf Appearance: Backport changes from Gravity back to Appearance
Make the square a rectangle with Golden Ratio
Use Set*UIColor() instead of Set*Color(ui_color())
Use B_CONTROL_BORDER_COLOR instead of hardcoding
Sort out copyright -- Haiku, Inc. didn't exist before 2003
Use variable width spacing based on font size from ControlLook
Removed unnecessary #includes

Did a little pixel pushing to make sure that everything is spaced
nicely and to ensure everything lies on integer pixel boundries.
2016-04-12 20:54:43 -07:00
John Scipione d1d1535a73 Gravity: Use Set*UIColor() instead of Set*Color(ui_color())
Thanks jessicah!
2016-04-12 20:14:29 -07:00
John Scipione ad5c346a3f Gravity: Remove copy pasta in copyright 2016-04-12 20:07:22 -07:00
John Scipione cd91a71562 Gravity: update copyright
This was meant to go in the last commit
2016-04-12 19:36:36 -07:00
John Scipione 4b83455774 Gravity: Add ColorItem and RainbowItem
instead of using boring StringItems

ColorItem draws a small colored rectangle left of the string
RainbowItem draws a rainbow colored rectangle left of the string
2016-04-12 19:31:00 -07:00
John Scipione 89972206d8 Gravity: spaces => tabs in Jamfile 2016-04-12 19:17:10 -07:00
Dario Casalinuovo 598880fc30 MixerCore: Remove wrong flag 2016-04-12 02:54:36 +02:00
Dario Casalinuovo b0dd37b7a0 AudioMixer: Review and rework synchronization
* The event time is managed through the main node control
loop.
* Make the mix thread to activate only when needed.
* Make the locking more simple and remove a race condition,
this will make the thread to be more silent too.
2016-04-12 02:33:48 +02:00
Dario Casalinuovo ec2c5619c1 AVFormatWriter: Add more error checking
* Check before to write chunks if the header was correctly
written, the same happens for track infos, even if the code
doesn't support it.
2016-04-12 02:26:15 +02:00
Dario Casalinuovo 9074223db0 media_server: Print unknown messages notice only when debugging
* Remove unneeded noise caused by progress notifications.
* Don't print the message to screen.
2016-04-12 02:26:14 +02:00
Jérôme Duval 59d2bf34ce Update cmake package for x86_64. 2016-04-11 22:13:20 +02:00