Commit Graph

5595 Commits

Author SHA1 Message Date
Alex Smith
11c9f9a1d6 Merge branch 'master' into x86_64
Conflicts:
	build/jam/FloppyBootImage
	build/jam/OptionalBuildFeatures
	build/jam/OptionalPackages
	headers/private/shared/cpu_type.h
	src/bin/ps.c
	src/bin/sysinfo.cpp
	src/kits/tracker/PoseView.cpp
	src/preferences/appearance/DecorSettingsView.cpp
	src/preferences/virtualmemory/Settings.cpp
	src/servers/input/AddOnManager.cpp
	src/servers/input/InputServer.cpp
	src/servers/input/InputServerMethod.cpp
	src/system/boot/Jamfile
	src/system/boot/platform/raspberrypi_arm/mmu.cpp
	src/system/boot/platform/u-boot/arch/arm/Jamfile
	src/system/kernel/arch/x86/arch_cpu.cpp
	src/system/kernel/arch/x86/arch_thread.cpp
	src/system/kernel/cache/block_cache.cpp
	src/system/kernel/vm/VMAnonymousCache.cpp
2012-11-18 14:02:07 +00:00
Philippe Saint-Pierre
46db18d199 DiskUsage: Truncating of tabs could lead to deadlock (#9170) 2012-11-17 22:00:47 -05:00
Rene Gollent
11e5194844 Add initial version of DebugReportGenerator controller class.
Not yet complete or made use of.
2012-11-17 18:50:20 -05:00
Rene Gollent
0aae2709de Factor formatting utility functions out of RegistersView and
StackTraceView.
2012-11-17 18:48:47 -05:00
John Scipione
d59fcf50e6 I meant fCurrentDateStr no fCurrentTimeStr 2012-11-16 20:41:02 -05:00
John Scipione
ec469b21a0 Refactor code from previous commit.
* Check if offset is actually an error code and attempt to compensate
  At the very least don't use it as an offset (would be bad).
* Write to the output string directly instead of copying a temp string.
* Add a ToDo to check if day of week should go after time for locale
* Replace hardcoded 64 in GetCurrentDate().
2012-11-16 19:48:46 -05:00
John Scipione
debbd7bd8a Update Deskbar Clock to use predefined time formats
... with day of week tacked on at the beginning.

This fixes #9143 by better allowing the Locale Kit to
format the time. It was localized before but now also
uses localized time separators.

There might be still a bug with day of week though,
depending on if day of week should go before or after
the time in your locale (It is hard coded to before).
2012-11-16 18:51:17 -05:00
John Scipione
6c54ebe5d5 Set fSeparatorItem NULL initially fixing #9151 on gcc4 2012-11-15 19:39:04 -05:00
John Scipione
c6bc755d6c delete fBarMenuBar on destruction preventing memory leak 2012-11-15 19:38:14 -05:00
Joseph R. Prostko
caddc641c1 Changes to allow Haiku source to build with GCC 4.7
* GCC 4.7 is more picky than GCC 4.6, so have to make changes accordingly
* Changes include addressing issues with scoping, redeclaration, etc.
Thanks Rene and Ingo for your input on these changes
2012-11-15 17:59:19 -05:00
Philippe Saint-Pierre
5dcd116f40 DiskUsage: avoid leaking the saved scan snapshot 2012-11-14 23:07:22 -05:00
Philippe Saint-Pierre
3e52a3d5e5 DiskUsage: added ability to cancel an ongoing scan. fixes #6801.
Also, progress now goes from 0.0 to 1.0 rather than from 0.00 to 100.00
(to avoid a * 100, followed by a / 100)
2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre
9029fc709b DiskUsage: update status view after zoom in or zoom out. fixes #6756. 2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre
a4ef1e81ce DiskUsage: remove path monitoring and "outdated view" notification
Was unreliable, too many files to monitor (would exceed too easily the 4096 files limit).
2012-11-14 22:33:44 -05:00
John Scipione
08282eb476 Remove cast to BMenuItem* it is not needed 2012-11-14 14:43:29 -05:00
John Scipione
fc18a4f5b3 Alter Add and Remove methods to return whether or not the add or remove succeeded. 2012-11-14 14:39:10 -05:00
John Scipione
11f46c6d37 Assume AddItem and RemoveItem could fail and handle those cases.
This is some defensive coding that assumes that the AddTeamMenu(),
RemoveTeamMenu(), AddSeperatorItem(), and RemoveSeperatorItem()
methods might fail and tries to compensate. Although it is unlikely
to be the case that these methods could fail I am trying to prevent
the bug that caused #9151 to happen.
2012-11-14 14:29:09 -05:00
John Scipione
cb7c5f05bb Use a static_cast when removing menu item from BarMenuBar
... instead of a C-style cast. Also some minor style fixes.

Might fix #9151 although since I can't reproduce the bug here I have
no way of knowing.
2012-11-14 14:00:25 -05:00
John Scipione
0f10682f8b Small style fix 2012-11-13 18:51:57 -05:00
John Scipione
df02847b49 Update Workspaces about dialog 2012-11-13 01:53:31 -05:00
John Scipione
b23f8cd41f Destroy AboutWindow on destruction 2012-11-13 01:42:01 -05:00
John Scipione
c191daa816 remove uneeded comment 2012-11-13 01:41:25 -05:00
John Scipione
d4d5bf6c50 Update PowerStatus about window 2012-11-13 01:37:30 -05:00
John Scipione
5070e7e222 Init fAboutWindow NULL first 2012-11-13 01:29:10 -05:00
John Scipione
83baea76a8 Update copyright info for ProcessController 2012-11-13 01:24:18 -05:00
John Scipione
be7c552a50 Bring AboutRequested() method back, not sure why I removed it. 2012-11-13 01:18:37 -05:00
John Scipione
730a45ee8f Rework NetworkStatus to use a non-modal BAboutWindow 2012-11-13 01:12:44 -05:00
John Scipione
5bf91175bc Haiku may be alpha quality, but DeskCalc isn't 2012-11-13 00:45:01 -05:00
John Scipione
cea3811974 Remove About DeskCalc... from right click menu.
We decided not to include about dialogs in system apps (right?)
2012-11-13 00:36:33 -05:00
John Scipione
80d7bf83bd Add authors back. 2012-11-12 23:57:33 -05:00
John Scipione
97a814061e Instead of destroying the BAboutWindow object on close, Hide() it, then on the destructor of the calling window call Quit() explicitly to destroy it. 2012-11-12 23:57:30 -05:00
John Scipione
12a9a71db6 Use a quit bool in B_ABOUT_REQUESTED to indicate that the about window has quit instead of using kAboutWindowClosed message. This prevents message signature clashes. 2012-11-12 23:57:27 -05:00
John Scipione
3fdab58446 Set the about window object to NULL on close or quit.
Pass the BHandler object that opened the about window to BAboutWindow.
When the window closes, send a kAboutWindowClosed message back to the
handler. This allows the handler to set the variable to NULL.

Implement the new about dialog constructor in all apps that use it.
Remove the old constructor. This now works reliably for all cases I
tested without crashing and does the right thing on close. The setup
and teardown is a bit more complicated than I wanted though.
Unfortunately this seems to be necessary when not using a BAlert.

Fetching the app icon does not work reliably yet. This is because for
replicants the app may not be running. I may have to pass the icon in
instead of grabbing it from the signature.
2012-11-12 23:57:26 -05:00
John Scipione
5b0cd98792 WIP: Create the about dialog once, hide and show, Quit() when object is destroyed. 2012-11-12 23:57:25 -05:00
John Scipione
0046f44436 Modify about window to take an app signature.
* Grabs the app icon and version from the resource file.
* Allow you to specify the copyright holder instead of hardcoding
  "Haiku, Inc."
* Support multiple extra copyright fields.
* Modify BAlert to take a custom icon.
* Set the custom icon of the BAlert to the app icon.
* Also set the app version.

* Convert BAboutWindow to derive from BWindow
* Place a 128x128 icon and fill out a scrolling BTextView
  with options such as authors, version history, copyright,
  license, etc. Still needs some work but is coming along.

* Add the word Version to the version line, i8n'ed of course,
  and tweak the info box and default sizes.
2012-11-12 23:57:24 -05:00
John Scipione
1a5df674c1 Fix saving and re-expanding items.
Subtle bug #1 found, 11th hour change broke this feature, fixed
once again.
2012-11-12 23:30:51 -05:00
John Scipione
a05a00c849 Tiny style fix 2012-11-12 22:03:27 -05:00
John Scipione
d1e438cad1 Force app menu to auto-layout before recomputing scroll limits.
This makes Deskbar correctly calulate the scroll limits in the case
when scrollbars are attached but not due to an app being added or
removed for example because the icon sizes increased.
2012-11-12 22:03:26 -05:00
John Scipione
652a115c1c Use fDragRegion width not left, you can't depend on the screen position reliably 2012-11-12 22:03:26 -05:00
John Scipione
27a53c3c9e Fix build, forgot a { 2012-11-12 22:03:25 -05:00
John Scipione
b4c922197c Fix Deskbar crash when scroll arrows are removed.
fExpando is added and removed from InlineScrollView only and it is
created and destroyed in BarView only. Before this there was a
case where it was removed in both InlineScrollView and BarView
causing a crash from the double remove
2012-11-12 22:03:25 -05:00
John Scipione
3135d0e0de Shrink icon only width a bit to make room for more icons
...before turning scrolling on.
2012-11-12 22:03:24 -05:00
John Scipione
e4f9bfce33 Need to position window before checking for scrolling.
Otherwise when you switch from bottom mini mode to vertical expando mode
you'll get scroll arrows when you shouldn't because the bottom of the
window frame will be below the screen.
2012-11-12 22:03:24 -05:00
John Scipione
dec421b1db Make sure that you remove the separator item before adding the team menu in mini mode or it won't work all the time 2012-11-12 22:03:23 -05:00
John Scipione
d6f6b835ad Draw a nice menu background on the inline scroll view and when scroll faster when you push control/option/command and click the little arrow button. 2012-11-12 22:03:23 -05:00
John Scipione
0e100a37a9 Cleanup 2012-11-12 22:03:22 -05:00
John Scipione
ed75ca7201 Set the scroll arrow limit based on the min menu item widths
... rather than the current menu item widths. This means that
Deskbar will shrink the menu items until they are at their minimum
size before it activates the scroll arrows. Previous to this
change the scroll arrows were being turned on prematurely. Also
lower the minimum menu item width to the icon width + 50pixels which
is arbitrary but looks good to my eye.
2012-11-12 22:03:22 -05:00
John Scipione
c07e6ff292 Make horizontal scrolling work in Deskbar
* Split the Leaf menu and seperator into their own menubar.
* I got rid of a lot of special cases for horizontal in the
  ExpandoMenuBar class because now the menubar contains the same
  items as in vertical mode. However, it also means that the dreaded
  <none> bug also affects horizontal mode.
* Make the application menubar resize itself even in horizontal mode.
  This means that the view background shows through so I'm going to have
  to fix this up.
* Calculate when to add the scroll arrows and how much to allow the user
  to scroll by for horizontal. CheckItemSizes() got a big refactoring.
* Rework the InlineScrollView class a bit. It no longer requires you to
  specify the begin and end limits on construction because it can
  calculate them instead. It also no longer depends on the screen at all,
  this means this class can be extened to be used more generally and in
  more places.
2012-11-12 22:03:22 -05:00
John Scipione
e6d8c22a7d WIP: Add support for horizontal scrolling. 2012-11-12 22:03:21 -05:00
John Scipione
255853fe15 Add left and right Scrollers and also an orientation parameter. Set the limit based on the view bottom and not the window bottom. 2012-11-12 22:03:21 -05:00