Commit Graph

49331 Commits

Author SHA1 Message Date
Stephan Aßmus
fa8b5d525e TextDocument: More fixes
* Fixed ParagraphIndexFor() not returning the last paragraph when the
   requested text offset was right at the text end.
 * Fixed off-by-one error detecting inserted line-breaks.
2014-01-20 00:50:37 +01:00
Stephan Aßmus
2188476555 TextEditor: Correct line up/down on first/last line.
* Move to beginning of first line, or end of last line respectively.
2014-01-20 00:50:37 +01:00
Stephan Aßmus
e809325835 ParagraphLayout: Bugfixes.
* Fixed off-by-one errors in FirstOffsetOnLine() and LastOffsetOnLine().
 * Fixed GetLineBounds() not returning anything y2 and overwriting y1.
2014-01-20 00:50:36 +01:00
Stephan Aßmus
9fff2ecb3f List: Fixed off-by-one check in Add().
Of course we can add right at the end...
2014-01-20 00:50:35 +01:00
Stephan Aßmus
0d8b8ca63a ParagraphStyleData: Fixed line spacing not being set/adopted/compared. 2014-01-20 00:50:35 +01:00
Stephan Aßmus
300c690eb6 Text stuff: Fixed various issues with editing.
* Insert/Remove now works for simple typing.
 * Inserting multiple paragaphs not yet tested.
 * Renamed TextSpan::CharCount() to CountChars() for consistency.
2014-01-20 00:50:34 +01:00
Stephan Aßmus
7e8dde4846 CharacterStyle: Added FontSize(), IsBold() and IsItalic(). 2014-01-20 00:50:34 +01:00
Stephan Aßmus
ffed252616 Paragraph: Added Prepend(TextSpan). 2014-01-20 00:50:33 +01:00
Stephan Aßmus
523baa4fdc TextEditor: Control caret offset in Insert/Remove()...
... and fix the invalidation to happen after the operation, since it currently
updates the layout text spans synchronously.
2014-01-20 00:50:33 +01:00
Pawel Dziepak
25dcdbc2b5 libroot: Avoid conflicts with legacy CPU and platform enums 2014-01-20 00:32:57 +01:00
Pawel Dziepak
32d1afe024 Remove B_CPU_x86_VENDOR_MASK 2014-01-20 00:31:38 +01:00
Rene Gollent
6a5f0f4da6 Vision: fix missing icon. 2014-01-19 17:41:38 -05:00
Alexander von Gluck IV
fb8026e82b kernel: Add missing PPC CPU functions for idle / pause 2014-01-19 14:38:01 -06:00
Alexander von Gluck IV
524bea3553 kernel: fix missing cpu cache defines non-x86
* Regression introduced due to scheduler change
* Other other non-x86, non-ppc, and non-arm platforms
  need evalulated for this metric
2014-01-19 14:27:09 -06:00
Alexander von Gluck IV
6647d2c95a kernel: fix missing SMP_MAX_CPUS on non-x86
* Regression introduced due to scheduler change
* Drop MAX_BOOT_CPUS as it is no longer used
2014-01-19 14:09:51 -06:00
Pawel Dziepak
9d80738d95 kernel: Fix NULL dereference in has_permission_to_signal 2014-01-19 19:35:13 +01:00
Stephan Aßmus
2c906df217 Text stuff: Bugfixes in Insert and Remove methods
Still not well tested. Also some way to trigger the layouts to adopt to
the changed document paragraphs. Not yet via the new TextListener.
2014-01-19 16:33:36 +01:00
Stephan Aßmus
315dee6f22 TextEditor: Resolve TODO and call Insert() and Remove()...
... which both already exist in the TextDocument API (stubbed out or
untested as they are).
2014-01-19 15:56:07 +01:00
Stephan Aßmus
13d17b5b01 TextDocument: Implemented Remove(), untested.
Also some refactoring for ParagraphAt() into a separate ParagraphIndexFor(),
used by the former, since often an index is needed.
2014-01-19 15:56:07 +01:00
Stephan Aßmus
b7e8a24441 Paragraph: Added Remove(), untested. 2014-01-19 15:56:06 +01:00
Stephan Aßmus
ce3046974c HaikuDepot: Simple TextListener interface, not yet used. 2014-01-19 15:56:05 +01:00
Adrien Destugues
fed5e6126b LocaleRoster: race condition on catalog loading.
Using a vint32 isn't enough to safely decide if the catalog is
initialized or not. Use init_once features instead.
2014-01-19 12:12:57 +01:00
Adrien Destugues
8efd9b8d00 Remove display_mode_hook hack.
We'd better find a cleaner way to implement this, if actually needed.
2014-01-19 12:09:54 +01:00
Adrien Destugues
7e433e7cad FileRequest: set the mime type early.
WebKit may use the MIME type during incremental loading, so we better
set it before we start feeding the data.
2014-01-19 12:09:52 +01:00
Adrien Destugues
32da3d9dae Cookies: avoid timezone confusion
Cookies date are always in GMT time. Using mktime wrongly converts them
as local time instead. This would lead to cookies expiring too early or
too late.
2014-01-19 12:09:51 +01:00
Ingo Weinhold
8540ec2446 Save previous session's debug syslog during boot
Add boot loader debug menu option "Save syslog from previous session
during boot". If enabled (defaults to true), the previous session's
debug syslog data is copy to a separate buffer and passed to the
kernel, which writes it back to the file /var/log/previous_syslog.
As long as Haiku still boots, this should now be the most convenient way
to retrieve the output from a kernel crash.
2014-01-19 10:46:00 +01:00
Ingo Weinhold
be5e6fefdf Add repository config for the Haiku repository to the image
* HaikuRepository rule: Create the repository config.
* HaikuImage: Add the repository config for the Haiku image. The
repository cache is not added, though (it would only be available, if
the repository had been built before).

Implements #10287. The Haiku repository is now available in Haiku by
default.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
f0b99b54bb RepositoryConfig rule: Make a bit more generic
Instead of the repository the URL can now be passed. It can use the
"$version" placeholder, which will be replaced by the content of the
given version file. If the URL is not given, the one from the repository
info will be used.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
1221b67d07 create_repository_config: Make URL argument optional
If not specified, the URL from the repository info is used.
2014-01-19 00:49:11 +01:00
Ingo Weinhold
12c19e6362 Move creating the Haiku repo info to jam
* PreprocessPackageInfo rule: Pull out new rule
PreprocessPackageOrRepositoryInfo which does the sed substituation and
optionally the filtering through the C preprocessor.
* HaikuRepository rule: Generate the repository info file (from the
given template). No longer do that in the build_haiku_repository
script.
2014-01-19 00:49:10 +01:00
Ingo Weinhold
af559cd6ee Add DetermineEffectiveHaikuRevision rule
Simplifies PreprocessPackageInfo a bit.
2014-01-19 00:49:10 +01:00
Ingo Weinhold
d4bfbab374 Implement generic Sed rule 2014-01-19 00:49:10 +01:00
Rene Gollent
e5ebc99d20 Update gcc4 webkit package to 1.2.3. 2014-01-18 12:20:45 -05:00
Ingo Weinhold
495b360b6b Add support for explicitly preventing rebuilding packages
Due to depending on dynamically built files, package files will always
be rebuilt when they are needed (e.g. when an image is built). The build
variable HAIKU_DONT_REBUILD_PACKAGES can be defined to prevent
rebuilding existing package files (even ones that are out-of-date).

Main target for this change is buildbot. We want to make sure that the
packages in the repository it builds are exactly identical to the ones
in the images, which may not be the case when the packages are rebuilt
(due to different timestamps of contained files). The respective build
order should be:

1. Build repository.
2. Without cleaning the generated directory, build different image types
   with HAIKU_DONT_REBUILD_PACKAGES defined.
2014-01-18 16:08:57 +01:00
Rene Gollent
c1bcd68267 Update Vision x86{_gcc2} packages to r949.
Updated to no longer rely on deprecated get_system_info() call.
2014-01-18 09:36:27 -05:00
Rene Gollent
428bbe8906 DwarfFile: Add missing continue for skip case. 2014-01-18 09:35:27 -05:00
Humdinger
7409123922 Removed function to add screensavers
Removed "Add..." button and drag&drop awareness, as discussed in
http://www.freelists.org/post/haiku-development/Adding-screensavers-and-fonts
In short: all apps and add-ons will come as proper hpkg.
2014-01-18 13:21:06 +01:00
Stephan Aßmus
48ee828ae3 HaikuDepot: Disable editing for read-only text views. 2014-01-18 10:34:36 +01:00
Stephan Aßmus
1bce247b22 Fleshed out more TextEditor functionality.
TextDocumentView now always has a TextEditor, but editing can be disabled.
The selection code lives only in TextEditor. Implemented more cursor
navigation code.
2014-01-18 10:34:36 +01:00
Stephan Aßmus
00d04bc7f2 TextDocumentLayout: Added more utility methods
* CountLines(), FirstOffsetOnLine(), LastOffsetOnLine(), GetLineBounds().
* Common code for finding a line in _ParagraphLayoutIndexForLineIndex()
2014-01-18 10:34:35 +01:00
Stephan Aßmus
e97d9097da ParagraphLayout: Added more utility methods
* FirtOffsetOnLine(), LastOffsetOnLine(), and GetLineBounds()
2014-01-18 10:34:34 +01:00
autonielx
8ed16a6959 Update translations from Pootle 2014-01-18 06:16:02 +01:00
Stephan Aßmus
a512ed9a8f HaikuDepot: Implement support for a blinking cursor.
However, since the selection is actually maintained in TextEditor,
the cursor can't be navigated. The code needs to shuffle around a bit.
2014-01-17 23:33:30 +01:00
Stephan Aßmus
02d77b77aa HaikuDepot: Implement a BScrollView which works.
Need to investigate why the original one wouldn't layout the
TextDocumentView to the inner size...
2014-01-17 23:33:30 +01:00
Stefano Ceccherini
3828ba8a3f Fix build of the hpet driver.
It's not in the image so it doesn't get built by default.
2014-01-17 19:33:15 +01:00
Pawel Dziepak
955e4cff94 scheduler: Weaken time slept assertion 2014-01-17 18:07:47 +01:00
Adrien Destugues
a61211c698 Remove FIND_NEXT message for find text control
BTextControl calls Invoke() when it loses the focus and the text has
changed. We don't want this to trigger a search, and instead rely on the
user pressing enter to run the search.

Fixes the search happening again when closing the search bar (escape key
or otherwise), or clicking on the page after searching. Fixes #10168.
2014-01-17 15:42:53 +01:00
Adrien Destugues
ab390d3af3 Style fixes and allocation checks 2014-01-17 15:08:57 +01:00
Adrien Destugues
bb03a92ef6 Some style fixes.
More work is needed for this new file to completely follow the style
guidelines. Also added several FIXMEs and TODOs.

This doesn't seem to break anything on my machine however, and was
confirmed to help by several users, so we may as well use it.
2014-01-17 14:46:42 +01:00
Adrien Destugues
a35f568273 Revert part of previous patch
Checking only the visible resolution and colorspace isn't enough to call
two modes equal, otherwise it is not possible to change the refresh rate
anymore.
2014-01-17 14:45:11 +01:00