Commit Graph

20278 Commits

Author SHA1 Message Date
Jérôme Duval
35169c9564 updated to tzdata2007f
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 12:00:06 +00:00
Stephan Aßmus
a5a90db701 * move include of SupportDefs.h to header, since the types are used there
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:58:59 +00:00
Stephan Aßmus
333a5985cf * vector icon, work mostly by zuMi and tweaks myself
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:58:08 +00:00
Stephan Aßmus
8812976dce * implemented icon size and layout to depend on the system plain font size
(currently, a font size above 16pt will make the icon 64x64, TODO: some
  of the other insets could depend on that value too)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:37:13 +00:00
Ingo Weinhold
da3addea5f Removed incorrect parameter validation in ResizeBy(). Resizing a view to a
negative size is perfectly fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:21:17 +00:00
Jérôme Duval
53fa6fbc76 updated libpng to 1.2.18, thanks Fredrik!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:59:46 +00:00
Ingo Weinhold
e652af1f63 * Pulled most of the implementation of ButtonTest into a new super class
ControlTest.
* Added a test for BCheckBox.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:55:32 +00:00
Ingo Weinhold
c594b2f5f2 Added layout-friendly constructors and implemented Min/Max/PreferredSize().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:52:36 +00:00
Ingo Weinhold
6bef4a07d6 * Added default value for message in two arguments constructor.
* Removed resizing to minimum height in layout-friendly constructors.
* Cache preferred size.
* Implemented all of Min/Max/PreferredSize().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:51:15 +00:00
Ingo Weinhold
a2c9eeee87 Added layout-friendly constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:47:05 +00:00
DarkWyrm
d43de0207a Proofreading fixes for about the first half of the document
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 04:15:27 +00:00
Ingo Weinhold
fa635377e0 Extended the BBox test. One can now play with label and child view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:48:08 +00:00
Ingo Weinhold
4ac1c030e2 New helper class TestView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:46:25 +00:00
Ingo Weinhold
691d242ba1 Override BView::InvalidateLayout() as well to avoid stupid compiler warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:45:25 +00:00
Ingo Weinhold
21156fc9e0 Aesthetical changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:43:42 +00:00
Ingo Weinhold
4b5e868dcd Fixed header guard.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:42:50 +00:00
Ingo Weinhold
caf8aba2c9 * Added layout-friendly constructors and implemented Min/Max/PreferredSize(),
and DoLayout(). When the B_SUPPORTS_LAYOUT view flag is set (as is by
  default when using one of the new constructors) the BBox completely manages
  one true child (the first child that is not the label view).
* Centralized the layout related computation in new method
  _ValidateLayoutData(). The computed infos are cached in a new private
  LayoutData structure.
* GetPreferredSize() was broken in several respects. It does now return the
  same result as PreferredSize(). If B_SUPPORTS_LAYOUT is not set, these are
  the sums of the insets induces by the frame and the label. I.e. those values
  can for instance be added to the child's preferred size to compute the
  preferred size of the compound.

Not sure, if the Haiku-only TopBorderOffset() and InnerFrame() functions still
make sense. With layout management they're actually superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:40:16 +00:00
Ingo Weinhold
d432839022 * Set the _RESIZE_MASK_ macro to 0xffff. It was the bitwise inverse of the
disjunction of all view flags before, and the new layout related flags were
  missing. I suppose there was not striking reason for previous method.
* Made InvalidateLayout() virtual. When implementing layout management
  directly in a derived class instead of a separate BLayout, one needs to
  override it to know when to discard cashed layout infos.
* Added a ResizeTo(BSize) method.
* Avoided ugly multi-line strings in PrintToStream().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:24:38 +00:00
Ingo Weinhold
ea2dcf71dc Added BSize::Set(). BPoint and BRect feature a similar method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:16:20 +00:00
Ingo Weinhold
dd5ac13b5f * Added FixSizeConstraints() functions, which adjust the elements of a (min,
max, preferred) size triple so that they are compatible with each other.
* Implemented AlignInFrame(BView*, BRect).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:14:48 +00:00
Jérôme Duval
0c74b7418a forgot this one (part of mesa 6.5.3)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:02:21 +00:00
Jérôme Duval
428d4d161b updated mesa to 6.5.3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:00:44 +00:00
Jérôme Duval
583b66bf18 added trunc, truncf (and truncl on x86) from glibc
should help on bug #1260


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 18:33:02 +00:00
Stefano Ceccherini
d9be8bc0fe Got rid of a global, hope no one minds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 09:44:13 +00:00
Ryan Leavengood
96493dcae9 Better name: result becomes lines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 05:04:33 +00:00
Ryan Leavengood
26c1085f1b Inspired by Daniel Sandler's Mac OS X recreation of Message, I've added a
little rounded box on the bottom with the full message in it.

Given that currently this version only uses fortune to get it's message this
allows maximum enjoyment of the little anecdotes and jokes provided by fortune.
Though after testing this 60+ times today I'm starting to get sick of fortunes.

I've implemented everything myself here, including breaking the string up on
newlines and drawing each line of text with the right vertical spacing. I
suppose some clever use of BTextView would have been better. But this works
fine and wasn't that much code.

I'm not sure if this was the most productive use of the last 5 hours, but I
learned quite a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 04:59:14 +00:00
Marcus Overhagen
27cc6d1f0f check for scale==0
parse strn chunk
fix spelling errors
prepare for INFO list parsing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 22:03:11 +00:00
Marcus Overhagen
f44764386f code cleanup: replaced bool results with status_t
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 20:15:34 +00:00
François Revol
fc362b8ad7 handle api_version exported from driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 12:46:20 +00:00
Ingo Weinhold
0ce9bc6895 * Pulled generic button code out of CheckBox into a new base class
AbstractButton.
* Added RadioButton and RadioButtonGroup.
* In the BBox test the border style can be switched now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 04:11:17 +00:00
Ingo Weinhold
3ff21b6bf7 libasdrawing.a was including a plethora of libraries. Not sure, what ar
made of this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 01:50:50 +00:00
Ingo Weinhold
4ee595e300 Fix the build. IMHO it's really ugly to use syscalls without even including
<syscalls.h>.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 01:38:58 +00:00
Ingo Weinhold
3111f163b5 Fixed libbe_test build of app server:
* Added <safemode.h> headers.
* Added a failing _kern_get_safemode_option() to libhaikucompat.a.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 19:29:41 +00:00
Ingo Weinhold
9e0276b75d Also include <syscalls.h> where _kern_get_safemode_option() is declared.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 19:24:20 +00:00
Stefano Ceccherini
77974ff171 some forgotten fVariable -> sVariable renaming
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 13:20:50 +00:00
Jonas Sundström
6677ea8715 Makes Switcher icons draw with alpha transparency from the start as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 01:12:19 +00:00
Axel Dörfler
96726e7e24 * Applied Stefano's patch to fix bug #1241; BScrollBar::SetValue() did not work
correctly for out of bounds values.
* BView::ScrollBy() now limits itself to what eventually attached scroll bars allow;
  this fixes the problem Stefano was observing after having applied his patch.
* Reenabled the limit check in BScrollBar::SetProportion(); after the above fix, I
  could not see any misbehaviour of Tracker anymore; IOW Tracker did not rely on
  this before, it was just hiding another bug :)
* Minor cleanup in ScrollBar.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 23:58:21 +00:00
Stephan Aßmus
2a72b9fead * re-enabled the InfoWin
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 23:23:44 +00:00
Jérôme Duval
1068e2caf5 fixed app signature
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 19:24:28 +00:00
Axel Dörfler
021ebd611a Fixed a warning when compiling Tracker for BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 17:54:47 +00:00
Axel Dörfler
618b37dc46 Fixed various incorrect uses of the erase() method of several STL containers I introduced before. Thanks to Stefano for the hint!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 17:45:02 +00:00
Stefano Ceccherini
2f03d0e0ed Changed the loops in BHandler::_SendNotices() and ::_ValidateHandlers().
See also r20183.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 13:15:45 +00:00
Stefano Ceccherini
bfab6b7394 Added some code to fix bug #953. If the mouse moves a bit while the
buttons are down, the popup menu won't become sticky.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 13:05:14 +00:00
Stefano Ceccherini
059ca4bd97 Some other changes, make sure we delete all resources on destruction
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 12:10:44 +00:00
Jonas Sundström
75159db429 The menubar icon at the top-right of Tracker folder windows now uses the view color of its parent view. This fixes bug #551.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 12:09:44 +00:00
Stefano Ceccherini
cf5948ae6c BMenuFrame overlapped partially with a BMenuScroller. This fixes the
spurious lines drawn over the menu. Thanks to Stephan for making me 
notice this!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 11:50:15 +00:00
Stefano Ceccherini
3616859a05 Changed the interaction between BMenuFrame, BMenuScroller and
BMenuWindow. BMenuScroller now is just the scroller button, and it's a 
child of BMenuWindow. This simplifies attaching/detaching the 
scrollers, and it's also a bit cleaner. 
The lower scroller wasn't shown anymore for some reason, and this commit also fixes this problem.
A drawing bug shows up now, though: when scrolling the menu UP, some 
spurious lines are drawn over the menu. I wonder if this is an 
app_server bug or what.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 10:20:06 +00:00
Stephan Aßmus
7d6047f97c * moved Pulse from Apps to Demos
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 09:50:21 +00:00
Axel Dörfler
b851137be0 * Now replaces the first argument with the actual function name as find_command()
also works for partial matches (which for example broke "running" and "ready"
  when you only entered a part of it).
* Renamed the global args pointer to sArguments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 22:31:24 +00:00
Axel Dörfler
694b9a7778 Fixed build under Dano; doesn't work there, though, but hangs on start in some endless loop.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 18:21:44 +00:00