Commit Graph

19113 Commits

Author SHA1 Message Date
Vadim Zeitlin
54af24613f don't add 7 and 14 pixel horz/vertical padding in DoGetBestSize() when the best size is computed from the existing children
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 18:28:41 +00:00
Stefan Neis
3e748fca44 Fixed apparent typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 16:01:56 +00:00
Stefan Neis
aa2f364e34 Avoid using invalid parameters for GpiSetAttrs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 15:46:35 +00:00
Benjamin Williams
2f68106fa0 prevent some obscure wxAUI crashes after DetachPane() is used (crashes only happen in rare cases)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 12:32:51 +00:00
Benjamin Williams
0603bb285c added another AddPane() call which allows the caller to add a new window at a certain point; Hint functions are now public
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 10:59:16 +00:00
Robin Dunn
50f3c41d61 Added wxTopLevelWindow::SetTranslucency and CanSetTranslucency, with
implementations (so far) for wxMSW and wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 03:28:23 +00:00
Michael Wetherell
0b850f25d2 Put the reentrance check inside #ifdef __DEBUG__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 22:21:44 +00:00
Michael Wetherell
f5256c59dd Handle reentrance in the first part of wxClassInfo::Register()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 20:54:07 +00:00
Václav Slavík
e96ff06fc4 don't require <value> node in wxColourPickerCtrl's XRC handler, use black as default (i.e. do the same that C++ code does)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 15:34:34 +00:00
Václav Slavík
984f1d84fd added default value argument to wxXmlResourceHandler::GetColour()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 15:32:57 +00:00
Václav Slavík
374caf2301 use <value> instead of <default-*> for initial value of picker controls in XRC, for consistency with other controls' handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 15:21:25 +00:00
Václav Slavík
af6ad98461 fixed crashes in wxFile/DirPickerCtrl::GetPath() due to incorrect casting in multiple inheritance hierarchy and incorrect casting to wxFilePickerWidget in wxFileDirPickerCtrlBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 15:13:04 +00:00
Václav Slavík
42c09d20bb fixed typos in *picker.cpp files' headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 09:56:16 +00:00
Vadim Zeitlin
2cf3a6d7be don't create non-existing groups in HasEntry()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 22:46:31 +00:00
Vadim Zeitlin
41f3015283 fix the bug with the current path being restored if it was under the group being deleted with DeleteGroup(); clarify what happens in this case in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 22:08:43 +00:00
Włodzimierz Skiba
f0fa8b47ab PCH and wxUSE_* fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 19:03:10 +00:00
Benjamin Williams
483c90c20c hint window pane should always be shown so that hints will be drawn for even currently hidden panes being dragged around
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 13:56:22 +00:00
Mart Raudsepp
01207937f6 Return false from PositionToXY if passed in position is larger than the buffer. This should restore the
functionality of the boolean return value, while not returning false for valid input from end of buffer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 04:22:38 +00:00
Mart Raudsepp
5025996266 gtk_text_iter_get_line and get_line_offset work fine on the end iter. Don't bail if we are at the end of buffer.
Fixes one part of bug #1516281, the other part is controversial and probably not reasonable to change.
Also deal with NULL being passed as the x or y pointer, as is done also on wxMSW (this was done on 2.6 branch as
well, but not noted).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 03:46:40 +00:00
Robin Dunn
b8193d807f Updated Scintilla to version 1.70
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 01:20:18 +00:00
Alex Bligh
dc8a1aa53d Apply patch 1520776, partial completion on wxOwnerDrawnComboBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-13 22:06:32 +00:00
Alex Bligh
0d02dd54a0 Virtualize ProcessDockResult so people can override it to prevent docking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-13 22:03:54 +00:00
Robin Dunn
134d7051bf Reverted part of rev 1.92. It causes probelms on Windows when
scrolling with the scrollbars since the mouse can be captured nativly
momentarily.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-13 00:18:04 +00:00
Vadim Zeitlin
fca418ae12 call SetHorizontalExtent() from SetString(); also simplified/cleaned up the former function and call InvalidateBestSize() from it automatically now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-12 21:44:34 +00:00
Benjamin Williams
461125ea4d renamed wxFrameManager::GetFrame() and SetFrame() to GetManagedWindow() and SetManagedWindow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-12 07:18:19 +00:00
Benjamin Williams
673727f39c wxFrameManager::Render() now fires a new event, called wxEVT_AUI_RENDER, which allows all main window drawing operations to be overridden to provide custom drawing behavior
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-11 15:24:25 +00:00
Benjamin Williams
a189504e7f wxAUI's wxFrameManager::SetFrame() now takes a wxWindow ptr instead of a wxFrame ptr, in preparation for future work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-11 13:50:49 +00:00
Václav Slavík
f5bed7a885 refresh tree item after changing its icon so that the change is visible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-10 22:28:19 +00:00
Stefan Neis
8e372bbe07 Added implementation for wxGetKeyState and wxGetMouseState.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-09 17:44:08 +00:00
Mart Raudsepp
370b406c71 Use PangoFontMetrics to get wxDC::GetCharHeight, because that's the proper and clean way to get the body size of a
particular font, and it doesn't go through all the layoutting code (hence, 20-35% quicker than measuring H for
logical extents).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-09 03:46:01 +00:00
Benjamin Williams
dec588bd6e reverted an earlier patch that was causing problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-08 18:50:18 +00:00
Robin Dunn
af672b5ae8 Add wxRTTI info for the event class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-08 02:19:03 +00:00
Włodzimierz Skiba
8fdc4ac7b8 Build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-07 10:57:02 +00:00
Alex Bligh
205515afd7 Added style wxTE_PROCESS_ENTER for wxOwnerDrawnComboBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-07 10:00:53 +00:00
Robin Dunn
0b2bbd174f Need to skipp the first half of ShowHint if the platform doesn't
have transparency support yet.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-07 05:58:48 +00:00
Vadim Zeitlin
9ffab13f6d gcc -Wundef warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 23:01:29 +00:00
Robin Dunn
2b73a34e1b properly offset the mouse position for the label window clicks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 22:13:24 +00:00
Alex Bligh
25ae9fb8ca wxComboCtrlBase: Fix SEGV due to double deletion where SetPopupControl is called twice after lazy creation of the popup, the first deleting m_popupExtraHandler and the second attempting to delete it a second time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 19:19:04 +00:00
Alex Bligh
d9e0958c7e Added GetWidestItem() and GetWidestItemWidth() to wxVListBoxComboPopup
and wxOwnerDrawnComboBox as per Jaakko Salli


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 17:42:39 +00:00
Włodzimierz Skiba
ca5db7b213 Dummy stub for wxGetMouseState() (tinderbox build fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 12:24:23 +00:00
Włodzimierz Skiba
a1b3b60832 Tinderbox warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 10:47:29 +00:00
Włodzimierz Skiba
23f826bdf9 wxRound() workaround to avoid unexpected compile and link errors on incomplete environments (Tinderbox build fix).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 09:09:09 +00:00
Vadim Zeitlin
468c46935a use ZIP entry modification time, not the (inexistent) file modification time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 00:14:26 +00:00
Robin Dunn
2713fedc46 Oops, I misremembered the name of wxUnusedVar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 00:01:29 +00:00
Robin Dunn
81cc4eb227 Enable transparent hints and dragging on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 23:48:19 +00:00
Alex Bligh
5c62cb6c7d wxAUI: maintain minimum size of panes across dock/undock.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 23:09:33 +00:00
Robin Dunn
e8a5d614ca Remove call to gtk_pizza_set_clear, which doesn't exist any more.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 18:39:42 +00:00
Benjamin Williams
e092fb2e67 fixed wrong comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 16:39:04 +00:00
Benjamin Williams
5875464394 added EVT_AUI_PANECLOSE and updated sample accordingly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 16:38:02 +00:00
Stefan Csomor
17d4f7aca8 int warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 13:11:20 +00:00