Robert Roebling
b9b8b59c0d
Forgot to commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 21:03:26 +00:00
Robert Roebling
b086d55fe1
Implement for selection code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 20:31:53 +00:00
Václav Slavík
abde328337
fixed to the newly added crt.h header:
...
1. include it in makefiles
2. add proper header and guards
3. include wxchar.h so that the things to include are maintained in just one place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 14:03:45 +00:00
Václav Slavík
6256849fdf
changed wxGTK_CONV* macros to use utf8_str() and FromUTF8() so that we don't do any unnecessary conversions in UTF8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 13:55:09 +00:00
Václav Slavík
6e5f6c7c60
changed wxWindow::ApplyToolTip to take UTF8-encoded char* instead of wxChar* to avoid unnecessary conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 13:50:36 +00:00
Václav Slavík
13e24d7987
wxchar.h doesn't have to be C file anymore, it's C++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 13:43:27 +00:00
Václav Slavík
6679eeeb9b
changed trivial accessors to return const wxString& instead of wxString object
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 12:40:05 +00:00
Robert Roebling
c6538cfea9
Add wx/crt.h redirecting to wx/wxcrtvarargs.h
...
This should probably also be installed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 11:58:30 +00:00
Václav Slavík
ccfc71271d
restored wxColour ctor taking C string (now in both char* and wchar_t* versions): it is needed e.g. when doing wxPen("blue",1,wxSOLID)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 11:57:40 +00:00
Václav Slavík
e86d4e59c1
use wxString instead of wxChar* in wxColour::Set/FromString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 10:29:12 +00:00
Václav Slavík
092793cb6d
compilation fix for --disable-compat28
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-29 17:02:10 +00:00
Robert Roebling
1821abd1ce
Implemented dataview_model notification event to the ctrl
...
(and then the user).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-28 14:46:52 +00:00
Robert Roebling
63415a4212
Removed wxDataViewViewColumn since it is redundant.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-28 13:47:49 +00:00
David Elliott
7c5a378ff2
Implement mouse entered, exited, and synthesize move events while the mouse is inside.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-28 04:22:10 +00:00
David Elliott
a24aa4279a
Allow many Objective-C classes to be uniquified at runtime.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-27 04:52:04 +00:00
David Elliott
931d76980e
Add implementation of Objective-C class name uniquifying.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-27 04:28:35 +00:00
Robert Roebling
3b7ab6bda8
Upport latest changes from 2_8 branch (print dialog
...
values settable and clipping)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 22:27:58 +00:00
Paul Cornett
1529bc41dc
restructure fullscreen code dealing with hiding bars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 18:47:53 +00:00
Stefan Neis
585892aac6
Another compilation fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 16:40:39 +00:00
Stefan Neis
6fad7ae1d5
Added declaration of new method (still to be implemented).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 14:15:25 +00:00
Stefan Neis
eca4774075
Added missing include.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-26 14:14:16 +00:00
Václav Slavík
6954a1e2c9
implemented wxActivateEvent and restoring focus after a TLW that owned it was destroyed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 12:20:25 +00:00
Paul Cornett
c821db16e6
Remove unneeded wxTLW child inserter function.
...
Simplify wxFrame child inserter.
Use the same signature for all the child inserters.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 05:08:18 +00:00
Vadim Zeitlin
d76a558d4d
added wxMSW-specific wxEntryStart() overload taking WinMain-like parameters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 00:52:00 +00:00
Vadim Zeitlin
a0826b119e
disable clearing event tables by default, only do it if wxUSE_MEMORY_TRACING is used: this fixes the problems with events not being dispatched correctly when the library is reinitialized
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 23:53:05 +00:00
Vadim Zeitlin
2afb9e1690
1. Derive wxMessageDialogBase from wxDialog (why did we use multiple
...
inheritance here?), moved more wxMessageDialog fields into the base class
2. Added functions to set the text of message box buttons (patch 1700393,
currently only implemented for wxMac)
3. Added wxMessageDialog::SetMessage() and SetExtendedMessage() and
implemented them for wxMac (part of the patch), wxGTK 2.4+ and in
a generic way for everybody else
4. Allow changing the dialog attributes between creating and showing it,
for this the real dialog creation is now done on in ShowModal() in all
ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 12:50:42 +00:00
Vadim Zeitlin
f3d32879d6
fix DLL export declaration (adv, not core)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 12:42:25 +00:00
Vadim Zeitlin
a9b9495bc0
put #if wxUSE_FFILE && wxUSE_STREAMS around functions using wxFFileStream (patch 1721939)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 10:59:56 +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
84281b92d5
added wxAppTraits::CreateConfig() (patch 1721149)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 00:50:54 +00:00
Vadim Zeitlin
d71a2d7863
use a different indicator when binding parameters and columns (patch 1718474)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 00:27:40 +00:00
Vadim Zeitlin
d0bc78e2bf
deprecate unneeded wxDIRCTRL_SHOW_FILTERS style, just always show the filters if they're present (modified patch 1719448)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 00:14:59 +00:00
Václav Slavík
e0b3b9d044
take wxString, not wxChar* in wxStandardPaths::GetLocalizedResourcesDir
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-23 19:10:36 +00:00
Vadim Zeitlin
2ddff00c92
don't define wxEventLoop class differently in GUI and base, this breaks the
...
ODR and hence results in many problems in practice; instead use wxEventLoopBase
whenever possible and #define wxEventLoop differently in console applications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 02:30:01 +00:00
Vadim Zeitlin
2b232d202a
added wOnAssert(..., wxCStrData) overload to fix compilation of code using wxASSERT(s.c_str())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 01:36:24 +00:00
Václav Slavík
fbaf7d4513
added another needed wxOnAssert overload
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-21 18:24:42 +00:00
Václav Slavík
0accd1cfe8
1. make debugging macros compatible with ANSI build even in Unicode build (i.e., no need to use _T() in message strings)
...
2. save space in binary by using ANSI literals for filenames and expression strings in debug macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-21 18:02:57 +00:00
Václav Slavík
a64be16ef8
return reference to non-temporary wxString instance from wxGetTranslation() even when not translating
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-21 17:44:37 +00:00
Paul Cornett
59678f3fae
move m_sizeSet out of wxWindow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-19 18:25:15 +00:00
Paul Cornett
949ff63e2f
simplify DoSetClientSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-19 17:34:42 +00:00
David Elliott
c393881600
Include sys/types.h from selectdispatcher.h to ensure that fd_set is declared.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 21:19:37 +00:00
David Elliott
e94cd97dd7
Add a wxLog::DoCreateOnDemand and call it from DoCommonPreInit so that
...
logging will work even if wxWidgets is reentered after being cleaned up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 21:17:06 +00:00
David Elliott
879180b655
* Add public wxApp::sm_isEmbedded flag like on wxMac. Default initialization
...
to true but a plugin can set it to false to cause wxCocoa to not initialize
things like the application delegate or the menubar manager.
* Fix call to [NSNotificationCenter removeObserver:] to use the correct object.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 19:52:14 +00:00
Vadim Zeitlin
10816efb2c
added virtual wxFrame::FindItemInMenuBar(): overriding it in wxMDIParentFrame allows to look for the items in the active child when giving help for the current menu item
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 17:03:38 +00:00
Vadim Zeitlin
722ed5bed5
removed unused statusbar parameter from wxFrameBase::ShowMenuHelp()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 16:44:31 +00:00
Vadim Zeitlin
e2985da831
fix warning about unused rc variable in release builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 16:01:43 +00:00
Vadim Zeitlin
d1ae263893
override DoGetTextExtent instead of redefining GetTextExtent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 15:02:17 +00:00
Václav Slavík
442cd17f74
removed unused iterators ctors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-17 15:31:55 +00:00
Robin Dunn
f6342fb5e6
Apply parts of patch #1719888 to fix compilation on Mac and with
...
monolithic builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-16 23:12:40 +00:00
Václav Slavík
12058e0cb5
return const wxString& instead of wxString from the accessor methods that allow it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-16 20:26:41 +00:00
Václav Slavík
2c6725e622
restored accidentally commented-out code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-16 13:42:23 +00:00
Václav Slavík
db18be5792
added missing operators for int and unsigned char
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 15:02:31 +00:00
Václav Slavík
be39d6f592
make operators for comparing wxString and wx[W]CharBuffer available in both builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 14:54:25 +00:00
Václav Slavík
5d0fac27c4
added operators for comparing wxString to wxCStrData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 14:50:46 +00:00
Václav Slavík
b0c4d5d792
fixed non-const wxString iterators to work when a character is changed to another with different UTF-8 sequence length
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 13:16:01 +00:00
Václav Slavík
c67b782d27
reverted accidental commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 13:11:31 +00:00
Václav Slavík
c7dc005723
added wxSTRING_TEXT() convenience macro for defining literals in wx's internal strings format
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 12:51:34 +00:00
Vadim Zeitlin
b46b1d59d6
implement event loop for console applications (heavily modified patch 1715735)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 23:43:39 +00:00
Vadim Zeitlin
fddca1dce4
djgpp doesn't have wint_t as separate type
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 23:21:40 +00:00
David Elliott
76adcbf2d1
Remove ObjcPose.h since nothing is using it anymore.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 07:08:40 +00:00
David Elliott
047c1182f9
Rework idle handling so that NSApplication does not need to be subclassed or posed as.
...
Copyright Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 07:00:30 +00:00
Václav Slavík
bfb6847df6
compilation fix for STL implementations that use (const) char* for std::string iterators
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-13 00:17:32 +00:00
David Elliott
6972616433
Make wxCFRef take a template raw pointer parameter instead of CFTypeRef to ensure it does not get called with a ref holder.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-12 19:30:09 +00:00
David Elliott
fd9cd37f66
Implement NULL-checking wxCFRetain/wxCFRelease as suggested by Stefan Csomor.
...
Use wxCFRetain/wxCFRelease in wxCFRef where needed.
Use .get() to access m_ptr of a different wxCFRef instantiation instead of making them friends.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-12 19:22:53 +00:00
David Elliott
b4e0eabd78
Added cfref.h containing wxCFRef templated CF ref holding class and related functions.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-12 18:55:58 +00:00
Vadim Zeitlin
a9a0ceca5b
added support for drop down toolbar buttons (patch 1713470)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 23:35:49 +00:00
Vadim Zeitlin
8936f975b4
avoid truncating the colour channels values, this results in warnings when using VC8 debug CRT (patch 1717288)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 22:28:17 +00:00
Václav Slavík
5487ff0f50
use const wxMBConv& instead of wxMBConv& in public methods so that it's possible to pass in temporary objects;
...
don't use global wxConvUTF8 object internally, it may be unavailable at static objects destruction time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 20:55:24 +00:00
Václav Slavík
564ab31a53
fixed wxString::Last() to run in O(1), not O(n), in UTF-8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 11:17:38 +00:00
Václav Slavík
1545d942ec
fixed creation of wxString from another wxString's substring in UTF-8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 10:37:52 +00:00
Vadim Zeitlin
9fcd0bf7f3
added wxListCtrl::SetItemPtrData()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 01:53:21 +00:00
Václav Slavík
c5e7a7d769
changed wxString::StartsWidth/EndsWidth to take wxString argument instead of wxChar*
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 21:07:08 +00:00
Robert Roebling
ed38aa559c
GTK+ cell renderers are not widget, so use a
...
correct type.
Also found a way to set cell background and
probably other styles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 10:38:15 +00:00
Robert Roebling
2970ae54d3
Beginning to make wxDC code compile both before
...
and after the DC reorg to make the transition
smoother (indeed possible).
Move the wxImplDC code to its future place in
dcbase.cpp and wx/dc.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 23:47:43 +00:00
David Elliott
c5f0d1f903
Move wxLaunchDefaultBrowser from BASE to CORE per wx-dev discussion.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 19:13:49 +00:00
Robert Roebling
395367bcd3
[ 1713933 ] docs for wxEditableListBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-07 07:51:28 +00:00
Robert Roebling
d296fd8ff7
More preview code for the DC reorganisation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-06 20:14:55 +00:00
Václav Slavík
59a14f6984
fix compation with Watcom after latest vararg templates changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-06 14:11:14 +00:00
Vadim Zeitlin
c3b0ceb5a9
declare GetGDKWindow() in wxDC to fix compilation of wxRendererNative
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 21:44:17 +00:00
Vadim Zeitlin
2f6550d9c2
compilation fix: SetLogicalFunction() is defined in dc.cpp, don't define it here
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 21:38:14 +00:00
Václav Slavík
06c73b9852
fixed FromUTF8 in ANSI builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 19:19:48 +00:00
Paul Cornett
93344f258a
add wxUSE_DRAGIMAGE wrapper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 19:00:35 +00:00
Václav Slavík
26f03c44d0
use utf8_str() in wxDFB
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:55:59 +00:00
Václav Slavík
5f167b77d2
added wxString::FromUTF8/ToUTF8/utf8_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:53:24 +00:00
Paul Cornett
68d9be05da
build fix for wxUSE_DRAGIMAGE==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:48:56 +00:00
Robert Roebling
e8b86d2538
Make wxGTK1.2 compile again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 15:52:53 +00:00
Robert Roebling
cfa87e8121
Moved deprecated code to source file (didn't compile
...
as inlined, somehow).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 15:09:45 +00:00
Robert Roebling
1f540d9658
Added wxDEPRECATED() around old wxDC methods taking
...
long and not wxCoord.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 15:04:24 +00:00
Robert Roebling
7d9a266c85
Added (empty) SetLogicalFunction()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 15:01:10 +00:00
Vadim Zeitlin
2cd78b2a87
added wxTimerEvent::GetTimer()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 14:59:25 +00:00
Vadim Zeitlin
cfddeb1067
fix compilation in wxUSE_MENUS==0 case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 14:48:20 +00:00
Robert Roebling
90ac8b5005
Apply [ 1713345 ] combobox: cmd accelerators shouldn't steal editing hotkeys
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 13:15:47 +00:00
Václav Slavík
6626de903e
use wxString instead of const wxChar* in wxFFile public API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 20:57:53 +00:00
Václav Slavík
fcea31d51b
use wxString instead of const wxChar* in wxFile's public API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 19:04:19 +00:00
Václav Slavík
0d23e82531
use wxFormatString in wxV[f]printf()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 12:26:11 +00:00
Václav Slavík
4960f9fc9a
compilation fix for --enable-utf8 --disable-utf8only case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 11:10:06 +00:00
Václav Slavík
1528e0b85f
use wxFormatString helper class for 'vararg' functions' format argument; this prepares the code for removal of implicit wxString conversion to char* in STL build and also fixes VC6 compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 10:41:08 +00:00
Robert Roebling
b86ad1d632
Putting draft of wxImplDC and the wxDC using it
...
for viewing pleasure into CVS. Guarded by
#if 0 since it doesn't even compile yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 22:29:01 +00:00
Robert Roebling
ad973712cd
Put old wxDC methods using long instead of wxCoord
...
into WXWIN_COMP_2_8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 22:25:30 +00:00
Václav Slavík
e905fd1c79
fixed typo in Watcom code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 18:03:39 +00:00
Václav Slavík
c9afb3cbc5
fixed passing raw unconverted strings through wxArgNormalizer<> for VC++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 17:58:18 +00:00
Václav Slavík
092ee46f03
fixed DLL linking of wxConvLibc etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 15:35:07 +00:00
Václav Slavík
f461887a02
don't do char*->wchar_t*>char* roundtrip in wxArgNormalizerUtf8<const char*> if current locale uses UTF-8
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 14:34:29 +00:00
Václav Slavík
111d99489d
added code for optimized handling of UTF-8 locales: some string operations are more efficient under it and it's possible to completely compile-out support for other locales if the target system is known to only use UTF-8 locales
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 11:05:04 +00:00
Václav Slavík
d1f6e2cfe2
fixed vararg functions with format argument to not use wxString or reference argument (the latter is invalid C++, the former doesn't work with Watcom and produces at least warnings with GCC 3.3)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 10:50:25 +00:00
Václav Slavík
8a3bc532fd
OpenWatcom has the explicit keyword too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 10:27:05 +00:00
Václav Slavík
d3cefe87d7
added wx[W]CharBuffer/wxCStrData overloads to remaining wxString methods that need them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 10:23:20 +00:00
Vadim Zeitlin
49c9d05986
removed unneeded duplication of DoSetSizeHints() in wxTLWBase (as wxWindow version already does the same thing) and made wxTLW::SetMin/MaxSize() implementation less verbose
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 00:25:46 +00:00
Václav Slavík
c8b1fdc0b5
wxAppTraits::SetLocale() is wxUSE_INTL=1 only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 20:32:44 +00:00
Václav Slavík
cb2f2135b0
added convenience functions wxString::To/From8BitData() for storing g binary data in wxStrings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 18:08:56 +00:00
Robert Roebling
04ab8b6ddf
Moved all the coordinate system calculation to wxDCBase
...
and thus removed all the duplicated code in all wxDC
classes.
Problematic is that wxSVGFileDC and wxPostscriptDC inherit
from wxDC and therefore include platform specific code
(also before this change) so I chose to override all
SetLogicalOrigin() etc. methods in these classes and
call their wxDCBase methods thereby circumventing the
platform dependent code.
I'm afraid the Mac code will require updating, too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 11:05:45 +00:00
Václav Slavík
1e50d914af
made wxConvXXX objects usable at static initialization time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 09:03:03 +00:00
Robert Roebling
621b83d9b3
Made device to logical and vv conversion methods
...
virtual and implement them like any other method
in the wxDC classes, not only in the their files
but somehow belonging to the wxDCBase class.
This is required for plugging in differnt DC backends
with different conversions.
Ideally (and absolutely possible ) all these methods
should be removed and just the one in wxDCBase
should stay using values set in the various
derived classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:28:29 +00:00
Václav Slavík
df08bf5ab3
added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non-default domain too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:19:02 +00:00
Václav Slavík
2765cbb5aa
define wxPLURAL even if wxUSE_INTL=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:13:56 +00:00
Vadim Zeitlin
2c17722ec8
fix wxStringOutputStream::Write() in Unicode build when the output overlaps a boundary between UTF-8 characters (closes bug 1701426)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 14:11:06 +00:00
Vadim Zeitlin
781130bf60
fix m_sizerPage memory leak for the wizards not using sizers (replaces patch 1708331, fixes bug 1647290)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 19:43:28 +00:00
Vadim Zeitlin
97b253782a
use a marginally more precise but, more importantly, easier to understand, value for METRIC_CONVERSION_CONSTANT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 16:25:57 +00:00
Vadim Zeitlin
f11af09331
assert that wxRound() argument is in the supported range
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 16:23:17 +00:00
Václav Slavík
48670a3300
always define wxLocaleIsUtf8
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 12:46:30 +00:00
Václav Slavík
44be939a5e
fixed release build compilation with compilers without __VA_ARGS__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 12:08:01 +00:00
Václav Slavík
37db38bc52
OpenWatcom >= 1.2 has __VA_ARGS__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 10:28:22 +00:00
Václav Slavík
82e77a8027
compilation fixes for --disable-log
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 09:02:38 +00:00
Václav Slavík
564a5bbe57
added support for passing std::[w]string to 'vararg' templates
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 08:04:58 +00:00
Stefan Neis
951f68d01c
Adapted to API changes with respect to GetTextExtent (patch #1709152 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-28 10:04:34 +00:00
Václav Slavík
04d29fda82
added missing #include "wx/buffer.h"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-28 07:56:45 +00:00
Václav Slavík
e3e8e3c0aa
include wxchar.h from string.h in 2.8 compatibility mode to prevent lots of compilation errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 10:08:53 +00:00
Václav Slavík
92a17abc1b
added copy ctor to wxCStrData to fix crashes when passing to vararg functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 08:48:56 +00:00
Robert Roebling
da1bd25f29
Added IsOfStandardClass() as per wxMSW.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 18:42:23 +00:00
Václav Slavík
2523e9b700
use UTF8-encoded char* strings in UTF8 build instead of wchar_t* if the current locale uses UTF8;
...
fall back to widechar CRT functions in the locale is not UTF8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 11:40:04 +00:00
Chris Elliott
210bb741b9
remove warnings of intentionally unreachable code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 11:11:28 +00:00
Chris Elliott
1c6c52fdef
tested and applied http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/85790/
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 10:50:54 +00:00
Paul Cornett
82008f15b7
replace 5 copies of size constraining code with one function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 05:22:09 +00:00
Vadim Zeitlin
248d0a8970
move wxKEY_XXX constants to wx/defs.h from wx/list.h and wx/hash.h to avoid duplicating their declarations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:15:24 +00:00
Vadim Zeitlin
0518029cec
leave only wxString overloads for of the functions working with string keys; remove the old variant of hash table (deprecated since 2.4)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 19:21:46 +00:00
Robert Roebling
235751501d
Added compile guards to wxEditableListBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 09:22:02 +00:00
Vadim Zeitlin
c94f845b16
changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for consistency with wxWindow::GetTextExtent() and because it generally doesn't need a non-const font
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:49:47 +00:00
Vadim Zeitlin
d2b23b6730
don't declare inline function with dllexport declaration, this provokes mingw32 warnings and is unnecessary anyhow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:38:11 +00:00
Robert Roebling
f7ed8c899f
Use child's listmodelnotifier's destructor (by overloading
...
it) to get informed about the destruction of the child
model in a sorted model. Removed Freed() method used for
that so far.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 18:00:14 +00:00
Václav Slavík
c2ac2afd09
removed wxCStrData::operator bool(), using c_str() return value as bool doesn't make any sense and any code that stops compiling because of this is almost certainly buggy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 16:19:27 +00:00
Václav Slavík
c87a0bc8cb
corrected (Do)GetWriteBuf() return types to use more appropriate type (no real difference)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 15:51:51 +00:00
Robert Roebling
2fa73716ca
Change SetValue( wxVariant &value ) to
...
SetValue( const wxVariant &value )
(already documented)
Delete in-place editing control through
pending list, not in event handler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 09:36:48 +00:00
Václav Slavík
5becc84185
ANSI build compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 21:52:57 +00:00
Václav Slavík
db2a7aabf9
compilation fix: setlocale() returns non-const string pointer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 21:25:26 +00:00
Václav Slavík
cb352236d9
added code for checking if the current locale is UTF-8 at runtime
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:42:13 +00:00
Vadim Zeitlin
353a4edc6e
added implicit conversion of wxString to const void * for compatibility with the code doing things like file.Write(s, len)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:14:18 +00:00
Vadim Zeitlin
e8375af8ff
remove wxWindow::m_needParent and use GTKNeedsParent() which can be overridden in just wxMenuBar (and not set in each and every wxGTK control)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 15:16:06 +00:00
Vadim Zeitlin
df57f6bea3
compilation fixes for PCH-less build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 22:20:57 +00:00
Vadim Zeitlin
d3a0a0eeab
added wxAppTraits::GetStandardCmdLineOptions() allowing to add the description of the standard toolkit options to the usage message and implement it for wxGTK2 (patch 1703077)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:54:07 +00:00
Vadim Zeitlin
2229243bdf
added wxDialog::GetParentForModalDialog() and use it to try to always create modal dialogs with a parent (slightly modified patch 1702962)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:34:41 +00:00
Vadim Zeitlin
a2979ead8d
added HasExtraStyle()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:30:39 +00:00
Vadim Zeitlin
66c59e2c54
add m_ prefix to the member variables and remove unneeded dialogParent field (part of patch 1702962)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:20:51 +00:00
Vadim Zeitlin
97800f6618
Many changes/fixes to wxFlexGridSizer implementation (no API changes):
...
- fix the problems addressed by the patch 1667343:
* only distribute extra space between growable items, not all space
* take hidden items and gaps into account for ALL grow mode layout
* fix rounding errors by allocating the remaining pixels to the last item(s)
- refactor the code to avoid duplication between row/column cases
- use STL-like wxList methods instead of compatibility ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 19:20:14 +00:00
Vadim Zeitlin
8906471733
distribute only the extra, free, space according to the items proportions in wxBoxSizer and not the entire available space
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 12:50:01 +00:00
Vadim Zeitlin
55bfbcb92b
(blind) compilation fixes after latest changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 12:31:08 +00:00
Vadim Zeitlin
361f4288eb
added support for image resolution options to PNG handler (heavily modified patch 1704128)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 19:29:01 +00:00
Vadim Zeitlin
806ad81958
readded wxEditableListBox as part of adv library
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:50:50 +00:00
Vadim Zeitlin
5f4d182091
added safe check for Pango version and use it to avoid underline hack in wxDC::DrawText() (modified patch 1702301)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:32:29 +00:00
Vadim Zeitlin
7e0bac9d7d
add missing dynarray.h includes (patch 1702312)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:13:48 +00:00
Vadim Zeitlin
df18cc7aa1
added wxStreamBuffer::Truncate() (patch 1687081)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:11:37 +00:00
Vadim Zeitlin
c079af66c8
fix WXDLLIMPEXP_STC definition when building all wx libraries as DLLs (patch 1704527)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 15:13:37 +00:00
Vadim Zeitlin
11624aa059
oops, restored wrongly removed semicolon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 14:58:46 +00:00
Vadim Zeitlin
5d262fdda8
removed extraneous semicolons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 10:52:48 +00:00
David Elliott
829a2e9521
Remove Objective-C class posing for everything except for NSApplication.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 22:27:56 +00:00
David Elliott
ad3628fa86
Move Objective-C interfaces into separate header files in preparation for being able to use them from other source files.
...
No new or changed code. Work on behalf of Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 20:21:52 +00:00
Jouk Jansen
047b6c71d6
Committing in .
...
Modified Files:
wxWidgets/descrip.mms wxWidgets/setup.h_vms
OpenVMS build update
wxWidgets/include/wx/unix/glx11.h
Removed superfluous semi-colon
wxWidgets/samples/db/dbtest.cpp
wxWidgets/samples/db/listdb.cpp
fixed wxString cast problems
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 08:16:48 +00:00
Chris Elliott
dedead3227
add const to avoid hiding warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 08:09:06 +00:00
Vadim Zeitlin
96c2a0dd74
fix unused parameters warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:40:13 +00:00
Vadim Zeitlin
92c6baaff2
corrected DLL export declaration of wxTimerEvent to fix VC++ DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:39:17 +00:00
Vadim Zeitlin
c2ca375c56
preparation for allowing to use wxTimer in wxBase (heavily modified patch 1113088):
...
1. Changed wxTimer to use wxTimerImpl
2. Added Unix-specific generic timer implementation
3. Added wxAppTraits::CreateTimerImpl()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:29:16 +00:00
Václav Slavík
378964d49d
fixed wxCStrData::operator[] to use wxString::operator[] instead of at()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 18:33:35 +00:00
Paul Cornett
a1abca322f
Reorganize idle system code.
...
Installing idle handler from GTK callbacks is no longer necessary.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 16:58:07 +00:00
Robert Roebling
30715fa195
Fix inplace editing of custom controls for
...
GTK+ variant of wxDataViewCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 12:47:47 +00:00
Václav Slavík
8db4a5d27a
added missing forward declaration for wxCStrData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 11:25:34 +00:00
Václav Slavík
82a99c692c
fixed compilation of STL non-UTF8 builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 10:57:35 +00:00
Václav Slavík
467175ab3f
moved primitive string and string iterators operations to stringops.h/cpp files to make wxString code easier to read
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 10:05:55 +00:00
Václav Slavík
e713a90b3f
moved vararg CRT functions wrappers to a new wxcrtvararg.h header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-19 07:44:16 +00:00
Robert Roebling
c3112d560e
Corrected/implemented sorting (by way of clicking on
...
on the header button) for the generic code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 12:31:35 +00:00
Václav Slavík
b553626907
fixed DLL linking of wxMessageOutput class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 09:34:35 +00:00
Václav Slavík
21e3e3bc75
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 08:32:19 +00:00
Václav Slavík
59953bf4ba
added conversion to and from std::string and std::wstring (if wxUSE_STD_STRING)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 15:32:05 +00:00
Robert Roebling
1e510b1e2d
Implemented the same simple API for creating customized
...
in-place editing controls for GTK+ and the generic
version and demonstrate its use in the sample using
a wxSpinCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 12:08:10 +00:00
Paul Cornett
29825f5fc4
add wxUSE_STC wrappers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 05:48:09 +00:00
Robin Dunn
a55e4e4260
Fix DLL compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 19:04:56 +00:00
Vadim Zeitlin
831faf970a
corrected the direction of comparisons between wxString and char/wxChar strings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 14:56:51 +00:00
Robert Roebling
99d471a5db
Rewritten in-place editing for generic wxDataViewCtrl
...
moving the code (partly) to the renderer and away
from the wxDataViewCtrl class. Adding new in-plae
editors (wxChoice) should be much simpler now.
Also implemented using Validate() before committing
a change to the data model.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 12:45:25 +00:00
Václav Slavík
8060b0be0e
added wxMBConv argument to char_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 11:04:35 +00:00
Václav Slavík
681e441286
added wxCStrData::As[W]CharBuf() that doesn't keep converted string in memory for longer than needed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 06:59:04 +00:00
Vadim Zeitlin
8a46124968
added new wxCONTROL_FLAT bit (see discussion of patch 1691478)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 01:22:46 +00:00
Vadim Zeitlin
15b239c0eb
don't erase background in GL canvases to reduce flicker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 23:29:45 +00:00
Vadim Zeitlin
dc2819335f
added #ifdef __X__ forgotten in last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 23:21:56 +00:00
Vadim Zeitlin
010eb424bb
fix handling of stock menu items (creating a stock item without label left its label empty)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 23:08:19 +00:00
Vadim Zeitlin
498ace9e1f
Refactor all code common to X11 OpenGL implementations into glx11.h/.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 23:06:45 +00:00
Vadim Zeitlin
e4e83f385a
added wxGetX11Display() returning the pointer of the correct type, unlike the old wxGetDisplay()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 22:54:36 +00:00
Václav Slavík
cf9a878b54
removed implicit conversion from wxString::iterator to wxStringImpl::iterator (fixes VC6 compilation)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 19:02:38 +00:00
Václav Slavík
8a7afe4dfe
compilation fix for VC6 with wxUSE_STL=1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 18:47:19 +00:00
Vadim Zeitlin
a81a4db388
removed unnecessary return in a void function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 16:43:37 +00:00
Mattia Barbon
644cb5372c
Make wxClassInfo attributes private. Replace
...
direct access to sm_classTable with a (const) iterator
interface.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 11:43:37 +00:00
Vadim Zeitlin
6285e36ba0
added wxRTTI macros to stream classes (patch 1687073)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 23:35:13 +00:00
Vadim Zeitlin
67cff9dc2f
added overloads of ctor/insert/assign/append taking a pair of wxCStrData objects to allow compilation of expression like wxString(s.c_str()+1, s.c_str()+2) (fixes wxUniv compilation)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 23:15:57 +00:00
Václav Slavík
486a594182
added ability to create 'non-owned' buffers that aren't freed by wxCharBuffer dtor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 16:58:48 +00:00
Vadim Zeitlin
57d7f9888e
added wxAPPLY and wxCLOSE flags to CreateStdDialogButtonSizer() (Marcin Wojdyr)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 13:17:06 +00:00
Václav Slavík
a4c1cdc9dc
don't use the VC6 workaround in wxList with newer versions of VC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 11:04:30 +00:00
Václav Slavík
bc5443ba07
fixed wxUniCharRef::IsAscii() definition
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 10:45:58 +00:00
Václav Slavík
47b378bd88
removed extra semicolons (patch #1700459 ; fixes compilation with gcc's -pedantic flag)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 09:58:37 +00:00
Stefan Csomor
e6893d5d28
cleaning up problems after string changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 09:24:02 +00:00
Václav Slavík
817270659e
initial version of UTF-8 strings representation (still converting to wchar_t* a lot); it has to be explicitly enabled with --enable-utf8 for now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 21:15:07 +00:00
Václav Slavík
5b077ec744
moved vararg handling code in wxMessageOutput to single method and added simple Output(wxString) virtual method instead of DoPrintf(format,...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 21:13:05 +00:00
Václav Slavík
fee043161b
removed unneeded wxChar* cast, we already have wxString one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 17:47:26 +00:00
Vadim Zeitlin
0d5f4ba3b0
avoid code duplication by using helper functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 14:57:41 +00:00
Stefan Csomor
6c1483e3ec
changing the Multiple Inheritance along the Single Inheritance, patch 1623801
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 15:32:57 +00:00
Vadim Zeitlin
f99bfeea73
derive wxStaticText from wxStaticTextBase under wxGTK1 too, in particular thi sfixes missing wxStaticText::Wrap() problem during linking
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 12:13:36 +00:00
Vadim Zeitlin
21324807f5
linking fix after the one before last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 11:53:40 +00:00
Mattia Barbon
afc89ff455
Added --enable-extended_rtti configure switch (defaults to disabled).
...
Fix compilation when WXINTL_NO_GETTEXT_MACRO is defined.
Added wx/flags.h to installed files.
Fix XTI compilation after wxString changes.
Fix 'virtual functions but non-virtual destructor' GCC warnings.
Minimal XTI definition for wxOwnerDrawnComboBox (cut'n'paste
from wxComboBox, will need to be completed).
Requires rerunning bakefile and autoconf.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 10:32:01 +00:00
Vadim Zeitlin
8e4ac1a068
compilation fix after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:26:09 +00:00
Vadim Zeitlin
b4a980f4f5
don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:23:19 +00:00
Vadim Zeitlin
1748289348
added our own implementation of strto[u]ll() if the system doesn't have one (patch 1696533)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:12:54 +00:00
Václav Slavík
05f32fc39e
don't crash if (char*)c_str() is used twice in a row on the same string and both pointers are used at the same time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 19:13:52 +00:00
Vadim Zeitlin
dc3065a56f
Big wxGL classes refactoring/cleanup:
...
1. Provide the same API, especially, but not limited to, wxGLCanvas and
wxCLContext ctors (which were completely different in all ports)
2. Extracted common parts into wxGLCanvas/ContextBase classes
3. Deprecate the old API using implicitly created wxGLContext
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 17:38:55 +00:00
Vadim Zeitlin
32a2c06eed
fix unused parameter warning introduced by last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 12:13:54 +00:00
Vadim Zeitlin
79b83ef085
make wxVarVScrollLegacyAdaptor::OnGetLineHeight() non-pure virtual to fix compilation with WXWIN_COMPATIBILITY_2_8==1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 11:37:04 +00:00
Vadim Zeitlin
b7276b44ce
compilation fixes after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 11:18:54 +00:00
Václav Slavík
89360a8c87
string iterator's operator- should return difference_type, not size_t or unsigned
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 08:18:33 +00:00
Václav Slavík
1bb592b878
removed spurious semicolons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 06:50:28 +00:00
Václav Slavík
1918a4c47f
compilation fix: needs wx/string.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 06:47:51 +00:00
Vadim Zeitlin
ccc20afae9
fix a fatal crash due to using wxHSCROLL presence in m_windowStyle as indicator of whether we wrap lines or not: this didn't work because wxHSCROLL was temporarily reset in wxWindow::Create() and so we used wxTextWrappedData when we only had created wxTextMultiLineData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 23:25:36 +00:00
Vadim Zeitlin
94aff5ff86
Call wxTLW::SetDefaultItem() from wxButtonBase::SetDefault() instead of doing
...
it in wxButton implementations in (almost) all ports; changed its return type
to "wxWindow *" from "void" to accommodate the ports needing the old default
item (replaces part of patch 1696563)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:18:35 +00:00
Vadim Zeitlin
4609ee2ef8
fix the problem with parsing HTML comments (closes bug 1116708; based on patch 1168583)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 21:02:03 +00:00
Václav Slavík
132276cf0d
fix crash in ~wxString with global wxString objects: temporarily move conversion buffers from a hash to wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 17:52:00 +00:00
Vadim Zeitlin
e02c72fa45
fix new wxHVScroll code to build with WXWIN_COMPATIBILITY_2_8==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 13:55:36 +00:00
Vadim Zeitlin
f18eaf2687
The great wxVScrolledWindow refactoring: allow using it both horizontal and
...
vertical directions (slightly modified patch 1671181)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 01:58:16 +00:00
Vadim Zeitlin
4e4e981fe6
corrected typo in the creation date
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:51:12 +00:00
Vadim Zeitlin
97660d4213
added wxPosition helper class (extracted from patch 1671181)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:49:41 +00:00
Vadim Zeitlin
bc855d0932
added wxEXEC_BLOCK flag (patch 1620430)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:18:09 +00:00
Vadim Zeitlin
9b5933bcbc
added GetIconOfExactSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:53:06 +00:00
Vadim Zeitlin
ea098413d0
made wxTLW::SetIcon() non-virtual, it was already implemented in terms of
...
SetIcons() in most of the ports, now do it in all of them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:40:55 +00:00
Vadim Zeitlin
f718689984
added IsEmpty()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:04:15 +00:00
Mattia Barbon
105fbe1ffa
Rework wxMotif font/color inheritance so it works
...
like in the other ports. Avoid setting foreground/background
color for windows and let the toolkit use the natural color.
As an intermediate step font is still explicitly set.
Handle the cases where m_foregroundColour, m_backgroundColour ir m_font
are not initialized.
Set default (overridable) X resources to emulate the old look.
Unify wxMOTIF_NEW_FONT_HANDLING with wxMOTIF_USE_RENDER_TABLE.
Minor unrelated (sizing) fixes to wxCheckListBox, wxStaticText, wxTextCtrl.
Tagged with MOTIF_BEFORE_COLOUR_FONT_INHERITANCE before the changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 21:18:33 +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
947848a1dd
added MacOpenURL() (patch 1235957)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 16:05:11 +00:00
Robert Roebling
3e09bcfd02
Restore border around non-scrolling widgets. The
...
border seems to have the wrong colour now (?).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 14:41:41 +00:00
Vadim Zeitlin
153bc803a8
add conversion of wxUniChar[Ref] to unsigned int if it's not already covered by conversion to wint_t
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 23:16:00 +00:00
Vadim Zeitlin
cc5bd48eff
added operator-(const wxChar *, const wxCStrData&) to allow compilation of the code doing "p - s.c_str()" where p is a pointer into the string s
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 22:56:06 +00:00
Vadim Zeitlin
9aee0061fe
wxCStrData must be dllexport'd now that it has non-inline methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 22:48:54 +00:00
Robin Dunn
cf63f3d3ae
More patches from FM to clean up after moving contribs. Also removes
...
use of wxUSE_RESOURCES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 21:08:30 +00:00
Vadim Zeitlin
f8ab85ae72
handle child destruction notifications in wxTLW itself and reset both normal and temporary default item pointers when the default window is destroyed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 19:22:38 +00:00
Vadim Zeitlin
d1cd787b75
more compilation and linking fixes for !wxHAS_NATIVE_TAB_TRAVERSAL after recent changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 19:16:07 +00:00
Vadim Zeitlin
15c1210982
compilation fix for VC7.1: add size_t overloads for arithmetic operators on wxStringImpl::iterator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 19:08:21 +00:00
Vadim Zeitlin
7c2b62db91
compilation fix for g++ 3 (and probably others) after the last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 22:33:16 +00:00
Vadim Zeitlin
bf0e8244d9
compilation fixes for generic TAB navigation after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 22:32:35 +00:00