Commit Graph

16345 Commits

Author SHA1 Message Date
Axel Dörfler
43d7fe9753 * Added two new constructor forms that allow you to create a BMessageRunner
that is detached from its local object; ie. it will continue to send its
  messages when you delete the object.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 12:27:16 +00:00
Axel Dörfler
dd48600aac Minor cleanup, added a TODO about the ability to reset the parameters of
BMessageRunners that already sent their message(s).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 12:21:22 +00:00
Jérôme Duval
f357360c0e added more multibyte glibc functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 11:49:00 +00:00
Axel Dörfler
cbc6a45a40 * Fixed crashing bugs, and thus bug #88.
* Cleanup, make it better fit to our style guide.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 00:25:30 +00:00
Axel Dörfler
dcf60976b6 * New types are now no longer directly added, but delayed a bit (via a BMessageRunner);
this is done so that the type can be fully installed before investigating it.
* When the preferred app of a type changes, the "is application" property will be
  reexamined - this should help in letting new application types appear in the
  FileTypesWindow list, but not in the ApplicationTypesWindow list.
* Added a progress window for removing uninstalled apps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 23:47:26 +00:00
Axel Dörfler
8fee027ee3 Updated the resource app version information.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 21:31:30 +00:00
Axel Dörfler
56c5bd3a77 Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 21:19:22 +00:00
Axel Dörfler
f5659a7615 Quick build fix, Stippi, can you review this?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 20:43:35 +00:00
Axel Dörfler
5ac11f960a * Fixed various minor font sensitivity/resize problems.
* Fixed translator version info; didn't correctly displayed versions < 1.
* Drastically improved looks of that info alert.
* Nicer version alert.
* Renamed class DataTranslationsView to TranslatorListView.
* Added license.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 20:14:13 +00:00
Stephan Aßmus
e7df4a4829 add a small test that stress tests window creation and destruction
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:41:51 +00:00
Stephan Aßmus
df29904e48 update error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:40:49 +00:00
Stephan Aßmus
30ce5790f2 added two TODOs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:39:35 +00:00
Stephan Aßmus
a587720a30 print something to stderr when window creation fails
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:39:03 +00:00
Stephan Aßmus
a0cfff3e97 fix crash in case fTopLayer is NULL when the window is destructed, this will happen when the ServerWindow thread could not be run
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:38:20 +00:00
Stephan Aßmus
d26af39650 actually add the converted rects to the region
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:37:28 +00:00
Stephan Aßmus
47c2c0f2c8 fix some memory leaks, please review
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:35:47 +00:00
Stephan Aßmus
a9bee75b3e fix a problem in case the port id was indeed 0, which is very unlikely though
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:34:36 +00:00
Stephan Aßmus
ecf9f94800 * cleaned up fPulseRunner stuff, I have no idea why fPulseEnabled was
useful... so I removed it
* fixed memory leak with SetPulseRate(0), fPulseRunner is now
  properly freed in the Window destructor
* fTitle is now freed as well
* fix some potential leaks in BView destructor as well

I wrote a stress test app, which I'm soon going to commit as well...
it shows that not all memory leaks are fixed by this patch, I could
use some help with this...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:32:53 +00:00
Axel Dörfler
4316cb15fa * Fixed various font sensitivity and other issues.
* Worked over config views, they now look much cleaner.
* This fixes bug #214.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 18:55:38 +00:00
Michael Lotz
a45369f00a Renaming the Message4 magic to Haiku Message Format 1. Now off to real work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 18:39:42 +00:00
Michael Lotz
bdbd1cb441 Removing the USING_MESSAGE4 define.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 18:06:46 +00:00
Michael Lotz
2bf8fb3a96 Putting Message4 into place to become the new BMessage implementation. Will cleanup USING_MESSAGE4 now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 17:55:47 +00:00
Michael Lotz
16ba0dc5ca Removing old BMessage implementation. Message4 will replace it in the next commit.
This will allow to fix message related problems like drag and drop and scripting.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 17:52:56 +00:00
Michael Lotz
be25ae8698 Flushing last changes in preparation of replacing the old BMessage with Message4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 17:36:13 +00:00
Axel Dörfler
40fc37b0ae * Fixed GetPreferredSize()
* Text height was computed with roundf() instead of ceilf() (which makes more sense).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 17:21:17 +00:00
Axel Dörfler
eb8d1e3895 * Made preferences window font sensitive, this fixes bug #196.
* BottomPrefsView is no longer needed (just contained two buttons, moved
  their creation to the PrefsWindow class).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 17:12:27 +00:00
Jérôme Duval
bd0a76ccc4 actually check errno instead of master
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 16:02:43 +00:00
Axel Dörfler
067407432e * GetModeList() didn't correctly check if the mode list allocation failed.
* No longer changes the arguments in case of an error.
* Takes communication errors more gracefully.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 15:15:25 +00:00
Axel Dörfler
f157272bee * You are supposed to free() the mode list returned by BScreen::GetModeList(),
and not to delete it.
* The header didn't include everything it needed.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 15:13:19 +00:00
Axel Dörfler
04d40ff247 * Fixed flattening/unflattening text_run_arrays; they have to be converted to
and from big endian - this fixes our StyledEdit not being able to read files
  written under BeOS and vice versa.
* Made UnflattenRunArray() more robust against missing fonts; the style is now
  tried to be preserved. Note that BeOS doesn't maintain the "face" field in
  the flattened run arrays correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 12:58:31 +00:00
Axel Dörfler
9acf186f65 * Made GetStyledText() and WriteStyledEditFile() more robust against errors.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 12:50:47 +00:00
Axel Dörfler
5b14ba1a07 * Now uses BTextView::FreeTextRunArray() instead of just free() where appropriate.
* When reading/writing int32, the type of the variable should match.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 12:48:38 +00:00
Axel Dörfler
d51ecfd248 Made helper functions static.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 11:05:16 +00:00
Axel Dörfler
e389ac9d78 * Removed superfluous Delete*() methods.
* Invocations like SetShortDescription("") will now remove the description as
  well, not only SetShortDescription(NULL).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 10:57:47 +00:00
Axel Dörfler
31139022cd * Fixed some minor bugs and oddities, improved error messages.
* Big-time cleanup, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 00:13:18 +00:00
Axel Dörfler
6d24fdc557 Better means to debug apps that try to acquire kernel semaphores.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 23:55:50 +00:00
Stefano Ceccherini
bf8dbdb413 Draw the shortcut character a bit more to the right, in line with the menu symbol
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 22:50:34 +00:00
Stefano Ceccherini
b704350079 Add the textrect border width to the total width of the control when in autoresize mode
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 22:35:30 +00:00
Marcus Overhagen
31c533d926 This should fix mouse problems that occured with MS Virtual PC.
The test for active multiplexing support now validates all data.
Cleanup of ps2_set_sample_rate, retrying isn't needed. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 22:03:30 +00:00
Axel Dörfler
f5d5a442b8 Supported types can now be edited and saved (but not their icons yet).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 21:53:09 +00:00
Jérôme Duval
da192ba4dd implemented input_server notification of IM aware focus changes, not tested
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 16:53:50 +00:00
Axel Dörfler
36e7c9a636 SetValue(Value()) is a no op, and we need to invalidate a bit more than
that, anyway. This should fix the broken resize behaviour of the slider
(as, for example, seen in DiskProbe).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 14:39:53 +00:00
Axel Dörfler
1e766d4688 Moved the ViewUnderMouse() functionality from the EventDispatcher to the Desktop;
this saves us some locking headaches and solves a possible deadlock in
ServerApp::Activate().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 13:03:41 +00:00
Axel Dörfler
e0e1c52865 Fixed a possible endless recursion (just do a ResizeBy(0.4, 0.4) or something like this
in your FrameResized() method - exposed by the TextView auto resizing feature).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 12:40:01 +00:00
Axel Dörfler
73bc0d629e * Fixed a possible locking bug in Desktop::WindowAction().
* Cleaned up locking a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-10 11:42:58 +00:00
Axel Dörfler
87b1f40c0f * Fixed misbehaviour of AS_SET_CURSOR: it will no longer set the mouse cursor
when it's not over a view of the application.
* The application cursor is no longer applied when the mouse cursor is over
  the border (or tab) of a window.
* Gave up and imitate BeOS behaviour: the mouse cursor now always get the
  shape the view below dictates, ie. it will no longer fall back to the
  default cursor outside the focus window.
* The window is now set to the default in case there is no window under it
  at all (ie. if Tracker isn't running).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 22:54:10 +00:00
Axel Dörfler
6417229f7c Floating and left titled windows are now always drawn "active" (ie. have a yellow
tab that doesn't become gray, even if another window gets focus), adopting the
R5 behaviour.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 22:13:00 +00:00
Axel Dörfler
afa8d8ef2e Added the "folder" MIME type, and added icons to that one and the application
MIME type - this is what Tracker does when it's launched, anyway, and it
fixes bug #224.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 21:31:25 +00:00
Axel Dörfler
5bf3af3bad Minor improvements.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 21:30:25 +00:00
Axel Dörfler
1d5fe17898 Fixed zip MIME type (wrong application signature).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 19:56:12 +00:00