Commit Graph

42252 Commits

Author SHA1 Message Date
czeidler
e2b24ac4ba Update ralink2860 to Korli's version from ticket #8325. 2012-04-27 16:04:23 +12:00
Fredrik Holmqvist
e5b4a1671d Since we are patching strncpy.c change it over to strncpy.cpp. 2012-04-25 18:47:42 +02:00
Hamish Morrison
7e87b73402 strncpy: pad the destination with NULs
And optimize for word aligned loads/stores

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-04-25 18:17:41 +02:00
Alexander von Gluck IV
d0b8e45eb1 rpi: Fix remaining raspberry_pi firmwares
* I missed these on my HTML sweep
* Were HTML documents vs real firmware
* Sorry for the spam.
* Firmware: Apr 18, 2012
2012-04-25 06:21:32 -05:00
John Scipione
f73d1f4f28 Cache the lastMousedOverItem before showing tooltip.
Optimization, only update the tooltip if not the same as the cached
last moused over item. That way the same application name won't
keep getting set over and over again.
2012-04-24 21:14:47 -04:00
John Scipione
1f0c9f183e Set a tooltip with the application name if hidden.
If Deskbar is set to hide application names show the application
name as a tooltip when you hover your mouse over the item.

* Style fixes.
* Save CountItems() into a variable outside the loop so that it only
  gets called once (micro-optimization/best-practice).
* Convert a for loop to a while loop that wasn't really being used
  used as a for loop anyway, the variables are declared and used
  outside the loop.
2012-04-23 23:44:54 -04:00
Alexander von Gluck IV
2ec676a4e8 rpi: Add missing uart defines
* The uart defines need validated.
* Verified vector base and size defines
2012-04-22 22:17:24 -05:00
Yongcong Du
45cf3294b2 x86: add cpuid feature 6 flags
Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-04-22 21:03:57 +02:00
François Revol
b8c19d314d Fix fossil checkout filename. 2012-04-21 15:28:48 +02:00
François Revol
fce97ba360 Add support for the fossil scm
Rework scm tests.
Add a test for fossil checkouts.
2012-04-21 10:31:33 +02:00
Alexander von Gluck IV
b88e2fc940 rpi: Remove start.elf
* Was an oops on my part, start.elf is actually one
  of the arm*_start.elf files.
2012-04-19 19:06:30 -05:00
Alexander von Gluck IV
4cbccbb196 rpi: Add updated firmware from Rasp. Pi. foundation
* Update 4/18/2012
* Commit 47123009e
* Add missing start.elf
2012-04-19 18:54:40 -05:00
Alexander von Gluck IV
71d4eb5739 kernel: Initial platform memory defines for Raspberry Pi 2012-04-19 18:44:38 -05:00
John Scipione
9ac6fee13a Rename "deskbar_rt_" back to "Status".
Siarzhuk Zharski informed me that KeymapSwitcher depends on this
view being named "Status" to work, so, renamed it back to that.

Instead of sending the message by name to the replicant tray view,
since the view name "Status" is not very unique and I fear that
there could be collisions, resend the message to BarView which
then passes the message on to the replicant tray which updates the
clock and reflows the icons.

This being said, KeymapSwitcher should probably not send a message
hardcoded to the name of the replicant tray view and instead send
the message to Deskbar and allow it to pass the message on to the
appropriate view.
2012-04-18 22:02:43 -04:00
Alexander von Gluck IV
f4647825e7 radeon_hd: display_info struct style cleanup
* No functional change
2012-04-18 21:55:57 +00:00
Alexander von Gluck IV
c363019152 radeon_hd: Make crtc lookup fault less catastrophic 2012-04-18 21:50:39 +00:00
Alexander von Gluck IV
e47f861975 radeon_hd: Fix digital output
* Resolves blocker #8322.
* Should resolve #8151, #8163, #8282, #8457
* Digital output on DVII was getting hard set
  in the encoder to analog / CRT mode.
* We now check the edid "type" flag
* Flag gets set to 1 if edid data from digital
  transmitter, 0 if analog transmitter.
2012-04-18 21:36:16 +00:00
Alexander von Gluck IV
af6e0179ca radeon_hd: DIG encoder work
* Cleanup some AtomBIOS arg versions
* Add tracing to encoder calls
* Program a missing dig lane count
2012-04-18 20:18:21 +00:00
Alexander von Gluck IV
bb228d7ca6 radeon_hd: Only assign encoder to crtc after dpms call
* This is the order I received via email long ago and
  it makes more sense to me then the drm method
2012-04-18 20:18:17 +00:00
Humdinger
163e02d670 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-04-18 15:16:29 +02:00
John Scipione
e08d64d0d6 If we caught the message in these cases there is no reason to continue on. 2012-04-18 02:57:55 -04:00
John Scipione
63c55f0212 Update Deskcalc's right-click menu options.
If CalcView is embedded as a replicant on the desktop it's parent
window is not CalcWindow. Furthermore, it can't switch between
compact, basic and scientific keypad modes, you are locked in tox
the one you picked at the time you embeded the view into the desktop.
So, I have updated the right-click message to reflect this reality
by taking away the keypad mode switching options. You can still
set auto num-lock and turn beep on and off (theoretically someday
anyway) but the CalcView receives these messages instead of
CalcWindow. So, these 2 options now work in the case of a CalcView
embedded in the desktop at least.
2012-04-18 01:56:17 -04:00
John Scipione
05fa08371f Indent the indented checkboxes in Deskbar prefs more.
* Create my own kIndentSpacing parameter from ControlLook which sets
  the indent spacing width to match the previously used spacing. This
  lines the indented checkbox up with the text of the unindented
  checkbox above it. This matches what it looked like before I
  updated the dialog to use font-aware spacing, while keeping the
  same relative spacing at different font sizes.
2012-04-18 00:20:15 -04:00
John Scipione
f5be13ecc7 Remove time zone clock option and Time preferences button.
* Nobody thought time zone was a particularly useful option to have
  in the clock.
* You can still open Time preferences from Deskbar by right clicking
  on the clock, but, since there isn't a big connection between
  the clock settings in Deskbar and Time preferences anymore
  this button isn't needed here.
* There are still 2 clock options, Show seconds, and Show day of week
  and day of week is localized as well so this wasn't a total wash.
2012-04-17 23:38:12 -04:00
John Scipione
41651bb3fd Small code simplication cleanup and add comment. 2012-04-17 23:20:37 -04:00
John Scipione
0d2ac94c4d Rename the TReplicantTray view "_deskbar_rt_"
instead of "_replicant_tray_". That follows the convention a bit
better and is less likely to cause name collisions. While I am at
it put the BView line below the : as is our usual convention.
2012-04-17 23:08:35 -04:00
John Scipione
30a5580244 Remove Time Interval radio buttons from Deskbar Prefs.
* 12/24 hour clock is set from the Locale prefs only.
* Redirect B_LOCALE_CHANGED message to the replicant tray instead
  of the time view and tell the replicant tray to update the time
  instead of updating the time view directly. This is because there
  was a bug where if the AM/PM marker grew the time view over the
  replicant tray icons when switching from 24 hour to 12 hour clock
  it wouldn't reflow the replicant tray icons like it should.
* Rename the replicant tray view from "Status" to "_replicant_tray_"
  because BarApp uses FindView() to get the view by name and I'm
  assuming that this method can have conflicts. Following the example
  of the "_deskbar_tv_" naming convention.
2012-04-17 22:48:57 -04:00
John Scipione
889692191d Fix Deskcalc drawing rounded corners on the desktop as a replicant, although I am not sure why I'm even bothering at this point. 2012-04-17 20:52:32 -04:00
Alexander von Gluck IV
9e195872df radeon_hd: Begin work on radeon_hd command processor
* First steps at getting card command processor wired
  up to the ring buffers.
* Code doesn't run yet as I have *no* idea what happens
  when these rings are in an invalid state.
2012-04-17 16:10:40 -05:00
Alexander von Gluck IV
582c97352d gl test: Fix GL dependencies for GL kit test apps 2012-04-17 19:50:04 +00:00
Alexander von Gluck IV
acbaa2b251 glinfo: Cosmetic adjustments
* Remove my dropdown to select renderer
  We can accomplish this through a config
  file read by the opengl kit render roster
* Reorder info text
* Adjust tab view column sizes
* Adjust window height
2012-04-17 19:19:02 +00:00
François Revol
3b52696411 Fix gcc2 build. 2012-04-17 19:34:45 +02:00
Reznikov Sergei
ba747b26ac Fix #5586: Add missing shortcuts to FilePanel. 2012-04-17 18:27:52 +02:00
Alexander von Gluck IV
b213b1bdd8 opengl addons: Add rdef to swrast engines
* Only cosmetic
* Helps differentiate GL renderers.
* Had to use AddResources vs Addon rule for
  resources as the Addon rule doesn't take rdef's
2012-04-17 16:15:38 +00:00
Oliver Tappe
546208a539 More catalog-related cleanup.
* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
  B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.
2012-04-16 21:31:22 +02:00
John Scipione
3244c2bcf2 Whoops, remove constraints after drawing slider bar. 2012-04-16 03:23:01 -04:00
John Scipione
a884b43bb1 Added support for buttons and menuframes with rounded corners.
* Not turned on for default buttons and menuframes right now.
* Updated Deskcalc and Keymap to use buttons with rounded corners.
* Overloaded methods with radium parameters are not virtual right
  now so as to not break vtables. Added /*virtual*/ before each
  method that should be made virtual in ControlLook.h
* Added a light line to the left border of the down arrow frame
  on menu frames as a small visual tweak.
* Replace StrokeRect() with StrokeRoundRect() when drawing the
  default button indicator. This gives them a rounded
  appearance if the button is also rounded.
* Added protected methods _DrawMenuFieldBackgroundOutside and
  _DrawMenuFieldBackgroundInside.
* Created some protected methods to get the edge, frame, and bevel
  colors from a passed in base color because it was a mess and I
  needed to calculate the colors from mutiple methods. It is much
  cleaner now.
* Added myself to ControlLook.cpp authors list. Assigned copyright
  to Haiku, Inc. Stippi also retains his copyright.
* Tons of style fixes.
  - Change all instances of `if (flags & B_FLAG)` to
    `if ((flags & B_FLAG) != 0)`
  - Reorder some methods.
  - Reorder includes.
  - Spacing.
  - Updated comments.
2012-04-16 02:10:03 -04:00
John Scipione
c0611fac87 Convert Deskbar preferences to use font aware spacing. 2012-04-15 19:06:58 -04:00
Oliver Tappe
248f2283dd Final part of cleanup in Catalog.h.
* move versions of the B_TRANSLATE_...-macros used during collecting
  of catalog keys to a specific header file, which will only be picked
  up when running collectcatkeys
* fix a couple of build problems during the preprocessing of the libbe-
  sources when extracting catalog keys, all due to private headers not
  being found
* move ZombieReplicantView.h from kits/interface to
  headers/private/interface, as this way it can be picked up when
  building the libbe catalog
2012-04-16 00:04:41 +02:00
Oliver Tappe
541ff51a6e Cleanup BCatalogAddOn.
* rename BCatalogAddOn to BCatalogData, since it doesn't represent an
  add-on, but rather the catalog data provided by an add-on
* move BCatalogData out of Catalog.{h,cpp} into its own header and
  implementation file
* drop BCatalogData::MarkForTranslation() methods, they're not needed
* drop BCatalog::GetNoAutoCollectString() methods, they're not being
  used anywhere
* cleanup the B_TRANSLATE_... macros somewhat
* add versions of the B_TRANSLATE_MARK_... macros that are meant to be
  used in void context (when the string isn't being used by the program,
  just meant to be picked up by collectcatkeys).
* adjust several apps to use B_TRANSLATE_MARK_..._VOID where needed
* adjust users of BCatalogAddOn accordingly
2012-04-16 00:04:41 +02:00
Oliver Tappe
5ac65b7f11 More cleanup in locale kit, this time regarding namespaces.
* it's bad practice to do a 'using <namespace>' in a header, as that
  is very likely to have unintended effects, so drop those from a couple
  of private Locale headers
* adjust files all over the locale kit in order to fix the problems
  (by explicitly importing the required classes in the implementation
  files)
2012-04-16 00:04:40 +02:00
Oliver Tappe
7ae67a9920 Drop empty 'zeta' catalog add-on, wouldn't be useful anyway. 2012-04-16 00:04:40 +02:00
Oliver Tappe
16e5092306 Extract EditableCatalog from Catalog.{h,cpp}.
* move EditableCatalog to its own header and implementation file
* move problematic BCatalog::CatalogAddOn() to EditableCatalog
* adjust Locale tools accordingly
2012-04-16 00:04:40 +02:00
John Scipione
1cd97d5e86 Update modifier keys window to take out cruft.
I don't need to set the ExplicitMaxSize of the StringView's in
Modifier Keys anymore or calculate the widest label now that the
StringView's have an explicit alignment set. I used the old method
of SetAlignment(B_ALIGN_RIGHT) just because I can,
SetExplicitAlignment() should work too.
2012-04-15 16:41:38 -04:00
John Scipione
afe43d0a55 Now that StringViews are left-aligned
by default I don't have to set the size explicitly in the Deskbar Prefs Window.
2012-04-15 16:20:56 -04:00
John Scipione
a2bea84d34 Override the LayoutAlignment method in BStringView.
Left align StringViews using layout API by default falling back
to the alignment settings set by SetAlignment() only if
SetExplicitAlignment() is not used.

This way StringViews are left-aligned by default, can be changed
using the Layout API, and the pre-Layout API legacy method is used
as a fallback.

See this thread for details:
http://www.freelists.org/post/haiku-development/Can-we-make-BStringViews-MaxSize-BSizeB-SIZE-UNLIMITED-B-SIZE-UNSET-by-default
2012-04-15 16:06:29 -04:00
Alexander von Gluck IV
325089f1fc radeon_hd: Stub out gfx ring boot.
* Tab fix as well
2012-04-15 11:23:55 -05:00
Rene Gollent
937ca113b0 Reorder names alphabetically. 2012-04-15 08:22:58 -04:00
Oliver Tappe
553ce13c6e Close #8452, pt. 2: reactivate system catalog translations.
* when moving the locale kit into libbe, I completely missed that
  I should have moved the translated catalogs, along, too.
2012-04-15 14:18:35 +02:00
Axel Dörfler
6ea60bcdba This must be a 64 bit computation for disks larger than 4GB.
* This closes ticket #8460.
* Patch from jahaiku, thanks!
2012-04-15 13:32:19 +02:00