Commit Graph

41217 Commits

Author SHA1 Message Date
Jorma Karvonen
9d79ce816b Localize tgainfo
Closes ticket #7168
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:52:43 +02:00
Jorma Karvonen
ba4746794a Localize bmpinfo
Closes ticket #7164
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:47:58 +02:00
Jorma Karvonen
d05bb5a8e6 Localize bitsinfo
Closes ticket #7162.
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:43:44 +02:00
Ithamar R. Adema
cfa8ecbc86 ARM: boot: Make dd on MacOS happy
Turns out dd on MacOS does not like '1M' as size descriptor, but
wants '1m'. To prevent us breaking Linux builds (as it does not
accept 1m), just use the actual number of bytes explicitely instead.
2013-09-14 20:15:33 +02:00
Jérôme Duval
b31f2d53e0 add a constant for 10G base T ethernet. 2013-09-14 18:11:43 +02:00
Jérôme Duval
4b308f30ca virtio_net: allocate queues, read macaddress, handle ioctl. 2013-09-14 18:05:54 +02:00
Jérôme Duval
d038239669 virtio_net: add feature labels. 2013-09-14 18:05:54 +02:00
Rene Gollent
729075a5e8 Debugger: add Inspect context item to Registers view.
- Allows one to treat the value of a register as a memory
  address and jump directly to inspecting said address.
2013-09-14 17:55:33 +02:00
Rene Gollent
20c5fc4aa6 Debugger: Add missing std::nothrow. 2013-09-14 17:55:32 +02:00
Ithamar R. Adema
fda9d308e1 ARM: kernel: Fix compilation issue with new gas.
Turns out the new gas does not like spaces :(
2013-09-14 17:27:17 +02:00
Rene Gollent
74e89b3446 Fix accidentally truncated addresses in call frame unwind. 2013-09-14 17:07:55 +02:00
Jérôme Duval
b5082c11cc virtio_net: initial skeleton driver. 2013-09-14 11:48:37 +02:00
Jérôme Duval
0ce7ab1ebe ext2: access the parent variable once checked it's non null
* cleanup
* add some inode flags we don't use
2013-09-14 11:00:07 +02:00
Pawel Dziepak
b8dc812f3e x86[_64]: Enable NX on non-boot CPUs as soon as possible 2013-09-14 05:28:50 +02:00
François Revol
c14bca2958 Merge branch 'master' into sam460ex 2013-09-14 01:16:51 +02:00
Oliver Tappe
c911075e52 Drop debug output. 2013-09-14 00:22:30 +02:00
Ingo Weinhold
cf70d345b2 Merge remote-tracking branch 'haiku/master' into package-management
This reverts 8f7f28a7c3 (OpenGL: Upgrade
to
Mesa 9.2).

Conflicts:
	build/jam/BuildFeatures
	build/jam/HaikuImage
	build/jam/OptionalPackages
	build/scripts/build_cross_tools_gcc4
	src/add-ons/opengl/swpipe/Jamfile
	src/apps/diskusage/Jamfile
	src/kits/tracker/ContainerWindow.cpp
	src/kits/tracker/DeskWindow.cpp
	src/kits/tracker/Jamfile
2013-09-13 01:02:28 +02:00
Ingo Weinhold
cc0838da34 VFS boot: Mount packagefs when booting off an image
... and the mounted boot volume looks like a PM Haiku. This gets the CD
boot going.
2013-09-13 00:06:21 +02:00
Ingo Weinhold
3465e718e7 boot tarfs: Support resolving "." and ".." directory entries
This makes resolving the boot module symlinks work.
2013-09-13 00:06:21 +02:00
Rene Gollent
426f721b81 Fix default alignment on BCheckBox.
Was most readily noticeable in WebPositive's Find pane, where the
CheckBox was incorrectly top-aligned. Thanks to Humdinger for reporting.
2013-09-11 18:23:07 -04:00
Ingo Weinhold
6c88312170 package daemon: Replace changes alert by a window 2013-09-11 15:06:44 +02:00
Ingo Weinhold
f2cba19f53 package daemon: ProblemWindow: Fix message constant types 2013-09-11 15:05:30 +02:00
Pete Goodeve
78e450554e Fix to std dev calculation in ping 2013-09-11 14:30:47 +02:00
Ingo Weinhold
9f12d254b1 package daemon: ProblemWindow: Simplify getting the font height 2013-09-11 13:39:58 +02:00
Ingo Weinhold
c159d0cfd1 BActivationTransaction: Fix unarchiving constructor 2013-09-11 05:07:14 +02:00
Ingo Weinhold
b53a2e6af5 package daemon: ProblemWindow: Use a scroll view 2013-09-11 04:53:06 +02:00
Ingo Weinhold
88f12ad84f Add private BViewPort class
* It simplifies putting regular layout-aware views or layout items into
  a BScrollView.
* Not quite complete yet: Height-for-width support is missing, but that
  also requires fixing BScrollView in this respect. Scroll bar auto-hide
  support would be nice as well.
2013-09-11 04:51:03 +02:00
Ingo Weinhold
5c56812d90 BControlLook::ComposeSpacing(): Avoid non-integers 2013-09-11 04:47:28 +02:00
Ingo Weinhold
4a8da96088 BLayoutUtils: Add GetLayoutTreeDump()
Returns a debug output string listing the basic layout properties of
the view/item hierarchy.
2013-09-11 04:46:36 +02:00
Ingo Weinhold
b1c3379c7e _user_debug_output(): Fix for long strings
The wrong length was passed to debug_puts().
2013-09-11 04:43:47 +02:00
John Scipione
fb90f7ffe4 ScreenSaver: ScrollToSelection off-by-one
For some reason calling PopulateScreenSaver() list in AllAttached()
scrolls the selection off-by-one, so, call PopulateScreenSaverList()
in AttachedToWindow() and then call ScrollToSelection() again in
AllAttached() which seems to fix the problem.
2013-09-10 18:46:09 -04:00
John Scipione
5041c8ae6e ScreenSaver: Set min window height by font height
...rather than font spacing which only scales linearly in the horizontal
direction. This sets the min window height nicely at 11pt font while
continuing to work at 12pt, 8pt, and 18pt.
2013-09-10 18:09:50 -04:00
John Scipione
c8e6af02f2 ScreenSaver: Open screensaver initially via message
..instead of calling _OpenSaver() directly.

At least one screensaver, Message, depended on the Bounds() of the
preview to be set when run, which wasn't established when you first
started the app causing the app to quit while trying to draw.

Also call PopulateSaverList() in AllAttached()  so that ScrollToSelection()
works without having to be called again.

Also, fix pointer style in ScreenSaverWindow::MessageReceived()
2013-09-10 18:09:50 -04:00
John Scipione
e73001dc80 ScreenSaver: Refactor list item selection
Split out the list emptying into an EmptyScreenSaverList() method and use it in
various places where it should happen.

Call PopulateScreenSaverList() in ModulesView::AttachedToWindow() instead
of in the constructor because some of the methods depend on the view being
attached.

Don't try to select Blackness saver by name, instead if no other selection
is located select it as the default. Also, a tiny optimization, once we've found a
selection there's no reason to continue to keep looking for another one.
2013-09-10 18:09:49 -04:00
John Scipione
b3aa1c10f5 ScreenSaverApp: Style fixes
Update copyright info
2013-09-10 18:09:49 -04:00
John Scipione
4843382d02 ScreenSaver: Convert ScreenSaverItem.h to utf-8 encoding
For some reason this file was encoded as a MacRoman or some sort
of high ASCII non utf-8 encoding that made my editor sad.

Also, update the copyright and style while I'm at it.
2013-09-10 18:09:48 -04:00
Siarzhuk Zharski
726e47bb80 vfs:Remove extra put_vnode call on error B_LINK_LIMIT exit
Fixing the autoconf test: attempt to create file in place of already
existing symlink. On error exit put_vnode was called explicitly before
returning error. The second, implicit call to put_vnode was issued on
destroying the VNodePutter instance that references the same vnode. At
this time the vnode has references count equal to 0 so corresponding
panic was executed. Great thanks to Ingo for pointing it out!

Fixes #9140.
2013-09-10 19:47:36 +02:00
Ingo Weinhold
38c62dfb8b package daemon: Implement dependency resolution support
... for package changes performed manually by the user (i.e.
adding/removing files in a packages directory). Currently only done for
the system root. Alternative roots should still work as before, so this
shouldn't affect haikuporter (not tested yet).

Needs some more work (e.g. the GUI part).
2013-09-10 19:14:21 +02:00
Ingo Weinhold
383ac67cfa package daemon: Let Root know whether it is the system root 2013-09-10 19:14:21 +02:00
Ingo Weinhold
99f9333a2a BPackageManager::_CommitPackageChanges(): Fix error handling
The error returned by CommitTransaction() is just indicates whether
transactionResult has been initialized.
2013-09-10 19:14:21 +02:00
Ingo Weinhold
d3c96ad809 BPackageManager: Support pre-added packages
... as needed for the package daemon. _PreparePackageChanges() doesn't
try to clone them in this case.
2013-09-10 19:14:21 +02:00
Ingo Weinhold
36204024cf BPackageManager: Add InstalledRepository::EnablePackage() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
018173a2f5 BPackageManager: Add ResultComputed() callback 2013-09-10 19:14:20 +02:00
Ingo Weinhold
c032903abc BPackageManager: Add VerifyInstallation() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
7e0d2c4f94 BPackageManager: Add alternate Install()/Uninstall()/Update() 2013-09-10 19:14:20 +02:00
Ingo Weinhold
5a5d146510 BPackageManager: Make _InstallationRepository() protected 2013-09-10 19:14:19 +02:00
Ingo Weinhold
56b1376090 BActivationTransaction: Make BArchivable 2013-09-10 19:14:19 +02:00
Ingo Weinhold
9b2fd34196 Add BSolverPackageSpecifierList::AppendSpecifiers() 2013-09-10 19:14:19 +02:00
Ingo Weinhold
46d77ed7da package daemon: Delay handling node monitor events to group them 2013-09-10 19:14:18 +02:00
Ingo Weinhold
43bd5a49c7 <package/Request.h>: Don't leak JobQueue into public namespace 2013-09-10 19:14:17 +02:00
Ingo Weinhold
cf3bb0d753 BPackageManager: Abstract installed repository initialization
* Rename TransactionHandler -> InstallationInterface and
  DaemonClientTransactionHandler -> ClientInstallationInterface.
* Add InstallationInterface::InitInstalledRepository(). Use in
  _AddInstalledRepository() to get the repository packages instead of
  using the package roster. The ClientInstallationInterface
  implementation does it that way.
2013-09-10 19:14:17 +02:00
Ingo Weinhold
c138f1f2af BRepositoryBuilder: Add constructor for pre-init'ed repository 2013-09-10 19:14:17 +02:00
Jerome Duval
378a2b8580 updated usbdevs from NetBSD revision 1.653 2013-09-09 21:35:01 +02:00
Siarzhuk Zharski
c68e172312 usb_audio:fix parameters web compilation logic
* parameters web compilation improved - harvest the feature units
  assigned to non-streaming output terminals in the same way as ones
  assigned to streaming output terminals.

Fixes #9950
2013-09-09 08:56:20 +02:00
Stephan Aßmus
2520ac68a8 HaikuDepot: Introduced LinkView utility class
* Inherits BStringView
 * Highlights string on hover and changes cursor shape.
 * Sends message when clicked.
2013-09-08 19:09:14 +02:00
Stephan Aßmus
d6bd4f068d HaikuDepot: TextDocument-Layout and -View optimize drawing...
... by drawing only the paragraphs that intersect with the
 update rect.
2013-09-08 19:08:26 +02:00
Stephan Aßmus
375dff4eaa HaikuDepot: Use TextDocumentView for package description.
* The rating items are also justified for consistency.
 * Refactored usages of TextDocumentView and MarkupParser into
   MarkupTextView.
2013-09-08 18:41:45 +02:00
Stephan Aßmus
6c5c4d8437 HaikuDepot: Added TextView::ParagraphStyle() ...
... to get the initial/default paragraph style.
2013-09-08 18:41:08 +02:00
Stephan Aßmus
cb97f2349f HaikuDepot: Make MarkupParser a bit more flexible...
... by allowing to append markup to an existing document.
2013-09-08 18:39:56 +02:00
Stephan Aßmus
97c332e107 HaikuDepot: Added TODO. 2013-09-08 18:39:13 +02:00
Stephan Aßmus
cf94e360d5 HaikuDepot: Beef up the Sequitur changelog with more markup.
* The bullet paragraphs were already working, now we have
   bold and italic plus the heading style. The links in the
   original changelog are not yet supported.
2013-09-08 14:40:43 +02:00
Stephan Aßmus
0e61e1ef80 HaikuDepot: Use a TextDocumentView for the Changelog.
* This allows simple media wiki markup in the changelog.
2013-09-08 14:40:42 +02:00
Stephan Aßmus
2a059affa4 HaikuDepot: TextDocumentView: SetInsets(), control scroll bars.
* Added SetInsets() to allow for a margin around the text.
 * Update BScrollBars if they exist.
2013-09-08 14:40:42 +02:00
Stephan Aßmus
1fb1d2103b HaikuDepot: MarkupParser: Added SetStyles().
* Also include the terminating \0 in the loop
   over the characters, in order to consume the
   last paragraph correctly when it's not finished
   by a line break.
2013-09-08 14:40:41 +02:00
Jérôme Duval
7d5632a0da agp_gart: added message logs on errors. 2013-09-07 12:04:11 +02:00
Jérôme Duval
c4a8ae38d4 realtime_sem: fixed a compiler warning.
* the variable is initialized anyway on the success code path.
2013-09-07 11:34:21 +02:00
Stephan Aßmus
df10644048 HaikuDepot: MarkupParser: Fixed off-by-one error...
... when finishing a paragraph to include the last character.
2013-09-07 00:14:29 +02:00
Stephan Aßmus
59b52a1163 HaikuDepot: Added very simplistic markup parser.
* Follows MediaWiki or TracWiki style.
 * Supports only level 2 headings, bold, italic and top-level
   bullet paragraphs.
 * Line break handling would need to be changed.
 * Outputs a TextDocument.
2013-09-07 00:12:01 +02:00
Stephan Aßmus
c6a0782a8f HaikuDepot: Paragraph: Added IsEmpty(). 2013-09-07 00:12:00 +02:00
Stephan Aßmus
720f7fdf54 HaikuDepot: ParagraphLayout: Fix work around
* Bail early if the TextSpan length is 0.
 * When the span starts with a space, the work
   around for the app_server bug, which I should fix,
   needs to offset by the other delta.
2013-09-07 00:11:59 +02:00
Jérôme Duval
8a1f303840 ffmpeg: release the reader context on destruction.
* avformat_open_input() is to be balanced with a avformat_close_input().
* should help with #9945.
2013-09-06 23:36:58 +02:00
Oliver Tappe
a84cf45805 Add missing search path for <build>package_repo. 2013-09-06 22:49:08 +02:00
Jérôme Duval
ba654b1b91 virtio_pci: try at fixing build on Haiku x86_64
see #9912.
2013-09-06 17:16:07 +02:00
Stephan Aßmus
d94326b1c6 HaikuDepot: CharacterStyle: SetBold() and SetItalic()
* Added convenience methods to derive the bold and italic
   font face from the currently set font. May not yield
   results depending on wether a specific face is available
   for the font.
 Ü * Changed test accordinly.
2013-09-06 10:49:37 +02:00
Stephan Aßmus
e75fda0202 HaikuDepot: List.h: Coding style fix 2013-09-06 10:10:39 +02:00
Stephan Aßmus
00861147be HaikuDepot: Removed first iteration of text layout classes. 2013-09-06 10:04:04 +02:00
Stephan Aßmus
8d0c791d5f HaikuDepot: Switched TextView to use new ParagraphLayout
* The ParagraphStyle can be set as well.
2013-09-06 10:04:03 +02:00
Stephan Aßmus
822872d6c3 Paragraph: Added Clear() method to remove all TextChunks. 2013-09-06 10:04:02 +02:00
Evgeniy Abdraimov
fcc745e0e7 Reopening FreeBSD's compat devices was broken due to a missing flag
clear. Patch part of #7040. Thanks.
2013-09-06 01:11:31 +02:00
Stephan Aßmus
6576e6c774 HaikuDepot: Text stuff: Support for simple bullet lists.
Also:
 * Fixed off-by-one bug when extracting wrapped TextSpans until the
   line's end text offset.
 * ParagraphStyle::FirstLineInset() is now additional to LineInset().
 * Potential Bullet::Spacing() is added to all lines as inset.
2013-09-05 22:07:44 +02:00
Stephan Aßmus
ccfedbc4fa HaikuDepot: text stuff: Layout all document paragraphs.
* Use TextDocumentLayout in TextDocumentView.
 * Extend test case demonstrating paragraphs with
   different alignments, something unsupported in
   BTextView.
2013-09-05 18:07:14 +02:00
Stephan Aßmus
8e8d1b55d3 ParagraphLayout: Don't ignore the given drawing offset. 2013-09-05 18:06:39 +02:00
Stephan Aßmus
f1a08c0848 HaikuDepot: ParagraphLayout: Alignment and justify support. 2013-09-05 16:54:28 +02:00
Stephan Aßmus
169de499b5 HaikuDepot: Removed no longer needed info from GlyphInfo. 2013-09-05 15:52:55 +02:00
Stephan Aßmus
68dfaf0f9d HaikuDepot: New TextDocumentView and test app.
* TextDocumentView still only shows the first paragraph
   of a TextDocument, but this time using the new
   ParagraphLayout. A class for layouting all paragraphs
   of a TextDocument is up next.
 * A simple test app shows that TextSpans with different
   CharacterStyles already work in one Paragraph. The test
   is nowhere extensive and does not test for bugs in
   corner cases.
2013-09-05 13:26:15 +02:00
Stephan Aßmus
24523b867b HaikuDepot: ParagraphLayout: Debugged and now working.
* The biggest problem was that adding the wrapped
   sub-TextSpan to the LineInfos was missing. Other
   problems included missing handling of ascent and
   descent per CharacterStyle.
2013-09-05 13:24:31 +02:00
Stephan Aßmus
4b810a1e92 HaikuDepot: TextDocument: Added Paragraph access by index. 2013-09-05 13:24:01 +02:00
Stephan Aßmus
d922357fa1 HaikuDepot: CharacterStyle: Added convenience methods 2013-09-05 13:21:32 +02:00
Stephan Aßmus
15990b01a2 HaikuDepot: Text stuff: ParagraphLayout compiles and maybe works 2013-09-05 10:59:39 +02:00
Stephan Aßmus
f668e7dd19 HaikuDepot: Text stuff: Switched from TextStyle to CharacterStyle 2013-09-05 10:59:03 +02:00
Stephan Aßmus
036fabe903 HaikuDepot: List: Changed parameter order for Replace()
(index first)
2013-09-05 10:58:16 +02:00
Stephan Aßmus
a452d51705 HaikuDepot: Text stuff: Added line spacing to ParagraphStyle 2013-09-05 10:57:19 +02:00
Stephan Aßmus
2b7ea89d14 HaikuDepot: Give access to glyph spacing
* The implementation for the get-accessors was missing
   from CharacterStyle.
2013-09-05 10:23:11 +02:00
John Scipione
9fc9619079 ScreenSaver: Set target for turn off display checkbox
I noticed while testing the nightly on vmware which, unlike vbox, includes
a video driver with DPMS support that this checkbox wasn't working.
This should fix it.
2013-09-04 11:14:07 -04:00
John Scipione
9bf1ba7dcf ScreenSaver: Just for good measure allow 4 lines of text here.
... just in case a long translation needs an extra line to fit
(in English 3 is enough) and because we've got enough room next
to the screen image to fit another line of text anyway.
2013-09-04 11:10:02 -04:00
John Scipione
28a2faa30a ScreenSaver: use ceilf instead of ceil
... to restrict to single float precision. This is a little pedantic and silly
but bare with me for the sake of consistency.
2013-09-04 11:06:30 -04:00
Stephan Aßmus
bc61e26366 USB HID: Restore previous handler sorting.
* Since additional handlers put themself in the front the
   handler list, asking the tablet handler last actually puts
   its handler in the first position, as before my changes.
2013-09-04 09:53:41 +02:00
Stephan Aßmus
72c029ea37 USB HID: Changed/removed wrong comment.
* The HID driver publishes devices for all handlers that claim
   to know how to work with a device. I see how that is good for
   a combo device like keyboard with built-in touch pad or a single
   USB receiver for a keyboard and mouse. But I wonder about devices
   that publish multiple alternative HID configurations. I think
   my Wacom Tablet has a configuration for a regular mouse and the
   configuration for the actual tablet. And the driver should publish
   a device for one, but not the other. I also don't see in the code
   how a specific configuration is made the active one before the
   protocol is used.
2013-09-04 09:53:07 +02:00
Siarzhuk Zharski
42cb481fe4 StyledEdit:supress unlock if the file is on RO volume
Show the "Read-only" status for documents that are living on read-only
volumes and do not show unlock menu for such files.

* The enhancement pointed out by Sergei Reznikov (Diver). Thanks!
2013-09-03 20:41:16 +02:00
Stephan Aßmus
6e47dfbeaf USB HID: Split out tablet support into TabletProtocolHandler
* The previous approach of combining tablet and mouse support
   in MouseProtocolHandler was unintuitive and had the potential
   problem that if a device has multiple HID descriptors, one
   simulating a simple mouse, that one may be found first and
   there is no mechanism of choosing the best handler for a device.
   Now we can look for tablets before looking for mice.
 * Implement pressure, eraser and tilt support. Untested. This
   mostly comes from the patch in #7354, but eraser support should
   work more like intended by the Be API.
 * It appears that my Wacom Intuos 2 cannot be accessed via the
   HID framework, except as regular mouse. So I couldn't actually
   test these changes. I believe what worked before, i.e. QEMU
   absolute mouse position support, should work as good as before.
   Please shout if not!
 * If more recent Wacom tablets /could/ work with these changes,
   they will not, because the HID driver still explicitely ignores
   Wacom devices and the dedicated Wacom driver will not pick up
   newer devices, with its hard-coded and un-generic device support.
2013-09-03 17:55:02 +02:00
Stephan Aßmus
526e95c5cd USB HID: Fixed warnings about unused variables. 2013-09-03 17:54:13 +02:00
John Scipione
2019bf1e17 ScreenSaver: Tweak the text height...
because the bottom of decenders was getting cut off in some locales
on the 3rd line of text.
2013-09-02 21:48:49 -04:00
John Scipione
b75fe9ba8e Screensaver: fix this tricky bit of logic 2013-09-02 20:01:42 -04:00
John Scipione
d9acbaf0dc ScreenSaver: Timeout if window won't lock. Fixes #4260.
If we fail to lock the window in the kInitialTickRate time, quit the thread.
We were deadlocking causing #4260 because you could open several
threads by moving through the screen saver list quickly all trying to lock
the same window at the same time, classic deadlock.
2013-09-02 19:44:45 -04:00
John Scipione
fa3651781a ScreenSaverRunner: Style fixes
Also update copyright info, add myself to authors list alphabetically.
2013-09-02 19:44:42 -04:00
John Scipione
58aaae827b ScreenSaver: Correct typo
Should be Copyright 2013 not 20013
2013-09-02 19:44:41 -04:00
Siarzhuk Zharski
82055c267b Terminal:send resize notify on attaching window to view
During adding the second tab the view in the first one may change its
lines count in case the Terminal window was maximized. Send resize
notification to client rpogram on every reattaching view to window.

Fixes #9809
2013-09-02 20:15:07 +02:00
Siarzhuk Zharski
b0044e4437 Temrinal Prefs: update color control on scheme change
Update the color control state on the scheme change event
Fixes #9864.
2013-09-02 20:15:04 +02:00
John Scipione
709172a02d ScreenSaver: Convert to layout APIs
This allows the ScreenSaver window grow and shrink based on your
font size and translations.

Minimum is 446 px x 325 px so that there is enough space to accommodate
screen savers designed for BeOS.

Should fix #7369 and help #7332 a bit.

Margins go right to the edge now which prevents the tab view from looking
as liney.

Password window has also been converted to use the layout APIs, also,
the window now pops up in the center of the main ScreenSaver window.

The fade translations will have to be redone unfortunately, but it should be
easy as it is the concatenation of the previous strings.
2013-09-02 13:39:41 -04:00
John Scipione
23ca081a2f ScreenSaver: Style fixes
Update Copyright year and fix authors adding myself.
Mostly spacing and indentation fixes.
2013-09-02 13:18:36 -04:00
Stephan Aßmus
15a557e69c HaikuDepot: Re-implemented TextLayout as ParagraphLayout
* Completely unfininished and untested, won't even compile,
   but is not included in the build. The idea being to wrap TextSpan
   objects and split them onto Lines each containing their own
   layouted TextSpan chunks. TextLayout will later be repurposed
   to off-load the layout of individual text paragraphs to
   ParagraphLayouts.
2013-09-02 12:15:18 +02:00
Stephan Aßmus
947ba26bd0 HaikuDepot: Redesign TextStyle as CharacterStyle ...
... following the example set by ParagraphStyle and
 ParagraphStyleData.
2013-09-02 12:15:17 +02:00
Stephan Aßmus
621cb2bf13 HaikuDepot: Fix passing back cloned StyleData objects
* In the methods that create a new style data object
   by cloning the object and changing the respective
   property, returning a Reference to a style data
   object makes it easier on the calling side to deal
   with the same object being returned or a new one.
2013-09-02 12:15:16 +02:00
Stephan Aßmus
6f1dbba164 HaikuDepot: Paragraph: Added Length() method. 2013-09-02 12:15:15 +02:00
Stephan Aßmus
4710193014 HaikuDepot: Work-in-progress on a TextDocument class.
* This is mostly still targeted at the use-case of parsing
   some mark up text and building a static representation
   of the styled document which can be layouted and rendered.
 * Lots of TODOs and almost nothing is tested.
2013-09-02 12:15:15 +02:00
Stephan Aßmus
fcf16d33e4 HaikuDepot: Fixed spelling of ascent and descent nouns 2013-09-02 12:15:14 +02:00
Oliver Tappe
64c4bd1dc2 2nd attempt at fixing build of btrfs and packagefs.
* adding zlib to the kernel unfortunately introduces a cyclic dependency
  with respect to the zlib, haiku and haiku_devel packages (AFAICS)
* circumvent this by building kernel_zlib as a static library again,
  this time with PIC, such that it can be used by kernel add-ons
2013-09-02 12:03:05 +02:00
Oliver Tappe
0cb3f70926 Revert "Fix build problems of btrfs and packagefs for x86_64."
This reverts commit f272e63f393449d3a816970ca632764895a78cd6.
2013-09-02 12:03:05 +02:00
John Scipione
01f623b00f Leaves: Don't save the control, already have value.
I was looking at the Leaves screensaver for reference and I noticed
this peculiarity. It saves a pointer to each slider control
just so that it can later read their values, but, the values are
already provided in the message in the be:value property, so just
use that instead.
2013-09-02 02:53:50 -04:00
Jérôme Duval
51b735b342 hdaudio: enable MSI support
* disabled for nVidia and Creative Technology devices.
2013-09-01 21:11:51 +02:00
Adrien Destugues
a8dd17c9b9 UrlProtocolHttp: parse received cookies
* We didn't do anything with cookies received from the server, they are
now automatically added to the cookie jar.
 * Also make sure the UrlContext (which holds the cookie jar) is
forwarded from UrlRequest to UrlProtocol when it gets set.

this gets cookies working in Service Kit-based WebKit.
2013-09-01 19:40:57 +02:00
John Scipione
41e940ca3b MediaTrack: gaurd printf's behind TRACE_MEDIA_TRACK 2013-08-31 17:02:00 -04:00
John Scipione
ae96ed6dbe Use a stop alert when you can't open the file.
This is a fatal error that the user has no way to recover from
so using the info alert is not appropriate here.

Also rename the ret variable to result and omit extraneous braces.
2013-08-31 15:57:25 -04:00
John Scipione
72d0921ae8 MediaTrack: Calling debugger() crashes the program
So, call printf instead, which allows the program to print an error
rather than crashing.
2013-08-31 15:54:21 -04:00
John Scipione
8bcc3722ba MediaTrack: Style fixes 2013-08-31 15:40:18 -04:00
Ingo Weinhold
83462cc28d Refactor reusable pkgman code into libpackage
* Move RepositoryBuilder class to libpackage and add B* prefix to name.
* Pull BPackageManager class out of PackageManager and move to
  libpackage. The base class is customizable via three handler objects
  responsible for transaction handling, request execution, respectively
  user interaction.
* Reorganize _ApplyPackageChanges(): Now we first prepare the
  transactions for all affected installation locations (downloading
  files etc.) and then commit them.
2013-08-31 21:19:07 +02:00
John Scipione
0ef692e702 MediaConverter: Work-around crashing bug. 2013-08-31 05:07:45 -04:00
John Scipione
4dcf7ed2f5 MediaConverter: If path is truncated, set a tooltip 2013-08-31 05:06:50 -04:00
John Scipione
d1dd0b5889 MediaConverter: Fix folder selection bug.
If you select the same folder twice it would blank out the output folder.

Bug has been around at least since R1A4.
2013-08-31 02:40:08 -04:00
John Scipione
0e68593ea3 MediaConverter: Style fixes 2013-08-31 01:41:39 -04:00
John Scipione
f29499e726 MediaConverter: Set slider widths explicitly 2013-08-31 00:48:19 -04:00
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
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
Ingo Weinhold
a0cb235c0e pkgman: Use BPackageInfo::FileName() instead of Canonical*() 2013-08-29 23:19:14 +02:00
Ingo Weinhold
dda51ada4c package daemon: Package: Set the package info file name 2013-08-29 23:19:14 +02:00
Ingo Weinhold
6692db5c1c BPackageInfo: Add fileName property
The property is archived and unarchived, but otherwise not yet stored.
If not set, FileName() returns CanonicalFileName(). Can be used for
packages like haiku.hpkg etc. that don't have a properly qualified file
name (yet).
2013-08-29 23:19:14 +02:00
Ingo Weinhold
08fb013f56 pkgman uninstall: Verify more specific locations
... after having determined the packages to remove from the selected
installation location. This uninstalls packages from the more specific
locations when their dependencies have been removed.
2013-08-29 23:19:14 +02:00
Ingo Weinhold
7af664c9d8 LibsolvSolver: change handling of fInstalledRepository
We update/set it in _AddRepositories() instead of in AddRepository(). In
code needing it earlier _InstalledRepository() can be used.

This change allows calling to SetInstalled() on a repository that has
already been added to the solver.
2013-08-29 23:19:13 +02:00
Ingo Weinhold
a54a50b48e pkgman: add support for [un]installing/updating in system 2013-08-29 23:19:13 +02:00
Oliver Tappe
c92aabd434 Fix build of pkgman with gcc2.
* I have no idea why, but gcc2 considers BSolverRepository* and
  PackageManager::InstalledRepository* as distinct pointer types, which
  it doesn't like to compare without a cast. Circumvent by static 
  casting to BSolverRepository*.
2013-08-29 23:11:14 +02:00
Oliver Tappe
c5c787ea41 Fix build problems of btrfs and packagefs for x86_64.
* Both filesystems used to link to a static kernel-zlib, which 
  was being built with -fno-pic. This doesn't work on x86_64 as the 
  filesystem add-ons are meant to be relocatable, which requires their 
  code to be compiled as position independent.
  Solve that by moving zlib into the kernel, so any add-on can just use
  it from there (packagefs is mandatory, so we can't really do without 
  zlib anyway).
2013-08-29 22:44:50 +02:00
Oliver Tappe
1e6177c22e Fix broken build of package kit (due to warnings) for x86_64. 2013-08-29 22:44:50 +02:00
Oliver Tappe
71046951f8 Fix build of pkgman on x86_64 by use of B_PRI... define. 2013-08-29 22:44:49 +02:00
Oliver Tappe
03aa9653d0 Move UsePrivateSystemHeaders into arch-specific block. 2013-08-29 22:44:49 +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
Ingo Weinhold
3381a1bf81 pkgman uninstall: improve correctness
... with respect to inter-installation-location dependencies. E.g.
uninstalling a package from common should only uninstall packages
depending on it, when system doesn't still provide those dependencies.

We don't consider uninstalling packages from more specific installation
locations when dependencies are uninstalled from a more general one yet.
2013-08-28 13:14:02 +02:00
Ingo Weinhold
89cb001511 BSolver::VerifyInstallation(): Add flags parameter
Only flag ATM is B_VERIFY_ALLOW_UNINSTALL. It tells to solver to suggest
uninstalling packages when necessary instead of considering such a case
a problem.
2013-08-28 12:55:47 +02:00
Ingo Weinhold
75d15eb4c2 BSolver: Extend FindPackages() functionality
* Add flag B_FIND_INSTALLED_ONLY to only return installed packages.
* Add FindPackages() version that finds packages like Install() or
  Uninstall() do.
2013-08-28 12:47:58 +02:00
Ingo Weinhold
220b5e1f29 BSolverRepository: Add {Remove,Delete}Package() 2013-08-28 12:44:14 +02:00
Ingo Weinhold
2ada08d23a LibsolvSolver: Automatic whitespace cleanup 2013-08-28 03:22:34 +02:00
Ingo Weinhold
92693623e2 package daemon: DebugSupport.h: fix (64 bit) printf() formats 2013-08-28 01:08:15 +02:00
Ingo Weinhold
90f9f1392b pkgman install: Add base package support
If any of the packages to install has requires a base package, that is
installed in a more general installation location, we copy the package
to the target installation location. Ideally we'd hard-link, but BFS
doesn't support that. Symlinks would be a small nightmare to maintain.

We might want to choose the installation location intelligently
depending on the base package requirement -- e.g. install curl_devel in
system rather than common, since curl is installed in system -- so we
can avoid duplicating packages.
2013-08-28 00:36:28 +02:00
Ingo Weinhold
617be97d8e Add private storage kit class BCopyEngine
It provides the functionality to copy file system entries (also
recursively). The code originates from the copyattr sources. Some
copyattr specific functionality has been removed and the code has been
adjusted for library use (i.e. no exit()s or fprintf()s). An optional
controller object can be set to customize the behavior.
2013-08-28 00:36:28 +02:00
Ingo Weinhold
bc0491ae52 BPackageInfo: Add Matches()
Checks whether the package satisfies the given
BPackageResolvableExpression.
2013-08-28 00:36:28 +02:00
Ingo Weinhold
48e17c15bc BPackageResolvableExpression: Add Matches()
Checks if the given BPackageResolvable respectively the BPackageVersion
pair satisfies the expression.
2013-08-28 00:36:27 +02:00
Ingo Weinhold
39d0e79f2b copyattr: Fix error output 2013-08-28 00:36:27 +02:00
Ingo Weinhold
be3833c9a4 BString: Add SetToFormatVarArgs() 2013-08-28 00:36:27 +02:00
Oliver Tappe
af0200d6ef Fix build problem in glue code for x86_64. 2013-08-27 23:30:23 +02:00
Oliver Tappe
eb658691e9 Add definitions for x86_64 repositories and package infos. 2013-08-27 23:30:23 +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
Ingo Weinhold
ce4f367692 pkgman: auto-refresh repositories only for update/install 2013-08-26 13:03:12 +02:00
Ingo Weinhold
8b26ef6779 pkgman: PackageManager: Use flags instead of bools in ctor 2013-08-26 12:57:41 +02: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
Ingo Weinhold
c4ce29a67e pkgman search: enable search in ~/config 2013-08-25 18:41:56 +02:00
Ingo Weinhold
f118c41467 pkgman [un]install: fix option '-H' 2013-08-25 18:41:29 +02:00
Ingo Weinhold
e64db4da44 Also mount the packagefs at ~/config 2013-08-25 18:23:11 +02:00
Ingo Weinhold
0214aefd58 pkgman search: add -a/--all
Can be specified instead of a search string. Lists all packages.
2013-08-25 17:19:14 +02:00
Ingo Weinhold
8f9efca9a6 pkgman: PackageManager: no longer auto-exit() when a job fails
This way search and uninstall no longer fail when there's no connection
to the internet.
2013-08-25 17:09:41 +02:00
Ingo Weinhold
03191ec5af pkgman: make JobStateListener a bit more flexible
Flags can be passed to the constructor to specify whether to exit() when
a job failed/was aborted.
2013-08-25 17:06:30 +02:00
Ingo Weinhold
c33daf26ea package kit: fix JobQueue::_RemoveDependantJobsOf()
* Delete the right job (the removed dependant job).
* Sever the depencency link between the jobs or the next iteration of
  the loop would process the same job again.
2013-08-25 17:05:00 +02:00
Ingo Weinhold
ab9a117918 package kit: JobQueue::Pop() fix invalid iterator access 2013-08-25 17:02:05 +02:00
Ingo Weinhold
f5821a1aee Set file type of Tracker New templates correctly
Fixes #9927.
2013-08-25 15:09:58 +02: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
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
5657c5eaa5 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
(cherry picked from commit d1716b277c)
2013-08-21 18:04:11 +02: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
Ingo Weinhold
b35337eb1e Add repositories for x86
Almost complete. bepdf is still missing, since it doesn't build with gcc
4 and a few source packages are missing as well (binutils and gcc
because haikuporter doesn't build them correctly ATM, mesa due to an
oversight).
2013-08-21 16:45:48 +02:00
Ingo Weinhold
a5101559b5 packagefs: PackageFSRoot: fix variable redeclaration 2013-08-21 16:45:48 +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
Jérôme Duval
d31b295e59 pci: check the bus number for pcie mechanism
* fallback to mechanism 1 for out of range bus numbers
* Support for the fallback is mandatory according to the PCIe specification.
* Should help with #9929 and #9930
2013-08-20 18:28:27 +02:00
John Scipione
b87ee2bfeb Keymap mod keys: Conflict if either left or right
... key doesn't match rather than requiring both left and right keys
to not match for a conflict.

Also update copyright year
2013-08-19 15:59:55 -04:00
John Scipione
460168d586 Keymap mod keys: Use menu field label and refactor
Use CreateLabelLayoutItem() instead of faking the label with a BStringView.
This is important because it means the label is part of the menu field control
rather than being it's own separate view.

Also convert from using deprecated BGroupLayoutBuilder and
BGridLayoutBuilder classes and use the BLayoutBuilder template instead.

Use font-relative spacing values instead of constants.

Make key label take up 2 columns

Make protected methods private, don't want to subclass
ModifierKeysWindow
2013-08-19 15:59:55 -04:00
John Scipione
c197198238 Keymap mod keys: style fixes 2013-08-19 15:59:54 -04:00
John Scipione
2388b04ab8 Keymap mod keys: Move ConflictView to top.
Also, move includes from .h to .cpp file.

Make _FillSavedIcon() private, make Draw() public.
2013-08-19 15:59:54 -04:00
Siarzhuk Zharski
222b10cbc0 USB audio: Fix building on x86_64
* fix x86_64 build errors and warnings pointed out by Diver;
* fix warning building with gcc2.
2013-08-19 21:18:59 +02:00
Stephan Aßmus
03891f74db HaikuDepot: Added Insert(TextSpan) to Paragraph 2013-08-18 17:53:06 +02:00
Stephan Aßmus
be42d7a9a3 HaikuDepot: Added more methods to List
* Add(ItemType, index) and Replace(ItemType, index)
2013-08-18 17:53:05 +02:00
Stephan Aßmus
00f2259aef HaikuDepot: TextSpan fixes for sometimes neglected fCharCount. 2013-08-18 17:53:04 +02:00
Stephan Aßmus
92d83d4edc HaikuDepot: Added Insert() and Remove() to TextSpan. 2013-08-18 17:53:03 +02:00
Stephan Aßmus
bbb3f9ac5e HaikuDepot: Package status should come from PackageManager
* But its unimplemented...
2013-08-18 17:53:02 +02:00
Stephan Aßmus
d4957a50ae HaikuDepot: Paragraph holds TextSpan objects 2013-08-18 17:53:01 +02:00
Stephan Aßmus
f1071521b3 HaikuDepot: Added TextSpan class 2013-08-18 17:53:00 +02:00
Stephan Aßmus
aa26b5f5f0 HaikuDepot: Added TextStyle convenience methods
* Empty constructor
 * Copy constructor
 * operator==(const TextStyle& other)
2013-08-18 17:53:00 +02:00
Stephan Aßmus
13e00959ac HaikuDepot: Pargraph data classes for TextView
* Added ParagraphStyleData. Contains actual style data. Incomplete.
   Supposed to be immutable,.
 * Added ParagraphStyle, references a ParagraphStyleData.
   Multiple ParagraphStyle object can refer to the same ParagrapgStyleData,
   when a style aspect is changed for ParagraphStyle, it makes its own
   copy of the previous ParagraphStyleData with the changed property.
 * Added Paragraph class, currently knows only its ParagraphStyle.
2013-08-18 17:52:59 +02:00
Stephan Aßmus
6eabc75c78 HaikuDepot: Vote up/down icons now clickable. Nothing happens. 2013-08-18 17:52:58 +02:00
Stephan Aßmus
bef5ba1ac3 HaikuDepot: BitmapButton fixes
* BitmapView can be configured to scale or not to
   scale the bitmap.
 * BitmapButton more or less completed.
2013-08-18 17:52:57 +02:00
Stephan Aßmus
ecbb2c1943 HaikuDepot: Moved BitmapView into its own source file
* Added BitmapButton, based on BitmapView, for clickable
   icons. Incomplete and untested.
2013-08-18 17:52:56 +02:00
Siarzhuk Zharski
a69892cadc Rename driver folder 'usb_audio' to 'usb'
... just because the source path ./kernel/drivers/audio/usb obviously
references audio hardware so "_audio" suffix is excessive.

No functional changes.
2013-08-18 14:49:59 +02:00
Siarzhuk Zharski
14f92002e1 USB audio: use new(std::nothrow) for allocations
* Use new(std::nothrow) for allocations;
* Input buffer index counter restored;
* Improve unsupported UI controls debug info tracing;
* Some cleanup.
2013-08-18 14:49:51 +02:00
Siarzhuk Zharski
743d75946f USB audio: Mixer Unit control implementation
* support of Mixer Unit control in UI implemented;
* improve SetMix/GetMix to support Mixer Unit control type;
* cleanup and improvements.
2013-08-18 14:49:44 +02:00
Siarzhuk Zharski
353a4e04d1 USB audio: Fix function of Selector Unit control
* restore function of Selector Unit that was previously disabled;
* fix Selector Unit input pin names "Unknwon" case.
2013-08-18 14:49:37 +02:00
Siarzhuk Zharski
a8066fe34a USB audio: dev.entry number should be 1-based, etc
* USB audio device entry number made 1-based instead of 0. According to
  Haiku MultiAudio specs audio device entries should be 1-based but
  0-based;
* cleanup and refactoring. No functional changes;
* recording stream activated;
* fix input channels description report and codestyle issues.
2013-08-18 14:49:22 +02:00
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
Ingo Weinhold
464ee61f45 pkgman: link against needed libstdc++ 2013-08-17 09:31:24 +02:00
Ingo Weinhold
536ff120f0 pkgman: missing include 2013-08-17 09:30:52 +02:00
Ingo Weinhold
f6e836d616 packagefs: PackageNode: fix protection issue
Only gcc 2 allows us to use a pointer to a protected method as a
template argument.
2013-08-17 09:29:16 +02:00
Ingo Weinhold
145189e61a packagfs: fix header order 2013-08-17 09:23:19 +02:00
Ingo Weinhold
418071ba65 MIME DB support: avoid static initialization order issue 2013-08-17 09:22:42 +02:00
Ingo Weinhold
64264fa6ac Use Objects instead of KernelObjects
Should we actually require differently built glue code for the kernel or
kernel add-ons, which should build a separate set.
2013-08-17 09:10:31 +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
Ingo Weinhold
9a19dcd7cb pkgman search: '-i' option wasn't handled 2013-08-14 10:13:56 +02:00
Ingo Weinhold
ce76b7e202 Fix strrchr()
* For the comparison cast the character parameter to char as required
  by the spec.
* Fix broken handling of strrchr(..., 0). It is supposed to return a
  pointer to the end of the string. It did return a pointer to the
  start.
2013-08-13 21:30:30 +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
Ingo Weinhold
998ef89065 package daemon: Volume: fix package removal after transaction
Volume::_ChangePackageActivation(): Refactoring oversight:
fPackagesToBeDeactivated was still used instead of the
packagesToDeactivate parameter, so the packages wouldn't be removed from
the hash tables when invoked from the CommitTransactionHandler. Fixes
#9921.
2013-08-13 14:43:29 +02:00
Ingo Weinhold
b8ab901eeb packagefs: replace ':' with '~' in the package link names
Otherwise paths containing those symlinks cannot be used in colon
separated search path lists.
2013-08-13 14:20:41 +02:00
Ingo Weinhold
623331eed5 packages: PackageFSRoot: fix, improve, add debug output 2013-08-13 14:20:41 +02:00
Ingo Weinhold
7ff288ed51 packagefs: fix dependency resolution without compat version 2013-08-13 14:20:41 +02:00
Ingo Weinhold
3ea37257df haiku_devel* package infos: add compat version and base package 2013-08-13 14:20:41 +02: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
Ingo Weinhold
555b02d345 Add webpositive package to image 2013-08-10 15:06:55 +02:00
Ingo Weinhold
f51bf7d932 Support building more libraries for secondary architecture 2013-08-10 09:53:38 +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
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
Ingo Weinhold
00979660d9 haiku_devel_secondary package info: fix provides 2013-08-07 00:10:39 +02:00
Ingo Weinhold
384230184e Filter package infos through sed
%HAIKU_PACKAGING_ARCH% and %HAIKU_SECONDARY_PACKAGING_ARCH% in the
package infos are replaced before filtering them through the C
preprocessor.
2013-08-06 04:11:44 +02:00
Ingo Weinhold
bddca41824 runtime loader: fix secondary arch search paths 2013-08-06 03:45:06 +02:00
Ingo Weinhold
b4d3e055a9 Add HaikuDevelSecondary package definition
It defines the haiku devel package for a secondary architecture
(haiku_<arch>_devel.hpkg).
2013-08-06 03:32:48 +02:00
Ingo Weinhold
2f2f43699c package info haiku_secondary: fix description
Using the C preprocessor doesn't work particularly well. The
replacements are rather unhandy.
2013-08-06 03:28:16 +02:00