Commit Graph

49666 Commits

Author SHA1 Message Date
Stephan Aßmus
d2919781c3 TabDecorator: Move tracing output into tracing statement... 2014-02-26 11:51:38 +01:00
Stephan Aßmus
91233f88a3 Font: Work on support for spacing modes.
* Change default spacing to B_BITMAP_SPACING. The BeBook does not document
   what the default spacing is, and I have no BeOS install handy to check.
   However, I believe that B_BITMAP_SPACING is what should be the default,
   since it gives the best visible result for the common use-case.
   In terms of implementation, there is no change, since spacing was ignored
   until now and the behavior was that of B_BITMAP_SPACING. This change could
   however break BeOS apps which assume B_CHAR_SPACING is the default and don't
   set it on new when they need it. Sample code in the BeBook however shows
   setting B_CHAR_SPACING on a newly created BFont.
 * Implement B_STRING_SPACING to do something sensible. The BeBook documentation
   is completely vague in what it is actually supposed to do. Given the
   possibilities of FreeType, I am implementing it to enable the use of
   kerning. Kerning optimizes the spacing between two glyphs, for example, it
   would decrease the spacing between "T" and "e" in the string "Test" for
   our default font. Untested.
2014-02-26 11:51:37 +01:00
Stephan Aßmus
569eed2db5 Font.cpp: Style cleanup
* Unify asterisk style
 * switch indentation style of FontList declaration
 * Order FontList methods according to declaration
 * Use named constants in default BFont constructor for spacing and encoding.
2014-02-26 11:51:36 +01:00
Alexander von Gluck IV
6d3363214f ARM: Simplify board specification
* Don't assume verdex as it isn't clear this was
  occurring.
* Make an educated guess on HAIKU_BOOT_PLATFORM
  based on provided board (but still allow it to
  be overridden)
* Error out if user doesn't populate
  HAIKU_BOOT_PLATFORM or enters an unknown board
  name.
* You need to add "-sHAIKU_BOOT_BOARD=xxx" to
  your jam to build for the proper ARM device.
* Rename beagle to beagleboneblk as per the
  documentation.
2014-02-26 00:27:18 -06:00
Philippe Saint-Pierre
75a80fb341 Use delete[] on array (CID #701816) 2014-02-25 21:31:08 -05:00
Philippe Saint-Pierre
6e536502db Fix missing break statement (CID #1108253) 2014-02-25 21:04:38 -05:00
John Scipione
2094bbb315 Gravity: Add break fixing white option 2014-02-25 18:14:06 -05:00
Stephan Aßmus
792a46db79 PackageInstaller: Unbreak selecting custom install folders.
BFilePanel always sends B_CANCEL when it hides (as documented in the BeBook),
not just when the user cancels the file panel. Track what message we expect
and only react to B_CANCEL when it means the user really canceled selecting
the target folder.
2014-02-25 22:34:33 +01:00
Jérôme Duval
91e3737dd8 gawk: use the HaikuPorts package.
* left the in-tree version as its libintl is used by gdb.
* added as bootstrap package.
2014-02-25 22:20:32 +01:00
John Scipione
e9dcbbeb35 ScreenSaver: pass in true to get a preview
Fixes #10602

This was a simple mistake on my part, unfortunately this means that
a bunch of screen savers that showed preview fine before no longer do.
2014-02-25 16:07:13 -05:00
Jérôme Duval
211f2edbfc Add gawk package for x86, x86_64 and x86_gcc2. 2014-02-25 21:46:58 +01:00
John Scipione
e9a0833a86 ScreenSaverRunner: Fix segmentation fault loading bad screen saver.
When Settings.ModuleName() returned NULL here we got a segmentation fault
trying to access the pointer.

I ran into this trying to load up a non-screensaver executable in ScreenSaver,
it crashed instead of doing the right thing and refusing to load.

Also, since we go to the trouble of saving this to a variable, we should actually use it.
2014-02-25 15:00:13 -05:00
John Scipione
9d312ae750 ScreenSaverSettings: Check that name is valid
... before trying to use it in GetModuleState() and SetModuleState()

also, rename the stateMsg variable to stateMessage (already correct in header)
2014-02-25 15:00:12 -05:00
John Scipione
94f8ac8cf1 ScreenSaverRunner: print errors to stderr instead of stdout.
Also print on a couple of new error cases:
* print and error if fSaver is NULL,
* print and error if unload_add_on failed.
2014-02-25 15:00:11 -05:00
John Scipione
06f133c1f2 ScreenSaverRunner: treat load_add_on return value like an image_id
... rather than a status_t, because that's what it is.
2014-02-25 15:00:09 -05:00
John Scipione
84466cefd3 ScreenSaverRunner: check return value of methods 2014-02-25 15:00:08 -05:00
John Scipione
d960838b5b ScreenSaverRunner: clarify some comments 2014-02-25 15:00:07 -05:00
John Scipione
4116ae4ffd ScreenSaverSettings: check find_directory return value 2014-02-25 14:58:38 -05:00
John Scipione
6d55c2c490 ScreenSaver: check function return values for success 2014-02-25 14:58:38 -05:00
John Scipione
a3dc72e69c ScreenSaverSettings: Silly indentiation fix 2014-02-25 14:58:37 -05:00
Jérôme Duval
8b804bc17b findutils: use the HaikuPorts package.
* removed in-tree version.
* added as bootstrap package.
* note: HaikuPorts package has no rdef for binaries.
2014-02-25 17:58:32 +01:00
Stephan Aßmus
99d23e5198 app_server: Apply scale to round corner radius. 2014-02-24 11:43:54 +01:00
Stephan Aßmus
fe3c024016 EXRTranslator: Catch any exception.
Experimenting with avoiding some RTTI bug that triggers
when old BeOS binaries iterate Translators.
2014-02-24 11:43:54 +01:00
Humdinger
15a4535714 Updated UberTuber to v0.9.10 2014-02-24 10:56:38 +01:00
Puck Meerburg
92d40f5451 ARM Kernel stubs: Fix mutex stubs 2014-02-23 22:11:22 +01:00
Oliver Tappe
5c9657b7e5 Fix creation of haikuports.conf for bootstrap image.
* comments in here-documents don't work (the shell filters them out),
  so we echo the comment line explicitly
2014-02-23 18:46:18 +01:00
Adrien Destugues
fd621a0291 Use the TARGET_* variable instead of the HAIKU_* one.
HAIKU_* variables are copied to TARGET_*, making it possible to also
build for other targets (libbe_build, or BeOS R5 when we still allowed
that).

Thanks to Ingo for explaining how this is meant to work.
2014-02-23 18:38:22 +01:00
John Scipione
0810449709 HaikuImage: Add empty system non-packaged directories
... mirroring home/config/non-packaged/

Also, sort the list lexographically and move the creation of the non-packaged
decorators directory from HaikuImage to HaikuImageCommon along with the rest.
2014-02-23 12:10:13 -05:00
Adrien Destugues
22011f8b6c ARM Atomics: implement __sync_syncronize
GCC doesn't provide an ARM implementation of it. It's easy to write one
for ARMv6 and above, while older archs will need this implemented as a
syscall just like other atomics.
2014-02-23 16:25:34 +01:00
Adrien Destugues
faa2d8a95b Don't link the kernel as a shared lib on ARM
We have the same problem as on x86_64: posiiton dependant code isn't
allowed in shared libraries. Since Kernel.so is not used at runtime,
we can use the same hack as on x86_64, and use elfedit to make the
linker think our kernel is a shared library.
2014-02-23 16:23:45 +01:00
Adrien Destugues
81e7f1e992 Fix definition and use of target ASFLAGS.
* ArchitectureRules define a variable named HAIKU_ASFLAGS, so other
Jamfiles can append to it.
* But, TARGET_ASFLAGS was used instead in the single place where we
tried to make use of this (the verdex BoardSetup), and in the As rule
* Moreover, the As rule used $(architecture) instead of
$(TARGET_PACKAGING_ARCH) (I suspect a bogus copypaste?). So, it never
actually made use of the flags

With this working, add the proper flags to the BeagleBoard BoardSetup,
so we implement atomic operations the ARMv7 way (no need to syscall).
This helps with compiling, as the As and Cc/Cpp rules now agree on the
defines and the atomic implementation to use.
2014-02-23 15:50:11 +01:00
John Scipione
cbc568498d Flurry: Show a preview... try number two
Also, we are safe to enable direct mode now (it already was)

This is untested due to this screensaver currently crashing but it should
work once #10206 is fixed.

Remove obvious comment in DirectConnected
2014-02-23 04:10:09 -05:00
John Scipione
25952f8e92 Revert "Flurry: Show a preview"
This reverts commit 61935d56e6.
2014-02-23 04:06:43 -05:00
John Scipione
8e727810a7 Gravity: Live update settings and cleanup
Now that this screensaver shows a preview, update the settings live
so that the display updates immediately.

Since this didn't work before this screensaver took a shortcut and only
updated the settings when the saver started.

Some other changes include:
* Update copyright header, add myself to the authors list.
* Convert Particle from using a BList to a BObjectList and remove casts.
* Use switch statement to set particle color that has a default case for blue.
* Initialize member variables to a default value in the constructor.
* Remove Constants.h, the remaining constants are in ConfigView.cpp
* Convert deprecated GroupLayoutBuilder to a LayoutBuilder template instance
* Convert GravitySource from a class to a struct since all members are public.
* Simplify realCount calculation to just a single left shift.
* A bunch of style fixes
  - lots of whitespace fixes
  - rename rect to frame in GravityView and ConfigView
  - reorder the frame parameter first in GravityView and ConfigView
  - curly brace goes on same line as class or struct declaration

This turned out to be a bigger change than I originally intended to make.
2014-02-23 03:50:15 -05:00
John Scipione
60f8c91355 Gravity: Style fix, rename msg parameter to message 2014-02-23 02:16:29 -05:00
John Scipione
ed18c89481 Gravity: Show a preview
Also, we are safe to enable direct mode now.
2014-02-23 02:14:09 -05:00
John Scipione
61935d56e6 Flurry: Show a preview
Also, we are safe to enable direct mode now.

This is untested due to this screensaver currently crashing but it should
work once #10206 is fixed.
2014-02-23 02:12:39 -05:00
John Scipione
823781426f GLifeSaver: Show a preview
Also, we are safe to enable direct mode now.
2014-02-23 02:10:18 -05:00
John Scipione
0fb019bbf2 Screensaver: Convert Screensaver to a BDirectWindow
This allows OpenGL screensavers to be able to show a preview.
2014-02-23 02:07:23 -05:00
John Scipione
ada2a0a1ef Screensaver: Small style fixes to PreviewView 2014-02-23 02:05:49 -05:00
Jérôme Duval
339e00cc32 Add findutils package for x86 and x86_gcc2. 2014-02-22 18:09:09 +01:00
Jérôme Duval
2811570586 Add findutils package for x86_64. 2014-02-22 15:02:26 +01:00
Adrien Destugues
a94260d895 Add less and netcat packages for x86_gcc2
* Waiting for x86 and x86_64 ones before we can remove the built-in
version in Haiku...
2014-02-22 14:59:17 +01:00
Julian Harnath
d10ecc2c41 Style fix: add parameter name
* As pointed out by Axel.
2014-02-22 13:51:55 +00:00
Julian Harnath
dad49763d8 Disallow copy-construction of BCertificate.
* Prevents accidential creation of multiple instances with
  ownership of same fPrivate.
2014-02-22 13:51:52 +00:00
Jérôme Duval
c2d994b00e HaikuImage: activate GL components with mesa feature. 2014-02-22 14:32:10 +01:00
Julian Harnath
c99d7ea45c Fix double-free crash in BSecureSocket when cert. verification fails
* BSecureSocket::CertificateVerificationFailed() took a BCertificate
  instance by value as parameter.
  BCertificate deletes internal data in its destructor. Passing an
  object by value creates a copy, so the copy attempted to delete
  the internal data again during its destruction.
  This caused mail_daemon to crash here when it came across a failed
  certificate.

* Fix: pass BCertificate object as reference.
2014-02-22 02:09:55 +00:00
Alexander von Gluck IV
2eccf32862 x86_64: Add latest Mesa packages
* Solves #9362
2014-02-22 01:38:20 +00:00
John Scipione
5e96d7d537 Localize keyboard layout names in Keymap preferences 2014-02-21 20:05:26 -05:00
John Scipione
4e152efced Keymap modifiers: make it a floating window 2014-02-21 17:11:47 -05:00