Commit Graph

40849 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
Julian Smart
7d3e8dce7b Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 11:48:14 +00:00
Julian Smart
6da8eee196 Don't access null tip_window pointer [ 1767485 ] wxGtk uses private API, breaks with gtk 2.11.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 11:05:20 +00:00
David Elliott
bd5554212e Fix wxScrollBar initial size to match the limited sizes that Cocoa allows.
Author: Mark Oxenham
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 05:04:39 +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
fe8402e653 Implement wxBU_LEFT/wxBU_RIGHT styles.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 17:30:51 +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
c118d8b06e Gave toolbars some extra height, Without which DoGetBestSize can report a size that's
smaller than the actual window, causing windows to overlap slightly
in some circumstances, leading to missing borders. Removed a hack in AUI to
adjust for wrongly reported size.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 15:08:50 +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
Vadim Zeitlin
e09200046e remove extra space which confuses some servers (at least wu-ftpd 2.6.2) from interpreting the PORT command correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 23:34:14 +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
Julian Smart
f196316400 Compile fix (VC++ 6 doesn't like wxString::Format with only 1 arg: gives several pages of template-related warnings)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 11:53:13 +00:00
Julian Smart
bbf941bda9 Removed minifram
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 11:22:45 +00:00
David Elliott
e2b497f7a6 Implement the wxST_NO_AUTORESIZE style for wxStaticText.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 04:34:15 +00:00
David Elliott
c59112bba5 Translate the wxALIGN flags to the Cocoa alignment type in wxStaticText::Create
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 04:25:57 +00:00
David Elliott
5b70207eb4 Use static wxControl::GetLabelText in preference to wxStripMenuCodes with the wxStrip_Mnemonics flag for readability.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 04:05:48 +00:00
David Elliott
afa292ff31 Select the first choice in the radiobox upon creation for parity with other ports.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 03:17:36 +00:00
David Elliott
94a2af7672 In wxNotebook::Create setTabViewType based off of wxNB_TOP/LEFT/RIGHT/BOTTOM flags if given.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 03:06:53 +00:00
David Elliott
022a8d0284 Return true in wxSetEnv for unsetenv case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 01:37:06 +00:00
Vadim Zeitlin
65fd2fc261 correction to last commit: don't test unsetenv() return value, it's void under Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:39:29 +00:00
Vadim Zeitlin
a1353ea496 use unsetenv() instead of setenv(var, NULL) which is invalid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:29:07 +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
Robin Dunn
e6d0599dc7 tweak the size and layout of the cancel button a bit so it doesn't get clipped.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 21:44:02 +00:00
Francesco Montorsi
5608bce45d added first version of wxStyleTextCtrl|Event docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 21:37:54 +00:00
Václav Slavík
34b340a08e the Ubuntu visibility bug only happens when building shared libraries on some systems, use -shared when testing for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 21:13:11 +00:00
Francesco Montorsi
f5ca194a78 typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 21:00:14 +00:00
Vadim Zeitlin
7d36417da1 don't include wx/wxprec.h from headers, it's bad style (patch from Tim Stahlhut)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 20:33:48 +00:00
Julian Smart
1e990633f8 Clean up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 19:25:45 +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
Julian Smart
e081b01f4d Compile fix for VC++ 6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 13:55:12 +00:00
Julian Smart
a8505db0fa compile and warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 13:50:44 +00:00
Chris Elliott
7305bbf0ac put constant in define
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 08:56:16 +00:00
Vadim Zeitlin
ecac5b81f8 remove tests for Mac Rez and SetFile which are also already done by bakefile; restore assignment to RESCOMP which was removed by last commit but which bakefile doesn't set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 01:38:18 +00:00
Vadim Zeitlin
ebda9490d0 don't test for things which bakefile already tests for (STRIP, RANLIB, INSTALL, WINDRES, ...); don't chech for VPATH support in make at all as we don't use it any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 01:23:34 +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
Vadim Zeitlin
35c63208f0 add wx/univ/tglbtn.h to wxUniv headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 01:00:58 +00:00
Vadim Zeitlin
8f68971791 use wxBORDER_NONE instead of wxNO_BORDER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 00:59:06 +00:00
Vadim Zeitlin
58611b5a50 corrected sizer code example which wrongly used wxBORDER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 00:58:30 +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
Julian Smart
0a42e3b6ac Updated border style names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-05 10:10:37 +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