Commit Graph

153 Commits

Author SHA1 Message Date
Vadim Zeitlin
01871bf642 Add wxUSE_STD_CONTAINERS and turn it on by default.
Previously, wxUSE_STL enabled both implicit conversion of wxString to
std::[w]string and use of standard containers for the implementation of their
wx equivalents. Split up the two roles now by allowing to enable the use of
the standard containers independently of (backwards incompatible) implicit
conversion in wxString and actually enable wxUSE_STD_CONTAINERS by default.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-30 14:16:04 +00:00
Vadim Zeitlin
afa111d52c Fix wxRect::SetRightTop() which set the wrong corner.
SetRightTop() erroneously forwarded to SetTopLeft() instead of SetTopRight().

Closes #12746.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-03 12:39:43 +00:00
Vadim Zeitlin
06cfc05269 Add wxPoint::IsFullySpecified() and SetDefaults().
These methods do the same thing as wxSize methods with the same names and are
useful for the same reasons.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-08-11 16:03:51 +00:00
Vadim Zeitlin
89b799cccf Add wxSize::IncBy() and DecBy() overloads taking wxPoint.
It seems to make at least as much sense to extend a wxSize by wxPoint than by
another wxSize (which doesn't make much size to me...) so add Inc/DecBy()
overloads doing this.

We might also add operator+=() overloads taking wxPoint for consistency but
for now don't add more operator overloads unnecessarily, let's wait if anybody
asks about this first.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-11 10:44:03 +00:00
Vadim Zeitlin
3cb332c155 Remove unnecessary mondrian.{ico,xpm} files from samples directory.
Standardize on using sample.rc and sample icon in all the samples, it was
confusing that some of them used it and other didn't, without any apparent
logic.

Remove the now unnecessary icon files, including the dialogs sample icon which
seemed to be corrupted (this closes #11146).

Also replace multiple OS/2 resource files with a single one in the sample
directory. The OS/2 projects/makefiles would need to be updated to use them.

Remove dialogs sample icon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:42:33 +00:00
Robert Roebling
fb0165dfff Suppress warning about double->int conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-10 11:53:32 +00:00
Francesco Montorsi
a5664fd6ef Increase interoperability between wxPoint and wxRealPoint introducing constructors which convert between the two classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-09 18:03:27 +00:00
Francesco Montorsi
8b655c806b add to wxRealPoint the same operators already available for wxPoint and wxSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-06 15:45:12 +00:00
Francesco Montorsi
ed0dd9c1f0 implement * and / operators for wxPoint, not only wxSize.
Add to their documentation a note about the fact that the real operators are not class members but rather global functions.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-30 23:28:14 +00:00
Francesco Montorsi
8602802568 add new predefined colour (and relative brush/pen): wxYELLOW (closes #10669)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-09 12:40:09 +00:00
Vadim Zeitlin
c0c133e13b add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 11:45:59 +00:00
Francesco Montorsi
d818458781 add standard wxBLUE_PEN for coherency with the colours available for standard brushes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:30:27 +00:00
Francesco Montorsi
06d7b2176b add uint/long/ulong overloads of operator* and operator/ to avoid problems with ambiguos overloads in wxSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 14:16:20 +00:00
Francesco Montorsi
ee08bdb5b6 use appropriate casts to fix warnings about double=>int conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 13:45:17 +00:00
Francesco Montorsi
9174364320 add operator* taking doubles to wxSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 21:22:37 +00:00
Francesco Montorsi
87315ea262 fix a couple of typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 11:11:33 +00:00
Stefan Csomor
ca91e1eb7f cleaning up default OPEN and CLOSED HAND cursors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 10:40:35 +00:00
Stefan Csomor
179c2d9136 adding open and close hand cursor constants, implementation currently OSX only, closes #10360
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 09:45:16 +00:00
Francesco Montorsi
89efaf2b65 change generic ints to enums in wxDC (closes #9959)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 14:21:53 +00:00
Václav Slavík
40fcf546f6 added wxGetDisplayPPI() convenience function and wxPrintout::SetPPI*() overloads accepting single wxSize argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 09:35:49 +00:00
Francesco Montorsi
d75a69e832 replace use of 'long/int bitmapType' with 'wxBitmapType bitmapType' in richtext and wxMemoryFSHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-10 09:40:33 +00:00
Francesco Montorsi
53a2db124c substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:06:00 +00:00
Francesco Montorsi
82cddbd97a fix also wxPen to use wxPenStyle,wxPenJoin,wxPenCap enums instead of plain int; remove from wxBrushStyle the styles wxPen-specific; add backward-compatible ctor to wxPen; don't include brush.h and pen.h from gdicmn.h, rather move wxPenList,wxBrushList,wxFontList in the relative headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 21:11:12 +00:00
Francesco Montorsi
3e6858cdcb introduce wxBrushStyle enum and replace 'int style' occurrences in wxBrush code with 'wxBrushStyle style'; the change is backward compatible and documented in changes.txt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 16:47:57 +00:00
Paul Cornett
e45080c10b make XPM data pointer parameter fully const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-14 18:16:37 +00:00
Václav Slavík
fc01e9b380 clarified wxRect::Contains(wxRect) comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 20:33:02 +00:00
Vadim Zeitlin
f36e602b3f make various control names constants of type char, not wxChar, as this is more compatible with the old ANSI build and it doesn't make much sense to use wchar_t for ASCII strings anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-12 21:37:46 +00:00
Robert Roebling
b0d7707bc4 Use wxPointList instead of wxList in wxDC code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 14:53:55 +00:00
Václav Slavík
b5dbe15d0b added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Vadim Zeitlin
bc5e942bf3 added wxRect::operator+() and *() (union and intersection); also made other operators friends instead of members (patch 1589175)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 01:47:29 +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
3e69f6e58e rename Inside(x,y) parameters to avoid gcc warnings about parameters shadowing member variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-05 13:36:49 +00:00
Václav Slavík
d8bfd72731 wxDFB's wxICON and wxBITMAP should use embedded XPMs, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-14 17:45:06 +00:00
Robert Roebling
c5bad6049f FRM's small wxSize::Scale enhancement.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 12:21:36 +00:00
Vadim Zeitlin
3af706cc31 added TGA handler (somewhat modified patch 1393912)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 18:58:25 +00:00
Vadim Zeitlin
2335974794 added wxSize::IncBy() and DecBy() methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 11:08:51 +00:00
Vadim Zeitlin
c2c4d939f3 add Inflate(wxSize) overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-20 17:20:10 +00:00
Vadim Zeitlin
f790ec82e7 added wxRect::GetTopRight/BottomLeft() for consistency with the existing GetTopLeft/BottomRight()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-16 13:36:30 +00:00
Václav Slavík
22a35096a0 renamed wxRect::Inside() to wxRect::Contains(), wxRect::Inside(wxRect) is too confusing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 17:12:25 +00:00
Václav Slavík
24b800a957 added unary wxPoint::operator-
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 15:52:05 +00:00
Vadim Zeitlin
d3c7fc996a mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Václav Slavík
869b59fc91 added wxRect::Inside(wxRect) for testing if a rectangle is completely within another rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-08 14:21:44 +00:00
Włodzimierz Skiba
8efb290702 [ 1518434 ] wxSize::Scale with wxScale and wxPoint operators documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 08:26:38 +00:00
Paul Cornett
f79f1604a0 revert forward declaration of hashmap, it doesn't work with STL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 06:52:46 +00:00
Paul Cornett
ed32fb5b21 fix incomplete change in previous commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 16:44:49 +00:00
Paul Cornett
e7445ff8ee move some data definitions to more appropriate places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 16:12:31 +00:00
Vadim Zeitlin
1de8d512b7 simplify/cleanup wxTheXXXList and wxGDIObject code (patch 1452023 from Paul Cornett)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:33:24 +00:00
Vadim Zeitlin
f516d98637 create stock GDI objects on demand; use const with GDI objects appropriately (patch 1445355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:18:29 +00:00
Włodzimierz Skiba
ca3e85cfa8 Better backward compatibility and deprecation markup for interface deprecated in comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 14:04:17 +00:00
Vadim Zeitlin
1bfb73b877 added wxRect::CentreIn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 00:01:19 +00:00