Commit Graph

46344 Commits

Author SHA1 Message Date
Siarzhuk Zharski
7ff9cd33a9 USB audio: Refactor TRACE-es for more configurability 2013-08-18 14:49:13 +02:00
Siarzhuk Zharski
1a6d941d1d USB audio: Use system-wide USB_audio.h instead local one
* switching driver code to use system usb/USB_audio.h header;
* refactor USB_audio.h specification header for both USB audio specifications.
2013-08-18 14:49:06 +02:00
Siarzhuk Zharski
b42544e71d USB audio: fInsideNotify guard added to Remote/Close callbacks 2013-08-18 14:48:51 +02:00
Siarzhuk Zharski
673ef2cbaf USB audio: cleanup and codestyle fixes.
* cleanup and codestyle fixes;
* AudioFunction module contents purged out as unused.
2013-08-18 14:48:42 +02:00
Siarzhuk Zharski
2cc4703b91 Fix and force USB audio driver to work with new OHCI module
* some functionality like recording temporarily disabled;
* set the endpoint speed call added;
* packet size hard-coded for 48kHz case;
* draft support for formats and sampling rate handling;
* implement sampling rate change on the fly;
* optimized using of starting frame;
* fix user_memory in buffer exchaqnge call;
* fix exchanged buffer recoriding processing;
* debug tweaks, fix current buffer switching;
* cleanup, cleanup, cleanup...
2013-08-18 14:48:11 +02:00
Siarzhuk Zharski
291e40c309 USB OHCI: Fix finalizing of STALL-ed control request transfers
In case control transfer is finished with STALL answer from device only
the setup TD is retired into the Done Queue but other TDs (data and
status) are left in the ED queue. HC set the endpoint halted - so we
process such endpoint regardless of it's non-empty queue.

PS: cleanup some trailing spaces.
2013-08-18 14:47:51 +02:00
Siarzhuk Zharski
cf58476ccc USB OHCI: Support for isochronous transfers
Finishing and refactoring the draft, initially implemented during April-May 2012

NOTE: startingFrameNumber returned to device contains the number of the
next free frame right after the last packed of submitted data. For more
details please Look into corresponding [haiku-development] discussion
started at 03 Jul 2013.

Partially fixes #1045.
2013-08-18 14:47:33 +02:00
Stephan Aßmus
883b8dd0b9 HaikuDepot: Show number of up and down votes per user rating 2013-08-18 11:00:41 +02:00
Matt Madia
c58fcc9888 Fix x86_64 build. Use B_PRId32 instead of ld.
Suggested by diver and augiedoggie. Thanks!
2013-08-17 17:28:05 -04:00
Matt Madia
bbadab8989 Automatic whitespace cleanup. No functional change. 2013-08-17 17:26:39 -04:00
Stephan Aßmus
057633446b HaikuDepot: Added ratings summary view 2013-08-17 13:33:57 +02:00
Stephan Aßmus
4f434bc67a HaikuDepot: Added up and down vote count to UserRating 2013-08-17 13:33:56 +02:00
John Scipione
74577830da ColorControl: Implement keyboard navigation
Implements enhancement described in #9819

This feature works pretty much as it did on BeOS R5.

When you focus on the color control, the border is drawn blue and
the dot on the red ramp draws as an outline to show that it is
selected. You can push the up and down arrow keys to navigate to the
previous and next ramps respectively and can push right and left to
increment and decrement the color value of the selected ramp.

Clicking on the control no longer gives it focus.

In BeOS the left and right arrows would increment and decriment by 5,
on Haiku they increment and decrement by 1, but, by holding down the
key for a second or so the increment value increases to 5 allowing for
both course and fine adjustments.

On a technical note I split the int32 fFocusedComponent member variable
into 2 int16 member variables, fFocusedRamp and fClickedRamp. I did this
because I needed an entra variable, and can't  change the size of the
class without using up another reserved member variable slot. int16
should be more than enough for these variables as they store an index to
the currently focused or clicked on ramp (0-3). Please someone chime in
if this is not okay for FBC in some condition I didn't think about.
2013-08-17 03:40:58 -04:00
Niels Sascha Reedijk
32af01e854 Update translations from Pootle 2013-08-17 06:13:56 +02:00
Stephan Aßmus
e8be78fe3d HaikuDepot: Corrected copyright on TextLayout.cpp.
* The char classification stuff and can_end_line() originate
   from the BTextView implementation. Maybe Oliver Tappe is the
   lonely author of that code, but I don't feel like tracking this
   down at the moment and it should eventually be merged anyway,
   if what I did here proves useful at all.
2013-08-14 23:11:28 +02:00
Stephan Aßmus
840cac7415 HaikuDepot: Fixed scroll range in ratings view
* Due to HasHeightForWidth TextViews, the MinSize() of
   the layout has a different meaning. The reliable source
   for the actual needed height of the layout seems to be the
   Frame().bottom of the last BLayoutItem.
2013-08-14 23:07:27 +02:00
Stephan Aßmus
139bc0df15 HaikuDepot: A round of bug fixes gets the TextView working 2013-08-14 23:07:26 +02:00
Stephan Aßmus
0f71004390 HaikuDepot: More work on custom TextView
* TextLayout produces some first visible results...
2013-08-14 23:07:25 +02:00
Stephan Aßmus
156881a46b HaikuDepot: Beginnings of new TextView
* BTextView isn't usable for what I have in mind
 * based on new TextLayout
 * completely non-functional, yet
2013-08-14 23:07:24 +02:00
Stephan Aßmus
0f26bc6d00 HaikuDepot: Added another dummy package. 2013-08-14 23:07:23 +02:00
John Scipione
d38ba8f7dd ControlLook: Check IsFocus() first
Otherwise we make two unnecessary function calls for every control
in a window where only one of them is the focus control.

Thanks Stippi.
2013-08-13 13:05:01 -04:00
John Scipione
59655dcbc4 Update control focus flag. Fixes #9915
Parent window must be active for control to draw as focused. This
affects all controls that draw their focus ring using ControlLook
including but not limited to BButton, BCheckBox, and BRadioButton.

I won't pretend to know what is "right" but the behavior now matches
BeOS R5.
2013-08-12 15:56:39 -04:00
Stephan Aßmus
90b145cc39 HaikuDepot: Item count text less black 2013-08-10 22:57:44 +02:00
Stephan Aßmus
bcc3ba4109 HaikuDepot: Added item count view to package list 2013-08-10 22:40:40 +02:00
Stephan Aßmus
1058f86a5f BColumnListView: Regard StatusView in DoLayout() and Draw() 2013-08-10 22:40:05 +02:00
Stephan Aßmus
6f065b8bfe HaikuDepot: Changed my mind, search full description, too. 2013-08-10 21:33:04 +02:00
Stephan Aßmus
09d44cec8d HaikuDepot: Implemented filtering by search terms 2013-08-10 21:30:37 +02:00
Stephan Aßmus
3a6ccc8579 HaikuDepot: Fleshed out the code to support the virtual categories 2013-08-10 20:37:11 +02:00
Stephan Aßmus
706edd805f HaikuDepot: PackageInfoList -> PackageList, added PackageState enum
* Model has SetPackageState(). It adds or removes a PackageInfo
   to/from three internal lists, installed, activated and uninstalled
   packages.
2013-08-10 20:37:10 +02:00
Stephan Aßmus
2c3e4eaa41 HaikuDepot: List.h: added IndexOf(), Contains() and Remove()
* All of those take const ItemType& as argument.
2013-08-10 20:37:09 +02:00
Stephan Aßmus
42479955ae HaikuDepot: Implemented filtering by category 2013-08-10 20:37:08 +02:00
Stephan Aßmus
4abd2b7110 HaikuDepot: Beginnings of supporting filters...
... to reduce the package list. No filters can be defined
  via the UI, but a DepotFilter is already implemented, although
  its performance will probably need to improve.
2013-08-10 20:37:07 +02:00
Stephan Aßmus
633ed4c48e HaikuDepot: Make categories also accessible as List in Model 2013-08-10 20:37:06 +02:00
Stephan Aßmus
f75ec10dc6 HaikuDepot: Added the notion of package categories
* Defined PackageCategory class (icon, label and internal name)
 * Each PackageInfo has a list of PackageCategories
 * Model defines global PackageCategories, referenced by PackageInfos
 * Added Model.cpp to files needing translation
 * Added categories to dummy package infos
2013-08-10 20:37:06 +02:00
Niels Sascha Reedijk
3785b9b459 Update translations from Pootle 2013-08-10 06:14:28 +02:00
Rene Gollent
f8a99c90ad Cleanups. 2013-08-09 18:51:45 -04:00
Rene Gollent
ac4d653dd3 Tracker: Fix another navigator issue.
The problem indicated by #8388 hid another issue with respect to
show/hiding the navigator on the fly, namely that it didn't correctly
respect the type of Tracker window, which would cause the navigator to
show up in cases where it shouldn't, such as query windows.
2013-08-09 18:51:44 -04:00
Philippe Houdoin
f1cc99789b Add PatchBay to default image's demos 2013-08-08 22:45:20 +02:00
Pete Goodeve
82fbbe21aa additional style update to patchbay 2013-08-08 22:32:00 +02:00
Pete Goodeve
42b7984a6e PatchBay revisions for Haiku 2013-08-08 22:31:39 +02:00
Stephan Aßmus
0c82a69de4 HaikuDepot: Make string and icon+string columns sortable. 2013-08-08 09:21:07 +02:00
Stephan Aßmus
b928a72b88 HaikuDepot: Layout and labeling tweaks
* Swap rating and version in title view so it matches the
   order in the Ratings tab (rating XX for version YY).
 * Give a chance to decorate the version in translations.
 * Drop the parenthesis around version in Ratings tab.
2013-08-08 09:21:06 +02:00
Rene Gollent
b939c39167 Tracker: Fix #8388.
BNavigator shouldn't update its location until AllAttached(). Otherwise,
it might immediately trigger a redraw, and in such a case, the
navigation buttons wouldn't yet have had a chance to load their icon
resources, leading to a debug assert in BPictureButton due to said
images not being present, but required.
2013-08-07 19:42:52 -04:00
Stephan Aßmus
f4e16e73d5 HaikuDepot: Fleshed out Ratings page. 2013-08-07 21:48:45 +02:00
Stephan Aßmus
82a33bbe71 HaikuDepot: Implemented showing the rating in the Rating column 2013-08-07 19:09:40 +02:00
Stephan Aßmus
c887e3ac0d HaikuDepot: Show package version...
... and add short description to about page.
2013-08-04 22:17:15 +02:00
Stephan Aßmus
0046c36dfc HaikuDepot: Display the first screenhot in the package contents area.
* Disabled BitmapView::GetHeightForWidth() to keep aspect, it seems
   broken in the layout system, the view gets layouted completely
   elsewhere. Mabye due to the layout hierarchy being optimized?
 * Instead layout the bitmap with correct aspect in the given space,
   honor LayoutAlignment() for this.
2013-08-04 22:08:36 +02:00
Stephan Aßmus
9481e817b4 HaikuDepot: Add screenshots from resources to dummy package infos. 2013-08-04 22:08:10 +02:00
Stephan Aßmus
b576b5a85b HaikuDepot: Keep aspect ratio of Bitmap in BitmapView 2013-08-04 18:37:25 +02:00
Stephan Aßmus
127061e76f HaikuDepot: Scrollbars for content, document window look
* All text views that potentially need scrolling are now
   embedded into a CustomScrollView. That one controls a
   vertical BScrollBar only and has B_NO_BORDER frame. Since
   the regular BScrollView doesn't do some adjustments in
   this setup, the CustomScrollView takes care of moving the
   BScrollBar such that the B_DOCUMENT_WINDOW_LOOK resize
   handle does not obscure the bottom arrow button.
2013-08-04 18:29:23 +02:00