Commit Graph

24148 Commits

Author SHA1 Message Date
Stefan Neis
a93cf225f7 Added detection of vsscanf and whether or not a prototype exists in headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 12:05:27 +00:00
Julian Smart
ffa5147943 Only update the toolbar buttons if the toolbar is visible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 10:04:05 +00:00
Vadim Zeitlin
77a96c6742 log error before returning, not after
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 00:10:58 +00:00
Vadim Zeitlin
140d4f0f9c suppress VC++ /Wp64 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-01 23:44:33 +00:00
Václav Slavík
f2a6c918e8 compilation fix for wxMSW and r52961
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-01 15:40:49 +00:00
Václav Slavík
16361ec941 Generalized wxScrolledWindow into wxScrolled<T> that can derive from
anything (typically wxPanel or wxWindow). Fixed generic wxListCtrl to
use wxScrolled<wxWindow> - this fixes focus problems with label-editing
text control. Fixes to wxScrolledWindow doxygen docs.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-01 15:07:03 +00:00
Robin Dunn
008e999e14 Don't force wxBORDER_SUNKEN so the programmer can specify some other style.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-01 04:35:21 +00:00
Vadim Zeitlin
c8f80d2758 throw away the now invalid items in wxSelectionStore::SetItemCount() (bug 1929823) and added a unit test for this class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 15:22:10 +00:00
Vadim Zeitlin
9ccffa515c fix unused parameter warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 14:53:22 +00:00
Vadim Zeitlin
4cfcb00f00 store selected indices as unsigned int, not size_t, in wxSelectionStore, we don't need to waste twice the memory needed under Win64
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 14:42:07 +00:00
Vadim Zeitlin
471793175a don't leave empty listboxes with tiny best size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 00:40:55 +00:00
Václav Slavík
43a302f200 added wxXmlNode::InsertChildAfter and use it for (much) faster XML parsing (based on patch by Francesco Montorsi)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-30 10:27:19 +00:00
Václav Slavík
5e05df3c7f 1. fixed wxXmlNode::InsertChild() documentation to match the code
2. added tests for InsertChild()
3. simplified InsertChild() code without changing what it does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 22:55:35 +00:00
Stefan Neis
34f0083726 Linker fixes for OS/2 build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 21:18:36 +00:00
Stefan Neis
6b5c2d5262 OS/2 port: reorganized wxBitmap/wxBitmapHandler classes to use wxBitmapType
instead of "long" where possible; made them const-correct etc. (see r52820)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 19:34:37 +00:00
Václav Slavík
29901843fd set initial GTK_CAN_FOCUS value to match AcceptsFocus (fixes wxTreeCtrl text control dismissing after r52476)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 18:14:57 +00:00
Václav Slavík
37dfb6ff1c removed no longer used win_gtk.c file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 18:14:12 +00:00
Václav Slavík
ad20c567c2 be tolerant of XHTML self-closing tags when parsing the input in wxHTML (patch by kulick@hildensia.de)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 15:01:15 +00:00
Francesco Montorsi
231b9591aa add more pure virtuals to wxBrushBase; fix the GetColour() functions to return a wxColour object and not a reference; remove from docs the non-existent SetColour(const wxString&) overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-28 16:47:58 +00:00
Vadim Zeitlin
73c64a3a9e compilation fix for ANSI build: use reinterptre_, not static_cast, to convert from BYTE* to char*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-28 10:13:32 +00:00
Vadim Zeitlin
628e155d8c added native GTK implementation of wxCalendarCtrl (modified patch 1925439)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-28 02:47:12 +00:00
Vadim Zeitlin
bd7cef4a05 fix gcc warning about assigning -1 to a guint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-28 01:45:36 +00:00
Robin Dunn
439cce1443 Use SetCanFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 21:32:05 +00:00
Robin Dunn
c0a4c58aca A bit of cleanup for STC's use of PopupWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 21:25:03 +00:00
Robin Dunn
5e328f3879 Use SetCanFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 21:23:56 +00:00
Vadim Zeitlin
1512f0f7d8 lock wxPendingEventsLocker when deleting the handler from wxPendingEvents (patch 1925946)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 19:13:58 +00:00
Vadim Zeitlin
1d1b48625e don't blit too much when copying static box border in OnPaint()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 13:03:02 +00:00
Stefan Csomor
bce28872ac graphics bitmap implementation, fix for bitmap scaling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 08:30:30 +00:00
Vadim Zeitlin
ec96848003 don't use gtk_notebook_insert_page() return value as some old GTK+ versions (the one in Solaris 9 for instance) don't have it; also don't use gtk_notebook_get_nth_page() which we need this return value for at all in the trunk as it seems to be unnecessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 00:28:45 +00:00
Vadim Zeitlin
1be45608e7 Several fixes for removing/readding controls to the toolbar:
1. Don't destroy the control in wxToolBar::RemoveTool() as this prevents
   it from being added back with is the purpose of using RemoveTool() rather
   than DeleteTool().

2. Call wxToolBarTool::Attach/Detach() from the base code, not just from wxMSW
   and wxMac (wasn't called by wxGTK at all).

3. Allow adding back the removed control tool in wxGTK.

4. Add test for removing/adding back a control tool to the sample.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 00:10:19 +00:00
Julian Smart
29f571de5c Added GetId() to Connect calls to ensure only the relevant events are processed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:49:31 +00:00
Stefan Csomor
59022c25c1 popup activation scope and l&f
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 11:16:14 +00:00
Stefan Csomor
81749bafae fixing custom background on non owned windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 10:55:32 +00:00
Stefan Csomor
a66cf5a0f6 fixing custom background on non owned windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 10:54:09 +00:00
Julian Smart
c1aec196fc Fixed selection clearing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 08:48:15 +00:00
Vadim Zeitlin
25bc5c55d0 several g++ 4 warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 23:53:28 +00:00
Stefan Csomor
328f0df87c moving tlw list up, cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 21:34:30 +00:00
Francesco Montorsi
c822d4ca20 build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 21:19:27 +00:00
Francesco Montorsi
e86f2cc84a reorganized wxBitmap/wxBitmapHandler classes to use wxBitmapType instead of "long" where possible; made them const-correct; introduce wxBITMAP_SCREEN_DEPTH instead of -1 for clearness (specially in the docs); remove wxBitmapHandler empty stubs and rename wxBitmapHandlerBase as wxBitmapHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 20:31:48 +00:00
Stefan Csomor
0685aa9eb6 porting reordering of controls back from 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 19:50:38 +00:00
Julian Smart
c887f67c21 Fix for non-pch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 17:04:15 +00:00
Stefan Csomor
222180ffe9 adding 10.4 code for making focus events behave as similar to 10.5 as possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 15:36:41 +00:00
Vadim Zeitlin
1a781247d4 call OnReadWaiting(), not OnExceptionWaiting(), when we receive EPOLLHUP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 14:51:11 +00:00
Vadim Zeitlin
47af39fbf4 ANSI mode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 13:33:35 +00:00
Stefan Csomor
d0d7f20728 fix adding non owned window for mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 13:00:31 +00:00
Stefan Csomor
5a011158a9 non owned window implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 08:01:07 +00:00
Stefan Csomor
d10a37d155 non owned window implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 07:59:13 +00:00
Stefan Csomor
cbe733bdec non owned window implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 07:54:43 +00:00
Stefan Csomor
072252d9aa non owned window implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 07:53:55 +00:00
Stefan Csomor
ee263083c8 non owned window implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 07:52:25 +00:00