Commit Graph

52855 Commits

Author SHA1 Message Date
Adrien Destugues
65b32f9c38 iHaikuWebkit 1.4.9 for x86_64. 2015-01-28 16:03:49 +01:00
Adrien Destugues
5bd7028d84 Update substrate and fontboy packages.
Both received some important bugfixes and other improvements.
2015-01-28 11:16:45 +01:00
Adrien Destugues
1caaa21b4e Ninja package for x86_64. 2015-01-28 09:05:53 +01:00
John Scipione
5288f7733b Tracker: Reorder include alphabetically
No functional change intended, corrected in feature branch, but
unrelated to feature. Having this change in tree will make keeping
my Tracker feature branches up to date slightly easier.
2015-01-27 20:54:14 -05:00
John Scipione
b1a9f638da Add preliminary Net Kit intro by Philippe Houdoin
From here:
http://philippe.houdoin.free.fr/phil/beos/openbeos/network_kit/overview.html
2015-01-27 19:16:54 -05:00
John Scipione
d04b3b772c Remove trailing . from titles 2015-01-27 19:15:11 -05:00
John Scipione
7177815b20 Use regular bullets for lists, matches User Guide 2015-01-27 19:14:36 -05:00
John Scipione
3cf6e692c8 Fix typos in BReferencable docs 2015-01-27 18:17:16 -05:00
Axel Dörfler
30238c0418 Added BApplication::Signature() getter. 2015-01-27 23:40:03 +01:00
Augustin Cavalier
e7803cf1f6 Tracker: use the Layout API wherever possible.
Sorry this commit is so big, but I couldn't figure out how to do this
incrementally without breaking things.

I wasn't able to just merge Aldeck's branch, as it was a partial refactor
of Tracker and didn't just rewrite the UI creation code to use layouts,
and the changes for PM (e.g. addon loading, virtual directories) made it
very hard to merge (it doesn't even compile after an automerge) so rather
than spending time on that, I decided it'd be better to recreate his work.

Miscellaneous notes:
 - This partially cleans up BPoseView & subclasses and BContainerWindow &
   subclasses -- none of the subclasses and child views abuse the parent's
   state, child views, or layout now.
 - BFilePanel and BDeskWindow are not on layouts, because:
   * BFilePanel docs in the Be Book instructed developers that wanted to
     modify BFilePanel's layout to just use FindView() and then move the
     views around. Obviously making it use layouts will break all BeOS
     apps that do this, and there are a lot of them (Pe, WonderBrush are
     just two examples.) I've added a note to the TODO list for R2 to create
     a layout-compatible API for this.
   * Some replicants (Workspaces, for example) rely on manipulating
     BDeskWindow's drawing state. This is incompatible with layouts, as
     at least in the case of Workspaces, it breaks a layouted version
     of BDeskWindow entirely.
 - I noticed a lot of #ifdef BEOS_VERSION ... gunk in the code. Tracker
   probably didn't build on BeOS just before this commit, and now it
   won't for sure, so I intend to go through and clean that out in the
   near future.

This commit also fixes:
 - enhancement #4996 (make Tracker's navigator use vector icons)
 - bug #3039 (resizing OpenWithWindow flashes the blue border)
 - bug #3889 (OpenWithWindow redraw errors)
 - a regression that was a side effect of "dynamic_cast<BDeskWindow*>(this)"
   always returning NULL when run in the constructor. I just added a "bool
   isDeskWindow" to BContainerWindow's constructor that is only set to true
   by BDeskWindow.
 - a copy&paste error in VirtualDirectoryPoseView that was passing "uint32
   resizeMode" as "uint32 viewMode".

Thanks to Alexandre for his original branch (it was a very useful
reference), Axel (for some miscellaneous advice & encouragement),
Adrien & Humdinger (for user interface review), and Diver (for user
interface review & testing).
2015-01-27 01:43:51 -05:00
Adrien Destugues
d21c5eedf3 HaikuWebKit 1.4.9 - fixes redirect problems. 2015-01-27 12:54:28 +01:00
Adrien Destugues
6eb464d8e5 ncurses: remove non-existing headers directory
The build feature depended on a non-existing directory, causing all
dependencies to always be considered out of date by Jam.

Fixes #11664.
2015-01-27 11:07:50 +01:00
Adrien Destugues
49e8a3c652 BReferencable: implement const references with specialization
This is simpler and cleaner than my previous attempt. Thanks to Ingo for
suggesting this.
2015-01-27 10:31:08 +01:00
John Scipione
558a3eede1 Build fix for input_server filters
Apparently not linking to libstdc++ correctly is causing an error.

Also, use new(std::nothrow) when creating the input server filter
to avoid an exception from being thrown by the constructor in the
case of low memory.
2015-01-26 19:10:18 -05:00
John Scipione
a0c8352718 Add input server filters
... for switching workspaces (removed from BWindow) and
minimize all (aka Show Desktop).

This moves the workspace switch behavior out of the BWindow class
and places it into it's own input server filter that does the same
thing. The difference is that you may now uninstall the workspace
switching filter to disable the behavior. These shortcuts were not
included in the BeOS R5 version of BWindow so represent additional
behavior added to Haiku.

minimize_all (aka Show Desktop) is a new input server filter that
allows you to minimize all windows by pressing cmd+ctrl+D. If
you do not like this behavior you may uninstall the minimize_all
input server filter.
2015-01-26 18:25:27 -05:00
John Scipione
ccc6666156 BWindow: remove workspace switching shortcuts
These are going to be activated by an input server filter instead.
2015-01-26 18:24:59 -05:00
John Scipione
75e162f7d9 BWindow: style fixes
Update copyright header
2015-01-26 14:22:32 -05:00
Adrien Destugues
fbc43a7279 BNetworkInterfaceAddress: missing initialization
* As it doesn't rely on BNetworkAddress anymore,
BNetworkInterfaceAddress must now take care of initializing the
addresses itself.
* Also add some input sanitization and and asserts to ease detecting
such problems.
* Fixes #11778.
2015-01-26 17:32:19 +01:00
Adrien Destugues
36900dc861 MediaPlayer: missing B_TRANSLATE on "none" menu label
Patch by Diver, thanks!
2015-01-26 14:17:25 +01:00
Adrien Destugues
f6c0340128 Add documentation for BReference and BReferenceable. 2015-01-26 13:59:55 +01:00
Janus
7b915ffb48 Mouse: enable Revert only if settings changed.
* If changing the settings and manually reverting to the previous
values, the Revert button would stay enabled.
* Fixes #11783.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-26 11:11:36 +01:00
Janus
95ef50445f Screen: disable Apply button when no changes would be made.
* Previously this would work only in "current workspace" mode.
* Also avoid calling count_workspaces in a loop since its result is not
cached and it needs to ask app_server each time.
* Fixes #4231.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-26 11:05:31 +01:00
Adrien Destugues
e9b8242868 Add a BConstReference class.
This is a BReference that allows only const access to the referenced
object. This was not easily possible with the existing BReference for
two reasons:
* BReference<const Type> would not work, as BReference needs to change
the reference count of the referenced object. Adding mutable and casting
where appropriate wouldwork but,
* It is now also possible to assign a BReference to a BConstReference
(to the same type, of course). The reverse is not allowed, making it
more difficult to "const cast" the referenced object (it's still
possible to "get" the object pointer and cast that).

BConstReference can be used to provide shared read-only access to an
object, for example this can be used to cache non-copiable or
expansive to create objects.
2015-01-26 10:50:48 +01:00
Adrien Destugues
2ba13ecd93 getifaddrs: actually iterate over interfaces. 2015-01-26 10:50:47 +01:00
Adrien Destugues
c861dfdb7e HttpRequest: fix HTTP to HTTPS redirects
When redirected from http to https, we did not switch to SSL and port
443 and kept using unencrypted http on port 80.
2015-01-26 09:38:15 +01:00
Stephan Aßmus
7b2c59b9b8 HaikuDepot: Implemented light-weight package manager update
No, not updating packages via HaikuDepot, but a light-weight synchronization
between the system package manager list and the HaikuDepot model. After
installing or removing a package, HaikuDepot performed a very costly update
of all information by basically throwing everything away and reloading it.
Implements #11786.
2015-01-25 22:11:38 +01:00
Humdinger
29fb42ba55 Added packages for flare_x86, lbreakout2, lmarbles, ltris 2015-01-25 19:02:53 +01:00
Augustin Cavalier
819bfad2df HaikuPorts/x86_gcc2: package updates & additions.
* Doxygen 1.7.6.1 is not the current version, but it's the last in the
   1.7 line which is what we're using for the Haiku Book currently.
 * Git 2.2 has some new features (terminal coloring) and behavioral changes
   (most appeared as warning messages in Git 1.8). Most major Linux
   distros successfully switched, and HaikuPorter doesn't seem to rely
   on the old behavior.
 * PHP is a new add, I've successfully enabled some of the more commonly
   used features in our port (GD, ZLIB, CURL, i18n) so it's more useful now.
   This package does not contain any webserver integration files, but it does
   contain both the CLI and CGI interfaces as well as the builtin webserver.
 * ZSH now provides cmd:sh, so it's possible to switch your default shell to
   it. Mksh already provided cmd:sh so I didn't need to modify it. There
   are still some rough patches that occur when uninstalling Bash (e.g.
   Terminal app has an annoying alert that it can't find Bash so it's using
   /bin/sh instead) but it appears to work.
 * Go was ported in GSOC 2014 and has had a recipe since then, but nobody
   bothered to upload it.
 * RCS had an incorrect primary provide, fixed it (#9703).
2015-01-25 17:54:44 +01:00
Stephan Aßmus
4a1fc9b122 HaikuDepot: Keep reference to PackageInfos longer...
... in PackageInfoView::SetPackage() and Clear(). The sub-views reference
stuff from the previous PackageInfo instance. If we release the reference
before adopting the new package, the sub-views may still access stuff from
the previous package. For example the PackageActionView tries to avoid
rebuilding the button list and compares previous package actions to the
new actions. Particularily after the package list has been rebuild, we have
only new PackageInfo instances and the PackageInfoView may hold on to a
PackageInfo that is not still referenced anywhere else. Would be a good
explanation for #11785.
2015-01-25 10:04:23 +01:00
autonielx
08e6e2aef8 Update translations from Pootle 2015-01-24 06:36:37 +01:00
Rene Gollent
d229773736 Shortcuts: Automatic whitespace cleanup. 2015-01-23 22:18:25 -05:00
Rene Gollent
d13b9014e8 Shortcuts: Fix #11777.
- Add missing B_AUTO_UPDATE_SIZE_LIMITS flag to window, otherwise it
  never recomputes its initial size in the absence of previously
  stored settings.
2015-01-23 22:17:05 -05:00
Rene Gollent
f6099728e4 Fix #11775.
BitmapDrawingEngine:
- Check if fBitmap is NULL before releasing its reference. Since this is
  the case when a BitmapDrawingEngine is instantiated, this would lead to
  an app_server crash upon any attempt to make use of one.
2015-01-23 16:41:35 -05:00
Axel Dörfler
86f6a66bbe Mouse: make the buttons actually look pressed.
* Just making the font bold looks ugly, lazy Adrien :-)
2015-01-23 21:00:37 +01:00
Axel Dörfler
27231d807a ActivityMonitor: changed full legend width behavior.
* Only use the full width if there is only a single item, otherwise
  I think it's more confusing than helpful.
2015-01-23 21:00:36 +01:00
Axel Dörfler
9b2f561908 Mouse: minor cleanup.
* Removed no longer used class members.
* Synchronized implementation and declaration order.
2015-01-23 21:00:34 +01:00
Axel Dörfler
637cd3124e Mouse: slightly improved the look of the mouse.
* Made it a bit longer, and let the button outline stand out less.
2015-01-23 21:00:33 +01:00
Axel Dörfler
be9609b91c Mouse: made the shadow an actual shadow. 2015-01-23 21:00:32 +01:00
Axel Dörfler
ddf7ecfaa9 E-mail: take fCheckMailCheckBox into account on save.
* Only the time you entered mattered (ie. 0 would have turned
  the auto check off).
2015-01-23 21:00:30 +01:00
Axel Dörfler
88fed28aff MediaPlayer: reworked info window to use layout API.
* Use BStringViews instead of BTextView - it's more flexible (truncation,
  and tool tips), and allows for fine grained updates.
* The file name and location views are now showing tool tips with their
  full contents.
* Also, its look is now less exotic, if boring.
2015-01-23 21:00:29 +01:00
Axel Dörfler
95fdee0bc0 BStringView: added truncation support.
* Added new truncation mode B_NO_TRUNCATION.
* The Truncation()/SetTruncation() methods itself are Dano-compatible,
  however, there was no B_NO_TRUNCATION.
2015-01-23 21:00:28 +01:00
Axel Dörfler
1bfa46f230 BLayoutBuilder::Grid: added spacing setters. 2015-01-23 21:00:26 +01:00
Adrien Destugues
0e652ab2dc Forgot to reset fBitmap to NULL.
Thanks to Rene for reviewing.
2015-01-23 15:15:30 +01:00
Adrien Destugues
8bcd69044c Call ReleaseReference when a BReference is not needed
Reduces complexity and is actualñly more readable.
2015-01-23 14:57:23 +01:00
Adrien Destugues
6f3acb9163 app_server: fix misuse of BReferenceable.
Fixes #9989.
2015-01-23 13:46:04 +01:00
Adrien Destugues
84ed7b4bb4 SATGroup: fix misuse of BReferenceable object
LinearSpec is a BReferenceable, so it is not correct to allocate it as a
member of another object. Wrap it in a BReference to avoid the problem.

Fixes #11089.
2015-01-23 13:05:38 +01:00
John Scipione
a82d6bdd3e Replace 'should' with 'must' in BInvoker::SendMessage() docs 2015-01-22 13:43:45 -05:00
Automatic Committer
01f0c66a74 Update pci.ids from pciids.sourceforge.net 2015-01-22 05:20:26 +01:00
Alexander von Gluck IV
a8ac9faab8 haikuports: Update x86_64 llvm to 3.5.0-1 2015-01-22 03:00:29 +00:00
Adrien Destugues
3b520fdcd4 Fix missing include in NetworkInterfaceTest. 2015-01-21 11:18:55 +01:00