Axel Dörfler
1419175c27
The FontSelectionView's preferred height was one pixel too large.
...
Now use ceil() instead of floor() to compute the complete font height.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 14:47:31 +00:00
Axel Dörfler
10c470638d
Now checks the font list every 3 seconds, and updates it if there were any changes.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 14:41:29 +00:00
Stephan Aßmus
5211328a37
turn off on-screen debugging for now, the errors it reported are not that critical, and printing the debug info itself could lead to problems
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 13:38:22 +00:00
Stephan Aßmus
0d660a960b
handle errors when reading from the link, at least for the bigger items, it should be enough to just check the error in the last call to Read(), since previous errors are kept in the Link
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 13:37:08 +00:00
Stephan Aßmus
fabffa3867
fixes for Stroke and FillPolygon
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 13:14:24 +00:00
Stephan Aßmus
97078ce5e6
also return B_BAD_VALUE in case NULL pointer passed, please yell if you disagree with this change, but I thought the client code could look less cluttered this way
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 12:00:10 +00:00
Axel Dörfler
04cd47db59
common_access() now follows the same logic as traversing paths: if the file system
...
doesn't export the fs_access() function, it assumes access is granted.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 11:17:03 +00:00
Stefano Ceccherini
ac50702270
BMenu::FindMarked() was broken just like FindItem() was. And it's even my fault. Yay!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 10:12:58 +00:00
Jérôme Duval
6dd2dfb15e
update time preference signature
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-10 09:36:52 +00:00
Axel Dörfler
7c3d8ad0c7
* added a call to png_set_strip_alpha() which could fix the alpha channel
...
problem we're seeing (at least I couldn't reproduce the problem anymore).
* SaveToPNG() now returns an error code.
* cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 23:52:27 +00:00
Axel Dörfler
789f68f07a
Cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 22:25:34 +00:00
Axel Dörfler
2f48d972f7
* Fixed updating in non-INSTANT_UPDATE mode.
...
* should now build correctly with Dano, R5, Haiku, and libbe_test targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:24:23 +00:00
Adi Oanca
76d68e8ad8
More cleanup.
...
* moved code from Layer::do_MoveBy/do_ResizeBy/do_ScrollBy into
Layer::MoveBy/ResizeBy/ScrollBy()
* removed do_Move/Resize/ScrollBy()
* removed WinBorder::_ResizeBy()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:14:52 +00:00
Axel Dörfler
90dfa70739
* ServerFont now also adopts the FontStyle's face and direction on
...
construction.
* ServerFont::SetStyle() now adopts the style's face and direction, too.
* Started a more sane handling of ServerFont::SetFace() (at least there's
a to-do comment :-)).
* Minor cleanup (GetStyle() -> Style(), GetFamily() -> Family(),
GetPath() -> Path()).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:10:40 +00:00
Axel Dörfler
4e7d1d4b6a
Oops: 1) fixed warning, 2) added missing bracket (in PrintToStream() output).
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:05:58 +00:00
Axel Dörfler
31cff4dc84
Made BFont::PrintToStream() a bit more useful.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:04:12 +00:00
Axel Dörfler
a4c2c8924d
* No longer updates anything in SetDefaults() if the default font is the
...
same as the current font.
* Don't allow reverting after "Defaults" if there were no changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 20:03:27 +00:00
Axel Dörfler
2fe84ae95f
Now AS_GET_DEFAULT_SYSTEM_FONT actually returns the default font as used
...
by the app_server (ie. also if it's a fallback font).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 19:22:21 +00:00
Axel Dörfler
974dd00c85
The font manager now has default fonts for bold/fixed as well - these are now used
...
in the DesktopSettings as defaults, too (but can be changed there).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 19:16:25 +00:00
Axel Dörfler
16f782ccbd
Implemented AS_SET_SYSTEM_FONT.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 19:14:13 +00:00
Axel Dörfler
74ca263c69
More or less rewrote the font preferences panel:
...
* no more "Rescan" button (although the font list is never updated yet)
* completely font sensitive
* centers window on screen if settings are invalid or not existing
* now updates the system fonts instantly, and not when you close the app
* added author list, although I am not sure who actually initially wrote it
(our CVS history unfortunately doesn't reach that far)
* major cleanup
* removed unused stuff
* and more.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 18:42:05 +00:00
Axel Dörfler
f1d70d8037
New private function _get_system_default_font_() that makes the AS_GET_DEFAULT_SYSTEM_FONT
...
command available to the fonts preferences.
Now uses the maximum length argument for LinkSender::AttachString() it got from the API user.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 18:37:01 +00:00
Axel Dörfler
d0a688ee92
Introduced and implemented new font command AS_GET_DEFAULT_SYSTEM_FONT that returns
...
the default fonts of the app_server.
Moved some font command implementations around to group them a bit better.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 18:34:48 +00:00
Axel Dörfler
f46e077c5f
Changed the meaning of the second parameter in AttachString(): it's now the maximum
...
length, not the length of the string.
Introduced a maximal string length that may be sent at once.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 18:28:13 +00:00
Ingo Weinhold
88ccb61ad5
Removed GCC headers float.h and varargs.h. Fixed limits.h.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 18:01:16 +00:00
Adi Oanca
b89fefc7c4
use DEBUG_CONV to print some output not the global DEBUG
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 17:33:47 +00:00
Axel Dörfler
8f4959d844
Both BMenu::FindItem() versions were broken and could return a wrong item.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 17:21:12 +00:00
Jérôme Duval
c94c34e8cf
checked keymap paths
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 17:20:23 +00:00
Stephan Aßmus
2b97fe884d
now updates BView::PenLocation() correctly after DrawString(), stuff like DrawChar('a') is working nicely now, for rotated text much better then in BeOS in fact because of subpixel precision in pen location
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:55:08 +00:00
Ingo Weinhold
5fdbbf2ba5
Renamed UnitTesterHelper.* to UnitTester.*.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:23:11 +00:00
Ingo Weinhold
5cdc84cc43
No longer needed.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:19:15 +00:00
Ingo Weinhold
155b583ac3
Fixed unit tests build for platforms libbe_test and r5. Only randomly tested
...
a few whether they actually work.
New pseudo target "unittests", which builds all unit tests for the currently
set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:17:31 +00:00
Axel Dörfler
5e3af71d64
More or less correctly implemented GetPreferredSize().
...
The menu bar is now resized to a proper size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 15:39:38 +00:00
Axel Dörfler
86343dcbcf
There is no reason ComputeLayout() needs a parent/window - in fact, it should always
...
work correctly (for GetPreferredSize()).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 15:37:58 +00:00
François Revol
edeb640ab0
discart "File not found" errors for app sigs; make sure the shell gets any error
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 13:46:50 +00:00
Stephan Aßmus
f8e33ed5bd
fixed current pen position, thanks to Stefano for spotting this one, I looked very hard in the same place, but didn't see it :-)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 13:28:15 +00:00
Stefano Ceccherini
ba48e86927
Removed leftover
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 23:55:27 +00:00
Stefano Ceccherini
e16b3f2972
friend is bad. Protected, even.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 23:48:13 +00:00
Axel Dörfler
e3343885bb
Even if Adi really don't like it, it's perfectly okay to resize or move a layer before
...
adding it to its parent.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 23:48:06 +00:00
Stefano Ceccherini
8fbbd37f83
Added some code for notifying client BDirectWindows that the window was moved or resized. Currently commented because of other problems. Looks like the windows bounds are not changed if a MoveBy() is called before the window is shown. Removed unneeded includes. Small changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 23:26:47 +00:00
Stefano Ceccherini
602d0ba42c
Remove IPoint.cpp from the build as no one needs it
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 23:25:31 +00:00
Axel Dörfler
d08f8a6e68
Upon construction, the font is not locked by the drawing engine, so we better lock it ourselves.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 19:29:05 +00:00
Axel Dörfler
5e4d267b5e
The FontStyles are already deleted when deconstructing the family list - the
...
styles hash table shouldn't try to delete them again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 19:04:01 +00:00
Adi Oanca
68e424c88b
fix app_server build for R5 testing
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 18:18:18 +00:00
Adi Oanca
02414ebd4e
Cleanup.
...
* removed old Convert{To|From}{Parent|Top} methods. They were replaced by
Convert{To|From}{Parent|Screen}(type *data)
* removed some unused methods from Layer class.
* re-aranged Layer's class declaration - grouped methods
* made all Layer's members private.
* renamed a few private methods from method_name _MethodName
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 17:38:07 +00:00
Axel Dörfler
ec9b3f7ca1
The font manager now utilizes a hash table to look up fonts by ID.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 16:49:33 +00:00
Axel Dörfler
5f5dfa87e1
Applied our style guide.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 10:35:41 +00:00
Axel Dörfler
d29f332ad4
"rc" should now produce R5 compatible flattened messages on Dano and Zeta.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 10:18:00 +00:00
Ingo Weinhold
14998c8bd5
Zeta apparently uses a OS major version >= 6.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 09:29:13 +00:00
Stefano Ceccherini
0266d3fd18
Made ServerWindow::_HandleDirectConnection() a public method. It will be called from WinBorder too.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 08:32:32 +00:00