48765 Commits

Author SHA1 Message Date
Freeman Lou
80c9ee9c3f Tracker: exclude trash from selection.
Signed-off-by: Rene Gollent <rene@gollent.com>
hrev46598
2013-12-25 12:09:53 -05:00
Puck Meerburg
f4025b640e Fix Coverity bug 1108194: Copy-paste error
Signed-off-by: Rene Gollent <rene@gollent.com>
hrev46597
2013-12-25 12:02:42 -05:00
Adrien Destugues
adde25de6e Use "clone" method for bilinear resampling
When drawing a bilinear-scaled bitmap with agg, we used to interpolate
the edge pixels assuming everything out of the picture was black. This
led to an ugly dark border around the scaled image.

Instead, use the "clone" method, which repeats the last line or column
of pixels around the image, leading to more correct results in most
cases.

This also helps with some of WebKit tests, which are trying to use
images as references and don't expect an extra border around them.
hrev46596
2013-12-24 09:28:46 +01:00
Adrien Destugues
756ff6c0bc agg: Werror fixes in previously unused templates. 2013-12-24 09:28:44 +01:00
Adrien Destugues
2d0e1ed2f3 be_locale_roster is gone.
Reference the proper method to get the global locale roster object.
2013-12-24 09:28:42 +01:00
Alexander von Gluck IV
5cc9170f08 GL: Activate x86_gcc2 secondary package
* Hybrids should all work again
hrev46595
2013-12-23 13:46:03 -06:00
Alexander von Gluck IV
ebe57d49cc GL: Activate x86_gcc2 secondary package
* Seems I misunderstood how much of the hpkg build
  process was automated. Should fix hybrid build.
hrev46594
2013-12-23 10:21:35 -06:00
John Scipione
63632ee1a2 BListView: Skip disabled items via keys
Update B_UP_ARROW, B_DOWN_ARROW, B_HOME, and B_END
in KeyDown() to skip over disabled items.
hrev46593
2013-12-23 05:03:42 -05:00
John Scipione
c6c5cd9940 BListView: Only select enabled items
when selecting multiple items in a multi-select list view.
2013-12-23 05:03:41 -05:00
John Scipione
b38f03f561 BListView: small optimization.
We already got item at index, don’t get it again
2013-12-23 05:03:40 -05:00
John Scipione
d093101215 BListView: style fixes 2013-12-23 05:03:39 -05:00
Alexander von Gluck IV
5fd5e562aa GL: Ensure mesa_devel and mesa_swrast are always present
* As the OpenGL kit is assumed by most ports (and BeOS apps)
  to "exist", lets make mesa_devel present by default until
  post R1
* mesa_swrast ensures we always have the basic swrast renderer
  To play with mesa_swpipe (gallium llvmpipe, gcc4) uninstall
  mesa_swrast and install mesa_swpipe. (you can install both,
  but it's first renderer found, first used atm)
hrev46592
2013-12-23 01:57:05 -06:00
Alexander von Gluck IV
e8bfbcee18 GL: Update x86_gcc2 package
* Fix issue where mesa_devel attempted to lay
  a symlink over a directory causing instability
  installing mesa_devel
hrev46591
2013-12-23 01:00:37 -06:00
Alexander von Gluck IV
c80d3b3634 GL: Update x86 package
* Fix issue where mesa_devel attempted to lay
  a symlink over a directory causing instability
  installing mesa_devel
* Add mesa_swpipe to repos (LLVM enabled Gallium softpipe)
2013-12-23 00:51:03 -06:00
Alexander von Gluck IV
195d39a430 GL: Remove OpenGL kit, x86_gcc2 Mesa
* Depend on new Mesa packages to provide functionality
hrev46590
2013-12-23 00:06:11 -06:00
Alexander von Gluck IV
eb45d168e1 GL: Remove OpenGL kit, x86 Mesa
* Depend on Mesa packages to provide functionality
2013-12-22 23:36:02 -06:00
Ingo Weinhold
657769a986 x86: Add cpio and openjdk packages hrev46589 2013-12-23 00:58:53 +01:00
Rene Gollent
04f1008900 x86_gcc2: Update sdl_mixer package. hrev46588 2013-12-22 16:12:15 -05:00
Rene Gollent
91cf2ff272 Update gcc4 cmake to version 2.8.11.2-6. hrev46587 2013-12-22 14:19:24 -05:00
Rene Gollent
73c60419cf Add gcc4 ruby{_devel}package. hrev46586 2013-12-22 11:44:00 -05:00
Rene Gollent
729dc43722 Debugger: Fix #10334.
- In the case of DWARF4's DW_OP_implicit_value, respective handling in
Value{Piece}Location wasn't entirely correct, which would lead to double
frees in various cases, in particular when copying such objects on the stack.
As such, introduce an explicit Copy() member to handle replicating the stored
implicit data to avoid that issue. Furthermore, the use of Array<> in
ValueLocation wasn't really suitable anymore since ValuePieceLocation now
needs its constructor/destructor to be executed, while Array is intended for
POD types; consequently, replace that with std::vector and adjust handling
code accordingly.
hrev46585
2013-12-22 09:35:41 -05:00
Ingo Weinhold
5e815cf35b BRadioButton: Add icon support
* Fix off-by-one issue in Draw() and GetPreferredSize(). The label was
  too close to the knob.
* GetPreferredSize(): Remove empty space to the right, when no label
  and no icon was specified. Like with BCheckBox there's still two rows
  of empty pixels above and below the knob.
* Draw(), GetPreferredSize(): Add icon support.
hrev46584
2013-12-22 15:17:55 +01:00
Ingo Weinhold
36e1566271 BRadioButton: Remove non-BControlLook code 2013-12-22 15:17:54 +01:00
Ingo Weinhold
f0c3101151 BControl: Move icon code to separate class BIcon 2013-12-22 15:17:53 +01:00
Ingo Weinhold
97bf0ce362 BControl: Move icon code to separate class BIcon hrev46583 2013-12-22 14:45:34 +01:00
Ingo Weinhold
5414b3c445 Move icon related constants to InterfaceDefs.h
There will be non-BControl views to use those as well.
2013-12-22 14:45:33 +01:00
Scott McCreary
7166099626 Removed vorbis-tools from this round as the gcc2 build has issues hrev46582 2013-12-22 04:15:41 -08:00
Scott McCreary
f55cb7b729 Removed non-existing x86 builds of sdl_mixer 2013-12-22 03:58:36 -08:00
Scott McCreary
98394e3448 Fixed typo in physfs name 2013-12-22 01:15:18 -08:00
Scott McCreary
e26858162b Missed libpaper_x86 2013-12-22 01:04:41 -08:00
Scott McCreary
2120a51923 Added first wave of libpak files 2013-12-22 00:53:49 -08:00
Ingo Weinhold
f829889455 BCheckBox: Add icon support
* Draw(): Remove the non-BControlLook code.
* GetPreferredSize(): Implement based on _ValidatePreferredSize() to
  avoid code duplication.
* Draw(): Fix off-by-one error. The label was too close to the box.
* Draw(), _ValidatePreferredSize(): Add icon support.
  _ValidatePreferredSize() is now actually aligned with what Draw()
  expects. The preferred width is now a tight fit; there were three or
  four pixels of empty space before.
  Due to the fixed check box position the layout isn't that nice in
  some situations (particularly with an icon larger than the text),
  IMHO.
hrev46581
2013-12-22 04:48:21 +01:00
Ingo Weinhold
6af520e2a9 BControlLook::DrawLabel(): Fix off-by-one error
* BFont::TruncateString() expects a pixel count (as opposed to a pixel
  distance). That would cause a tightly fitting string to be truncated.
* Round the result of StringWidth() to avoid drawing at a non-integer
  location.
2013-12-22 04:44:03 +01:00
Ingo Weinhold
fe8787698c BButton: Add icon support
* Remove non-BControlLook drawing code. It's just an annoyance to
  maintain.
* Update Draw() and _ValidatePreferredSize() to add icon support.
hrev46580
2013-12-22 02:48:28 +01:00
Ingo Weinhold
be4367428b BControl subclasses: Override SetIcon()
... and implement Perform() action for potential later use.
2013-12-22 02:48:27 +01:00
Ingo Weinhold
be260374d5 BControl: Add icon support
The icon is meant as an addition to or replacement of the label. Icon
bitmaps for various states of the control (off, on, partially on, each
enabled or disabled, plus up to 125 custom states) can be set
individually via SetIconBitmap() (getter IconBitmap()).
The convenience method SetIcon() can be used to set the bitmaps for the
standard states from a single bitmap; it also supports cropping the
icon to its non-transparent area. Code borrowed from BIconButton.
2013-12-22 02:48:25 +01:00
Ingo Weinhold
1b848ee7f2 BControlLook: Add DrawLabel() variants with icon
A label, a bitmap, or both can be specified.
2013-12-22 02:48:24 +01:00
Ingo Weinhold
8719e0dc4b BControlLook: Add methods for getting insets
* Update the previously unused frame_type and background_type enums.
* Add methods GetFrameInsets(), GetBackgroundInsets(), GetInsets() to
  get the insets for a given frame type, background type, or both
  respectively.
2013-12-22 02:48:23 +01:00
Adrien Destugues
d3e73d457e Use POSIX API to set serial port speed.
POSIX says CBAUD is reserved, and provides an easier way to set the
speed using a dedicated function.
hrev46579
2013-12-21 21:59:31 +01:00
Adrien Destugues
9cdbb95476 Remove comment. 2013-12-21 21:58:28 +01:00
Axel Dörfler
364da0f986 MediaPlayer: fixed broken subtitle menu activation.
* Since ffd71d3d19742cef58981cd7cba8e22d79320128 (hrev45979) you needed
  at least two subtitle tracks to have the menu enabled.
hrev46578
2013-12-21 21:11:48 +01:00
Adrien Destugues
92419037cc SerialConnect: fix rdef file
* Declare icon the right way,
* Also add version and app signature.
hrev46577
2013-12-21 20:34:01 +01:00
Adrien Destugues
e2367275a8 SerialConnect: fix baudrate settings save.
There was a mixup of using the baudrate value (eg 115200), constant
(B_115200_BPS = 17) and position in the menu (18), leading to the
baudrate setting not being saved and restored properly.
2013-12-21 20:30:47 +01:00
Adrien Destugues
c516bac9f4 Revert part of hrev24647
The baudrate constant for MIDI speed was after all the others in BeOS,
and we have to keep them with the same values for things to work.
Moreover, the constants in SerialPort.h were not changed, so everything
was out of sync and all apps using BSerialPort ended up using the wrong
speed.

Add a comment in termios.h to make sure this doesn't happen again.
2013-12-21 20:25:24 +01:00
Adrien Destugues
edba5ea016 Add icon for Cereal... I mean SerialConnect.
* Icon drawn by Humdinger and myself.
* Also add SerialConnect entry in deskbat applications.
hrev46576
2013-12-21 16:59:24 +01:00
Gerasim Troeglazov
2b01519444 PSDTranslator: Prepare PSDWriter for B_GRAY8 and B_CMAP8 colorspaces support hrev46575 2013-12-21 09:32:37 +00:00
autonielx
55ee5264e2 Update translations from Pootle hrev46574 2013-12-21 06:14:09 +01:00
Ingo Weinhold
df37cd4edd BCheckBox: Add tri-state support
* Add possible control state B_CONTROL_PARTIALLY_ON and support it in
  BCheckBox and BControlLook.
* BCheckBox: Add partialStateToOff property defining whether the
  partial state should transition to off. Defaults to false (i.e.
  partial to on).
hrev46573
2013-12-21 02:12:04 +01:00
John Scipione
7bcfb21538 IFS: Fix CID 609761 init members hrev46572 2013-12-20 18:20:01 -05:00
John Scipione
52a95e6f7b IFS Saver: CID 991177 (#1 of 1): Dead default in switch 2013-12-20 18:18:30 -05:00