Commit Graph

38909 Commits

Author SHA1 Message Date
Michael Lotz
b73982892d Rename [Un]Register* functions to Add/Remove*. 2013-03-05 10:59:44 -05:00
Michael Lotz
dc1acef865 Flesh out the API and implement stubs.
* Modified the API greatly to be based on BKey* instead of BPassword*.
* Added BKeyPurpose and used it instead of BKeyType. It is supposed to
  indicate the purpose of a key so that an app can look up keys on a
  more granular level. The BKeyType on the other hand actually
  identifies the type (i.e. subclass of BKey) so an app knows how to
  handle a given key or may only enumerate/use keys it is compatible
  with.
* Made everything based on a raw data buffer for now, only BPasswordKey
  is implemented yet which stores the (0 terminated) string into that
  data buffer.
* Removed the additional data BMessage as I don't yet see where it fits
  in. While I could imagine adding meta data to a key may be nice it
  might be an interoperability concern when keys are shared by
  different apps.
* Moved the app functions to the keystore as per the TODO, but not sure
  how to actually implement them.
2013-03-05 10:59:43 -05:00
Michael Lotz
3b3884d9ee KeyStore and Key interface/stubs draft per Axel Dörfler.
A draft API and (mostly) stubs to back it up. Initial import of yet
unmodified sources.
2013-03-05 10:59:41 -05:00
Ryan Leavengood
fa392c2a24 Remove unused ShowImage Undo code. 2013-03-05 08:59:54 -05:00
Ryan Leavengood
a95895186d Change the cursor hiding so it isn't done constantly when enabled. 2013-03-04 22:58:23 -05:00
John Scipione
ff9b4ff8c9 Lock BMenuBar::_Track() atomically. Fixes #9481 2013-03-04 22:22:03 -05:00
John Scipione
afecfa9ca8 A few more bitmap icon updates, edge cases.
* Support downscaling icons to a size smaller than the source.
* For > 4x icon scaling do a scale4x followed by a bilinear scale.

Note that I tried to do a combination of scale2x/scale3x with bilinear scaling
and the results were worse than scale2x/scale3x with down scaling.

The 24x24 icon case looks pretty bad either using bilinear or scale2x followed
by a downscale because I am currently upscaling the 16x16 icon in Deskbar (we
didn't up until now support bitmap icon downscaling so I had no choice). It
might be a better idea to downscale the 32x32 version instead.

Note that all of the above has to do with bitmap icons ONLY and none of it
applies to HVIF icons that scale beautifully without these tricks.
2013-03-04 12:56:12 -05:00
John Scipione
b09c265cb4 Update bitmap downscaling for BeOS icons.
Implemented a simple down sampling algorithm in the scale_down() function. For
non-integer scaling first scale up using the scale2x, scale3x, or scale4x
algorithm doubling, tripling, or quadrupling the icon then use the downscaling
algorithm to shrink to the desired size. This produces nicer looking results
than bilinear scaling alone.

Note that this only applies to bitmap-based BeOS icons and not vector-based
HVIF icons.
2013-03-04 04:45:06 -05:00
John Scipione
f3ac8bc089 Show the full window title in Deskbar in a tooltip
... if it gets truncated in vertical expando mode.
2013-03-03 23:36:08 -05:00
Ryan Leavengood
f44a56ca9a Add back moving the pen to origin in BControlLook arrow drawing.
Removing this did not affect scrollbar arrow buttons, but made the
arrows disappear on the Deskbar.

Clearly, BControlLook cannot be changed without extensive testing.
2013-03-03 23:10:51 -05:00
Ryan Leavengood
dca92a6c75 Removed unused colors from BScrollBar Draw. 2013-03-03 17:50:51 -05:00
Ryan Leavengood
f9b1a47fa3 Use be_control_look for BScrollBar and FakeScrollBar.
Remove all code which checks for be_control_look being NULL.

Also fix the DrawArrowShape method in be_control_look so the arrow is aligned,
as per the previous commit. In addition the code to offset the arrow when the
scroll button is pressed was unnecessary.

There is still some room for improvement, and I am not happy with the
BControlLook behavior here, as noted in some TODOs.
2013-03-03 17:50:51 -05:00
Ryan Leavengood
8a9200992e Fix Scrollbar arrow button alignment.
The arrow symbol on the right and down buttons was off by one pixel.

Because of the resurrected FakeScrollbar in the Appearance preflet I had to
change this code in two places, which makes me unhappy. This needs to be pulled
into BControlLook.

Fixes #9104.
2013-03-03 17:50:51 -05:00
John Scipione
97ef596f27 Fix color preview drawing bug in Appearance. Fixes #9501
Also updated to use color constants intead of hardcoding colors. This draws a
nice 3d-ish bevelled border around the color preview box.
2013-03-03 14:49:41 -05:00
Matt Madia
703912cc4f Aesthetical changes. No functional change.
Manually applied humdinger's Decorator_aesthetics.diff patch from #7874.
2013-03-02 19:38:27 -05:00
Matt Madia
ca51eb367d Add FreeType headers dependencies, #8716.
This allows MacDecorator to build once again.

Due to other errors, BeDecorator and WinDecorator do not (yet) fail on the
missing FreeType header -- hence it being only a comment for now.
2013-03-02 19:20:17 -05:00
Matt Madia
74252cefbc Inform the decorators where to find DoublyLinkedList.h
Prior to this, jam -q [ClassicBe|MacDecorator|WinDecorator] would fail.
They still fail, but for one less reason at least.
2013-03-02 19:14:17 -05:00
Ziusudra
f0e995c8d4 Create TimeZoneListView class and move GetToolTipAt into it, fixes #7726
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-02 16:45:20 -05:00
Tri-Edge AI
be7b42ea99 Bluetooth: Added device class to settings, in case it can't be retrieved from the dongle.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-02 14:12:04 -05:00
Tri-Edge AI
e381b02559 Bluetooth: Added settings to remember last used device.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-03-02 14:07:44 -05:00
Alexander von Gluck IV
79dd1ff2af iprowifi4965: Re-add working wlan card pciid
* Centrino Advanced-N 6235
* Originally introduced in hrev44579
* Likely removed in last wlan driver sync
* Confirmed working 100%
* Upstream bug:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=173898
2013-03-01 01:47:00 +00:00
Matt Madia
9590a81c9c GCC 4 build fix. Suggested by leavengood.
Closes #968.
2013-02-28 17:03:27 -05:00
Tri-Edge AI
dc4fe6be00 Extended ResourceEdit.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-27 22:09:21 -05:00
Tri-Edge AI
49126a0e9b Added ResourceEdit and modified BColumnListView, BRow and BMenu.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-27 22:08:46 -05:00
Alexander von Gluck IV
9e3038ae8e radeon_hd: Revert a change from hrev45219
* Causes a regression in proper UNIPHY
  mode setting.
* These encoder setup routines do not
  get performed by any dpms stuff and
  are required to put the encoder in the
  correct state for programming.
* Resolves #8913 and maybe others
* Thanks Justin for testing!
2013-02-26 22:36:20 -06:00
John Scipione
d06f58081a Revert "Prevent a deadlock condition in Deskbar. Fixes #8539"
This reverts commit 733be65954.

It didn't fix the bug, will try again.
2013-02-25 15:53:55 -05:00
John Scipione
b37d5096dc Remove this #include directive too 2013-02-25 12:06:30 -05:00
John Scipione
2a5c1f12b9 Fix #9469 again in a better way.
Pass fTime into the IsHidden() method to check the hidden state from
the point of view of fTime which will ignore the hidden state. of the
window. Remove the Hide(), Show(), and IsHidden() overrides in
TimeView as they are no longer needed.

Thanks Stippi and Axel.
2013-02-25 11:57:18 -05:00
John Scipione
733be65954 Prevent a deadlock condition in Deskbar. Fixes #8539
If the window is locked by the menu_tracking thread Deskbar will wait
on the sMonThread thread to exit forever so we have to kill it to
prevent a deadlock.

This is a workaround of a bigger problem, which is that fExpando gets
created and destroyed on each change which is slow allowing these kinds
of bugs to exist. The real solution is to live update fExpando but that
is a fair amount of work.
2013-02-24 04:39:16 -05:00
John Scipione
88571c9241 Refactor TExpandoMenuBar::MouseDown() style.
No functional change intended.
* Check for NULL fields in the beginning and return decreasing the
  indent level of the rest of the method.
* Move some comments to next line indented
2013-02-24 04:36:58 -05:00
John Scipione
da179153e8 Small whitespace fix in MenuBar.cpp 2013-02-24 04:36:57 -05:00
Alexander von Gluck IV
59dc9ee955 radeon_hd: Fix DVI-I detection once and for all
* Reduced the logic down and only use it where
  possible.
* Remove the duplicate gpio pin check. While this
  is a determining factor... i'd rather get it
  right while detecting displays vs relying on
  connector order in the ASIC. This gpio pin check
  was also severely bugged (missing {}'s)
* Should fix #8913 and maybe others
2013-02-24 06:39:24 +00:00
John Scipione
2c765fafc5 Rename ColorWell to ColorPreview in Appearance prefs.
No functional change intended.

I'd like to use the name "ColorWell" for a different type of
class eventually so I'm making room for it. ColorPreview is
arguably a better name for the class anyway.

Also did a style cleanup of the ColorWell => ColorPreview class at
the same time.
2013-02-23 15:51:50 -05:00
John Scipione
ca00f398da Fix Deskbar clock show/hide when Deskbar is hidden.
Bug #9469 happens because I set the showClock checkbox or not based on whether
or not the clock is currently hidden. This works most of the time, but if
Deskbar is hidden the clock is also considered to be hidden and that isn't what
I want in this case.

The solution is to override BView's Show(), Hide(), and IsHidden() methods
in TimeView to ignore whether or not the window is hidden when considering if
the clock is hidden.

The commit also deletes some no-longer-used private member variables of
TimeView.

Fixes #9469
2013-02-23 14:41:54 -05:00
John Scipione
a2d1b65a85 Silly style fixes 2013-02-23 14:40:26 -05:00
John Scipione
5dd0761042 Move BVolumeRoster docs to Haiku Book.
With this commit every class in the storage kit is now documented
in the Haiku book!

Thanks to Ingo, Axel, Vincent Dominguez, Tyler Dauwalder, and
everyone who helped document these classes.
2013-02-22 18:11:14 -05:00
John Scipione
9d5f5318a5 Move BVolume docs to the Haiku book 2013-02-21 20:15:53 -05:00
François Revol
32bd2dedd9 bootloader: Fix an overlooked condition in mmu_allocate()
The size variable at this point is actually a page count.
The test should never be true anyway though. Maybe we should use a
pages variable for clarity?
2013-02-21 16:35:37 +01:00
François Revol
8dc3f98eda RemoteDesktop: Fix build 2013-02-21 16:24:58 +01:00
John Scipione
fff103f567 WebPositive close x fixes.
* Remove the Close tab and Close find bar tooltips.
* Offset the x again.
* Add some comments.
2013-02-20 21:46:04 -05:00
John Scipione
434716ced8 Add BSymLink class docs to Haiku Book 2013-02-20 16:20:53 -05:00
John Scipione
5bff846db2 Move BStatable docs to Haiku Book. 2013-02-19 19:07:15 -05:00
John Scipione
789e7d856e Tweak close x so it doesn't look disabled 2013-02-18 22:32:24 -05:00
John Scipione
6d5fae2a5a Move resources docs to Haiku Book
* Remove docs from Resources.cpp (leaving the brief description).
* Reformat Resources.h to style it like so many other header files.
* There is one not-entirely style based change. I renamed the outSize
  parameter or the LoadResource method to _size as is our convention for out
  parameters.
2013-02-18 18:14:10 -05:00
François Revol
55e7521e36 ARM: Fix typo 2013-02-18 15:00:35 +01:00
Matt Madia
936ad11520 Style fixes from #4146 comment:11. 2013-02-17 21:32:04 -05:00
Matt Madia
e92b40188a Automatic whitespace cleanup. No functional change. 2013-02-17 21:31:35 -05:00
Tamás Krutki
da2db35956 Allow Magnify to resize to smaller sizes more gracefully.
Fixes ticket #4146

Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-02-17 21:31:05 -05:00
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