Commit Graph

82 Commits

Author SHA1 Message Date
Vadim Zeitlin
5276b0a53c Use wxDELETE() and wxDELETEA() when possible.
Use wxDELETE[A]() functions which automatically NULL out their arguments after
deleting them instead of doing it manually.

Closes #9685.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:23 +00:00
Vadim Zeitlin
6b2f55531a Try to prevent users from forgetting to include wx.rc from their resources.
Document that some of the standard cursors are defined in this file.

Also add a (hopefully) helpful assert if loading one of such cursors failed.

Closes #11424.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:39:41 +00:00
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
d3b9f782ef don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-19 13:55:27 +00:00
Francesco Montorsi
0ef5b1dad1 provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:56:07 +00:00
Robin Dunn
dd021ce2bd More changes needed to fix problems resulting from unnecessary wxCursor changes :-(
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 05:00:52 +00:00
Francesco Montorsi
d4f392ea20 use wxStockCursor (as documented and as already implemented in wxMotif) instead of a plain 'int'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 19:40:13 +00:00
Vadim Zeitlin
c7c441ccee blind fix for wxUSE_WXDIB==0 compilation (replaces patch 1739858)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-21 18:14:29 +00:00
Václav Slavík
e0a050e347 more changes to make wx compile without implicit wxString->char* conversion (for STL build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-20 07:44:45 +00:00
Vadim Zeitlin
a6c2e2c765 include wx/msw/missing.h after wx/msw/private.h, otherwise we get warnings when compiling without PCH (replaces patch 1674510)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-16 00:56:28 +00:00
Vadim Zeitlin
b928bd059f fixed compilation with wxUSE_WXDIB==0 (bug 1667819)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 00:50:06 +00:00
Vadim Zeitlin
55ccdb93e4 COW cleanup patch (1583966):
1. perform deep comparison for the classes for which it makes sense in the
   ports where this wasn't done yet
2. remove (shallow) comparison operators for the classes for which it does
   not make sense (such as wxBitmap)
3. makes wxBitmap use COW on all ports
4. adds wxObject::IsRefTo()
5. centralizes and improves COW docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:26:48 +00:00
Włodzimierz Skiba
57bd4c6031 Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Włodzimierz Skiba
02761f6cd4 Include wx/module.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 19:31:43 +00:00
Włodzimierz Skiba
155ecd4c42 Include wx/image.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-03 19:02:54 +00:00
Włodzimierz Skiba
c8326d649c Include wx/cursor.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-22 07:11:26 +00:00
Julian Smart
64c288fa47 Compile with wxUSE_DYNLIB_CLASS and wxUSE_WXDIB set to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-21 16:47:30 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Dimitri Schoolwerth
c77c29207b fixed compilation when IDC_HAND is undefined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-01 13:38:03 +00:00
Robin Dunn
fe384096fa Try IDC_HAND first and then load "WXCURSOR_HAND" if it fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-01 00:11:02 +00:00
Julian Smart
ccbb33c91b Applied patch [ 1207202 ] [wxMSW] Fixes GDI leak in cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-30 08:34:56 +00:00
Julian Smart
9700085237 Removed rarely-used cursor; replaced other cursors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-15 16:43:12 +00:00
Julian Smart
27e7e85984 Cross-hair cursor appears as an I-beam on WinXP for some reason;
use cursor file instead.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-03 11:36:31 +00:00
Robert Roebling
b737ad10de Applied John L's patches for curson scaling, image resizing
without scaling and the art provider resize bitmap patch.
    I'll look into adapting the generic file dialog to it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-04 18:33:57 +00:00
Włodzimierz Skiba
1c6f24145e Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 01:20:58 +00:00
Włodzimierz Skiba
7da60d7c18 OW warning fix. Our compile time asserts warns when used within function and dedicated #pragma seems not influence it so they are moved from functions into global space as near as possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 21:00:17 +00:00
Włodzimierz Skiba
02b7b6b072 Source cleaning: whitespaces, -1/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-20 12:03:08 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
461dae941d fixes for compiling with more stuff disabled in setup.h (patch 889211)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-07 14:26:00 +00:00
Robin Dunn
dc08fedb1c Fixed cursor resource names to actually match what's in the resource file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 00:37:02 +00:00
Václav Slavík
1a97976a45 don't use deprecated symbols
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-31 15:16:25 +00:00
Vadim Zeitlin
cc322b2cd5 changed case of the cursor names to be consistent with wx.rc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-29 22:44:44 +00:00
Václav Slavík
a3bf7524f3 removed WXWIN_COMPATIBILITY and WXWIN_COMPATIBILITY_2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-17 12:50:53 +00:00
Václav Slavík
14f355c2b5 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Julian Smart
7f0586ef60 Some WinCE fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 21:14:50 +00:00
Mattia Barbon
51d5ec5408 Compilation fix for non-PCH compilers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-26 18:31:33 +00:00
Vadim Zeitlin
7fd328a34d use wxBitmapToHICON/CURSOR()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-23 01:48:15 +00:00
Mattia Barbon
ed39ff57b3 Remove unnecessary header dependencies. Fix resulting compilation
problems for wxMSW, wxGTK, wxMotif, wxX11 and wxMac in default
configuration. Non-default configurations will probably need some more
fixes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-10 21:07:36 +00:00
Vadim Zeitlin
83911a5a4d compilation fix for WXWIN_COMPATIBILITY_2 == 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-06 00:51:15 +00:00
Vadim Zeitlin
677a9e28b5 fix for warnings when wxUSE_RESOURCE_LOADING_IN_MSW == 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-04 00:57:47 +00:00
Vadim Zeitlin
f083414031 compilation fix for wxUSE_RESOURCE_LOADING_IN_MSW == 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-02 18:31:23 +00:00
Vadim Zeitlin
eff4ffbf4f big wxCursor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-02 02:06:34 +00:00
Julian Smart
285edb24ec Use standard IDC_HELP cursor instead of oversize custom cursor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-08 17:36:27 +00:00
Stefan Neis
6cab7411a9 Fixed compilo (include image.h since cursor.h no longer does this implicitly).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-24 12:41:11 +00:00
Robin Dunn
15dadf3155 Added wxCURSOR_RIGHT_ARROW, which is like the typical wxCURSOR_ARROR,
but points to the right, (duh...)  This cursor is now used in wxSTC in
the margin area.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-15 22:52:15 +00:00
Vadim Zeitlin
bff4ec6360 wxCursor(wxImage) added (Chris Elliott, patch 517439)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-21 15:22:58 +00:00
Vadim Zeitlin
621b3e2127 IMPLEMENT_DYNAMIC_CLASS fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 01:42:02 +00:00
Julian Smart
d2913c40ab MicroWindows mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-21 14:58:00 +00:00
Ron Lee
f20ad12c58 Vadim, please check this, I think it's what you meant
and doesn't build for me otherwise.  Thanks.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-13 07:10:39 +00:00