49680 Commits

Author SHA1 Message Date
John Scipione
78a987cc9b Make the decorators not crash 2014-02-20 19:31:22 -05:00
John Scipione
6b585e268a Fix _SetLook() and _SetFlags() methods 2014-02-20 19:31:21 -05:00
John Scipione
db9c24a651 BeDecorator: make it compile, use tabs.
Crashes spectacularly like WinDecorator.
2014-02-20 19:31:17 -05:00
John Scipione
a19e96e3ad BeDecorator not ClassicBe 2014-02-20 19:31:15 -05:00
John Scipione
196fc0d6ae WinDecorator: Make it compile, use tabs
but stub out the missing pieces for now.

At this point selecting it crashes app server spectacularly.
2014-02-20 19:31:13 -05:00
John Scipione
45b17fde13 Some style fixes 2014-02-20 19:31:05 -05:00
John Scipione
7204235793 Include some needed headers in the Jamfile
was done for MacDecorator aready in  hrev44313.
2014-02-20 18:38:30 -05:00
Stephan Aßmus
0aa2c1fca3 PackageInstaller: Fixed more problems with working directories
I've encountered three different ways of specifying the working directory
for install scripts: Relative to target folder, relative to install folder
and absolute. At least those three now work...
hrev46898
2014-02-20 23:47:39 +01:00
Stephan Aßmus
4ccc40a15c app_server: Fixed BFont::GetEscapements()
Both versions effectively ignored the provided escapement_delta.
Also when layouting glyphs, the space/non-space delta were applied
off-by-one. It should affect the advance for the current glyph,
not the offset.
hrev46897
2014-02-20 22:31:44 +01:00
John Scipione
a073305c96 keymap: limit set of left/right swap options
For Shift, Control, Option, and Command assume that you want to shift
on the same side, left-for-left, right-for-right. The Menu key is
available on either the left or right side, and lock keys can be
swapped with any other modifier left or right.

If we have multiple unmapped modifiers we need to do a little extra
work to figure out which of the unmapped modifiers to swap with.

Convert private class member methods to static functions.

Also update copyright info
hrev46896
2014-02-20 15:18:37 -05:00
John Scipione
8eb27eaa79 Keymap: Allow you to unset modifier keys
Selecting the marked menu item will unset the mapping for that modifier.

We can't rely on there being a unique mapping for a key (more than one
could be set to 0 aka unset) so we have to set the menu item names based
on the interface defs constants intead.
2014-02-20 15:03:45 -05:00
John Scipione
ab0f7d6627 Keymap: activate popup for all modifiers
not just those that have a modifier key mapped to them already

Also check for control+click == RMB
2014-02-20 15:03:44 -05:00
John Scipione
f97a4a3ceb Keymap: Backward loop count optimization 2014-02-20 15:03:42 -05:00
John Scipione
e90aead4f9 KeymapListItem comment and style fixes 2014-02-20 15:03:41 -05:00
John Scipione
a62422fc9c Swap buttons with primary mouse button instead of secondary 2014-02-20 15:03:40 -05:00
John Scipione
7e9644053f Return early if dragging, unindent the rest 2014-02-20 15:03:39 -05:00
John Scipione
c959ce4612 Some small style fixes 2014-02-20 15:03:37 -05:00
John Scipione
4346099683 No longer need to check for this here 2014-02-20 15:03:36 -05:00
John Scipione
173b5a686d Keymap: swap modifiers keys via context menu
When the user right clicks on a modifier key pop up a menu listing the
available modifiers. When the user selects a modifier from the menu swap
the key with the selected modifier. This provides an alternative way to swap
modifier keys other than drag&drop that works for just modifier keys.
2014-02-20 14:59:15 -05:00
Humdinger
9de067d5d9 Added UberTuber and youtube-dl to HaikuPorts repo hrev46895 2014-02-20 19:46:01 +01:00
Stephan Aßmus
b935e4d54f HaikuDepot, text stuff: Removed work around.
* The extra glyph or white space offset no longer needs to be removed from
   the first glyph.
hrev46894
2014-02-20 17:55:45 +01:00
Stephan Aßmus
24c156daf5 app_server: Don't offset first glyph with additional spacing
Untested, but should be correct... will test in a minute.
2014-02-20 17:40:11 +01:00
Stephan Aßmus
ab29480f78 PackageInstaller: Increase install type description height
* In case the scroll bar needs to appear, it had not enough room.
2014-02-20 17:12:00 +01:00
Stephan Aßmus
8e8869a916 Fix more Freetype build feature dependencies in app_server 2014-02-20 17:10:37 +01:00
Stephan Aßmus
e75f469d34 PackageInstaller: Implement John's suggestions
* Rename "Install" button to "Begin" so it matches most packages instructions
   at least for the English locale.
 * Restore right-alignment of the menu field labels.
 * Also move the "Begin" button onto its own line to allow more of the target
   folder to be readable on the menu field.
hrev46893
2014-02-19 22:23:56 +01:00
Oliver Tappe
b6bd9f7b46 Fix build problem of haiku-bootstrap package.
* adjust names of Tracker add-ons to match the ones used in the 'Haiku'
  package, otherwise jam complains about not knowing how to build them
hrev46892
2014-02-19 17:17:23 +01:00
Kacper Kasper
db0132297b Fix button layout consistency issues in preflets
Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
hrev46891
2014-02-19 09:33:53 +01:00
John Scipione
1d5c1fc35d packageinstaller: style fixes hrev46890 2014-02-18 20:09:51 -05:00
Jonathan Schleifer
0992d43c0b Add clang-3.4-3 for x86 hrev46889 2014-02-19 01:22:34 +01:00
Alexander von Gluck IV
1b38c3412c mips: Remove mips
* As per the ML discussions. Bumps MIPS to tier 3.
* We've reached a unanimous descision that MIPS doesn't
  target any real / valid hardware Haiku wants to pursue
  at the moment.  In the event that anyone wants to pursue
  MIPS, feel free to fork Haiku into your own repository
  (and we'll even link to it on the website ports page)
* If someone develops a viable plan for MIPS (and gets the
  port working, it can be readded at a later date)
hrev46888
2014-02-18 16:29:09 -06:00
Stephan Aßmus
39d7cced9f PackageInstaller: Ignore uninstall-error before install hrev46887 2014-02-18 23:06:15 +01:00
Stephan Aßmus
1835c16d8e PackageInstaller: Disable debug output of scripts 2014-02-18 23:05:52 +01:00
Stephan Aßmus
51f34888d9 PackageInstaller: More robust way to select destination...
... after file panel is cancelled.
2014-02-18 23:01:51 +01:00
Stephan Aßmus
1e35b8fc96 PackageInstaller: Handle aborting the file panel
* Select the first item and reset the path.
2014-02-18 22:57:24 +01:00
Stephan Aßmus
bb322d3500 BMenuField: Draw everything on resize
* The label might be truncated, in which case the entire width needs to be
   redrawn when the menu field shrinks or grows.
 * Invalidating the border in the parent looked a bit weird. Simplified.
2014-02-18 22:50:07 +01:00
Stephan Aßmus
5da0005349 PackageInstaller: Improved main window layout
* Moved "Install to:" besides the "Install" button again.
 * Don't right-align menu field labels.
 * Give the install type description some default text when no description is
   given. Give it a smaller font, align with the type menu.
2014-02-18 22:34:27 +01:00
Adrien Destugues
9046835de9 Patch by Ingo Weinhold: fix stack alignment on x86.
This is required to use some SSE instructions, which are generated by
gcc 4.8, most notably when compiling WebKit code (but it may happen
elsewhere as well).

Fixes about 900 crashes and 10000 test failures in WebKit, so this must
be working. Fixes #10509 for x86.
hrev46886
2014-02-18 20:55:37 +01:00
Stephan Aßmus
224641c4b5 Install scripts can define a NULL path...
... don't try to call InitPath() then.
Also replace more hard-coded paths. Added TODO about refactoring this
code and not using hard-coded paths myself, which is no better than these
scripts.
hrev46885
2014-02-17 23:20:28 +01:00
Axel Dörfler
891babcf29 AHCI: fixed broken debug output.
* Thanks Urias!
hrev46884
2014-02-17 21:14:27 +01:00
Adrien Destugues
67d06c8802 Httprequest: remove "chunked" from http accept-encoding.
This is useless, chunked support is mandatory in HTTP1.1, and it's not a
content-encoding, but a transfer-encoding, so accept-encoding wouldn't
help anyway.
hrev46883
2014-02-17 14:48:57 +01:00
Stephan Aßmus
3f5014ec86 PackageInstaller: Run install scripts in the correct directory
* From debugging with the Gobe and Moho installer, scripts define which
   folder to run them from. The PackageInstaller is supposed to run the script
   in that working directory. The parser seems to have the correct folder in
   "installPath" when adding the script as PackageItem, but that code is rather
   horrible. I've changed it so PackageScript items also set the path, use
   InitPath() to obtain the final working directory and set it before running
   the script.
 * Both Moho and Gobe create the Deskbar link from that script, the folder
   is rewritten in the script via ReplaceAll().
 * Correctly running the script makes a bug visible: Dynamically added files
   in the install location by these scripts are not removed when uninstalling
   the package. When re-installing a package, it is first uninstalled and this
   currently gives an error for both Moho and Gobe, since they create some
   links in these scripts which never worked before. To install again, the
   install folder needs to be deleted manually.
 * Some cleanup along the way... sorry.
hrev46882
2014-02-16 23:32:01 +01:00
Stephan Aßmus
4407020ba4 PackageInstaller: Install apps to non-packaged "apps" folder.
Previously, the target folder was always unset, which meant one needed
to select a target folder manually. When running from a read-only media,
this would still be a problem (a TODO), so that instead of failing to install
the package, the user is simply prompted for a path.
The change means that together with rewriting old paths to packaged
locations to the non-packaged equivalents, just double clicking a PKG and
hitting "Install" will now work. Tested with Moho installer and
Gobe Productive.
hrev46881
2014-02-16 12:19:16 +01:00
Stephan Aßmus
735727da48 PackageInstaller: Converted to use layout API
* Also auto-hide vertical scroll-bars when not needed.
 * Nicer margins everywhere
 * TODO: Install type description could collapse when empty or display
   a default message.
 * More refactoring and cleanup
hrev46880
2014-02-16 12:12:25 +01:00
Stephan Aßmus
a16a1437a7 PackageView: Small coding-style cleanup 2014-02-16 12:12:25 +01:00
Stephan Aßmus
193a4de178 PackageView: Refactored a lot of repetitive code...
... to create menu items.
2014-02-16 12:12:24 +01:00
Stephan Aßmus
236dd276ac PackageInstaller: Make window title properly localizeable 2014-02-16 12:12:24 +01:00
Stephan Aßmus
a1b7cb6256 PackageInstaller: Another round of cleanup. 2014-02-16 12:12:23 +01:00
Stephan Aßmus
2a7d988dc5 PackageInstaller: Cleanup PackageWindow
* Also center main package installation window on screen.
2014-02-16 12:12:23 +01:00
Axel Dörfler
ef18b77adc trim: added debug output.
* Can you give it another try, Alexander? The outcome won't change, I'm afraid,
  but maybe we'll know some more afterwards.
hrev46879
2014-02-15 20:50:57 +01:00
Ithamar R. Adema
8f4db360bc arm/atomic: round of atomic function changes
* change vint{32,64} to int{32,64} in:
  * kernel implementation
  * syscall definitions
  * libroot prototypes
* update syscall functions with new atomic prototypes.
hrev46878
2014-02-15 11:46:12 +01:00