Commit Graph

49400 Commits

Author SHA1 Message Date
John Scipione
3042958bab Mail: Change quote and unquote shortcuts
to Cmd+' (quote) and Cmd+Shift+'

This should also work better for International users who don't have
ready access to the [ and ] keys.
2014-01-31 18:41:24 -05:00
John Scipione
0875173246 TextView: Update nav shortcuts again
Make Cmd+Left and Cmd+Right work the same as Option+Left and
Option+Right, that is, they do word-wise navigation.

Make Option+Up go to beginning of paragraph and Option+Down go to end
of paragraph like Cmd+Left and Cmd+Right used to.

Unfortunately option shortcuts are currently eaten by S&T until #9431
gets fixed.
2014-01-31 18:30:07 -05:00
Gerasim Troeglazov
712bf7552d NTFS: Fix TRACE position 2014-01-31 09:26:40 +00:00
noryb009
385e65fd21 NTFS: Fix Coverity CID 1108342: resource leak 2014-01-31 09:24:50 +00:00
John Scipione
8197db540b S&T: Add the arrow key tab nav back
This undoes the partial fix to #9431, both sets of shortcuts are supported
for the time being. This mirrors the functionality of ctrl+arrows and
ctrl+tab/ctrl+shift+tab to cycle through apps and windows via Twitcher.

We really need system keybinding settings to fix #9431 properly.
2014-01-30 19:48:37 -05:00
John Scipione
fb6ab24a07 Update S&T copyright headers 2014-01-30 19:48:36 -05:00
John Scipione
94d4c31912 App Server: Update S&T window group navigation
Partially fixes #9431

Cycle through tabs in current S&T group with option+tab and backwards
with option+shift+tab
Cycle through S&T groups with option+PgDn and backwards with option+PgUp

This change allows apps to once again use option+arrows when inside of a S&T group
The problem isn’t truely fixed though, just moved to different shortcuts that hopefully will
conflict in fewer applications.

I also made some improvements to how S&T cycling works.

A single window is now considered to be part of a S&T group for the purposes
of cycling through S&T groups.

We loop around when you get the last tab/group.

When you cycle through S&T groups it remembers the active tab in the group
instead of always activating the first tab.
2014-01-30 19:48:36 -05:00
John Scipione
5002366cf4 App Server, a few more style fixes 2014-01-30 19:48:36 -05:00
John Scipione
cdffe36124 App Server: Move empty destructor to header. 2014-01-30 19:48:35 -05:00
John Scipione
3779f5cff7 App Server: Style fixes only
* 80 char limit fixes
* remove leading tabs/spaces
* Add some helpful pragmas
* Add some newlines to separate stuff
* Compare pointers to NULL explicitly
2014-01-30 19:48:35 -05:00
John Scipione
27b7673793 App Server: Fix typo
WindowActitvated => WindowActivated
2014-01-30 19:48:34 -05:00
John Scipione
c21873f063 WebPositive: BTextView shortcuts work in URL bar
Pass Cmd+Left/Right to the BTextView base class if the URL bar is focused.
This allows us to make use of the navigation shortcuts in BTextView when we
are focused on the URL bar, and activates back and forward navigation
otherwise.

Unfortunately this doesn't also work for text fields inside webpages.

Also make modifierKeys signed.
2014-01-30 19:48:34 -05:00
John Scipione
741987bed7 WebPositive: Style fixes, 80 char limit and ws 2014-01-30 19:48:33 -05:00
John Scipione
9f7f92dd7f Mail: Make quote work with B_OPTION_KEY too.
This is for AZERTY keymaps that don’t have ready access to
[ and ] in the normal map.
2014-01-30 19:48:33 -05:00
John Scipione
2a64403471 Mail: Tiny style fix 2014-01-30 19:48:32 -05:00
John Scipione
37fa8227e3 Mail: Make quote and unquote work better
Always quote and unquote starting from the beginning of the line
instead of the current cursor position.
2014-01-30 19:48:32 -05:00
John Scipione
c40938ad1f Mail: update quote shortcuts.
* Quote goes from Cmd+→ to Cmd+]
* Unquote goes from Cmd+← to Cmd+[

This frees cmd+arrow keys up for text navigation.
2014-01-30 19:48:32 -05:00
John Scipione
eb774c2948 TextView: Update navigation shortcuts
* Command+Left goes to beginning of line, ignoring softwrap
* Command+Right goes to the end of line, ignoring softwrap
* Home goes to beginning of line, accounting for softwrap
* End goes to end of line, accounting for softwrap
* Option+Left goes to previous word
* Option+Right goes to next word
* Command+Home and Command+Up go to beginning of document
* Command+End and Command+Down go to end of document

Shift with any of the above also selects the text.

This is similar to how the text editor Eddie works.
2014-01-30 19:48:31 -05:00
Axel Dörfler
cc94643724 Screenshot: fixed alpha channel handling.
* Screenshot always used B_RGBA32 color space, but did not care about the
  alpha channel at all. Now it only uses that space when "includeBorder"
  is used.
* Utility::_MakeTabSpaceTransparent() now also makes sure that the rest
  of the bitmap has the correct alpha channel set. This fixes bug #10491.
* Minor cleanup.
2014-01-31 00:43:31 +01:00
Alexander von Gluck IV
6464f4f659 x86_64: Add a bunch of video drivers that compile.
* Added cards need testing.
* 3dfx, ati, neomagic, and s3 still don't build due to some
  more complex pointer size issues. (and I don't have hardware
  to test on)
2014-01-30 14:55:19 -06:00
Alexander von Gluck IV
33d1fedd0c s3: fix driver for x86_64 2014-01-30 14:53:32 -06:00
Alexander von Gluck IV
9f22edc2fa intel_810: fix for x86_64 2014-01-30 14:53:05 -06:00
Humdinger
02d8dd1561 Coding style fixes 2014-01-29 13:03:06 +01:00
Humdinger
4c56a102ca Truncate names of files/folders that are being grep'ed 2014-01-29 12:57:38 +01:00
Humdinger
cff5000f79 Show search term in window tab 2014-01-29 12:39:01 +01:00
Alexander von Gluck IV
fc90d9a48e intel_extreme: Unlock mutex after we're done, not before
* Thanks Axel for catching this one.
2014-01-28 23:32:16 -06:00
Alexander von Gluck IV
eef994b964 graphics: Spell check drivers, fix tab. No functional change 2014-01-28 23:32:16 -06:00
Rene Gollent
bc8a69e326 Update gcc4 package for gcc2(h) to 4.8.2. 2014-01-28 22:43:01 -05:00
Pawel Dziepak
3306e3aa75 build: Enable -Werror for add-ons/kernel/power 2014-01-29 04:11:42 +01:00
Pawel Dziepak
bf1694667e build: Enable -Werror for libroot/os 2014-01-29 04:11:42 +01:00
Pawel Dziepak
225acfb3b0 build: Enable -Werror for bootloader 2014-01-29 04:11:42 +01:00
Pawel Dziepak
01a479daa9 boot/x86: Fix unused variable warning 2014-01-29 04:11:42 +01:00
Rene Gollent
83805f9349 Update native gcc4 package for gcc4 Haiku to 4.8.2. 2014-01-28 21:28:45 -05:00
Jérôme Duval
de39d23618 Update gcc 4 package for x86_64 2014-01-29 00:27:40 +01:00
Jérôme Duval
9392f92aad app_server: adjust Freetype dependency.
* added AlphaMask.cpp.
2014-01-29 00:16:18 +01:00
Stephan Aßmus
ad17bccf31 app_server: Implemented caching and updating the alpha mask. 2014-01-28 23:57:26 +01:00
Stephan Aßmus
215119a1e7 app_server: Move AlphaMask management into DrawState.
* Give DrawState a real copy constructor, handle deriving in PushState().
   (Although clipping region and alpha mask are not cloned, which is on the
   other hand just what's needed for now.)
 * Combining alpha masks from previous states is not yet handled.
 * Remove SetAlphaMask() from DrawingEngine and Painter. It is now done in
   SetDrawState().
2014-01-28 23:27:12 +01:00
Stephan Aßmus
a2f075eb42 app_server: Support alpha masks for text rendering...
... both vector and bitmap based. Sub-pixel text rendering not yet handled,
I think the scanline is used differently in this case, in that three times the
horizontal resolution is used, while the alpha map doesn't match this
increase.
2014-01-28 22:35:36 +01:00
Stephan Aßmus
a01eaea74b app_server: Some cleanup of the new clipping code.
* Fixed some coding style issues and use regular pointers like everywhere
   else in app_server code.
 * Moved _RenderPicture() from View to AlphaMask.
2014-01-28 22:10:33 +01:00
Jérôme Duval
69437993a2 apps: ProcessController: merge leftover.
commit c69bd82c31
2014-01-28 20:11:29 +01:00
Jérôme Duval
1e93288e65 build_cross_tools_gcc4: unbreak --use-gcc-graphite.
* added -pipe to CFLAGS, builds are faster and /tmp usage is avoided at the
cost of more memory used.
* replaced ppl by isl as required by gcc 4.8
2014-01-28 19:18:14 +01:00
Adrien Destugues
35d6e0fe81 Add new classes required for picture clipping
* agg_clipped_alpha_mask is a modified version of agg alpha mask class,
allowing us to offset the mask bitmap to follow the view position, and
also allows "inverse" clipping, where everything outside the bitmap is
considered inside the clipping region.
* AlphaMask is a container class keeping the ServerPicture, it's bitmap
rendering, and other relevant information. It will be used to save and
restore the clipping picture as part of the view state.
* Because these classes introduce more coupling within app_server, it's
not possible anymore to split out tst_app_server from
libtestappserver.so. Instead, move everything to libtestappserver.so,
except the things that actually need to not be there (to avoid
interferences with the host API). As a result, the previously introduced
stub cpp file to work around this problem isn't needed anymore.

The design for all this (and the previous commit) is Stippi's work.
Thanks for the advice and implementation hints!
2014-01-28 16:53:03 +01:00
Adrien Destugues
f08d5477d8 Add Alpha Masking support in ClipToPicture
Use AGG to implement ClipToPicture in a faster and better way.
There are things missing in this initial implementation:
* No support for PushState/PopState saving and restoring the picture.
* No support for nested clipping through PushState
* The clipping doesn't happen where you expect it when using SetScale()
* There are artifacts when scrolling and resizing clipped views
* The implementation uses more memory than it needs, as the clipping
bitmap is stored as RGBA32, yet only the alpha channel is used
* The clipping bitmap is rendered more times than it needs to. We need
some caching here.
2014-01-28 15:42:21 +01:00
Adrien Destugues
d0fa6c78f4 BView: Allow resetting ClipToPicture
Just like for regions, ClipToPicture(NULL) removes any picture clipping
at the current state level (clipping in pushed states are not undone).
2014-01-28 15:39:36 +01:00
Adrien Destugues
049dd64e8e ClipToPicture test: add even more tests
* Allow scrolling the view,
* Add tests for ScaleBy and SetOrigin
* Add test for multiple clipping pictures using PushState.
2014-01-28 15:35:46 +01:00
Adrien Destugues
f1585e1484 Make ClipToPicture test more complete
* Add a test for ClipToInversePicture
* Add a test for ClipToPicture(NULL)
2014-01-28 14:01:42 +01:00
Adrien Destugues
5179b54a5e Update gcc4 Mesa packages for gcc2hybrid. 2014-01-28 09:03:35 +01:00
Pawel Dziepak
527da4ca8a x86[_64]: Separate bootloader and kernel GDT and IDT logic
From now on bootloader sets up its own minimal valid GDT and IDT. Then
the kernel replaces them with its own tables.
2014-01-28 00:44:02 +01:00
John Scipione
e646703a6e Pairs: Fix gcc4 build some more, include stdlib.h 2014-01-27 18:35:19 -05:00
Stephan Aßmus
be2f98062c Text stuff: Support extracting sub-paragraphs and documents
* Also some WIP towards integrating TextListener.
 * Everything untested.
 * Fixed a bug where copying to the clipboard had an extra line-break
   after each paragraph since the recent changes that made sure each
   paragraph ends in a line-break.
2014-01-27 23:21:02 +01:00