Commit Graph

37625 Commits

Author SHA1 Message Date
Clemens Zeidler
e7de22dcff fUsingSummands was never used so remove it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 21:08:26 +00:00
Clemens Zeidler
59c3263165 Replace new by new(std::nothrow).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 20:46:40 +00:00
Axel Dörfler
e6cec9839d * BNetworkAddress isn't really BArchivable material, switched to BFlattenable
instead.
* Also actually implemented the serializing functionality this time, as usual
  completely untested, though :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 20:29:37 +00:00
Clemens Zeidler
bf5d40704e Fix bug spotted by Christian Lippka, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 20:12:22 +00:00
Axel Dörfler
8bbce28359 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 19:39:13 +00:00
Axel Dörfler
52702ce24d * indent is obviously only 2 spaces.
* BTW, the tests work on GCC4 just fine, only the GCC2 build doesn't work, so
  it's likely to be a newly introduced compiler problem as those tests worked
  under BeOS fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:51:33 +00:00
Axel Dörfler
8a8c62d587 * Build fix for GCC4.
* Use CPPUNIT_ASSERT() instead of assert() in unit tests.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:46:58 +00:00
Axel Dörfler
d463afccb1 * Build fix for GCC4.
* Use printf() instead of the std::cout stuff.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:05:32 +00:00
Adrien Destugues
4d41072817 Remove useless comment. Thanks Ingo for watching out.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 17:38:19 +00:00
François Revol
5846841e68 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 17:15:51 +00:00
Adrien Destugues
627ced128b Use a better way to store the attributes for end of line. This should also fix some other bugs, as there were occasionalaccess to out-of-range chars.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 16:51:25 +00:00
Jonas Sundström
e55a3c6a38 Making the clock optionally non-interactive, display-only and drawn without the seconds hand.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 15:57:46 +00:00
Michael Pfeiffer
c0aa3379bb Improved error reporting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 08:51:58 +00:00
Michael Pfeiffer
fad059587c Use better variable name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 08:12:39 +00:00
François Revol
917c4aeb8d ISO C and POSIX mandate _Exit() in stdlib.h to be the same as _exit().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 05:07:53 +00:00
Adrien Destugues
3096fb8154 Style fix as pointed out by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 21:15:43 +00:00
Siarzhuk Zharski
09f62acc18 Draft and partial Belarusian translations that was made by S.Zharski.
Added as part of preparation to start next "F-N" and "O-Z" GCI tasks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 20:14:25 +00:00
Philippe Houdoin
3986ce0335 Relative add-ons pathnames are now searched in ADDON_PATH too
if they're not found from current working directory.
Fix #6427.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 09:57:16 +00:00
Siarzhuk Zharski
d037ff9fa6 Fix broken build. I'm sorry for the inconvenience. I promise to
check build of the catkeys, generated by HTA before commiting them next time. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 00:08:21 +00:00
Jérôme Duval
8f9cef36d1 added missing prototypes and moved some around.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 00:07:33 +00:00
Siarzhuk Zharski
79bcfcc891 Belarusian translation for so called "A-E Range" GCI task. Made by Mike Roll (Michal Bulosh).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 23:50:38 +00:00
Siarzhuk Zharski
9729bed77c Draft of Belarusian translation files made by S.Zharski. Just to fix the state
of the "Range A-E" _before_ corresponding GCI task was completely performed 
by Mike Roll.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 23:30:48 +00:00
Ingo Weinhold
9f1aca35af Implemented Humdinger's resizing method, activated on Cmd-Ctrl-middle-click.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 21:36:45 +00:00
Adrien Destugues
a8e3ab4f46 Enable the VBlank interrupt on pipe B for LVDS panels. This gets it working for me. Most stuff using BDirectWindowand synced drawing should now work better (\n and TVBack demos for example)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 20:36:40 +00:00
Ingo Weinhold
97d623045e ResizeBorderState: Set a suitable mouse cursor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 20:29:10 +00:00
Ingo Weinhold
8689fe066a Added method SetManagementCursor() that allows to set a cursor that overrides
the normal cursor set with SetCursor(). Intended for window management
interactions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 20:25:57 +00:00
Ingo Weinhold
006f748565 * Got rid of DefaultWindowBehaviour::Region again. Since we also need to
discriminate between the different borders and corners, there wasn't much
  difference between it and Decorator::Region anymore and we can as well use
  the latter.
* Added new state ManageWindowState which is entered when the mouse is over the
  window and the window management modifiers are held down. When being in this
  state the borders that will be resized when pressing the right mouse button
  are highlighted.
* Added State::ExitState() hook for cleanup work.
* _NextState() does now call Desktop::SetMouseEventWindow() for our window when
  entering a new state, respectively resets it when going stateless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 18:28:52 +00:00
Ingo Weinhold
92fe8be943 * ExtendDirtyRegion(): The left and right border rects don't include the
corners. Make sure they are added as well.
* GetComponentColors(): Added support for HIGHLIGHT_RESIZE_BORDER. We simply
  shift the standard colors towards blue. Improvements welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 18:17:34 +00:00
Philippe Houdoin
d5d2fdf0b3 * Renamed some option to match more RFC2132 names
* dhcp_message::NextOption() now set cookie.next to NULL on exit if there is no space left
* dhcp_message::Size() now handle OPTION_OVERLOAD case
* Renamed _ToString() to _AddressToString()
* Any error message send by DHCP server will show up in syslog now
* Reorganize DHCPClient::_PrepareMessage() to make more easy to see which
  option is added per message type.
* OPTION_SERVER_ADDRESS was always added to DHCP_REQUEST, which MUST NOT
  in renewal and rebinding state according RFC 2131.
* add device name to resolver configuration: WIP for #6915...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 17:11:22 +00:00
Oliver Tappe
eaab4bd5e9 Fix #6758:
* adjust TruncTimeBase() in libtracker's WidgetAttributeText to use
  the BString-based versions of BLocale's date formatting methods
* restored the 6 different formats Tracker used to try and fit into
  a date column (i. e. it now behaves pretty much as it did before the 
  introduction of the Locale Kit)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 15:22:40 +00:00
Ingo Weinhold
37ba7e5389 Flush the bitmap caches for the zoom and close button, when their hightlight
changes. Fixes that the buttons were not drawn with the right color when the
S&T tab highlight was active.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 14:52:56 +00:00
Ingo Weinhold
07655104d5 Eliminated _acquire_spinlock(). Since the macro is defined after
acquire_spinlock_inline(), there's actually no undesired recursion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 13:55:20 +00:00
Ingo Weinhold
c07db2ec3f * elf_find_symbol(): Skip undefined symbols and symbols with the wrong binding.
* Implemented missing handling of symbolically linked images and of weak
  symbols.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 13:32:24 +00:00
Ingo Weinhold
003b80f0bb Fixed gcc 2 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 13:24:10 +00:00
Clemens Zeidler
c97cd0f4da Also update the preferred size constraints correctly when replacing the tabs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 04:33:06 +00:00
Clemens Zeidler
5cfaa5ee78 Some clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 04:23:52 +00:00
Clemens Zeidler
81c40be9fc Simplify the Pinwheel demo according to the last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 04:23:13 +00:00
Clemens Zeidler
8fa4fd37b7 Keep the preferred size ratio into account. This make layout behaviour much more intuitive when resizing a window. Thanks Christof.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 04:20:38 +00:00
Ingo Weinhold
2b602c7364 * Decorator:
- Added ExtendDirtyRegion(), given a decorator region it extends the given
    dirty region. Implemented only in DefaultDecorator yet.
  - Added [Set]RegionHighlight() which allows to set/get a highlight for a
    decorator region. The visual representation of the set highlight value
    is up to the derived classes. The only globally defined value is
    HIGHLIGHT_RESIZE_BORDER, though it's not implemented anywhere yet.
* DefaultDecorator: Added the highlight for the component as a parameter to
  GetComponentColors(). Added a wrapper _GetComponentColors() with the old
  interface, fetching the highlight from the base class.
* SATDecorator: Defines and interprets its own highlight value
  HIGHLIGHT_STACK_AND_TILE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 01:03:27 +00:00
François Revol
d66b59cdfc wget should handle https as well just file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 00:43:46 +00:00
François Revol
94ce028380 BUrl::Full() actually doesn't contain the protocol part, add it back for ftp so it understands it's an url. Add it for wget as well, doesn't hurt.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 00:37:58 +00:00
Ingo Weinhold
06aa76e216 DefaultDecorator(/SATDecorator):
* Use a separate color array for the buttons, instead of using that for the
  tab.
* _DrawBlendedRect(): No longer gets the focus flag, but gets a color array
  instead.
* _GetBitmapForButton(): Made non-static and removed the "focus" and "object"
  parameters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 23:23:08 +00:00
Ingo Weinhold
09b19da8c2 Introduced enum DefaultDecorator::Component to refer to the components of the
default decorator and used it instead of Decorator::Region where appropriate
(GetComponentColors(), _GetBitmapForButton()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 22:42:21 +00:00
Ingo Weinhold
ad1100115a Don't use the border highlight colors for the tab frame.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 22:32:37 +00:00
Axel Dörfler
06d8bb6f83 * Coding style cleanup, added license. No functional change.
* Note that our tests currently don't work because overloading BTestShell
  doesn't seem to work (the overridden LoadDynamicSuites() is never called).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:04:56 +00:00
Axel Dörfler
fed22d2a04 * Fixed build; the width buffer test seems to be gone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:00:56 +00:00
Axel Dörfler
742d83e3d2 * Fixed warning.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:00:25 +00:00
Axel Dörfler
876a4a3cae * Also call FitToBounds() when you disable stretching, and the image is
currently zoomed in. This closes #6857.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 20:50:09 +00:00
Ingo Weinhold
e3ab8648d1 * DefaultDecorator:
- Introduced a virtual GetComponentColors(), that returns an array with the
    current colors for the specified component.
  - Removed all rgb_color members. Replaced the ones that were actually
    constant by const (or static const) ones and made use of
    GetComponentColors() where the non-constant ones were used.
* SATDecorator:
  - Turned rgb_color members into constants and added an overriding version
    of GetComponentColors().
  - HighlightBorders(): Invalidate the tab, too, as we use the border
    colors for drawing the outer lines of the tab (was this intented?).
    Fixes artifacts when breaking apart titled windows.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 20:07:32 +00:00
Ingo Weinhold
2ee2a8ede4 In FFM mode always update the focus in MouseMoved() regardless of the state.
I broke that with r39608.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 16:41:22 +00:00