Commit Graph

42399 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
4dad975dda Tracker: Consider extra column margin in PoseView::Extent()
In List Mode, consider the extra margin added to the right of
the last column when computing the Extent of the PoseView. This
was causing the ResizeToFit to resize a bit too small.

Fixes #4318
2012-05-06 18:43:59 -04:00
Alexander von Gluck IV
aa7d070732 arm uart: Rename getc/putc to getchar/getchar
* Avoid name collisions
* This uart stuff may work better as a class at
  some point, however I didn't want to rock the
  u-boot boat *too* much as I don't have the
  hardware to test.
2012-05-06 17:03:34 -05:00
Alexander von Gluck IV
917e9be1a6 arm uart: Complete redesign of ARM uart code
* Add nested function wrappers to allow usage of other
  uart drivers depending on board. We may want to use this
  on other platforms at some point (haha, maybe)
2012-05-06 17:03:33 -05:00
Rene Gollent
95aae4ae1e Style fixes. 2012-05-06 16:12:16 -04:00
Philippe Saint-Pierre
42ae726e67 setgcc: add -l argument to ls call in script
In previous, it was still working as I was more interested into != 0 than
exact count. Still, for clarity sake, I add -l to get the actual count.

Thanks Axel.
2012-05-06 15:52:04 -04:00
Alexander von Gluck IV
60433c9277 rpi: Reduce superfluous code in loader.
* Remove unneeded complexity and a few left over
  linux items
2012-05-06 12:20:40 -05:00
Alexander von Gluck IV
19b42424c6 rpi: Remove need for first32k.bin
* Thanks go out to Simon Arlott for replacing
  the first32k.bin blob with assembly removing
  the need for first32k.bin hack.
* This assembly is a modified version removing
  the Linux kernel boot args.
* haiku_loader renamed to kernel.img will boot
  on Raspberry Pi directly.
2012-05-06 12:06:17 -05:00
Alexander von Gluck IV
79a9f645ba arm uart: Cleanup serial port setup.
* Be a little more discreet on how we
  configure the serial port.
2012-05-06 12:06:17 -05:00
Axel Dörfler
52a5878b74 Added command line programm to rename/move attributes.
* Called mvattr, move is not yet implemented which is why it's not part of
  the image yet.
* Defaults to rename, moving attributes needs an extra option.
* Suggestions welcome :-)
2012-05-06 16:55:36 +02:00
Stephan Aßmus
e4ef668253 Implemented drag&drop of shape items between I-O-M windows.
* The ShapeListView also knows the PathContainer and StyleContainer
 * When constructing the drag message, also include a complete archive
   of the dragged shapes, bundled with archives for each included path
   and the style.
 * When handling the drop, and it came from another I-O-M window,
   exract the Shape archive bundle from the drag message. For the
   Style and the included Paths, try to find an existing Style and
   existing Paths and reference those in the added Shape(s) instead
   of adding duplicates.
2012-05-06 16:50:25 +02:00
Stephan Aßmus
2d35ee03c0 Added operator== implementation 2012-05-06 16:50:02 +02:00
Stephan Aßmus
7a20125661 Style cleanup, no functional change intended 2012-05-06 15:26:52 +02:00
Philippe Saint-Pierre
85fb3e7df8 setgcc: error message
The bash script tried to verify the existence of a file,
but there were several fils fitting the wildcard expression.
So, [ -e .../*gcc ]; was interpreted as if it had too many
arguments.  Replaced that expression by a count of files.

Fixes #8493.
2012-05-05 23:55:19 -04:00
Philippe Saint-Pierre
501546ee8f MediaPlayer: Looping regardless of setting
* Fixed a regression I introduced in hrev43642. Ticket #8364.
* Small coding style fix
2012-05-05 22:32:09 -04:00
Matt Madia
d7f114cf1c Fixed typo. Spotted by ddavid123, thanks! #8521 2012-05-05 21:06:59 +00:00
Rene Gollent
ec3fd1713a Fix regressions introduced by previous commit.
- Conditionally enable and disable event masks as needed when we detect
  the mouse entering/exiting the deskbar area. This is necessary because
  otherwise the app_server appears to eat mouse messages due to the ctrl+cmd+
  resize shortcut. Also change some conditionals slightly to better deal with
  differing combinations of autohide and/or autoraise.
2012-05-05 15:32:59 -04:00
Rene Gollent
22812ba24f Fix ticket #8497.
- Rework Deskbar's handling for the autoraise/autohide cases to not
  need event masks. This prevents various problems that would occur
  if one happened to be working in another window that overlapped part
  of Deskbar, as reported in #8497. Instead, we now use a message filter
  to redirect the messages as needed.
2012-05-05 14:45:28 -04:00
Stephan Aßmus
5959960b03 Made it possible to drag paths from one I-O-M window to another.
* Put archived versions of the selected paths into the drag message.
 * If the base class version HandleDropMessage() failed, it means the
   drag message came from another window. Reconstruct the paths and
   add them via the AddPathsCommand.
2012-05-05 17:14:42 +02:00
Stephan Aßmus
34c3ca13b4 Style cleanup, no functional change intended 2012-05-05 17:08:15 +02:00
Stephan Aßmus
f30d463866 Accept dropping Styles from another I-O-M window.
* Add archived versions of the selected Styles to the drag message.
 * If the base class didn't handle the drop message, try to unarchive
   Styles and add them via AddStylesCommand.
2012-05-05 16:42:41 +02:00
Stephan Aßmus
fa39c4e9c6 Fixed using the wrong index variable after refactoring. 2012-05-05 16:42:20 +02:00
Stephan Aßmus
f0eab45bd7 Made it easier for derived classes to handle the drop message. 2012-05-05 16:24:33 +02:00
Stephan Aßmus
01bcddc1bf Code style cleanup 2012-05-05 14:52:40 +02:00
Stephan Aßmus
d532c167d8 Fixed some compiler warnings. 2012-05-05 14:52:07 +02:00
Niels Sascha Reedijk
d72c055e90 Update translations from Pootle 2012-05-05 10:07:35 +02:00
Alexander von Gluck IV
d4a4f9ad04 pi: Fix oops from b4a80cfb, extra gGPIOBase 2012-05-04 22:06:41 -05:00
Alexander von Gluck IV
52119b503d Pi uart: Begin first attempts at UART communication on Pi.
* Make Kernel ARM UART slightly more generic
  through (BOARD_UART_CLOCK) configured per board
* Add initial Raspberry Pi serial code
* Still rough and non-working
2012-05-04 22:00:23 -05:00
Alexander von Gluck IV
b4a80cfb69 Pi: Add GPIO controls to Raspberry Pi Haiku Loader
* When first32k.bin is added in front of haiku_loader,
  the OK led comes on verifying haiku_loader is actually
  running on the Pi.
2012-05-04 22:00:23 -05:00
Matt Madia
116dab1616 Updated ReadMe for zlib1g-dev dependency on Linux 2012-05-04 20:17:06 +00:00
Matt Madia
13586c0905 Added a possible icon to replace Deskbar's R_TeamIcon resource 2012-05-04 20:17:05 +00:00
John Scipione
c645f9bcbe Rework tooltip method in BView again.
Passing NULL or a blank string to SetToolTip(const char*) sets the
tooltip to NULL by calling SetToolTip(BToolTip*) with a NULL argument.

Calling SetToolTip(BToolTip*) with a NULL argument calls HideToolTip()
because sometimes the tool tip can change without the mouse moving,
for example because the user clicked.

Thanks Axeld and Stippi.
2012-05-04 19:55:24 -04:00
Alexander von Gluck IV
1a17461323 elf32 header: Add defines for e_machine field in elf header
* This is the first step in #8520
* Will enable runtime_loader to idenfify binary
  architecture and raise proper errors.
2012-05-04 13:33:58 -05:00
Humdinger
3501992bdf Applied sentence casing and harmonized naming. 2012-05-04 20:20:21 +02:00
John Scipione
615d572db0 Fix #8505 cut-off Deskbar leaf bug.
Replace the leaf bitmap with a non-cutoff version derived from the
'data/artwork/Haiku Leaf' file. So, when icon size is > 16 the full
deskbar leaf is shown without the bottom cut-off. It should look
pretty much identical at 16x16 and in vertical mode at any icon size.

Also add a deskbar_leaf.png file to the data/artwork directory
although I didn't use that file in Deskbar, instead I embed an
archive bitmap into icons.h. I got rid of icon-freelogo.rdef and
icons_logo.h.
2012-05-04 01:17:48 -04:00
John Scipione
5ccf455f7e Fix another tooltip related bug that appears in Deskbar.
The bug is that in horizontal mode the tooltip will remain set to
the last moused over team menu item even if the mouse is no longer
over a menu item. The bug can be seen in the following screenshot:

http://26.media.tumblr.com/tumblr_m3gze8s1xi1r0f0hfo1_400.png

To fix this bug, allow you to set the tooltip text to blank or NULL
in SetToolTip(const char* text). In ShowToolTip() check to see if
the tooltip text is blank or NULL and if so, don't show the tip.
Setting the tooltip to blank or NULL effectively unsets the tooltip
on a view.
2012-05-03 20:49:18 -04:00
Jérôme Duval
91bc463512 USB transport addon: support for alternate interfaces.
* Tested with a Profilic USB-Parallel adapter and a Laserjet printer.
2012-05-03 22:25:40 +02:00
Siarzhuk Zharski
408c7ab11d Publishing USB Audio driver from my dev.branch on the old SVN repo. 2012-05-03 20:37:59 +02:00
Alex Wilson
b2070d2855 Layout tweaks in Filetypes. Fixes #6449 2012-05-04 04:04:11 +12:00
Hannah Boneß
be887b8b13 Update layout building code in FileTypes preflet.
Signed-off-by: Alex Wilson <yourpalal2@gmail.com>
2012-05-04 03:13:52 +12:00
Hannah Boneß
7d48219b47 Update layout building code in translators
update layout builder code to new api in:
	* src/add-ons/translators/raw
	* src/add-ons/translators/exr
	* src/add-ons/translators/hvif
	* src/add-ons/translators/tga
	* src/add-ons/translators/webp
	* src/add-ons/translators/gif
	* src/add-ons/translators/sgi
	* src/add-ons/translators/tiff
	* src/add-ons/translators/jpeg
	* src/add-ons/translators/jpeg2000
	* src/add-ons/translators/ppm

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>
2012-05-04 03:13:51 +12:00
John Scipione
0673619349 Remove uneeded include and tiny whitespace fix I missed earlier. 2012-05-03 01:30:46 -04:00
John Scipione
4daa7647c9 After setting the tooltip text, invalidate the layout.
This fixes a bug introduced in hrev44075 (I think) where the internal
tooltip window wouldn't resize itself after setting new tooltip text.
So if you set the tooltip to a short string then set it to a long
string the tooltip would get cut-off or if you set it to a long string
and then set it to a short string the tooltip window would be too wide.
The result can be seen in Deskbar in the following screenshot:

http://30.media.tumblr.com/tumblr_m3fg327NsV1r0f0hfo1_400.png

After invalidating the layout the internal tooltip window gets resized
correctly.
2012-05-03 01:13:16 -04:00
John Scipione
7f7f5eac6e Refactor ToolTipManager a bit.
* Change ShowTip() point parameter name to where.
* Add a parameterless ResetWindowFrame() overload that get's the current
  where and calls ResetWindowFrame(BPoint where) which does the actual
  work. FrameResized() calls this parameterless ResetWindowFrame()
  method instead of doing the work in that method. This is functionaly
  the same but allows me to call the parameterless ResetWindowFrame()
  elsewhere.
2012-05-02 23:51:49 -04:00
John Scipione
dc05c262ac Refactor Tooltip's in Deskbar.
Only update the tooltip if the mouse goes over a new menu item making
sure to exit if the item is NULL, there is a visible label, or it is the
same item. If the mouse moves outside the view reset the last item to
NULL.

* Rename DrawLabel() and SetDrawLabel() to HasLabel() and SetHasLabel()
  to make it clear what these methods are setting a getting and setting
  a bool and not doing the actual work for drawing the label.
2012-05-02 23:45:54 -04:00
John Scipione
1cd61330ec Style fixes including reordering #include's in Deskbar
* Reorder includes according to the Style Guide.
* Whitespace changes, mostly making sure there are 2 newlines
  between things and making sure there is 1 newline at the end of
  each file.
* Make end of header files all in the style of
    #endif\t/* _HEADER_GAURD_H_ */
* The one change that is not purely style is to #include <Path.h>
  in DeskbarUtils.h instead of DeskbarUtils.cpp because it is used
  to define entry_ref for the AddRefsToDeskbarMenu() prototype.
2012-05-02 20:24:01 -04:00
Matt Madia
bb4e1d3e6f Updated CA Root Certificates. 2012-05-02 18:49:30 +00:00
Jérôme Duval
77a7e76cc1 Work in progress on xHCI bus driver, testing on emulation.
* Initial testing with QEmu emulation works with interrupt/bulk,
   testing on real hardware still not working. Small bulk requests work
   OK, not bigger ones (for instance it can't load the MediaPlayer
   application at 800KB).
* QEmu doesn't support byte read in the MMIO space, switch to double word.
* added SubmitNormalRequest() for interrupt and bulk endpoints.
* AllocateDevice(): fixed the physical address of the link TRB pointing
   to the beginning of the ring.
* _InsertEndpointForPipe(): setup context for non-default endpoints
   on creation. This should get the device to the configured state.
* _UnlinkDescriptorForPipe(): the next pointer wasn't null after unlinking.
* HandleTransferComplete(): add descriptor to a list to be processed by the
   finisher thread.
* FinishThread(): process finished transfers and call the callback,
   then free the TRB.
2012-05-02 23:45:14 +02:00
Alex Wilson
6457a6517e Fix bug from the removal of BALMLayoutBuilder::Snake.
GCC considers the method chain one big function call, so pushes all
parameters onto the stack before hand (something I discovered after
quite a bit of debugging). In this case, layout->RightOf() returns NULL
before the view is added, which caused the layout to become undefined.
2012-05-03 08:45:47 +12:00
Alex Wilson
45f28e068b Fix error in height calculation in alm/SharedSolver. 2012-05-03 08:45:45 +12:00
Alex Wilson
c8b24e3eb5 Fix BALMLayout archiving issues.
SharedSolver was archiving too many constraints, partly because of
multiple typos, also because it archived some which were just artifacts
of the layout process. These extra constraints are created when the
layout calls SetRange() on the left/top/right/bottom tabs during layout.

* LinearSpec/ActiveSetSolver had to be adjusted to get access to the
  constraints added by the SetRange() calls.
* BALM::TabBase was adjusted to avoid a segfault during unarchiving,
  caused by an unitialized member.
* ALMFriendLayoutTest was adjusted to include a more obvious custom
  constraint for testing.
2012-05-03 08:45:44 +12:00