Commit Graph
41810 Commits
Author SHA1 Message Date
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
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.
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.
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 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
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.
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.
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.
2013-12-21 21:59:31 +01:00
Axel Dörfler 364da0f986 MediaPlayer: fixed broken subtitle menu activation.
* Since ffd71d3d19 (hrev45979) you needed
  at least two subtitle tracks to have the menu enabled.
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.
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 edba5ea016 Add icon for Cereal... I mean SerialConnect.
* Icon drawn by Humdinger and myself.
* Also add SerialConnect entry in deskbat applications.
2013-12-21 16:59:24 +01:00
Gerasim Troeglazov 2b01519444 PSDTranslator: Prepare PSDWriter for B_GRAY8 and B_CMAP8 colorspaces support 2013-12-21 09:32:37 +00: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).
2013-12-21 02:12:04 +01:00
John Scipione 7bcfb21538 IFS: Fix CID 609761 init members 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
John Scipione 7d265f4207 Spider Saver: init fPreview to default value
Fixes CID 609764
2013-12-20 17:50:23 -05:00
John Scipione a1e717b8f7 Fix crash in Message Screensaver
In the Draw() method check to make sure that the view is valid, is
connected to the window, that the window is locked, that the screen
is valid and that the BBitmap buffer is valid. This (hopefully) fixes the
last of the bugs experienced due to #4260.

It is not sufficient to just check that the view is valid to prevent the crash,
you must also check that it is connected to a window via Window() and
that the window is locked.
2013-12-20 16:13:16 -05:00
Ingo Weinhold 5d7f782d4e BLooper: Add DispatchExternalMessage()
* This is primarily a service method for ports of widget tool kits
  that require single-threaded GUI. DispatchExternalMessage() calls
  DispatchMessage(), but also sets fLastMessage, so that
  [Detach]CurrentMessage() work correctly. This allows to detach a
  message in DispatchMessage() when called from the window thread,
  add it to a global queue, and later process the queued messages in
  a different thread that calls DispatchExternalMessage().
* BLooper/BWindow: Make sure fLastMessage is accessed only when locked.
2013-12-20 15:47:23 +01:00
Ingo Weinhold 57973ac96b BRadioButton: Fix spurious Invoke()
MouseUp(): Don't call SetValue() and Invoke() when the button was
already the selected one.
2013-12-20 15:23:45 +01:00
Gerasim Troeglazov 49a4700789 mime_database: add psb extension for vnd.adobe.photoshop 2013-12-20 10:24:00 +00:00
Gerasim Troeglazov 6d7acad27d PSDTranslator: Add Photoshop Big (PSB) format support 2013-12-20 09:30:03 +00:00
Gerasim Troeglazov a47ae0d08e PSDTranslator: Add compression settings 2013-12-20 09:26:59 +00:00
Gerasim Troeglazov b43bd42518 PSDTranslator: DataArray class improvements 2013-12-20 09:19:50 +00:00
Gerasim Troeglazov 10b179b33d PSDTranslator: Fix index of alpha channel 2013-12-20 09:04:30 +00:00
Gerasim Troeglazov 5a65c29781 PSDTranslator: Add RLE compression method for export 2013-12-19 12:21:16 +00:00
Gerasim Troeglazov 7983058de3 PSDTranslator: Rework export module 2013-12-19 12:21:15 +00:00
Gerasim Troeglazov e3ec312ebf PSDTranslator: Implemented DataArray class for export improvements 2013-12-19 12:21:13 +00:00
Alexander von Gluck IV 1665250fa7 radeon_hd: crtc_memreq only on DCE 3 - 5
* Prevent some atombios missing table errors
  on DCE 6 and later
2013-12-19 01:19:31 -06:00
Alexander von Gluck IV 92f91bc8da radeon_hd: Update DisplayPort aux for DCE6
* DCE6 requires a non-0 value for lpAuxRequest
  (0 is reserved)
2013-12-19 01:19:31 -06:00
Alexander von Gluck IV 233507b3cd radeon_hd: Missed a % for a B_PRI 2013-12-19 01:19:31 -06:00
Jonathan Schleifer fc5dbdc92c Get rid of an error caused by -Werror=unused-function.
Signed-off-by: Axel Dörfler <[email protected]>
2013-12-19 02:07:21 +01:00
Jonathan Schleifer e3e0255008 rootfs.cpp: Replace undefined behaviour with offsetof.
Signed-off-by: Axel Dörfler <[email protected]>
2013-12-19 01:52:33 +01:00
Jonathan Schleifer c7cb9b2f59 delete_driver_settings.cpp: Get rid of the weak alias.
As weak aliases are not supported on OS X, this caused problems when
building Haiku on OS X, as this file is also used for the host tools.

Signed-off-by: Axel Dörfler <[email protected]>
2013-12-19 01:52:33 +01:00
Murai Takashi 44d352cdb1 Fix DebugServer build with GCC4.8
Signed-off-by: Jérôme Duval <[email protected]>
2013-12-19 01:42:28 +01:00
Gerasim Troeglazov 63b8eb480e PSDTranslator: Fix array size 2013-12-18 09:56:11 +00:00
Gerasim Troeglazov af6518e48e PSDTranslator: Code cleanup. No functional change 2013-12-18 09:36:44 +00:00
Gerasim Troeglazov aae30e0ec9 PSDTranslator: Fix bitmap block alignment 2013-12-18 09:06:17 +00:00
Gerasim Troeglazov a38a6547d7 PSDTranslator: Codestyle cleanup 2013-12-18 08:58:12 +00:00
Alexander von Gluck IV 857bfe579b DisplayPort: Dump linkspeed value on error 2013-12-18 00:30:58 -06:00
Alexander von Gluck IV bd1c4402bf radeon_hd: Improve DisplayPort function return logic
* Was putting status_t into int's and creating
  some logic problems when it came to DisplayPort
  link training.
2013-12-17 17:34:11 -06:00
Jonathan Schleifer 77ac2d8d8d SnifferRules.cpp: Make the arguments for operator< const.
It is used on const versions of sniffer_rule and thus it needs to be
declared with const.
2013-12-17 19:58:57 +01:00
Jonathan Schleifer 6a2d12cbee PackageInfoParser.cpp: Add missing include for strtoll. 2013-12-17 19:58:55 +01:00