Commit Graph

38463 Commits

Author SHA1 Message Date
Hamish Morrison
2e7b5f9e18 NetworkCookieJar: don't leak a new cookie if it has expired 2013-02-09 16:01:43 +00:00
Alexander von Gluck IV
dcaec19c9a AppServer: Organize "HWInterface" classes
* Organize interface classes into directories
* Long term this will assist in the multi-head
  interface / accelerant changes.
* local draws to the local hw accelerant
* remote draws to a remote connection (???)
* html5 draws to... an html5 canvas?
2013-02-09 08:51:13 -06:00
John Scipione
4c064a8451 Move documentation from Path.cpp to Path.dox
And clean it up a bit. Kept brief description in source.
* Also added Axel to authors in Path.dox and Path.cpp because his name
  appears in git blame as working on the docs and code for the file.
  I hope he doesn't mind.
2013-02-09 00:39:53 -05:00
John Scipione
fc9827011d Moved NodeMonitor docs to Haiku Book. 2013-02-08 20:39:35 -05:00
John Scipione
81c42a7685 Move documentation from NodeInfo into the API docs.
* Delete the docs from NodeInfo.cpp and NodeInfo.h
* I snuck a couple of style fixes into NodeInfo.cpp
* I had to make a small modification to MimeType.dox to prevent it
  from overriding the docs of one of the methods in NodeInfo.dox.
2013-02-07 23:17:01 -05:00
John Scipione
486aaa49f3 Check to make sure lastFocus is not NULL before using it.
This prevents an app_server crash on startup for me most likely
introduced in hrev45252. (Just a few commits ago)
2013-02-07 21:13:09 -05:00
Hamish Morrison
fef7dd705f HttpHeaders: header field names are case insensitive.
Whitespace before and after tokens should be ignored.
2013-02-07 19:32:14 +00:00
Axel Dörfler
4db1a8c61d app_server: reworked SetFocusWindow() logic a bit.
* The normal mouse mode now only uses the window that had focus last if that
  window is one that does not support to be the front window (such as the
  desktop).
* This should keep the logic of r41264 without the drawbacks (see #7280 for
  more information).
* Added _WindowCanHaveFocus() method.
* This should fix #7630.
2013-02-08 00:59:15 +01:00
Axel Dörfler
d6bb64d848 app_server: Added NormalMouse() and ClickToFocusMouse() methods.
* Made FocusFollowsMouse() inline.
* For convenience only.
2013-02-08 00:59:15 +01:00
Axel Dörfler
5c1b6cc3d4 Style cleanup. 2013-02-08 00:59:14 +01:00
Hamish Morrison
02deec6403 BSecureSocket: Read and Write should return 0 for closed sockets. 2013-02-07 18:42:39 +00:00
Niels Sascha Reedijk
f00edeb7e3 Automatically pick port 443 for HTTPS 2013-02-07 18:06:45 +00:00
Niels Sascha Reedijk
4e607e1aae Enable HTTPS connections.
Using more modern network classes:
 * BNetworkAddress instead of BNetAddress
 * BSocket and BSecureSocket instead of BNetEndpoint
2013-02-07 18:06:02 +00:00
Niels Sascha Reedijk
d1b6afe678 Re-enable the services kit from GSOC 2010
* Use a public domain MD5 implementation when the OpenSSL one is not available
 * No functional changes
2013-02-07 18:05:38 +00:00
Janus
9566700897 Fix7734. Avoid race conditions in ToolBar animation
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-02-07 23:17:57 +01:00
Janus
74e14f5c70 Fix #8781. Display rotated images with alpha channel properly
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-02-07 23:01:11 +01:00
John Scipione
820dca4df6 Big docs cleanup.
* Fixed headers including:
  - All rights reserved not All Rights Reserved.
  - name, email@domain.com not name <email@domain.com>
  - tabs and spaces
  - Authors: not Documented by:
* Renamed string.dox to String.dox
* Renamed midixxx.dox files to MidiXxx.dox
* Moved images into images subdirectories and updated Doxfile.
* Re-format all files with tabs instead of spaces.
* Fix many spelling mistakes.
* Added all files, classes, structs, and enums to libbe group.
2013-02-07 02:01:19 -05:00
Stefano Ceccherini
8cf4ba89b6 Add a TODO comment 2013-02-06 08:28:41 +01:00
Stefano Ceccherini
8a6337d0f8 Converted the "net_interfaces" mutex into a recursive locker, and
acquire it in Interface::SetDown().
2013-02-06 08:28:41 +01:00
Dancsó Róbert
ab23285fbd Corrected system name translation for Playground app.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-06 19:51:20 -05:00
Dancsó Róbert
054c290817 Corrected translation for "Clock" tab's strings in the Time preference app.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
Note: Judging by the logs, this should have been part of hrev45037.
2013-02-06 19:36:31 -05:00
Janus
03352b04c5 Fix #7736. Avoid memory corruption
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-02-05 23:31:02 +01:00
Axel Dörfler
43ee85f69c BMenuField: fixed broken view color.
* Apparently, I only tested the other case :-)
* This fixes bug #9433.
2013-02-05 23:19:20 +01:00
Axel Dörfler
fdff8a09a1 Minor cleanup.
* Slipped through; forgot to save.
2013-02-05 00:25:57 +01:00
Axel Dörfler
0a7975bfed BSlider::SetPosition() now calls BSlider's SetValue().
* Before it directly called the BControl version which doesn't really
  make any sense, and prevented visual updates.
2013-02-05 00:23:10 +01:00
Axel Dörfler
0d7d4957aa DriveSetup: improved size slider.
* It uses size_for_string() to display all sizes which also fixes
  using MiB for one, and MB for the other size string.
* It is no longer limited to 1M granularity by itself, but can have
  arbitrary granularity as long as the number of possible values
  remain smaller than 2^31.
* This means it can also handle values beyond 4TB now.
* The sizes that are set programmatically retain their full resolution.
* CreateParametersPanel still uses 1M granularity for now, though,
  as we would otherwise need to be able to parse a size string with
  a unit.
2013-02-05 00:21:59 +01:00
Axel Dörfler
7ff0829758 Minor style cleanup. 2013-02-04 23:52:32 +01:00
Axel Dörfler
cf0ea4fbba DriveSetup: fixed crash in CreateParametersPanel.
* Changed order of calling Init() vs. _CreateViewControls(). This
  fixes bug #9422.
* The panel now hides (instead of disabling) the name or type control
  if those aren't supported, anyway.
2013-02-04 23:06:13 +01:00
Axel Dörfler
dbd6a97c7b Minor cleanup.
* Reordred methods to their declaration order.
2013-02-04 23:05:15 +01:00
Axel Dörfler
39b9d0f07f BMenuField: use panel background color as default.
* There is no reason the BMenuField should behave differently from
  any BControl here.
2013-02-04 22:11:14 +01:00
Jerome Duval
7ab100361f /dev/random: style changes and use MutexLocker. 2013-02-03 16:47:57 +01:00
Matt Madia
401bf7a0b5 Renamed Save button to Apply. Fixes #7533. 2013-02-02 14:12:12 -05:00
Matt Madia
0288eb7742 Reword an alert prompt to be less detailed, but more correct.
Resolves #6654. To note, AFAICT, this code block should never be executed.
However, I did feel comfortable removing it, in case the location of Trash
is relocated in the future.
2013-02-02 12:26:49 -05:00
fishpond
ac78048b58 /dev/random: added capability to accept writes. 2013-02-02 13:33:13 +01:00
Axel Dörfler
4ec2ca4e16 DriveSetup: renamed some files, fixed catalog.
* Already renamed the classes within those files earlier.
* The AbstractParametersPanel class was missing from the catalog.
2013-02-02 01:13:20 +01:00
Axel Dörfler
9deef7d466 DriveSetup: show content type if there is no type. 2013-02-02 01:13:19 +01:00
Axel Dörfler
443522551e Fixed design issues in BPartitionParameterEditor.
* The user of an editor needed knowledge about the editor in order to make
  use of it.
* Furthermore, the BPartitionParameterEditor exposed type specific
  functionality that it shouldn't know anything about, either.
* We may now define a number of known parameters per editor type; right now
  there is only "type" as it's needed by DriveSetup.
* Adapted all disk systems, and DriveSetup to the new API.
* Renamed CreateParamsPanel, and InitializeParamsPanel to *ParametersPanel
  in DriveSetup.
* They now share a common base class AbstractParametersPanel.
2013-02-02 01:13:19 +01:00
Axel Dörfler
a206dee38e DriveSetup: improved default window size.
* The default width will no longer make the parameters and partition type
  columns visible.
* Fixed default size of those two columns -- I did not notice that the column
  state was being restored before, and thought it would just be another oddity
  of BColumnListView :-)
* Since MainWindow maintains its size pretty much itself, the constructor no
  longer gets a BRect.
* The window will now also be resized vertically to make space for all the
  partitions (only affects first launch without settings file).
* Also made the window a bit higher by default.
2013-02-02 01:13:18 +01:00
John Scipione
b7733e0655 Move Mime.h documentation to the API docs. 2013-01-31 20:47:06 -05:00
Michael Kanis
777178a56f Call UpdateButtons on mouse_movement data for ALPS device
This fixes problem with B_MOUSE_DOWN messages produced by Thinkpad
TrackPoint buttons. Those messages have 'clicks' parameter always
equal to zero. Solution was suggested by korli. Thanks!

Fixes #8978

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2013-01-31 21:41:14 +01:00
John Scipione
c33a865c7c Style fixes only. 2013-01-31 14:29:15 -05:00
John Scipione
c491b5ad85 When the workspace changes use the passed in workspace screen mode
...instead of the current workspace screen mode that we are switching from.
Fixes #9415
Also don't ignore the returned the status code when updating the screen mode.
2013-01-31 14:17:31 -05:00
Stefano Ceccherini
c0b42ec1c1 Fix out of bounds access.
key.first is a pointer, so we shouldn't use the & operator here.
CID 610870 and 610871.
Should also fix ticket #9184. At least I cannot reproduce it anymore.
2013-01-29 21:45:22 +01:00
Alexander von Gluck IV
00bc40ad58 radeon_hd: Fix DisplayPort link training
* Original changes by Bill Randle
* Includes a large number of modifications
  and cleanups.
* Add a "currentMode" to the gDisplay to
  enable easier checking of intended changes.
  (we pass the display_mode around quite a
   bit, adding a "currentMode" allows code
   to know the intended display mode being set
   without passing the mode pointer around as
   much)
2013-01-29 12:29:11 -06:00
Axel Dörfler
8317edb350 DriveSetup: Removed (some) knowledge about initialization.
* Instead of guessing whether or not to show the InitParamsPanel, the panel
  will now no longer show itself if the disk system does not have an editor,
  and silently succeed.
* This also fixed a potential crash if the editor could not be created for
  some reason.
* Minor cleanup.
2013-01-29 01:13:42 +01:00
Axel Dörfler
856f538b79 Minor cleanup. 2013-01-29 01:12:06 +01:00
Axel Dörfler
d0ecb6dafc BPartition::CanInitialize() now returns false if the size is 0.
* This should fix #9405; I cannot test it right now due to a missing
  CD-ROM.
2013-01-29 00:20:01 +01:00
Axel Dörfler
5a81662642 DriveSetup: Added column for the partition type.
* This implements ticket #4235.
2013-01-29 00:12:31 +01:00
Axel Dörfler
2dd0a26ac0 gpt: Fixed off by one error.
* The backup header would have been written one block behind the actual
  last block. Well, at least it would have tried to do so :-)
2013-01-29 00:02:31 +01:00
Axel Dörfler
7775bfeb6b gpt: Always use at least 4K to align partitions.
* Many of today's disks that use 4K internally don't advertize this.
2013-01-28 22:51:53 +01:00