Commit Graph

39011 Commits

Author SHA1 Message Date
John Scipione
819c63ad65 Set tooltip in instance of close button, not class.
Also set a similar tooltip for the previous and next buttons and
comments for translators.
2013-02-17 21:22:03 -05:00
John Scipione
6f53c50c36 Need to call baseclass AttachedToWindow() 2013-02-17 20:41:33 -05:00
John Scipione
cdb4abbd18 Add tooltips for close tab and close find bar 2013-02-17 20:26:33 -05:00
John Scipione
8848aa106a Update close find bar button to appear similar to close tab button. 2013-02-17 20:14:17 -05:00
John Scipione
688daae9cc Don't offset close tab x on click 2013-02-17 20:13:33 -05:00
John Scipione
8236628b59 Style changes only 2013-02-17 20:13:32 -05:00
Alexander von Gluck IV
da08cea0e3 GL: Remove gcc2 no-warning hacks
* Solved in hrev45296 through updated package
* Resolves #8882
2013-02-17 18:18:17 -06:00
Matt Madia
900018fd21 Removed executable flag. No functional changes. 2013-02-17 18:46:52 -05:00
Jessica Hamilton
d097f67cee Add optional username/password fields to Web+ proxy settings.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-17 18:46:51 -05:00
Murai Takashi
9010edd275 Adds a localization to Network preference.
Fixes #9089.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-17 16:40:24 -05:00
Matt Madia
ac966d5941 LaunchBox: add Open containing folder option.
Contributed by abhiin1947. Fixes #7951.
2013-02-17 11:53:23 -05:00
Matt Madia
04c4314e15 Rewrote copyright header. s/OpenBeOS/Haiku.
Slight cleanup to included headers.
2013-02-16 14:07:00 -05:00
Matt Madia
fbcd94bde7 Automatic whitespace cleanup. No functional change. 2013-02-16 14:05:32 -05:00
Matt Madia
43b74aad59 s/OpenBeOS/Haiku 2013-02-16 13:59:39 -05:00
Matt Madia
f49d75c6a4 Renamed file. No functional change. 2013-02-16 13:59:14 -05:00
Matt Madia
eede25d31f Make FirstBootPrompt write the settings immediately upon launch.
If a user does not select anything, the default settings will be written.
Part of #9427
2013-02-16 11:19:10 -05:00
John Scipione
0a9ac70aea Move BQuery docs into Haiku Book.
... removing the docs from the .cpp and .h files and cleaning up as usual.
2013-02-14 19:36:33 -05:00
Pawel Dziepak
49518a1c15 nfs4: Take advantage of PeerAddress class in Connection::Connect() 2013-02-14 20:44:33 +01:00
Pawel Dziepak
da95db1014 nfs4: Fix {last_one,result} may be used uninitialized warnings 2013-02-14 20:44:26 +01:00
John Scipione
b3247c59fe Update BAboutWindow to use B_CLOSE_ON_ESCAPE flag. 2013-02-14 14:13:59 -05:00
Humdinger
2d1523c61d Removed the help menu from Magnify (#5012)
No other Haiku app has a help menu, we have the user
guide for that. One time we may want to link the
appropriate user guide page into all apps...
2013-02-14 17:29:41 +01:00
Axel Dörfler
33b9016ddd intel disk_system: Renamed file to match class name.
* Renamed CreationParameterEditor.(cpp|h) to PrimaryParameterEditor.(cpp|h)
  as that's what the sole class in there is called.
2013-02-14 14:34:30 +01:00
Pawel Dziepak
4c64bd932c nfs4: Fix wrong cast in nfs4_rename 2013-02-14 14:19:28 +01:00
Pawel Dziepak
c65f77dc10 nfs4: Make TRACE format strings 32/64 bit independent 2013-02-14 14:19:13 +01:00
John Scipione
3722e64004 Store and read show/hide clock setting on disk.
So that the setting will persist across reboots. This is a Deskbar
setting, not a "clock" setting. Theoretically someday if we make
it so you can replace the clock with a different clock widget we
still want to store whether or not to show the clock widget as a
Deskbar setting.
Fixes #9456
2013-02-13 17:52:01 -05:00
Pawel Dziepak
a4caa431e4 nfs4: Make sure Request::fNext is initially NULL 2013-02-13 20:26:31 +01:00
Siarzhuk Zharski
390cd3f7f9 Use B_TRANSLATE_COMMENT for "Terminal[sessions]" sub-menu
* Explain the meaning of the "Terminal" menubar entry using
  B_TRANSLATE_COMMENT with extra info for translators;
* Suggested by Oliver. Thank you!
2013-02-13 15:10:39 +01:00
Siarzhuk Zharski
a5b3caa295 %T placeholder (localized Terminal name) for title mask
* %T placeholder added into the set, available for customizing main
  Terminal window title. It should be typically replaced by the
  application name localized for the currect system locale.
* Use B_TRANSLATE instead of B_TRANSLATE_SYSTEM_NAME for the first
  menu entry in the main TermWindow menu. The meaning of "Terminal"
  term in this menu is the "Terminal session" but not the "Terminal
  Application" so using separate catkeys entry for this menu item
  avoids this inconsistency in Terminal UI localization;
* Fixes #7586
2013-02-13 11:51:02 +01:00
Pawel Dziepak
266b99b7e9 nfs4: Support callbacks over IPv6 2013-02-13 01:14:45 +01:00
Axel Dörfler
8940ad259a DriveSetup: Added support for changing partition parameters.
* Does not seem to work yet, though. The intel disk system should support it
  now, but apparently the partition's delegate is not yet fully initialized
  for whatever reason.
2013-02-12 23:28:24 +01:00
Axel Dörfler
1b2662019b Cleanup.
* There is no BDiskSystemAddOn::GetInitializationParameterEditor() method,
  and it's therefore never being called.
2013-02-12 23:26:49 +01:00
Axel Dörfler
0ec2317830 Cleanup.
* Removed superfluous redundant comments.
2013-02-12 23:09:53 +01:00
Pawel Dziepak
07b3bd59ab nfs4: Correctly parse paths with '.' or '..' 2013-02-12 23:05:32 +01:00
Axel Dörfler
32da57f74b DriveSetup: solved a few issues of CreateParametersPanel.
* I obviously wasn't really done last time: now the panel behaves as it should.
2013-02-12 22:24:16 +01:00
Axel Dörfler
d2239cb8b9 BMessage::SetString() was broken.
* We cannot use the macro for this, unfortunately.
2013-02-12 22:22:52 +01:00
Siarzhuk Zharski
ab6114fe81 Fix init.problem in setmime MimeAttribute ctor
* additional check for empty attribute values introduced;
* implemented copy-ctor and assignment operator for MimeAttribute;
* added missed initialization of parameters in the "UserArgs"
  MimeAttribute ctor;
* Fixes #9444.
2013-02-12 09:37:32 +01:00
John Scipione
859c378175 Update Deskbar to use menu text and selected menu text color prefs.
... in a couple of places where colors where being hardcoded.

Fixes #9119
2013-02-11 22:29:49 -05:00
John Scipione
3c6d2325c7 Update Tracker prefs window workspace behavior.
Basically make the Tracker preferences window work like most other
windows do as far as workspaces go.

Opens on your current workspace. If you switch workspaces then go
into Deskbar and select Tracker Preferences it will switch to
the workspace that already has the window open. If you close the
window, switch workspaces and then select preferences it will move
the window to your current workspace and show it.

This is similar to the fix for the same problem on the Deskbar
preferences window and for the same reason: the window gets hidden
when you close it, not actually deleted so we need to do a bit more
work to get the window to behave with workspaces. Hiding instead of
deleting the window allows us to remember where you were when you
closed the window, what tab you were on, what control had focus, etc.

Fixes #8000
2013-02-11 21:59:37 -05:00
John Scipione
331c9098ea Move Deskbar prefs window to current workspace if hidden 2013-02-11 21:49:03 -05:00
John Scipione
66e9410806 Switch about window to current workspace if hidden. 2013-02-11 21:25:51 -05:00
John Scipione
381629a7b6 Close about window on escape 2013-02-11 21:17:57 -05:00
John Scipione
9f7ac4312a Add methods to get and set the name, version, and icon 2013-02-11 21:17:57 -05:00
John Scipione
19ec4667bc Lock about window before deleting it on destruction
This fixes #9543
2013-02-11 12:55:30 -05:00
John Scipione
eaa6b633db Use default spacing for find bar controls 2013-02-10 23:36:38 -05:00
John Scipione
2d278e9c84 Update Web+ find bar close button.
* Put the button on the left and label it with × to indicate close.
* Make the button just wide enough to fit the label. Tested with
  font sizes 8pt to 18pt.
2013-02-10 23:28:17 -05:00
Hamish Morrison
2675e31a0c BUrlRequest: fix various issues
* Remove unused headers interface from BUrlProtocol
* Change confusing function names
* Style fixes and whitespace cleanup
2013-02-10 20:46:24 +00:00
Siarzhuk Zharski
344de4ccd1 Fix Terminal localization issues in Custom color scheme
* Localized Label of the colors menu entry was used as the key
  during loading corresponding color value from the preferences file.
  It was obviously observed only on non-English locales;
* Fixes #7209 #8256.
2013-02-10 17:45:44 +01:00
Humdinger
1baa221173 Removed Trash options from Tracker prefs.
As discussed [1][2], using a Trash is in the interest of the
vast majority of users. The setting is still present in the
Tracker settings file. SHIFT+DELETE will still bypass the
Trash.

[1]
http://www.freelists.org/post/haiku-commits/haiku-hrev45134-srckitstracker,4
[2] http://www.freelists.org/post/haiku/Removing-Trackers-Trash-options

Please enter the commit message for your changes. Lines starting
2013-02-10 11:33:53 +01:00
Humdinger
163a394833 Revert "Renamed Tracker option "Don't move files to Trash" (#9352)"
This reverts commit 45f77dcd70.
2013-02-10 11:33:51 +01:00
Hamish Morrison
64a1f5a020 NetworkCookieJar: various small fixes and updated tests 2013-02-09 17:10:10 +00:00
Hamish Morrison
c8bc218363 NetworkCookie: fix domain/path matching, and validity checks 2013-02-09 17:10:05 +00:00
Hamish Morrison
33462ef54a NetworkCookie: bring SetCookie parsing in line with RFC 6265 2013-02-09 17:09:53 +00:00
Hamish Morrison
2db5d2bc95 NetworkCookie: remove unused cookie attributes and add HttpOnly 2013-02-09 16:09:34 +00:00
Hamish Morrison
05f42aaba4 NetworkCookie: set the default path according to RFC 6265 2013-02-09 16:02:15 +00:00
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
Pawel Dziepak
a0d5a922d6 nfs4: Try connecting to all getaddrinfo() results before giving up 2013-02-05 03:23:56 +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
Axel Dörfler
9e8f937437 gpt: Added some missing pieces of supporting the backup header.
* The alternate block was not set correctly.
* The CRC of the backup header was never updated.
* We now dump both headers.
2013-01-28 22:51:52 +01:00
Axel Dörfler
403869b9fe DriveSetup: improved error reporting. 2013-01-28 22:49:48 +01:00
Axel Dörfler
5ec5667de7 ata/ahci: Move some ATA functionality into the ATAInfoBlock.
* The AHCI driver was actually ignoring sector size information, and always
  set the size to 512.
* Now both, the AHCI driver, and the ATA bus manager, use the same method of
  retrieving the sector count, and size.
2013-01-28 22:49:47 +01:00
Jerome Duval
157ec8a798 added mimetype for WPG images 2013-01-28 20:10:36 +01:00
Adrien Destugues
98b326dd2e Revert Ctrl+Alt resizing/moving changes.
This removes the solution with no convincing replacement,
and breaks most basic window management tasks such as raising a window when clicking it.

Please come back when you get the issues fixed and a real alternative to the "ugly" border highlighting.

This reverts hrev45197-45202.
2013-01-28 18:19:00 +01:00
Alexander von Gluck IV
f763771d2a swpipe: Fix llvm dependency
* Makes sure llvm gets extracted
* Thanks Jerome for the final solution.
* Seems like a hack but works
2013-01-27 19:49:52 +00:00
Axel Dörfler
5257160668 gpt: Fixed boot loader build.
* Thanks, Alex!
2013-01-27 20:34:47 +01:00
Axel Dörfler
e9cdc3129e gpt: Fixed incorrect revision. 2013-01-27 20:34:47 +01:00
Philippe Saint-Pierre
2e6221ff11 Tracker: Replace usage of ceil by ceilf 2013-01-27 14:24:52 -05:00
Axel Dörfler
953d310a47 gpt: Added support for the backup header/entries. 2013-01-27 14:16:01 +01:00
Axel Dörfler
90308ec327 gpt: Pointer style changed to preferred. 2013-01-26 21:13:00 +01:00
Axel Dörfler
ef2558c0ae gpt: Fixed a number of remaining issues.
* The header and table is now correctly written; the backup is still
  missing, though.
* The Header class is now responsible for both, the primary, and the
  backup header.
* Changed the Header constructors: the block is no longer needed. Also,
  under GCC 4 the initialization code accidentally used the read
  Header constructor.
* Fixed incorrectly copied GUID - the static_guid cannot be copied
  into a guid_t directly.
* Fixed copy&paste bug that would overwrite the offset for the child
  partition to be created.
* With all of this in place I successfully created a BFS partition
  with a GUID partition table. However, I have not yet tested if other
  systems can still read this. Also, creating two partitions doesn't
  seem to work yet, either (luckily I only need a single one ;-)).
2013-01-26 21:13:00 +01:00
Axel Dörfler
959e02aa56 gpt: for now, always add partitions at the end. 2013-01-26 21:13:00 +01:00
Axel Dörfler
9e8d42ac44 Work in progress in getting GPTPartitionHandle working.
* Tried to use EFI::Header class, but there doesn't seem to be an easy
  way to actually hit the disk -- which we'll have to do to find out
  how large the GPT table is.
* Initialization of GPT disks is now working which is why I added the disk
  system add-on to the image. However, there is a caveat, as the backup
  header and table aren't written yet.
* Partitions can be deleted.
* Creating partitions does not work yet, but I don't know yet why; in
  theory it could already work.
2013-01-26 01:33:27 +01:00
Axel Dörfler
ab31389341 Implemented write support, reorganized source files.
* Moved some functionality into their own files so that they can easily
  be reused by other code.
* Added crc32() function from FreeBSD. Implemented CRC handling and
  validation.
* Implemented missing write functionality.
2013-01-26 01:30:23 +01:00
Axel Dörfler
d013c8e96a Possibly fixed BootLoaderTest build.
* Adapted to x86_64 changes.
2013-01-25 23:37:41 +01:00
Adrien Destugues
95a11c765d Style fix. 2013-01-25 22:29:41 +01:00
Adrien Destugues
fdb61e9836 Don't allow setting a scrollbar position to nan.
Since nan != nan, the scrollbar would otherwise try to move the view to
the new position, the view would try to set the scrollbar value again,
and so on.
2013-01-25 22:17:59 +01:00
John Scipione
79fd9dac6c Check kAcceptKeyboardFocusFlag first. 2013-01-25 03:17:29 -05:00
John Scipione
70171c2634 A few changes to make this more robust.
I am able to get stuck in window management mode without ctrl+alt
held down somehow but it's not reproducable. These changes should
hopefully make this a bit more robust.
2013-01-25 03:01:53 -05:00
John Scipione
ae883c5f15 Reset cursor if kAcceptKeyboardFocusFlag is set.
This basically affects menus which are not movable, and not
resizable but have that flag set because they take input anyway.
This change shows the regular cursor over menu windows even
in window management mode when ctrl+alt are held down.

Also rename _SetNowAllowedCursor to _SetNotAllowedCursor, typo.
2013-01-25 01:27:46 -05:00
John Scipione
5a0b5a5d52 Update the mouse cursor in a couple more cases 2013-01-25 01:02:35 -05:00
John Scipione
65b9235d19 Fix gcc4 build by adding parens 2013-01-25 00:34:23 -05:00
John Scipione
feb6002cf8 Look at resize flags when setting resize arrows 2013-01-25 00:28:44 -05:00
John Scipione
3071859cc6 Update ctrl+alt window management functionality.
* Use double-headed resize arrows instead of single headed.
* Remove border highlighting, it is replaced by mouse cursor.
* Don't enter drag state if window is not movable.
* Make Ctrl+LMB resize window border like RMB.
* Define other 3 corners in default decorator and resize by them
  as well
* Update mouse cursor to show arrows when over borders and control
  is held.
* Set the move cursor on ctrl+alt if the window is movable.
* Set cursor to not allowed on ctrl+alt if window is not movable.
* Set the cursor to appropriate resize arrow on ctrl+alt+RMB.
* Set the cursor to not allowed on ctrl+alt+RMB if not resizable.
* Make window go to back when you right-click or ctrl+click
  on the tab. It doesn't lose focus though unlike BeOS R5.
2013-01-24 23:53:08 -05:00
John Scipione
e5de7e2102 Added Landon Fuller to the contributors list.
He has made several contributions including hrev45148 and hrev44909.
2013-01-23 23:52:18 -05:00
Axel Dörfler
e26ef5524c gpt: the disk system now correctly maintains free space.
* Ie. the BPartitioningInfo should now be correctly filled.
2013-01-24 01:15:26 +01:00
Axel Dörfler
f142407b03 DriveSetup: improved error reporting when deleting a partition. 2013-01-24 01:15:26 +01:00
Matt Madia
37fb247341 Renamed ReadOnlyBootPrompt to FirstBootPrompt.
The previous name is no longer applicable, as *BootPrompt is now launched on
the first boot of writable medium (e.g., USB thumb drive and hard drives).
Fixes part of #9399.

Notes:
 * BootPrompt.rdef may have lost its history.
 * The renaming was done with the following command:
   git mv src/apps/readonlybootprompt src/apps/firstbootprompt
2013-01-23 18:58:42 -05:00
Matt Madia
6f141e02e8 Renamed the button "Desktop (Live-CD)" to "Boot to Desktop".
Fixes part of #9399
2013-01-23 18:58:40 -05:00
Axel Dörfler
99fc216a95 gpt: do not advertize the partition as read-only. 2013-01-24 00:45:50 +01:00
Axel Dörfler
2077b23f14 intel disk system: restrict maximum supported size.
* The MBR can only address 2^32 blocks.
* This prevents you from initializing a disk larger than 2TB with a block
  size of 512 bytes.
2013-01-24 00:44:26 +01:00
Axel Dörfler
61ba12594b Renamed partitioning system "efi" directory to "gpt". 2013-01-23 23:21:25 +01:00
Axel Dörfler
b44f9282b7 gpt: early work in progress of a disk system add-on.
* It currently allows to initialize a disk using GPT. However, this then
  fails somewhere in the kernel.
2013-01-23 23:16:30 +01:00
Axel Dörfler
3478d6ab2d gpt: moved type map into its own header. 2013-01-23 23:15:48 +01:00
Axel Dörfler
b039ee6572 Minor cleanup.
* Renamed *MI members to *MenuItem.
2013-01-23 21:44:13 +01:00
Axel Dörfler
5e081035a7 DriveSetup: fixed device row size/name.
* Apparently, the order the fields are set matters, so the drive name
  and the size now appear in the list as they should have before.
* Leave the size field empty if the size is 0.
2013-01-23 21:27:25 +01:00
Dancsó Róbert
c8ae0dd87c DriveSetup: Added disk name to the DiskView.
* The disk device name will be shown on the disk map.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-01-23 21:27:04 +01:00
Rene Gollent
900ce215d3 Add support for template type/value parameter packs.
- Implements support for two proposed but not yet formalized
  additions to the DWARF spec with regards to variadic template
  parameters. These are nevertheless already being generated by
  gcc under some user extension tags when C++0x is specified.

Fixes #9398.
2013-01-22 20:10:45 -05:00
Rene Gollent
b68166e1da Restrict the address range dumped in crash reports. 2013-01-22 20:09:47 -05:00
Siarzhuk Zharski
e449bae891 bin/unrar outsorced to UnRAR 4.2.4 opt.package 2013-01-22 09:38:55 +01:00
Alexander von Gluck IV
ab372d6fd3 networksetup+: Simplify media check
* Lets just rely on IsWireless and friends
  in BNetworkInterface as we are checking
  the same thing twice.
2013-01-20 23:33:19 +00:00
Alexander von Gluck IV
2ddbb1e3d2 networksetup+: Adjust add-on path to match preflet name 2013-01-20 23:33:18 +00:00
Matt Madia
06437987e0 Corrected the name of the operating system.
Automatic whitespace cleanup too. No functional changes.
2013-01-20 17:53:50 -05:00
Matt Madia
6519b97eda Fixed a typo. 2013-01-20 17:50:03 -05:00
Humdinger
76f3378cd0 Renamed "Windows" to "Option" in Shortcuts GUI (#9391)
Correctly named it "Option" key as everwhere else in Haiku.
Thanks mks for pointing it out.
2013-01-20 10:05:16 +01:00
Humdinger
ab73d6ac07 Make Playground find its catalog (#9388).
Small error in the jamfile put the catalog in subfolder
so it wasn't found. As reported by mt and investigated
by diver. Thanks!
2013-01-20 09:53:23 +01:00
John Scipione
278bcb57e7 Remove docs from BitmapStream.cpp 2013-01-19 15:04:34 -05:00
John Scipione
9c840df052 Woops, I meant == not = 2013-01-19 13:17:48 -05:00
John Scipione
a8f3c5a8fb Style fixes only 2013-01-19 13:17:47 -05:00
John Scipione
840476e1cb Rename SetFamilyAndStyle variable to code matching the header and BeBook. 2013-01-19 13:17:47 -05:00
John Scipione
c969b46240 Put comments in methods, only description line outside 2013-01-19 13:17:46 -05:00
John Scipione
1f7ff051a7 Style updates and remove docs from cpp file 2013-01-19 13:17:46 -05:00
John Scipione
5df9097a4e Use stop alert icon if can't find translator 2013-01-18 16:52:10 -05:00
Jerome Duval
4a9b48c1c5 ps2 and pci: remove debugger commands on uninit of modules 2013-01-18 21:34:53 +01:00
Janus
02d04a7664 Fix #9330. Notifications Window is always inside the screen
Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
2013-01-18 20:58:09 +01:00
Julian Harnath
23bfcc5517 Fix MixerInput overflow
Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
2013-01-18 20:51:17 +01:00
Janus
d45cd469ef Fix #9302. The selection is calculated properly after a list insertion (AddList with index)
Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
2013-01-18 20:46:16 +01:00
Dancsó Róbert
fee1677630 Added localization support for Haiku Multi Audio media addon.
Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
2013-01-18 20:32:08 +01:00
Przemysław Buczkowski
89b48debc2 Correct errno return in link() function (bug #8770)
* edited as pointed by Axel
2013-01-18 20:00:26 +01:00
Jerome Duval
4280f862ec Fixed style issues, as pointed by Axel 2013-01-18 19:43:20 +01:00
Siarzhuk Zharski
20cbdcd166 StyledEdit::StatusView:No stretching for pos cell only 2013-01-18 16:16:26 +01:00
Siarzhuk Zharski
ad834f7320 StyledEdit:EncodingMenu: autodetect on root menu entry 2013-01-18 16:16:19 +01:00
Siarzhuk Zharski
29155ba4de StyledEdit::StatusView: prevent duplicating context menu 2013-01-18 16:16:11 +01:00
Siarzhuk Zharski
8a85cd4ce8 StyledEdit::StatusView Encoding context menu implemented 2013-01-18 16:16:03 +01:00
Pawel Dziepak
15a18a6b89 nfs4: Fix write commit race condition 2013-01-17 03:54:33 +01:00
Pawel Dziepak
ce851e2bac nfs4: Fix few Inode::fOpenState related race conditions 2013-01-17 00:42:13 +01:00
Pawel Dziepak
65edbee7c8 nfs4: DirectoryCache::GetSnapshot may return NULL 2013-01-16 10:47:35 +01:00
Pawel Dziepak
1c6f502549 nfs4: Add not null assertions for Inode::fOpenState and fDelegation 2013-01-16 09:52:10 +01:00
Siarzhuk Zharski
3c7eaf396c Truncate background image name in multibyte-aware way 2013-01-15 12:56:17 +01:00
Jerome Duval
2856aca93f pcnet: adapted glue.c with le driver changes
* the driver doesn't crash anymore, but only sends a few packets
2013-01-15 00:08:21 +01:00
Jerome Duval
db3f8e227b bus_read_region_1: implement with bus_space_read_region_1 2013-01-15 00:08:21 +01:00
John Scipione
c5d129a27a Style changes only 2013-01-14 15:16:51 -05:00
John Scipione
74a0eef547 Cleanup, no functional change 2013-01-14 15:16:51 -05:00
Przemysław Buczkowski
dc871e324d TextView:Cmd/Ctrl-Home/End Shift-selection support
Fixes #6859

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2013-01-14 21:10:21 +01:00
John Scipione
075d3e60f4 Update Deskbar preferences to use tabs instead of listview 2013-01-14 14:24:42 -05:00
Axel Dörfler
06d477cd64 ipv6: added missing put_interface() call.
* Thanks to Stefano for pointing this out!
2013-01-14 12:15:14 +01:00
Przemysław Buczkowski
b4fdcd5e54 Truncate Background image name to avoid layout problem
Fixes #7406

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2013-01-13 20:49:44 +01:00
Fredrik Modéen
fef016caf6 Adding more debug info to bluetooth.
* more changes will come.
2013-01-12 20:01:31 +01:00
Alexander von Gluck IV
7657c0acde swpipe: Refactor llvm build dependencies
* Little cleaner now taking advantage of
  the fact that Jam ignores unmatched
  dependencies. Thanks Urias for the idea!
2013-01-11 11:06:01 -06:00
Alexander von Gluck IV
414ba3b2a3 swpipe: Make swpipe properly use llvm
* It should build now for most gcc4 folks
* Not in image yet
* Still is kind of crashy
2013-01-11 00:44:51 -06:00
Landon Fuller
4b5a13ab81 Add Haiku support.
This replaces the use of a few BSD-specific functions, as well
as the direct references to _open/_close et-al.

BFS doesn't support the FTS_NOSTAT directory link count optimization,
and no statfs() function is available, so we simply turn that off.
2013-01-11 00:26:48 +01:00
Landon Fuller
7de6d45ca2 Drop in unmodified fts/ftw implementations from FreeBSD HEAD (r245067). 2013-01-11 00:26:47 +01:00
Jerome Duval
bf4355a48e freebsd network compat layer: fix for hrev45146
* MTX_DEF is the default type: it shouldn't be tested against but used
  as the default type.
2013-01-10 23:54:19 +01:00
Jerome Duval
4f5a4183de freebsd network compat layer: a mutex type is actually a bitmap
* should fix #9368
2013-01-10 23:03:56 +01:00
Jerome Duval
af5a895fa4 ralinkwifi: takes rt2860 into account, untested
* remove ralink2860 driver
* added firmware for RT2860, get it onto the image
* added interrupt handler case for rt2860 devices.
2013-01-10 21:40:49 +01:00
Siarzhuk Zharski
c7087c9183 Implement "be:caret_position" document file attribute.
* Use "be:caret_position"document file attribute instead of
  "be:line" and "be:selection_{length|offset}" file attributes;
* Fixed code style violations. Thanks to Axel for pointing it out!
2013-01-09 21:51:33 +01:00
Adrien Destugues
2b67e9a3a7 Merge changes from Fonzoterm :
- Report the terminal as xterm-color instead of just xterm, since we handle that fine.
 - Tweak the SGR handler a bit to use bright rather than bold in some cases
 - Change the color palette so the result is still readable (white on white doesn't work so well) with the default colorscheme.
2013-01-09 19:56:26 +01:00
Pawel Dziepak
9c1d983eab nfs4: Avoid using empty string for RootInode name 2013-01-08 23:57:24 +01:00
Pawel Dziepak
2d96a2b303 nfs4: Minor improvements to memory deallocation in few places 2013-01-08 23:57:14 +01:00
Pawel Dziepak
9f12d1353a nfs4: Prevent OpenState::_ReclaimLocks from being called recursively
When server reboots again when share reservations or locks are being
reclaimed there is a risk that HandleErrors will invoke Reclaim(( again
making it crash due to some double locks and more importantly making
these two attempts to reclaim resources conflict and cause some much harder
to recover from server errors.

Instead all that, when server is rebooted again while recovering from previous
reboot the recovery is aborted, the client retries its original request and
then proper recovery occurs completly on a new server instance.
2013-01-08 23:10:56 +01:00
Jérôme Duval
713f1b8c05 added rdc driver based on vte FreeBSD driver
* built as is.
* untested, some interrupt handler changes might be needed.
2013-01-08 22:45:31 +01:00
Jerome Duval
d997b26243 ipro1000: Haiku changes to have it compiled again.
* a lot of gcc2 specific changes...
2013-01-08 22:45:31 +01:00
Jérôme Duval
648db7333e Update FreeBSD network drivers with the 9.1 release 2013-01-08 22:45:30 +01:00
Pawel Dziepak
bd19f23cec nfs4: Fix connection recovery code 2013-01-08 20:07:56 +01:00
Pawel Dziepak
fea92e7bb3 nfs4: Save open mode in case of open reclaimation 2013-01-08 18:57:14 +01:00
Pawel Dziepak
d710e73de5 nfs4: Indentation fixes 2013-01-08 05:54:42 +01:00
Pawel Dziepak
b8982d12b7 nfs4: Do not increment open owner sequence number when reusing lock owner 2013-01-08 05:52:12 +01:00
Pawel Dziepak
e4cd963ff1 nfs4: Use default request timeout if FileSystem not given 2013-01-08 05:48:08 +01:00
Alexander von Gluck IV
82ee340110 virtualmemory: Fix wording of auto swap management
* Fixes #9136
* Setting this also assumes the boot partition.
* "Automatic swap management" is more generalized
2013-01-07 23:54:22 +00:00
Stefano Ceccherini
e4a05be459 Use close_module_list() to free the list.
There are a pair of Coverity CIDs for these two.
2013-01-07 21:17:52 +01:00
Dancsó Róbert
fc11b68310 Corrected system name translation.
Signed-off-by: Humdinger <humdingerb@gmail.com>
2013-01-07 19:47:04 +01:00
Humdinger
6dc9cf7480 Forgot the signature change in Chart's Jamfile... 2013-01-07 17:54:06 +01:00
Dancsó Róbert
7ca7486f06 Corrected system name translation.
Signed-off-by: Humdinger <humdingerb@gmail.com>
2013-01-07 17:45:42 +01:00
Dancsó Róbert
0556919cd7 Corrected system name translation.
Signed-off-by: Humdinger <humdingerb@gmail.com>
2013-01-07 17:45:30 +01:00
Humdinger
41b920bce2 Reordered includes, removed unneeded comment 2013-01-07 11:32:34 +01:00
Humdinger
f92bcd1938 Sentence casing, improved alert text, buttons, ESC shortcut 2013-01-07 11:21:37 +01:00
Dancsó Róbert
7c17855919 Added localization support for Playground app.
Signed-off-by: Humdinger <humdingerb@gmail.com>
2013-01-07 11:05:23 +01:00
Alexander von Gluck IV
042344329e radeon_hd: Improve displayport support
* Modified patch submitted by Bill Randle.
* DisplayPort aux communications now working.
* DP Link Training still not functioning properly.
* The DP edid data isn't used yet as we still use
  the vesa edid during the mode setting.
2013-01-06 20:25:41 -06:00
Humdinger
45f77dcd70 Renamed Tracker option "Don't move files to Trash" (#9352)
Renamed that option as it is the only negatively phrased to
"Move deleted files to Trash first" and also the option below
that to "Ask before deleting for good".
Also renamed every function name etc. in that regard and also
settings string of the Tracker settings file.
2013-01-06 20:04:07 +01:00
Michal Siwek
c0bc9998d1 Add MIME type for XAR archives (GCI work) 2013-01-06 17:48:38 +01:00
Rene Gollent
dcce0a030b Adapt x86-64 to also use udis86-based instruction analysis. 2013-01-06 11:43:41 -05:00
Rene Gollent
59fcd81013 Return an error if no frames were created. 2013-01-06 11:42:58 -05:00
Jerome Duval
89deb8f273 Flurry screensaver: fix signature for consistency with others 2013-01-05 15:58:34 +01:00
Pawel Dziepak
ad1a84af93 nfs4: Make request time limit adjustable 2013-01-04 22:39:40 +01:00
Pawel Dziepak
dadd844f36 nfs4: Multiple style fixes 2013-01-04 22:25:21 +01:00
Pawel Dziepak
4d12040737 nfs4: Remove CacheRevalidator
There is no point in periodically revalidating all existing directory caches.
Directory snapshot can be revalidated when readdir is invoked.
2013-01-04 20:05:15 +01:00
Sergei Reznikov
7f4d1af49d Compilation fixes for x86_64.
Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
2013-01-04 18:45:22 +00:00
Pawel Dziepak
332621d196 nfs4: Use DoublyLinkedList instead of custom FileSystem list implementation 2013-01-04 16:03:36 +01:00
Stefano Ceccherini
7845676a3e Merge branch 'master' of ssh://git.haiku-os.org/haiku 2013-01-04 00:07:38 +01:00
Stefano Ceccherini
7e75e564f8 Use av_alloc_put_byte() instead of ffio_init_context() since the
latter expects an already allocated AVIOContext.
BeScreenCapture works again, and should fix also #8299.
2013-01-04 00:04:17 +01:00
Hamish Morrison
a0e655bff1 Fix BWindow::DecoratorFrame for top-titled windows.
Also take into account the border width for the edge with the title.
Fixes #8614.
2013-01-03 20:11:03 +00:00
Pawel Dziepak
d72bdcc88a nfs4: Do not remove RootInode too soon 2013-01-03 15:37:36 +01:00
Matt Madia
1565964a11 Show Installer on all workspaces when Tracker isn't running.
This applies to the EULA window as well. Addresses #9287:comment:5
2013-01-03 08:26:20 +00:00
Pawel Dziepak
e8ef557a56 nfs4: Fix double delete rpc when WaitCall fails 2013-01-03 03:25:50 +01:00
Pawel Dziepak
6136b82b1e nfs4: Fix handling of retried CLOSE requests 2013-01-03 03:25:34 +01:00
Pawel Dziepak
345a659337 nfs4: Do not create new Inode object when deleting a vnode 2013-01-02 20:18:32 +01:00
Pawel Dziepak
47e68f1c7a nfs4: Avoid conflicts between threads attempting to repair TCP connection 2013-01-02 20:17:57 +01:00
Pawel Dziepak
8837efd025 nfs4: FileSystem may be destroyed before setting RPCServer private data 2013-01-02 16:40:23 +01:00
Pawel Dziepak
68e64c7ab0 nfs4: Expect file system root path to be NULL 2013-01-02 16:26:57 +01:00
Pawel Dziepak
fee08ed6ad nfs4: Fix typo: NFS4ERR_LOCKS_HELD instead of NFS4ERR_LOCK_HELD 2013-01-02 16:20:06 +01:00
Matt Madia
87d333ee13 Make the EULA and Installer appear on all workspaces.
Fixes #9287
2013-01-02 11:34:09 +00:00
Matt Madia
630404be03 Automatic white space cleanup. No functional change. 2013-01-02 11:33:14 +00:00
Matt Madia
db41683495 Automatic whitespace cleanup. No functional change. 2013-01-02 10:11:56 +00:00
Matt Madia
364389a057 Make ReadOnlyBootPrompt visible on all workspaces. Fixes #8003 2013-01-02 09:07:13 +00:00
Rene Gollent
ec26975575 Disable populating return values onto the variable list.
- Still needs some work with respect to false positives in the most
  recent code, as well as the missing bits for PIC.
2013-01-01 16:12:50 -05:00
Humdinger
612ab97918 Re-arranged tabs
Pu the tabs back in the order it used to be. "Fonts" and "Colors"
are probably changed more often than "Look and feel".

Also re-arranged a few lines of code to reflect that order and sorted
the includes.
2013-01-01 17:44:25 +01:00
Rene Gollent
5745a40dd1 Rework how return values are handled.
- ArchitectureX86 now hands off the work for GetInstructionInfo() to
  DisassemblerX86, since the latter has all the information we need
  to properly classify and evaluate instructions. Correspondingly a
  CpuState is passed down to it in order to perform address calculations
  for the instruction if it's a jump or call instruction. The latter's
  targets are then stored on the thread for later retrieval when
  constructing a stack trace. Adjust X86_64 accordingly for the
  signature changes. This also fixes a bug where Step Over would
  sometimes result in a Step Into instead due to the previous
  implementation of GetInstructionInfo() occasionally failing to
  classify call instructions correctly.

- Architecture::CreateStackTrace() now takes an argument specifying
  the address of the last executed function if applicable. This is used
  to decide who/where to decode a return value from. Adjust callers.

- DwarfImageDebugInfo::_CreateReturnValue() uses the above information
  in order to know directly who the caller it needs to look up a return
  value for is, rather than trying to walk backwards to find them.
  Type resolution is now also a bit more sophisticated due to various
  cases where the subprogram entry didn't directly contain the return
  type but referred to another DIE that did. Retrieving return value
  now appears to work properly in all cases except when position
  independent code is involved. The latter however will require
  resolving the appropriate function address in the PLT, which will
  need some additional work.
2012-12-31 23:02:24 -05:00
Rene Gollent
bdbbc10b44 Thread now also tracks the address of the last executed function. 2012-12-31 22:52:34 -05:00
Rene Gollent
cf2e209b2d More improvements to return value handling.
- Thread now has a data member indicating if a subroutine was
  executed during the last set of steps.
- ThreadHandler now sets the aforementioned state appropriate during
  Step Over/Step Out.
- Architecture::CreateStackTrace() now takes a parameter indicating
  whether return value retrieval is desired (based on aforementioned
  thread value). Adjust callers accordingly.
- DwarfImageDebugInfo: If return value retrieval is requested, loop
  backwards from the current IP to find the call instruction.
2012-12-31 20:25:11 -05:00
Rene Gollent
f733c6031a Initial implementation of _GetReturnValue().
- Look at the destination of the subroutine instruction and try to
  resolve it to a function. Currently only handles functions whose
  destination are within the same image.

- If found, look up debug info for the target function. If available,
  determine if it returns a value. If so, construct an appropriate
  placeholder variable and add it to the frame's variable list.
2012-12-31 20:25:11 -05:00
Rene Gollent
c7ca91ffd3 Add helper functions for creating return value variables. 2012-12-31 20:25:10 -05:00
Rene Gollent
dc693e9265 Extend Architecture to help retrieve return values.
- Architecture now has a new function to retrieve the location where
  a return value can be found. Added implementation for x86 and stub
  for x86-64.
2012-12-31 20:25:09 -05:00
Rene Gollent
84ea02a0f4 Extend InstructionInfo for subroutines.
- InstructionInfo now also stores the destination address of subroutine
  call instructions.
- Adjust callers.
2012-12-31 20:25:09 -05:00
Rene Gollent
9ede3c06e8 Add ReturnValueID base type. 2012-12-31 20:25:08 -05:00
Murai Takashi
eed38dfa96 Fix initializing fClockSettingFile.
Signed-off-by: Rene Gollent <anevilyak@gmail.com>
2012-12-31 20:23:26 -05:00
Alexander von Gluck IV
e71af5ae6c intel_extreme: Add RC6 downclocking support
* Generation 6 (SandyBridge) and later support
  automatic downclocking of the GPU offering
  substantial battery use reductions.
* As we're playing with fire here, only use on
  mobile devices SandyBridge or later.
* This is testing stable on my SandyBridge laptop,
  however I need further confirmation of the
  functionality of this.
* Move clock gating into a function in the power.cpp
  file
2012-12-31 16:35:22 -06:00
François Revol
87466cc915 ftp: remove sa_family_t hack
We now declare sa_family_t as mandated by POSIX.
2012-12-31 15:38:31 +01:00
Stefano Ceccherini
1797be0dc6 Some style fixes. 2012-12-31 12:21:25 +01:00
Tri-Edge AI
8cd10c710f Gravity: Big code changes
* Reworked code style completely.
* Improved the behaviour of the particles.
* Made particles smaller (2,5x performance gain).
* Cleaned unnecessary includes.
* Tried improving performance with glCallList - performance dropped even more.
* Tried improving performance with glDrawArrays - no noticeable performance changes.
2012-12-31 07:42:51 +00:00
Humdinger
776c58b2b5 Unifying the quit/save alerts.
Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.
2012-12-30 20:32:04 +01:00
Matt Madia
cb6daa41db Replace isometric toolbar icons with 2D style.
The icons are from ZuMi : http://zumi.xoom.it/myhaiku/btoolbar/index.html
Closes #9292
2012-12-30 10:19:19 -05:00
threedeyes
a52b9419e7 Apply patch by dsjonny from ticket #9339: Localization for ICNS Translator 2012-12-30 04:32:44 +00:00
threedeyes
27ca4ba2ad Gravity: Disable warnings for gcc2 build. 2012-12-30 03:59:25 +00:00
Alexander von Gluck IV
48ec1c9d22 intel_extreme: Enable IvyBridge PCI ID's 2012-12-29 00:09:01 +00:00
Rene Gollent
bd26704e42 Use minimal frame info optimization in a few more places. 2012-12-28 22:23:06 -05:00
Alexander von Gluck IV
59b18b8836 intel_extreme: Disable IvyBridge
* Prevent driver from picking up IvyBridge
  for the moment. (VESA works for the moment)
* We get a white screen of doom. Looks as though
  supporting IvyBridge will require more than
  just basic fixups.
2012-12-28 19:01:06 +00:00
Alexander von Gluck IV
881a823e8a intel_extreme: Improve accelerant tracing and debug output
* Several messages to syslog weren't tagged with
  intel_extreme making troubleshooting difficult
* Fix a few typesize printf issues with B_PRI macro
2012-12-28 19:01:05 +00:00
Alexander von Gluck IV
783039344d intel_extreme: Fix tracing toggle names 2012-12-28 19:01:03 +00:00
Alexander von Gluck IV
d1043dfa07 intel_extreme: Add IvyBridge fixups
* Add initial clock gating fix (may need tweaking)
2012-12-28 19:01:02 +00:00
Alexander von Gluck IV
50efc4c719 intel_gart: Add IvyBridge bridge info 2012-12-28 19:01:00 +00:00
Alexander von Gluck IV
bb2de8c7dd intel_extreme: Add missing IB Server GT2. Thanks premislaus. 2012-12-28 19:00:59 +00:00
Alexander von Gluck IV
5176bea376 intel_extreme: Improve tracing
* This was needed to find a bug while
  working on IvyBridge support.
* Code looks a bit cleaner as well now.
* If something goes wrong, user is now
  better notified via syslog
2012-12-28 19:00:57 +00:00
Jérôme Duval
ef769e5e87 add declaration of sa_family_t in sys/socket.h
* added missing declaration of sa_family_t in sys/socket.h, this fixes #8731
  thanks to Anarchos for the patch.
* fixed the build of the command ftp
2012-12-28 22:28:13 +01:00
Gleb Posobin
9d2f78ca74 Added Grep utility to the OptionalPackages
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2012-12-28 19:58:34 +01:00
Hamish Morrison
d1f280c805 Add support for pthread_attr_get/setguardsize()
* Added the aforementioned functions.
* create_area_etc() now takes a guard size parameter.
* The thread_info::stack_base/end range now refers to the usable range
  only.
2012-12-28 18:02:58 +00:00
Jérôme Duval
00e7904406 include string.h for FD_ZERO in sys/select.h
* sys/select.h was not self contained before, this fixes #9327
* index is defined as a function in string.h, fixed resulting name
  collision in glut_shapes.c
2012-12-28 18:30:03 +01:00
Alexander von Gluck IV
d917edcecd gravity: Fix path in Jamfile. Fix build 2012-12-27 17:35:48 -06:00
Alexander von Gluck IV
93f124253a screensaver: Add gravity based on GCI 2012 work
* A modified version of TriEdgeAI's original work.
* Cleaned up style problems
* Some virtual functions didn't mesh properly with
  ones defined in the OpenGL kit (Draw for example)
* Wrote Jamfile
* Add missing include cstdlib for rand
* Not in image yet as it still needs gcc2 testing
2012-12-27 16:40:47 -06:00
Alexander von Gluck IV
f736d30c9c intel_extreme: Drop odd semicolon causing gcc warnings 2012-12-26 11:01:47 -06:00
Alexander von Gluck IV
660ca29ee0 intel_extreme: Add IvyBridge PCIID's
* This needs testing and likely some IvyBridge
  fixups
2012-12-26 11:01:43 -06:00
Humdinger
e55f69faf9 Use "Revert" instead of "OK" as button label. 2012-12-26 11:07:39 +01:00
Humdinger
c6cd8df773 Correct case in GUI string. 2012-12-26 11:02:51 +01:00
Rene Gollent
bc1ec2ec41 Initial work towards retrieving function return values.
- When creating a stack frame, we now look at the current function's
  state to determine if the last executed statement was a function call.
  Still need to determine the call destination in order to look up
  the latter function, retrieve its return type, and then request
  retrieval of the actual return value if applicable.
2012-12-26 00:21:06 -05:00
Rene Gollent
1167ae5274 Some optimizations for ThreadHandler.
- CreateStackTrace() now takes a parameter indicating whether or not
  to try and retrieve full frame information. This in turn is passed
  on to SpecificImageDebugInfo, where e.g. DwarfImageDebugInfo can
  use it to avoid constructing variables and parameters. This is
  used by ThreadHandler since, when it requests the top frame for
  its stepping  calculations, this additional data/work is completely
  unnecessary.
2012-12-26 00:20:33 -05:00
Rene Gollent
50bd564d06 Fix crash issue with some cases of template types.
- If a template type parameter resolves to a void type, gcc doesn't
  actually generate a type attribute for the instantiation, leading
  to a crash in CreateType(). Was observable with MemoryDeleter and
  others.
2012-12-25 16:57:15 -05:00
Philippe Saint-Pierre
a74c82b977 Tracker: Drawing issues in dragBitmap (#8005)
Remove rounding issues in height calculation leading to drawing issues when using some font sizes.
2012-12-25 16:28:18 -05:00
Philippe Saint-Pierre
9abf41a7fe Mail: remove un-intended debugging code committed 2012-12-25 14:43:02 -05:00
Philippe Saint-Pierre
5eea8a566d Mail: coding styles fixes. should have no functional changes 2012-12-25 14:13:02 -05:00
Rene Gollent
855f2c88d3 Add some more information to CIE parsing failure messages. 2012-12-25 09:35:43 -05:00
Rene Gollent
9becda82ef Implement ArchitectureX8664::UpdateStackFrameCpuState(). 2012-12-25 09:34:28 -05:00
Rene Gollent
717f11d412 Fix regression introduced in hrev43513.
- A mistake in variable renaming resulted Architecture::UpdateStackFrameCpuState()
  no longer being called.
2012-12-25 09:32:56 -05:00
Humdinger
bc715a5fe8 Correct attribute names "Audio" -> "Media" (#9316)
A few attribute names that used to be "Audio:..." were changed a
while ago to the more general "Media:...". Applied those changes.
Fixes #9316, thanks ttcoder!
2012-12-25 09:51:11 +01:00
Philippe Saint-Pierre
205cf6950c Tracker: Force Identify - don't require holding shift (#4857)
Don't require to hold shift when clicking on force identify,
can now be released after popup menu have appeared.
2012-12-24 16:10:21 -05:00
John Scipione
ff3409e005 Return EALREADY if already in requested playback mode.
That's what the BeBook says the method is suppose to do.
2012-12-24 15:27:41 -05:00
Pawel Dziepak
aa5a8cb346 nfs4: Add assertions for unexpected error codes
There are some NFS4 error codes we should not get if the client is operating
correctly.
CLID_INUSE may be caused only by incorrectly generated SETCLIENTID request.
NOFILEHANDLE, RESTOREFH and OP_ILLEGAL indicate that the client has sent
an incorrectly build request.
BAD_STATEID and BAD_SEQID indicate a bug in handling {open,lock}_owners.
LOCK_HELD happens when the client incorrectly cleans up after accessing a file.
2012-12-24 20:27:07 +01:00
Rene Gollent
b83bece153 Cleanups.
- Add clarifying comment.
- Slightly adjust handling of augmentation 'P' so it also handles
  skipping LEB128-encoded values correctly.
- Remove unused code.
2012-12-24 00:18:38 -05:00
Rene Gollent
16b8573bae Numerous fixes to stack unwinding for .eh_frame.
- Add address size parameter to EvaluateExpression since the compilation
  unit may not be available (i.e. in non-debug code). Accordingly, also
  add accessor for address size to DwarfExpressionEvaluationContext,
  and adjust callers accordingly.

- Correctly handle augmentation 'P'. This one consists of a data byte
  describing the address encoding, followed by the address of the
  personality function encoded in the aforementioned format. Not
  skipping this correctly was resulting in us retrieving the wrong
  FDE address format in e.g. CIEs encoded with augmentation 'zPLR'.

- The address range should be retrieved as value only without accounting
  for the relative offset portion of the address encoding format. Fixes
  some issues where we'd pick the wrong FDE to use for unwinding due
  to us misinterpreting it as covering a far larger PC range than it
  in fact did.

- DW_CFA_set_loc also needs to respect the encoded address format.

Overall, these changes fix a number of regressions introduced by the
previous commits, and also mean that stack unwinding for x86-64 should
now work as expected in all cases where either debug information or
an exception table is available.
2012-12-23 16:37:06 -05:00
Philippe Saint-Pierre
3fbf5d6809 Tracker: Drawing artifact (#6513)
After switching from outline only selection mode to transparent rectangle,
a drawing artifact could occur because the last selection rectangle wasn't
reset properly.  On following update, Tracker thought a selection rectangle
was still to be shown.
2012-12-23 16:33:49 -05:00
Vlad Slepukhin
46f1daff68 Handle be:line and °K in RefsReceived, store it in file attributes
This work was done during GCI2012

Fixes #4794

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-23 21:51:24 +01:00
Humdinger
2e2e8f7d2e Fixed case of GUI strings. 2012-12-23 18:30:02 +01:00
John Scipione
2e64288895 Change Application back to Applications in Deskbar prefs. 2012-12-23 12:21:00 -05:00
François Revol
53eb64dd71 PCI: Work around devices wrongly set as bridge class by buggy BIOS
This is a proper fix for the issue I tried to fix with hrev43552.
Previous fix only fixed the stack overflow caused by it but still
generated ghost devices due to the duplicated enumeration.

Affected motherboards include FIC PA-2013 (mine), and FIC VA503+
as mentionned on:
http://lkml.indiana.edu/hypermail/linux/kernel/9912.0/0539.html

We now check the header type for bridge devices and just ignore
wrong ones.
2012-12-23 18:06:56 +01:00
Vlad Slepukhin
0f4985d884 StyledEdit:Implemented StatusLine and R5-like ReadOnly mode
This work was done during GCI2012.

Fixes #3655

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-22 22:57:14 +01:00
Rene Gollent
523a87a5d2 64-bit fixes for WebPositive. 2012-12-22 16:24:16 -05:00