Commit Graph

49490 Commits

Author SHA1 Message Date
John Scipione
fdc0552997 IconSaver: add authors to authors list
…already in copyright statements
2014-01-27 14:35:15 -05:00
John Scipione
97e1b053b6 Pairs: store vector icons, new size menu
* Search for vector icons from MIME database once at start,
  limit to application super-type, this fulfills a TODO in the code
* Use a std::map keyed by a hash to avoid duplicate icons
  eliminating _HasBitmap()
* Store the vector representation and then only build bitmaps
  when needed
* Convert uses of int to int32
* Convert from using BList to BObjectList, simplified cleanup
* Rename variables and methods to not abbreviate/be more clear
  e.g. fPosX, fPosY => fPositionX, fPositionY
  e.g. _GenerateCardPos() => _GenerateCardPositions()
* Renamed PairsTopButton to PairsButton
* Integrate Size submenu into New menu item.
  Size menu item goes away, you can select New to get a new game at
  the current difficulty, or, you can drill down in the New menu to
  choose from Beginner, Intermediate, or Expert.
* Add new Size menu to set the icon size: Small (32x32), Medium (64x64),
  or Large (128x128). Default is medium
* Rename MENU_SIZE message constant to MENU_DIFFICULTY for clarity
* Eliminate PairsGlobal.h, distribute constants to appropriate files.
2014-01-27 14:17:36 -05:00
John Scipione
0933046655 Pairs: update version number to 0.9-gamma 2014-01-27 14:02:14 -05:00
John Scipione
c6b0a589df Pairs: Style fixes and update copyright headers.
Update long description in rdef
2014-01-27 14:02:14 -05:00
Jérôme Duval
bfdb2a4938 scsi_periph: check block_size against zero in io().
* should help with #10466
2014-01-27 19:46:11 +01:00
Jérôme Duval
06254ef863 app_server: adjust Freetype dependency.
* added DrawingContext.cpp and ServerCursor.cpp
2014-01-27 18:07:54 +01:00
Ingo Weinhold
73ac4cdc3f truncate_string(): Be a lot laxer wrt. rounding incaccuracies
Instead of 1/10000 we now add 1/128 to the width to compensate for
rounding inaccuracies. Due to the limited float mantissa precision
(23 bit) the previous value would already have no effect for relatively
small widths (>= 128).

Fixes #10455.
2014-01-27 16:29:08 +01:00
Adrien Destugues
50df6e9824 Add missing pipe character in KDL keymap.
For non-US keyboards, the extra 102th/105th key is used to reach \. But,
we also need it to report | when shifted (this is the key left to
"enter").

This affects only USB keyboards. Thanks to gordoncjp for reporting!
2014-01-27 10:57:11 +01:00
Adrien Destugues
a36c1c0590 Fix clip_to_picture test app
* We want the text to be drawn on the clipping bitmap with alpha
blending, to get an useful mask.
2014-01-27 10:57:10 +01:00
Stephan Aßmus
f429142df9 Paragraph::Remove() Keep last remaining span as empty span. 2014-01-27 10:42:31 +01:00
Pawel Dziepak
819824e020 kernel/{x86, vm}: Add more error checks in VM initialization 2014-01-27 05:36:30 +01:00
Pawel Dziepak
931ce674a9 scheduler: Fix core unassignment 2014-01-27 05:36:30 +01:00
Pawel Dziepak
7adce94d45 scheduler: Check team user time timers before entering scheduler
User timers may cause another thread to become ready in which case we would
like this to happen before scheduler_reschedule() chooses next thread to
be executed.
2014-01-27 05:36:30 +01:00
Alexander von Gluck IV
27c7c040de HaikuPortsCross: Add rest of needed bootstrap packages for PowerPC 2014-01-26 14:33:11 -06:00
Alexander von Gluck IV
800d5376f9 package kit: Disable curl requirement on bootstrap build
* As per the mailing list.
* Introduce HAIKU_BOOTSTRAP_BUILD define to sources
  to let them know they are taking part in a bootstrap
2014-01-26 10:42:37 -06:00
Stephan Aßmus
6f173f11f3 TextDocument: Don't leave empty paragraphs when inserting line-breaks.
Instead, add one empty TextSpan. This commit resolves the last of the
very obvious problems when editing. More subtle ones may still surface.
2014-01-26 15:20:02 +01:00
Stephan Aßmus
90d1cbe3e4 ParagraphLayout: Handle empty paragraphs.
Add one LineInfo for the empty TextSpan, if they have one. This gives the
layout a height for the one, empty line.
2014-01-26 15:20:01 +01:00
Stephan Aßmus
3627434d2b MarkupParser: Make sure added paragraphs are valid
They need to contain at least one TextSpan, even if empty.
2014-01-26 15:20:01 +01:00
Stephan Aßmus
bd68f78d47 Paragraph: Cache length 2014-01-26 15:20:00 +01:00
Ingo Weinhold
bf3d27539b Add Haiku repository config only optionally
The HAIKU_ADD_HAIKU_REPOSITORY_CONFIG build variable can be set to add
the Haiku repository config to the image.
2014-01-26 15:11:15 +01:00
Ingo Weinhold
902fd96ce2 MimeInfoUpdater: Don't touch the MIME DB
Use the new SetIconForType() and SetSupportedTypes() versions and
request the MIME DB not to be updated. This changes the
update_mime_info() and mimeset (without -a/-A) behavior in that they
only modify the (application) file attributes, now. Addresses #10453.
2014-01-26 13:43:05 +01:00
Ingo Weinhold
0973f2a791 libbe_build: Sync BAppFileInfo 2014-01-26 13:43:05 +01:00
Ingo Weinhold
c41356fab5 BAppFileInfo: Add method versions that don't touch the MIME DB
Add SetSupportedTypes() and SetIcon[ForType]() versions with an
additional bool updateMimeDB parameter. If false, the method doesn't
update the MIME DB entries for the type.
2014-01-26 13:43:04 +01:00
Ingo Weinhold
3b07762c54 BAppFileInfo: Coding style update
Also remove doxygen comments.
2014-01-26 13:43:04 +01:00
Stephan Aßmus
9de9ccde67 TextEditor: Two style fixes. 2014-01-26 11:24:56 +01:00
Stephan Aßmus
aa1800bb89 TextDocumentLayout: Remove any extra ParagraphLayouts ...
... when adapting to changes in the TextDocument. There should be more
explicit listener support for keeping the TextDocumentLayout in sync with
the document.
2014-01-26 11:23:20 +01:00
Stephan Aßmus
66b61b4784 MarkupParser: Fixed issue with last paragraph...
... when the last char of the markup is \n, it shall yield one last
paragraph that is empty (doesn't contain the \n which is still part
of the preceding paragraph).
2014-01-26 11:16:37 +01:00
Stephan Aßmus
e9d9561cfb TextDocumentLayout: Text offset at end of last paragraph...
... now yields the last paragraph index and does not subtract
the paragraph length from the text offset.
2014-01-26 11:11:26 +01:00
Stephan Aßmus
38c65defc5 MarkupParser: Don't append line-break to last paragraph. 2014-01-26 11:10:28 +01:00
Alexander von Gluck IV
547466c035 ppc: Add icu HaikuPortsCross package
* Work towards resolving #10240
2014-01-25 23:44:18 -06:00
Ingo Weinhold
ee2974dadb mime/Database: Add SetIcon[ForType]() BBitmap* version
When switching AppMetaMimeCreator from BMimeType to Database the
SetIcon[ForType]() calls with a BBitmap* ended up calling the vector
icon version with the icon_size as the data size argument, thus not only
not writing the bitmap icon attributes, but also clobbering the vector
icon attribute.
2014-01-25 11:53:47 +01:00
Ingo Weinhold
6ef57ae2a9 pkgman: Add full-sync command
* BSolver/LibsolvSolver: Add FullSync() method. It uses libsolv's
SOLVER_DISTUPGRADE mode.
* BPackageManager: Add FullSync() using the new solver mode.
* pkgman: Add full-sync command.

The new command is similar to the update command without arguments, just
more aggressive, allowing downgrading or even removal of packages, to
match the state of the repositories. Just like "update" it doesn't work
properly yet.
2014-01-25 10:47:35 +01:00
autonielx
e08720f8f2 Update translations from Pootle 2014-01-25 06:14:51 +01:00
John Scipione
1c56a03c51 Icons Screensaver: Get icons from MIME db again
The previous method only queried application icons, not document icons.

Unfortunately, the app icons in the MIME DB are broken/not present.
IconsSaver only displays document icons for the time being.

Because of better error checking the garbled icons are filtered out though
at least.

Next step is to fix the application icons in the MIME DB.

Some other changes:
* Don't draw if the BBitmap was not filled out correctly
* Add Vincent Duvert to authors list, he's already in copyright
* Convert fVectorIcons from a BList to a BObjectList
* Put vector_icon struct in it’s own header (needed for above)
* Remove type param from vector_icon struct
* Bump max icon count to 300, hopefully this should be enough, 128
  is too few for app and document icons in default install.
2014-01-24 16:01:35 -05:00
Pawel Dziepak
82bcd89b92 kernel: Add CPUSet::{Clear, Set}BitAtomic() functions 2014-01-24 13:59:58 +01:00
Pawel Dziepak
03451e4cc1 kernel: Fix deadlock with thread sending signal to itself
UserEvent can be fired from scheduler_reschedule() i.e. while holding current
thread scheduler_lock. If the current thread goes sleep and during reschedule
one of its timers sends a signel to it, then scheduler_enqueue_in_run_queue()
attempts to acquire again its scheduler_lock resulting in a deadlock.

There was also a minor issue with both scheduler_reschedule() and
scheduler_enqueue_in_run_queue() acquiring current CPU scheduler mode lock.
2014-01-24 13:59:58 +01:00
Gerasim Troeglazov
b940183529 PSDTranslator: Fix array deletions. Fix #10370, CID 1162765 2014-01-24 11:31:21 +00:00
Rene Gollent
86eb11f1d8 Update BePDF and liblayout.
- Resolves failures due to removed get_system_info() symbol. Thanks to
Chris Roberts for the updated liblayout.
2014-01-23 19:32:45 -05:00
Adrien Destugues
35480631f2 Fix various issues with cookie time.
* This is more tricky than it looks.
* We probably want easier conversions from struct tm to BDateTime, and
direct parsing/formating there.
2014-01-23 19:24:34 +01:00
Jérôme Duval
8e887ea244 Message: use BString.Split().
Could help with #10209.
2014-01-23 19:03:31 +01:00
Adrien Destugues
afdca74d9b Make signal handler static
We don't want this method to be exposed in the global namespace!
Also add a note about removing this signal-based solution when our
close() method can be interrupted in other ways.

thanks axel for watching!
2014-01-23 17:23:29 +01:00
Adrien Destugues
d417133ed2 Fix cookies with far expiration date.
Some websites set cookies expiring in the (not so) far future, after year 2038.
So, using time_t to store the cookie expiration date won't do. Use the
BDateTime class instead.

This makes goodsearch.com login work again (#10460).
2014-01-23 17:22:46 +01:00
Adrien Destugues
281727261d urlRequest: interrupt syscalls using a signal
Sometimes an HTTP request would get stuck in a call to connect(). While
our read() and write() implementations are interrupted if you close()
the socket, our connect() isn't. It would nonetheless abort the
connection process, and connect would stay blocked for quite a long
time.

When navigating away from a page, WebKit closes all pending connections,
and in our network backend this also means freeing the request object.
But, the destructor can't be called until the thread has stopped
running, to ensure proper cleanup.

Avoid the lockup in connect by sending a signal (SIGUSR1) to the thread
we want to unlock. This interrupts the syscall, and the thread exits
immediately.
2014-01-23 16:01:39 +01:00
Stephan Aßmus
d5c2ed6b14 FileRequest: Better error handling for size mismatches 2014-01-23 10:20:22 +01:00
Adrien Destugues
9e751dda2e Let the PLL lockup before using it.
* The PLL need some time to stabilize and generate a reliable pixel
clock
* Enabling the display pipe before that happens leads to some frames
with bad timing. This may confuse some VGA displays into entering
"unsupported mode" error.

Fixes #10271. Thanks for investigating this!
2014-01-23 08:27:15 +01:00
John Scipione
0def0b0d62 Icons Screensaver: Grab vector icons via query, fixes #10166
Iterate through each BFS volume and find vector icon data in apps
using a BFS query. Cap off at 128 total icons, we could get more if
desired. Default install comes with ~100 at present.

Make sure we have at least 20 icons (15 display at a time) before we
start drawing icons.

Rename VectorIcon to vector_icon and treat it like the POD struct that it is.
Also add a type_code parame to vector_icon that should be set to
B_VECTOR_ICON.

Some style fixes also included, e.g. turned defines into static const int32’s.
2014-01-22 20:43:22 -05:00
John Scipione
3cbb1132f8 Icons Screensaver: Style fixes only 2014-01-22 20:39:37 -05:00
John Scipione
05cf63e3a7 Icons Screensaver: Update copyright header and version
Add myself to authors, assign copyright to Haiku, Inc.

Bump version to 1.0.1-final, update short and long description
2014-01-22 20:35:05 -05:00
Stephan Aßmus
000c26330b TextDocumentLayout: First/LastOffsetOnLine() forgot to convert...
... back from paragraph local offsets to document global offsets.
2014-01-22 23:18:26 +01:00
Stephan Aßmus
937ad5c6b8 ParagraphLayout: Off-by-one error in LastOffsetOnLine() 2014-01-22 23:17:48 +01:00