Commit Graph

39488 Commits

Author SHA1 Message Date
Václav Slavík
89360a8c87 string iterator's operator- should return difference_type, not size_t or unsigned
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 08:18:33 +00:00
Václav Slavík
1bb592b878 removed spurious semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 06:50:28 +00:00
Václav Slavík
1918a4c47f compilation fix: needs wx/string.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 06:47:51 +00:00
Vadim Zeitlin
bafddbe882 added missing membersection for CreateIconBundle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 00:19:13 +00:00
Vadim Zeitlin
ccc20afae9 fix a fatal crash due to using wxHSCROLL presence in m_windowStyle as indicator of whether we wrap lines or not: this didn't work because wxHSCROLL was temporarily reset in wxWindow::Create() and so we used wxTextWrappedData when we only had created wxTextMultiLineData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 23:25:36 +00:00
Vadim Zeitlin
2e9c0c010a don't skip the scroll position validity check in CalcScrollInc() if m_[xy]ScrollPixelsPerLine is NULL, this resulted in problems mentioned in patch 1696082
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 23:06:42 +00:00
Vadim Zeitlin
600b3983e9 pass 0, not NULL, to SendMsg() which takes long to avoid gcc warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:42:45 +00:00
Vadim Zeitlin
2cdb6fdb13 added mouse wheel support (patch 1696082)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:28:42 +00:00
Vadim Zeitlin
75722dbab8 compilation fix after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:26:53 +00:00
Vadim Zeitlin
94aff5ff86 Call wxTLW::SetDefaultItem() from wxButtonBase::SetDefault() instead of doing
it in wxButton implementations in (almost) all ports; changed its return type
to "wxWindow *" from "void" to accommodate the ports needing the old default
item (replaces part of patch 1696563)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:18:35 +00:00
Vadim Zeitlin
a78a8f7fd5 make test_for_selected_wxbuild target optional (patch 1696363)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 21:45:11 +00:00
Vadim Zeitlin
4609ee2ef8 fix the problem with parsing HTML comments (closes bug 1116708; based on patch 1168583)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 21:02:03 +00:00
Václav Slavík
132276cf0d fix crash in ~wxString with global wxString objects: temporarily move conversion buffers from a hash to wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 17:52:00 +00:00
Václav Slavík
7708a26720 don't build wxscintilla lib if wxSTC is not built
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 13:59:16 +00:00
Vadim Zeitlin
e02c72fa45 fix new wxHVScroll code to build with WXWIN_COMPATIBILITY_2_8==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 13:55:36 +00:00
Paul Cornett
52d16c5e3b Children need to be updated in size_allocate even if widget is not realized.
Fix initial GdkWindow sizes in realize.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 06:13:21 +00:00
Vadim Zeitlin
52b7ece54c compilation fix for !USE_PCH (added missing wx/dc.h include)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 02:08:22 +00:00
Vadim Zeitlin
f18eaf2687 The great wxVScrolledWindow refactoring: allow using it both horizontal and
vertical directions (slightly modified patch 1671181)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 01:58:16 +00:00
Vadim Zeitlin
4e4e981fe6 corrected typo in the creation date
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:51:12 +00:00
Vadim Zeitlin
97660d4213 added wxPosition helper class (extracted from patch 1671181)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:49:41 +00:00
Vadim Zeitlin
9b6b9e0c9c added wxEXEC_BLOCK flag (patch 1620430)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:43:10 +00:00
Vadim Zeitlin
f4f5d5697d use wxFD_XXX instead of deprecated wxXXX in the documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:23:14 +00:00
Vadim Zeitlin
bc855d0932 added wxEXEC_BLOCK flag (patch 1620430)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:18:09 +00:00
Vadim Zeitlin
f605c2584f use wxIconBundle::GetIconOfExactSize() instead of duplicating its code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:54:12 +00:00
Vadim Zeitlin
9b5933bcbc added GetIconOfExactSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:53:06 +00:00
Vadim Zeitlin
ea098413d0 made wxTLW::SetIcon() non-virtual, it was already implemented in terms of
SetIcons() in most of the ports, now do it in all of them


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:40:55 +00:00
Vadim Zeitlin
6a7d4d7190 don't allocate m_refData unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:38:13 +00:00
Vadim Zeitlin
9fc3681aeb don't crash when IsEmpty() is called on invalid bundle; don't assert if GetIcon(-1) is called on an invalid or empty bundle as existing code expects to be able to do it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:36:08 +00:00
Vadim Zeitlin
54eaf0c8b2 don't use invalid wxIconBundles, it results in asserts after recent changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:14:58 +00:00
Vadim Zeitlin
5a5cdd3142 don't try to access empty wxIconBundle in gtk_frame_realized_callback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:05:37 +00:00
Vadim Zeitlin
f718689984 added IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:04:15 +00:00
Vadim Zeitlin
80442e9470 filter out bundles/packages when showing the open file dialog (patch 1675784)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 22:25:23 +00:00
Vadim Zeitlin
3de9120b03 use 2 extensions in a filter in FileSave() for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 22:14:44 +00:00
Vadim Zeitlin
f7aeba1cdd choose the first extension by default, if several are specified, in the save file dialog (patch 1675781)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 22:13:30 +00:00
Vadim Zeitlin
58862dfa1a don't remove the tools we hadn't added to the toolbar (replaces patch 1660201)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 21:59:56 +00:00
Mattia Barbon
105fbe1ffa Rework wxMotif font/color inheritance so it works
like in the other ports.  Avoid setting foreground/background
color for windows and let the toolkit use the natural color.
As an intermediate step font is still explicitly set.

  Handle the cases where m_foregroundColour, m_backgroundColour ir m_font
are not initialized.

  Set default (overridable) X resources to emulate the old look.

  Unify wxMOTIF_NEW_FONT_HANDLING with wxMOTIF_USE_RENDER_TABLE.

  Minor unrelated (sizing) fixes to wxCheckListBox, wxStaticText, wxTextCtrl.

  Tagged with MOTIF_BEFORE_COLOUR_FONT_INHERITANCE before the changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 21:18:33 +00:00
Vadim Zeitlin
d5c87edd82 fix crash introduced in last commit (the correct item variable was shadowed by another one and so remained NULL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 20:31:15 +00:00
Vadim Zeitlin
527343602e 1. changed wxIconBundle to use m_refData and COW to make copying icon bundles
fast (which was needed for 2)
2. make it possible to return wxIconBundles from wxArtProvider
3. implement Mac-specific wxArtProvider doing (2)

(modified patch 1581960)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 19:59:51 +00:00
Vadim Zeitlin
0597e7f977 add support for resources forks in wxCopyFile() (modified patch 1620336)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 18:23:57 +00:00
Vadim Zeitlin
7816e624f3 support accelerators for buttons too (slightly modified patch 1549012)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 17:05:00 +00:00
Vadim Zeitlin
947848a1dd added MacOpenURL() (patch 1235957)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 16:05:11 +00:00
Vadim Zeitlin
6a121452ee document GetAnimation() (patch 1695722)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 15:45:26 +00:00
Vadim Zeitlin
5a9f61010b document adding new resource handlers (patch 1695722)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 15:44:13 +00:00
Vadim Zeitlin
fa89dabe0b don't mention obsolete 2.2 version (part of patch 1695722)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 15:42:42 +00:00
Vadim Zeitlin
e0da84df05 mention more predefined array classes (part of patch 1695722)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 15:41:32 +00:00
Robert Roebling
3e09bcfd02 Restore border around non-scrolling widgets. The
border seems to have the wrong colour now (?).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 14:41:41 +00:00
Vadim Zeitlin
ebe1d1579b use C++ compiler for all getsockopt() tests, not just one of them to fix compilation under HP-UX (patch 1693708)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 13:33:17 +00:00
Vadim Zeitlin
993b016d6c use smaller icons, it looks better (patch 1695225)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 13:25:34 +00:00
Vadim Zeitlin
6daba577e9 use C++ compiler for all getsockopt() tests, not just one of them to fix compilation under HP-UX (patch 1693708)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 13:18:56 +00:00
Stefan Neis
d87887c1b7 Compilation fix for wxCStrData handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 12:28:59 +00:00