Commit Graph

38587 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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