Commit Graph

10745 Commits

Author SHA1 Message Date
David Elliott
ddac39da93 Major wxCocoa wxSlider overhaul from Mark Oxenham.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 19:25:08 +00:00
David Elliott
715b3df02f Tell NSTextField to send us its action message and respond to it so we can generate wxEVT_COMMAND_TEXT_ENTER.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 18:40:56 +00:00
David Elliott
15f3714795 Implement transformation between the wxDisplay coordinate system and the Cocoa screen coordinate system.
Use this to fix TLW initial positioning/sizing (including wxTopLevelWindow, wxFrame, and wxDialog)
Use this to implement wxWindow::DoScreenToClient and DoClientToScreen
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 04:40:33 +00:00
David Elliott
e82b00a76d Remove virtual from the newly added Create methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 19:07:07 +00:00
David Elliott
d381b7dfdd Add wxBitmap constructors and Create methods to allow creating a wxBitmap from an NSBitmapImageRep or NSImage instance.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 19:05:51 +00:00
David Elliott
dc834029a3 Add Objective-C uniquifying to WXNSWindow and WXNSPanel
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 18:15:50 +00:00
David Elliott
9cce71a0f9 Implement wxStaticBitmap.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 16:53:32 +00:00
Julian Smart
4c0d2cd3d0 Toolbars shouldn't have themed borders
Made it easier to switch off theme borders in wxWindow if necessary


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 15:05:56 +00:00
Václav Slavík
e5eaf55744 fixed visiblity attribute warnings in STL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 21:55:22 +00:00
Václav Slavík
cae92a4988 VC6_WORKAROUND -> WX_LIST_VC6_WORKAROUND to prevent name conflicts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 21:26:32 +00:00
Julian Smart
6f3f9b50aa Made wxBORDER_THEME the same as wxBORDER_DEFAULT
Moved wxControl::GetBorderStyle into wxWindowMSW::GetBorderStyle
but added GetBorderStyle to have the same behaviour as before (so e.g.
notebook panels don't get borders)
Improved help window borders


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 12:39:56 +00:00
David Elliott
3c0f8ed250 Implement wxRadioButton Get/SetLabel methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:26:08 +00:00
Julian Smart
a047aff270 Added wxBORDER_THEME, wxWindow::GetDefaultBorderForControl(), wxWindow::CanApplyThemeBorder().
wxTextCtrl and wxSearchCtrl now get the correct border on wxMSW, and the wxRichTextCtrl sample
also now demonstrates correct borders.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 19:22:43 +00:00
Václav Slavík
5e3c3fc9b8 WXIMPORT must specify default visibility too, otherwise things like typeinfo may break subtly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 14:53:24 +00:00
Václav Slavík
1a2fe0cbea fixed incorrect DLL export macro for wxJoystick
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 14:52:02 +00:00
David Elliott
525007cf12 Consolidate cocoa view/control/cell label setting into wxControl::CocoaSetLabelForObject.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 13:47:09 +00:00
Francesco Montorsi
19cf1ef3a7 added the static function GetLabelText() to wxStaticText which was mentioned in the docs but not implemented; also fixed the return type documented for wxControl::GetLabel*() functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-05 18:54:22 +00:00
Vadim Zeitlin
de34bb081b make wxTmemchr() return (and take) char* instead of void* in ANSI build too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-04 21:33:42 +00:00
Vadim Zeitlin
628f9e9596 added FromAscii(unsigned char *) overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-04 18:40:45 +00:00
Vadim Zeitlin
d3f00f5993 sorting support for generic version (patch 1765087 from Bo)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-03 11:47:42 +00:00
Julian Smart
2a225ba641 Added Get/SetParentWindow to allow the same easy printing object to be used even
if the original parent frame was deleted


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-03 08:50:18 +00:00
Julian Smart
aa767a4521 Added EVT_MOVE_START, EVT_MOVE_END (wxMSW only for now)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-01 15:34:48 +00:00
Julian Smart
f81e22cf6e VC++ 6 reports ambiguities when using template Read/Write, so
don't use them in this case


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-01 15:30:16 +00:00
Václav Slavík
6371dc5ddc fixed linking with visibility enable on Ubuntu and some other systems (any gcc 4.2 amd64?) by removing superfluous virtual wxColour::Ok() (already in wxColourBase)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-01 14:43:14 +00:00
Vadim Zeitlin
f4075f30fa added WXDLLEXPORT to the (empty) wxControlWithItems class declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-31 22:03:08 +00:00
Václav Slavík
a0f63de941 don't crash in wxGetEmptyString(): it's now a #define for wxString(), which is not any less efficient now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-30 10:51:35 +00:00
Vadim Zeitlin
93153d9a00 forcefully disable wxUSE_JOYSTICK too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 14:27:49 +00:00
Vadim Zeitlin
a58c5d3e56 always define HDS_HOTTRACK if it's not defined, not only for DMC (fixes WinCE compilation of the code using it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 14:25:12 +00:00
Vadim Zeitlin
d94de683a6 update button style to include BS_MULTILINE when a multiline label is set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 13:38:34 +00:00
Vadim Zeitlin
01101e2da6 added support for 2 extra mouse buttons (patch 1757630)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 01:04:33 +00:00
David Elliott
eedf7bedb4 Remove bogus DoDelete from 44730. It's appears that it's supposed to be
DoDeleteItems which was added in a different place.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 21:00:55 +00:00
Vadim Zeitlin
1c0338c561 no changes, just a typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 11:29:52 +00:00
Vadim Zeitlin
ef81fe8b3f added maxDepth parameter to WalkFromException() (patch 1759239)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 00:14:53 +00:00
Vadim Zeitlin
b2f0b9342a removed unused wxUSE_XXX options (patch 1759328)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 00:08:01 +00:00
Vadim Zeitlin
1e0f0a90e0 made strings used in wxIPC methods const as a temporary compilation fix (they will need to be also made void* and not wxChar* later) (patch 1759924)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 23:59:11 +00:00
Vadim Zeitlin
fc9361e3ec added wxTo/FromString() overloads for wxFont (1st part of patch 1760073)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 23:49:08 +00:00
David Elliott
319fe1034c * Implement the wxMask copy constructor to retain the source object's
m_cocoaNSBitmapImageRep (fixes multiple release bug).
* Add some debug messages for unimplemented wxMask::Create overloads.
* Implement mask creation w/ key color from 8-bpp grayscale bitmap.
  This makes the mask image in the drawing sample's mask page work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 20:57:50 +00:00
Vadim Zeitlin
77c1fa98ce use symbolic name for the shell menu bar too; include resources.h in wince.rc directly instead of only doing it from smartphone.rc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 20:19:52 +00:00
Vadim Zeitlin
d6f2a8911e many compilation fixes for WinCE using VC8 (it now build, although still doesn't work)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 16:34:24 +00:00
Vadim Zeitlin
61873536a0 added wxUSE_INICONF (disabled by default)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 14:57:31 +00:00
Vadim Zeitlin
f631cd8e12 compilation fix for insert()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 00:17:27 +00:00
David Elliott
05ef417f46 Add a Clear() method simply calling the wxComboBoxBase::Clear() to
disambiguate it with wxTextCtrl::Clear() since wxCocoa's wxComboBox derives
from wxTextCtrl for some reason.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-26 18:40:44 +00:00
Vadim Zeitlin
a236aa2058 many wxItemContainer-related changes:
1. the main function for item insertion is now DoInsertItems() which allows
   for much more efficient addition of many new items at once
2. the items client data management is done entirely in wxItemContainer
   itself, the derived classes don't have to distinguish between void and
   object client data
3. many fixes for sorted controls, in particular implemented wxCB_SORT support
   in wxGTK combobox


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-26 13:54:14 +00:00
Robert Roebling
9d8fe14a97 Use type safe list for model notifiers, sample corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 18:46:01 +00:00
Robert Roebling
469d3e9b7b ItemDeleted now has (parent, item)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 18:18:51 +00:00
Vadim Zeitlin
cf4a8b2698 fix warnings due to using deprecated-but-used-internally methods from the header file (which, of course, meant that they were also used during client code compilation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 17:42:43 +00:00
Robert Roebling
df4aed1cf0 Add iterators to wxVector, use std::vector in STL mode, correct wxVector::erase()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-25 10:19:08 +00:00
Václav Slavík
f0dfc29c71 optimized wxStringTokenizer: it's now slightly faster in wchar_t build and much faster in UTF-8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-24 20:00:12 +00:00
Vadim Zeitlin
0286d08d14 add wxMBConvStrictUTF8 class implementing just UTF-8 conversion, without support for PUA/octal mappings and use it for wxConvUTF8 as it's simpler and more efficient (~20% faster)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-24 15:01:10 +00:00
Robert Roebling
fe5f448f43 Added wxQsort()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-24 09:26:51 +00:00