Commit Graph

57615 Commits

Author SHA1 Message Date
Philippe Houdoin
ce04a43add TextSearch: avoid calling ChangesIterator's method when null
Fixes #9874
2017-11-07 14:35:25 +01:00
Philippe Houdoin
653c767602 TextSearch: several small improvements
* Wakeup periodically search thread, cancelling should be
  more responsive now...
* Show Lines setting is now saved too
* Fix a bug, current file is display again while searching.
* Always pass line number, if any, to invoked app.
  Works with StyledEdit as with Pe.

Partially fix #13289.
Another change will add "open with" context menu and remove "Open with Pe".
2017-11-07 10:37:21 +01:00
Augustin Cavalier
83e8a2654c Revert "userguide: fixes link to repositories pref page."
Revert "docs: promote SoftwareUpdater as easy tool to update Haiku."

This reverts commit 6487273924.
This reverts commit 8aab3a0d5e.

--

The Userguide and Welcome Guide are written and managed in the Userguide
Translator, not in the tree.
2017-11-06 19:56:56 +01:00
Philippe Houdoin
6487273924 userguide: fixes link to repositories pref page. 2017-11-06 19:13:07 +01:00
Philippe Houdoin
8aab3a0d5e docs: promote SoftwareUpdater as easy tool to update Haiku.
The welcome page was still saying the only way to update Haiku
is per command line. Not as much welcoming as one could expect
since SoftwareUpdater is now available.

Add SoftwareUpdater to the list of Haiku's applications in User Guide.
2017-11-06 19:06:48 +01:00
Philippe Houdoin
359b82e26a TextSearch: unbreak 32bits builds 2017-11-06 18:08:35 +01:00
Philippe Houdoin
33d4c8a62e TextSearch: way speeder by using xargs + grep
* Previously, each file was starting a shell to run grep
  command on it. Very suboptimal performance, big overhead.
* Now a thread write each file path to xargs input,
  while another start xargs, let it distribute files on
  grep processes (one per cpu) and collect results asap.
* This bring results way faster than previously.
* Rename Escape Text setting into Regular Expression, as
  name was more after shell workaround than after function.
* While it doesn't use a native text searching, by
  reusing both grep and xargs power, it answer the main
  issue with #9529.
2017-11-06 16:31:17 +00:00
John Scipione
2d27c2d003 Deskbar: Fix bug where items are sometimes wrong size
in vertical mode because the menu's MaxContentWidth is too small.

Fixes #13715
2017-11-05 21:10:40 -08:00
John Scipione
c0be54904f Deskbar: Fix bug calculating position of replicant icons
...in horizontal mode.

fTime->Frame().left was not in the correct position because the
window isn't yet done resizing. Instead calculate left from the
right edge of the drag region instead.
2017-11-05 21:04:14 -08:00
John Scipione
7b7bf68d71 Deskbar: create new constant kClockMargin and use it
defines the (minimum) margin between clock and replicant icons

Was used in a couple different forms, now all in 1 constant
2017-11-05 21:04:13 -08:00
John Scipione
a44504a168 Deskbar: Refactor TRelicantTray::LocationForReplicant()
* if index == 0 return right away, no calculation required.
* rename rect to rowRect then copy it into replicantRect.
  - This makes it clearer to me what's going on.
* don't have to check if index > 0 in horizontal mode anymore since
  we are checking it upfront.
* introduce replicantWidth variable for understanding
* reduce indent

Was calculating the height in multi-row mode twice. Instead, use
the saved height, if that isn't set calculate height as before,
if no replicants, use minimum height (16px) and don't calculate.
2017-11-05 21:04:13 -08:00
John Scipione
d8357181eb Minor whitespace style fix in TReplicantTray class
spacing private variables, no functional change intended.
2017-11-05 21:04:12 -08:00
John Scipione
32b0035a9f Deskbar: Rename some methods, variables, and call method
Rename IconCount() method to ReplicantCount()

Rename fChild and child to fReplicantTray and replicantTray
2017-11-05 21:04:12 -08:00
John Scipione
c62a389196 PowerStatus: Make battery 16x16 in Deskbar
Frame was a bit wider than it needed to be to fit, battery is same
size as before.

Moved the lightning right 1px and down 1px to fit better

expands to show battery percentage more compactly as well.
2017-11-05 21:04:11 -08:00
John Scipione
3b8cb30034 Deskbar: Set app menu width to drag region width
...in vertical mode. This is a simplication that is possible because
I am confident that the drag region is the right size at this point
so we don't have to lookup the window width or app width setting.

This led to further code simplications to vertical frame sizing.
Use MenuBar frame for right dimension always because it is set even
if fTrayLocation were to be set to 0.
2017-11-05 21:04:11 -08:00
John Scipione
c0dc265c3b Deskbar & PowerStatus: Realign Replicants
Added a new message constant to Deskbar kRealignReplicants which
is called to realign replicant icons. Add routing so that if you knock on
Deskbar's front door (Application) it will get routed to the right view, in
this case the repliant tray that knows how to realign replicants.

Send a message with this newly created constant in PowerStatus when
the width changes because you turned the label on or off. This makes
it so that when you show or hide the battery percentage it will not overrun
the clock.

Realign Replicants is a common case.

Fixes the rest of #8641
2017-11-05 21:03:23 -08:00
John Scipione
c3c3360f40 Deskbar and PowerStatus: style updates
80 char limit in BarApp.cpp
2 newlines and remove unnecessary curly braces in StatusView.cpp

Replicant: tiny whitespace style fix and remove trailing tab chars
2017-11-05 19:41:55 -08:00
John Scipione
70ad528943 Deskbar: Position clock & replicants better
This fixes some subtle layout issues. The replicant icon
positions and clock position has been made more consistent
in both vertical mode, and horizontal mode.

There is a fixed amount of space between the last replicant
and the clock before it wraps to next row. This now works
at different font sizes.

Use matching 3px of space between the clock and the dragger
on one side and and between the replicant and the dragger
on the other side.

Reparent ResizeControl from ReplicantTray onto DragRegion and
readjust everything.
2017-11-05 19:41:55 -08:00
John Scipione
9df5205c65 Workspaces: Make sure settings is set only once
... fixing oversight in hrev51512.

Erase the file and write all settings to disk each time.

When Workspaces is running in a window WorkspacesSettings
is destroyed first, then WorkspacesView is destroyed.
WorkspacesSettings saves all settings except for 'switch on
wheel', then WorkspacesView reads the settings in from
disk, tacks the switch on wheel setting on, then writes
the settings back to disk.

If WorkspacesView is a (Deskbar) replicant instead the
WorkspacesSettings steps are skipped. WorkspacesView reads
in the settings from disk, tacks 'switch on wheel' on, erases the
file, then saves all settings back to disk. Use ReplaceBool to
ensure that the 'switch on wheel' settings is added just once.

Create the file if it doesn't exist in either case.

Don't check Unflatten status because will fail on empty file.

SaveSettings on the view before opening Deskbar replicant
so that 'switch on wheel' gets loaded.
2017-11-05 19:24:19 -08:00
Michael Lotz
93596e8037 package_repo: Fix update command when used with relative target.
Renaming of the temporary repo file failed when used with a relative
target path. The path was appended twice in such a case. Also when
used with a specified base directory, the relative temporary repo file
wasn't reachable from the changed working directory.

To fix both cases, create the BEntry pointing at the temporary repo
file before changing the directory and rename it using only the target
leaf name.
2017-11-05 23:04:09 +01:00
Humdinger
346d149694 Properly terminate property_info lists
BListView's property_info list lacked termination, resulting in
garbage output at the and of 'hey getsuites'.

Use { 0 } everywhere for sake of consistency.

Thanks to waddlesplash for spotting the bug an providing the easy fix.
2017-11-05 18:43:21 +01:00
Andrew Lindesay
f0665db479 HaikuDepot: Improved logging control
The application had previously no means to control the verbosity of
logging.  This excessive logging meant that it was bit hard to
understand what is going on.  Now it is possible to define the level
of logging that is output; especially as the application pulls-down
data from the remote server system.
2017-11-05 15:26:35 +01:00
Jérôme Duval
4bb883d9bf posix_spawn(): use MAX_SIGNAL_NUMBER instead of NSIG.
* fish now works with posix_spawn().
2017-11-04 17:25:42 +01:00
Augustin Cavalier
67379bfbd0 pkgman: Fixes to the new download progress meter.
* Make string-splitting UTF8-aware
 * If the window size is too small for the full string, mid-truncate it
 * Ensure the string is long enough if the window size is large.
 * Rework flushing strategy slightly.

Fixes #13750, as well as taos' unrelated issue he reported there.
2017-11-04 16:56:01 +01:00
Automatic Committer
1b4c7733e8 Update translations from Pootle 2017-11-04 06:59:41 +01:00
Automatic Committer
a9f88c6718 Update translations from Pootle 2017-11-04 06:59:41 +01:00
Jérôme Duval
04dabcfdf3 posix_spawn(): close the pipe read fd in the parent.
* also enable close-on-exec for the eventually dupped pipe write fd in the child.
2017-11-03 23:13:49 +01:00
Jérôme Duval
5623698f55 Update haikuwebkit packages for x86_64. 2017-11-03 20:56:54 +01:00
Andrew Lindesay
3d528c4a60 HaikuDepot: Change communication mechanism with server for repos
(last commit with same title only included new files - added those now)

Previously the desktop application would make a number of JSON-RPC calls
over HTTP to get the repositories.  Now it will make a single call to get
the repositories and cache the result.  This uses standard HTTP cache
signalling techniques and allows the server-side the ability to cache
the generated data as well.  Note that the model classes and parse-
related classes are generated and may not be code-style compliant.  They
are generated from JSON schema files in the server-side project.
Information about this as well as the python files used to generate the
C++ classes and headers are included in the server-side project.
2017-11-03 20:10:01 +01:00
Humdinger
af463b82f8 Removed virtualbox_guest_additions from 64bit repo
Apparently, they compile, but don't work on 64bits.
2017-11-03 16:29:57 +01:00
John Scipione
cf6569ab6a Workspaces: Move fSwitchOnWheel setting to view
... and re-enable it. Off by default. The view controls just this
one setting while the window controls the rest. However they both
share a common settings file on disk. This means that a change in
one view's wheel setting will affect all others when relaunched,
but won't affect already running instances, this is intentional.

WorkspacesSettings::_Open() method has been moved to a static
function OpenSettingsFile() and is used both by WorkspacesSettings
and WorkspacesView classes.

The switch on wheel setting was disabled for view-only (replicant)
Workspaces instances in hrev50796, this seeks to restore it.

That commit says:
"A cleaner solution would be to read the settings once if there is
no WorkspacesWindow, and use the setting from there instead."

Instead of that, we read the setting from the file on disk and
write it to disk too bypassing the window entirely.

Used local pointer style.
Some style fixes mixed in.
2017-11-02 15:21:58 -07:00
jua
1769813948 x86-64: handle stack fault for non-canonical address access
* With the amd64 architecture, the stack fault exception got a new
  meaning: it is raised when an instruction tries to access a
  non-canonical address, and the stack is referenced in the
  instruction (e.g. by its addressing mode).
  So unlike on x86, this is not a fatal exception and shouldn't
  trigger a KDL -- instead, it is to be treated like a general
  protection fault, terminating the team which caused it.

* Fixes #13744
2017-11-02 18:55:03 +01:00
Philippe Houdoin
c64b6fc967 WebPTranslator: use libwebp to identify.
Previous hardcoded checks were only aware of VP8 lossy chunk format,
leading to rejecting lossless or newer extended WebP images, while
the libwebp bellow could have handle them fine.

Fix #13712.
2017-11-02 17:30:22 +00:00
Humdinger
73edde126a Update PDFTranslator package
Needed a rebuild after the BControlLook changes.
Works on x86_64 too.
2017-11-02 08:07:36 +01:00
Automatic Committer
f8ca15688c Update pci.ids from pciids.sourceforge.net 2017-11-02 05:20:26 +01:00
Adrien Destugues
00b62cbe54 Fix DoCatalogs for MediaPlayer
since it uses gristed sources, it must be inside the multiarch block.
2017-11-01 22:01:33 +01:00
Adrien Destugues
ae80bc1f41 Make it possible to build MediaPlayer with gcc5 on gcc2 system
For now only for testing and evaluation purposes. We may switch to this
in the default image if it proves to be better at playing various files.
2017-11-01 21:30:55 +01:00
Jérôme Duval
87e6718233 POSIX: have sysconf(_SC_OPEN_MAX) return the rlimit value.
* we use this value in posix_spawn_file_actions_adddup2() for instance, ninja then
fails with "Bad file descriptor".
2017-11-01 13:07:11 +01:00
Humdinger
8357640d63 Add recently outsourced "bc" package for gcc2 2017-11-01 09:06:04 +01:00
John Scipione
092e918baa Deskbar: draw resize rect in Bounds() not updateRect
it draws correctly most of the time but when you open and close the
menu it doesn't.

Fixes #13740
2017-10-30 10:58:03 -07:00
Julian Harnath
615417e5ba BFilePanel: reset to home dir if volume unmounted
* Fix bug reported by humdinger: when the volume which is
  currently shown in the file panel is unmounted, the file
  panel's window was closed and even deleted. This is not only
  inconvenient but also a use-after-free bug waiting to happen:
  an application which keeps the BFilePanel around to show it
  again later (as recommended in the BeBook) cannot know that
  it has become invalid while it was hidden (the destruction of
  the window happens even when it's not shown).

* When receiving an unmount event for the currently shown volume,
  we now reset the view to the home directory.
2017-10-30 15:19:55 +01:00
Augustin Cavalier
a9c1157a2a pkgman: Completely rework download progress indicator.
* Remove the Unicode progress characters, instead change terminal
   background color
 * Include downloaded/total size in the displayed information
 * Include transfer rate (over the last 1s)

Here's a quick screenshot of what it looks like now:
https://i.imgur.com/x4II3Fu.png

"Inspired" by a very old patch by Axel, but almost all of this is my own work.

Fixes #13424.
2017-10-30 14:19:39 +01:00
Augustin Cavalier
055c4e1406 OptionalPackages: Remove unused cruft. 2017-10-29 13:22:34 +01:00
Adrien Destugues
309c068978 FTDI: properly remove out-of-band info from data.
FTDI chips send packets of at most 62 bytes of data, with a 2 byte
header. The code assumed that the chip would return at most 64 bytes,
but with new (USB2) chips this is not the case anymore. As a result,
it was skipping only the first header in a packet and leaving the other
ones in the data stream.
2017-10-28 19:54:57 +02:00
Jérôme Duval
e1ca67697e libbnetapi: style fixes only. 2017-10-26 19:30:33 +02:00
John Scipione
a6c6dd77f3 Add Activity Monitor to regular image
... now that it has been removed from minimum it must be added
to regular image to keep it.
2017-10-23 10:49:48 -07:00
John Scipione
aa4d1b078a Remove libmedia.so and Activity Monitor from minimum
as per Jérôme's request.

Revert "Add libmedia.so to the minimum image"

This reverts commit 8eda6db9a8.
2017-10-23 10:13:24 -07:00
Humdinger
89638ad3e0 Bump yab, yab_ide packages
needed a rebuild. Something went wrong with my last uploaded
build still hitting the BControlLook ABI change...
2017-10-23 18:34:16 +02:00
Jérôme Duval
30d4a921e7 Update mesa and mpv packages for x86_64. 2017-10-23 10:32:45 +02:00
Humdinger
ee78540238 Update yab packages for gcc2 2017-10-22 19:46:23 +02:00