Commit Graph

49644 Commits

Author SHA1 Message Date
Jaakko Salli
c5fe6a5bee Added wxDECLARE_ANY_TYPE(CLS, DECL) and documented for what kind of situation it is intended: wxAny used across DLL and EXE boundaries.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-03 10:43:21 +00:00
Jaakko Salli
0b07302b41 Added change log entries for major new wxPropertyGrid features in wx2.9.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-03 08:27:58 +00:00
Stefan Csomor
267ba369d6 fixing typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 19:56:35 +00:00
Stefan Csomor
2986eb869c adding construction from native bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 19:45:03 +00:00
Stefan Csomor
1821877f7f adding NSImage to CGImageRef conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 17:51:16 +00:00
Jaakko Salli
bb3400a873 Added note about dangers of adding and deleting items in wxEVT_COMMAND_COMBOBOX_CLOSEUP (works only on wxMSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 14:15:35 +00:00
Jouk Jansen
5d8a7943f5 Fix compilation for wxUniversal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-02 09:31:49 +00:00
Jaakko Salli
97f1626169 Fixed bug: wxEditEnumProperty's initial string value could not be outside the list of choices.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-01 16:06:58 +00:00
Stefan Csomor
63bcc669d8 fixing setting initial value under osx_cocoa for single line text controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-01 08:59:01 +00:00
Vadim Zeitlin
b883113df1 Don't exit on errors in the pre-commit svn hook.
Errors in grep, when it fails to find any changed or updated files, also count
so the "set -e" line was causing the hook to reject any commits only deleting
files (without any error message).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-01 00:33:54 +00:00
Vadim Zeitlin
e755092283 Remove old and unused file.
We don't use WISE since many years, so remove the source of an utility which
was supposed to help with using it.

Closes #11270.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-01 00:32:03 +00:00
Stefan Csomor
ada175836e overriding to allocate an outer autorelease pool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 18:25:33 +00:00
Stefan Csomor
6bd1764f27 fixing text matrix (dataview custom renderer showed problems) and reordering SaveGState
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 17:50:49 +00:00
Vadim Zeitlin
9a78f7856d Fix harmless unused parameters warnings.
Also assert in the not implemented wxSound methods instead of silently
returning false.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 16:38:28 +00:00
Paul Cornett
f629f37a82 use proper signature for callback function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:39:21 +00:00
Paul Cornett
d6d3b32302 build fix for wxUSE_CONSOLE_EVENTLOOP==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:38:53 +00:00
Paul Cornett
e33cd7e203 build fix for wxUSE_SOCKETS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:38:23 +00:00
Stefan Csomor
3b2527c739 support backgroundcolor on osx_cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:20:30 +00:00
Julian Smart
b914917f2c Applied #11260 (found a regression while checking in src/motif/menu.cpp with static code analysis tool cppcheck)
Marin Ettl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 06:53:35 +00:00
Vadim Zeitlin
7a8e90dd7a Correct checks for conversion success in wxUniChar.
Correct the checks in wxUniChar::From/ToHi8bit() to check for conversion
success correctly as it always failed otherwise: wxMBConv::To/FromWChar()
conversion functions should return 2, not 1, when conversion of 2 characters
succeeded, even if one of them is a NUL.

Closes #11243.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 00:15:11 +00:00
Václav Slavík
023f27388f fix message box icons sizes in wxWindowsArtProvider: they should respect client ID and not be 32x32 all the time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 17:04:08 +00:00
Jaakko Salli
24985a9b5b Removed dst buffer delete responsibility from wxAnyValueType::CopyBuffer(), clarified documentation regarding it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 13:38:20 +00:00
Julian Smart
d90443b8a2 #11259: Correction for bad help button on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 07:19:38 +00:00
Julian Smart
92b929f0e1 Added help button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 07:15:14 +00:00
Julian Smart
8e43fc7776 Context menu now created in constructor; old context menu deleted when new one set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 06:45:36 +00:00
Bryan Petty
c06de7d4c8 Forward port of r62191 to SVN trunk fixing regression from r37982 (missing ')'). Fixes #11257.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 23:44:34 +00:00
Julian Smart
7da33e042c Moved WinPrinter from private.h to printdlg.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 16:15:34 +00:00
Paul Cornett
53c43278a9 linking fix for wxUSE_VALIDATORS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 15:36:06 +00:00
Paul Cornett
2ee7e3c302 build fix for wxUSE_SOCKETS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 15:35:48 +00:00
Julian Smart
2ae3afa09f Applied #9076 (scrolling bars grow box fix)
By lillo


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 07:06:14 +00:00
Jaakko Salli
30fad74e44 Do not use wxS in array of const wxChar*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:40:26 +00:00
Jaakko Salli
9370ec6a3b wxUSE_THREAD -> wxUSE_THREADS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:25:44 +00:00
Julian Smart
1690c2ce36 Attempt at compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:07:43 +00:00
Jaakko Salli
ca5a36146e Use long double instead of double in wxAnyValueBuffer, moved alignment-specific values into sub-union
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 16:30:26 +00:00
Jaakko Salli
62d7be2066 Added function and member function pointers in wxAnyValueBuffer to make memory alignment problems even less likely.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 15:28:06 +00:00
Jaakko Salli
0411067998 Make sure there are no memory alignment issues with wxAnyValueBuffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:52:34 +00:00
Jaakko Salli
cd4b15e523 Do not process editor control events when propgrid event is currently being processed. Doing otherwise could lead to a crash if application is doing something time-consuming (such as displaying a message box) in the event handler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:39:03 +00:00
Jaakko Salli
644b283d6a Store property name and value in wxPropertyGridEvent, keep track of live event instances, and clear property/grid information in them in wxPropertyGrid dtor. This allows application to relay events for later processing without fear of losing most relevant information within.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:35:02 +00:00
Jaakko Salli
9867e3e498 wxFontProperty: Added support for wxFONTFAMILY_TELETYPE and wxFONTFAMILY_UNKNOWN, moved Family child-property to the back.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 11:44:25 +00:00
Julian Smart
906cb3f119 Applied modified #10655 (Added Cookie (receive) support to wxHTTP)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 19:47:23 +00:00
Stefan Csomor
b0a9bfc8b8 adding ProcessPendingEvents as ProcessIdle doesn't call it anymore, closes #11132
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 18:50:33 +00:00
Vadim Zeitlin
0b2a23c48d No real changes, just small cleanup in wxMac wxDVC.
Use wxDC{Pen,Brush}Changer classes instead of setting/restoring pen and brush
manually.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:44 +00:00
Vadim Zeitlin
6f0740beb5 Use FWD version of DLL export macro in forward declaration.
Forward declarations must use WXDLLIMPEXP_FWD_XXX and not WXDLLIMPEXP_XXX to
avoid g++ warnings about "type attributes are honored only at type definition".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:37 +00:00
Vadim Zeitlin
ddb44248a6 Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
Implement DoApplyWidgetStyle() in wxGTK version of wxDataViewCtrl to propagate
the main window style to the GtkTreeView which is what the user mostly sees.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:30 +00:00
Vadim Zeitlin
bb58fa37cd Don't hard code white background colour in generic wxDataViewCtrl.
wxDataViewMainWindow::OnPaint() always used the white brush to erase the
control background which was wrong, change it to use the background colour of
the control.

Also add tests for setting wxDataViewCtrl foreground and background colours to
the dataview sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:19 +00:00
Vadim Zeitlin
2fa90e33ea Use default composite controls attributes for wxDataViewCtrl.
wxDataViewCtrl should use the same colours/fonts as the native list and tree
controls.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:12 +00:00
Vadim Zeitlin
0534259ab8 Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
This function is not MSW-specific and should be used in generic implementation
of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is
needed by MSW only now, move it to the common code to avoid #ifdefs in these
controls code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:06 +00:00
Vadim Zeitlin
7fc1b0c7ca Fix harmless warning about -1 to WPARAM conversion.
This was introduced by the last change to this file in r62058.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:42:56 +00:00
Stefan Csomor
715824d58d reducing key event handling complexity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:39:33 +00:00
Vadim Zeitlin
1d8cdcf2e3 Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().
The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.

Just store the pen itself instead, this works in any case.

Closes #11235.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:41 +00:00