Changelogs
Overview
These changelogs reflect the history of all files in the Subversion repository. The changelog has been generated at 2016-05-09 08:38:04
Changelog for wxWidgets (70435 changes):
2010-10-25 22:46 VZ, revision 659232010-10-25 22:46 VZ, revision 65922Use the correct accelerator for the "Preferences" Apple menu item. Use the standard Command-, accelerator for the standard "Preferences" item in the Apple menu. Closes #12121.
2010-10-25 11:43 VS, revision 65921Use the application name in the "About" item of the Apple menu. To conform to Apple UI guidelines the application name should be included in the "About" menu item label in the Apple menu. See #12121.
2010-10-25 11:43 VS, revision 65920Add wxImplicitConversionType tests.
- M /wxWidgets/trunk/build/bakefiles/files.bkl
- A /wxWidgets/trunk/include/wx/meta/implicitconversion.h
- M /wxWidgets/trunk/include/wx/utils.h
2010-10-25 11:24 JS, revision 65919Make wxMin, wxMax and wxClip template functions. Previously used macro's arguments were evaluated twice, but there were many occurences of their use in our code that didn't account for this and used expensive-to-evaluate arguments as if they were functions.
- M /wxWidgets/branches/WX_2_8_BRANCH/src/richtext/richtextdialogs.pjd
- M /wxWidgets/branches/WX_2_8_BRANCH/src/richtext/richtextstylepage.cpp
2010-10-25 11:22 VZ, revision 65918Style page no longer grows to fit very long style names; freeze/thaw used for speed
2010-10-25 01:06 VZ, revision 65917Compilation fix: don't use "environ" under OS X. The global environ variable is not directly accessible under OS X, use _NSGetEnviron() instead.
2010-10-25 01:03 VZ, revision 65916Make wxUString compilable with VC6. Provide replacements for std::basic_string functionality missing from this compiler standard library. Closes #12357.
2010-10-25 01:03 VZ, revision 65915Fix typo in wxFILTER_NUMERIC documentation. Replace wxFILTER_SIMPLE_NUMBER with wxFILTER_DIGITS. Closes #12341.
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/docview.h
- M /wxWidgets/trunk/interface/wx/docview.h
- M /wxWidgets/trunk/src/common/docview.cpp
2010-10-25 01:03 VZ, revision 65914Add wxDocManager::FindTemplate() method. This allows to find the template corresponding to the document of the given class. Closes #12170.
2010-10-25 00:41 VZ, revision 65913Don't handle RPC_E_CHANGED_MODE return of OleInitialize() as an error. This error means that OLE had already been initialized so from our point of view it counts as a success. Closes #12516.
2010-10-25 00:41 VZ, revision 65912Do nothing in wxMemoryDC::SelectObject() if the bitmap is already selected. It doesn't make sense to make a copy of the bitmap in order to select it into wxMemoryDC if it's already selected into it. See #11640.
2010-10-25 00:41 VZ, revision 65911Always create new OLE objects with reference count of 1, not 0. There are no real changes but ensure that the new objects of classes using DECLARE_OLE_UNKNOWN() macro are created with valid reference count of 1 instead of being created in phantom state with reference count of 0. Remove the now unnecessary AddRef() and add the now required DecRef() calls. See #11566.
2010-10-25 00:41 VZ, revision 65910Fix problems with reference counting in wxActiveXContainer. Ensure that the IFrameSite object is created with valid (i.e. non-zero) reference count by calling AddRef() on it immediately after creation and remove the weird QueryInterface() call which was used to work around this bug. Closes #11566.
2010-10-25 00:41 VZ, revision 65909Don't consider lack of connection points an error in wxActiveXContainer. Handle CONNECT_E_NOCONNECTION return value from IConnectionPointContainer:: FindConnectionPoint() as an expected error and don't complain about it. See #11566.
2010-10-25 00:41 VZ, revision 65908Don't activate the window when updating its styles in wxMSW. Add SWP_NOACTIVATE to the flags used by wxWindow::MSWUpdateStyle(). This allows to change the style of a window without necessarily activating it. Closes #11560.
2010-10-25 00:41 VZ, revision 65907Fix wrong wxLogDebug() call in fswatcher sample. Replace wxLogDebug() with wxLogTrace() as was probably intended. This fixes the assert which happened when running the sample because of the wrong number of parameters passed to wxLogDebug().
2010-10-25 00:41 VZ, revision 65906Allow specifying the directory to watch on command line of fswatcher sample. This makes it more convenient to run the sample repeatedly as the directory to watch can be specified only once instead of having to choose it interactively after the sample startup every time.
2010-10-25 00:41 VZ, revision 65905Avoid duplicate wxEVT_COMMAND_TREE_SEL_CHANG{ING,ED} events in wxMSW. When changing the selected item programmatically 2 CHANGING and CHANGED events were sent because the assumption that comctl32.dll didn't send these events itself was not correct any more, it does send them at least since XP. However to avoid the tests for its exact version it's simpler to just ignore the events it generates and continue sending our own ones. Closes #11274.
2010-10-25 00:40 VZ, revision 65904Don't grab focus when calling wxTreeCtrl::SelectItem(). The workaround for the unexpected events order introduced in r49588 should only apply to the situation when the user selects an item in the tree, not when it's done programmatically as this results in unexpected focus changes (see #11274).
- M /wxWidgets/trunk/docs/doxygen/mainpages/samples.h
- M /wxWidgets/trunk/samples/opengl/cube/cube.cpp
- M /wxWidgets/trunk/samples/opengl/cube/cube.h
2010-10-25 00:40 VZ, revision 65903Allow to use space to toggle spinning of the cube in OpenGL sample. Small enhancement to the cube OpenGL sample. Closes #11545.
2010-10-25 00:40 VZ, revision 65902Don't send wxEVT_COMMAND_TREE_ITEM_MENU event without valid item in wxMSW. The generic wxTreeCtrl version only sends this event when the mouse is right clicked on a valid item so do the same in wxMSW version too for consistency. This is also consistent with wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK event and avoids strange problems with unexpected wxEVT_COMMAND_TREE_ITEM_MENU events generated on right double click. Finally, replace the checks for item validity in the event handler in the sample with asserts which should loudly complain if it happens to be invalid. Closes #11226.
2010-10-25 00:40 VZ, revision 65901No real changes, just cleanup week days handling in wxGenericCalendarCtrl. Use helper GetWeek{Start,End}() functions instead of repeating tests for wxCAL_MONDAY_FIRST over and over again. Also replace some occurrences of GetWindowStyle() with shorter and more clear HasFlag().
2010-10-25 00:40 VZ, revision 65900Keep displayed month and year in sync in wxGenericCalendarCtrl. When the date was constrained to a range in wxGenericCalendarCtrl, the display of the month in the month combobox could get out of sync with its real value. Ensure that the correct month is always displayed and also simplify the code by removing the apparently unnecessarily complex logic in ChangeYear() and ChangeMonth() functions. Closes #11060.
2010-10-25 00:40 VZ, revision 65899No real changes, just inline wxDIB::Create(). After removing wxDIB::m_hasAlpha in the previous commit, this method became completely trivial so put it inline in the header.
2010-10-25 00:40 VZ, revision 65898Remove wxDIB::m_hasAlpha from wxMSW. This field can't be set reliably as we don't know if LoadImage() Windows function loaded an 0RGB or an RGB bitmap so remove it completely to avoid the risk of using it wrongly.
2010-10-25 00:40 VZ, revision 65897Fix conversion of 32 bit ARGB bitmaps to wxImage in wxMSW. wxDIB::m_hasAlpha can't be trusted when the DIB was loaded from a file so don't rely on it in wxDIB::ConvertToImage(). Instead, suppose that 32 bpp bitmaps do have alpha channel and only get rid of it at the end of conversion if it turns out that all alpha values were 0. Closes #10133.
2010-10-25 00:40 VZ, revision 65896Don't hard code "open" verb in wxMSW wxLaunchDefaultApplication(). Don't choose the verb explicitly and let ShellExecuteEx() choose the default one. In the vast majority of cases this will do the same thing but if some file type doesn't have an "open" verb the new version will still open it correctly using its default verb while the old version failed. See #10707.
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/utils.h
- M /wxWidgets/trunk/interface/wx/utils.h
- M /wxWidgets/trunk/samples/exec/exec.cpp
- M /wxWidgets/trunk/src/cocoa/utilsexc.mm
- M /wxWidgets/trunk/src/common/utilscmn.cpp
- M /wxWidgets/trunk/src/msdos/utilsdos.cpp
- M /wxWidgets/trunk/src/msw/utilsexc.cpp
- M /wxWidgets/trunk/src/os2/utilsexc.cpp
- M /wxWidgets/trunk/src/palmos/utilsexc.cpp
- M /wxWidgets/trunk/src/unix/utilsunx.cpp
2010-10-25 00:40 VZ, revision 65895Add support for specifying child process cwd and env to wxExecute(). Add an optional wxExecuteEnv parameter to wxExecute() which allows to specify the initial working directory and custom environment for the child process. Closes #12163.
2010-10-25 00:39 VZ, revision 65894Treat wxToolbook symmetrically with others in the notebook sample. Use wxToolbook as the default notebook type if the other ones are not available. Closes #12610.
2010-10-24 16:34 VZ, revision 65893Don't reserve space for hidden controller in wxBookCtrl. Even when the controller was hidden, space was still allocated for it by wxBookCtrl. Fix this by only reserving extra space when the controller is shown. Closes #12609.
2010-10-24 16:34 VZ, revision 65892Set wxKeyEvent::m_rawFlags to hardware key code in wxGTK. The raw flags were previously unused in wxGTK but hardware key code is an important information which may be useful to the application, so pass it in the flags (this is rather symmetric with passing lParam in it under MSW as lParam contains the scan code, among other things). Also document the meaning of raw key code and flags in all the major ports.
2010-10-24 16:34 VZ, revision 65891Output header to the same directory as the .cpp file in wxrc. If "-o" option is given, generate the output header file in the same directory as the .cpp file and not in the current directory. Closes #4054.
2010-10-24 16:34 VZ, revision 65890Use wxChoicebook instead of wxNotebook in the xrc sample. wxNotebook was unusable with so many pages under all platforms and completely unusable under Mac. Replace it with wxChoicebook which allows to select any page quickly instead of having to do it sequentially (or not being able to do it at all under Mac). Another possibility could be to use wxTreebook and organize the pages in categories, similarly to how it is done in the widgets sample. Closes #3699.
2010-10-24 16:33 VZ, revision 65889Rearrange xrc sample controls in alphabetical order. Several new pages were added in random positions, rearrange them to be in alphabetical order. Also remove wxToolBar from "The Rest" page as it is shown in one of the other pages now.
- M /wxWidgets/trunk/include/wx/xrc/xh_sizer.h
- A /wxWidgets/trunk/interface/wx/xrc/xh_sizer.h
- M /wxWidgets/trunk/src/xrc/xh_sizer.cpp
2010-10-24 16:23 VZ, revision 65888Make it easier to define custom wxSizerXmlHandler subclasses. No real changes but refactor wxSizerXmlHandler to make it easier to derive from it by adding virtual IsSizerNode() and DoCreateSizer() methods. To add support for a custom sizer class you only need to override them in wxSizerXmlHandler subclass now. Also document wxSizerXmlHandler which was not documented at all previously. Closes #11845.
2010-10-23 23:47 VZ, revision 65887Make wxXmlResourceHandler::IsOfClass() static. This simple helper function doesn't use any wxXmlResourceHandler data as it's just a trivial wrapper for wxXmlNode::GetAttribute(). Making it static allows, in particular, to call it from const member functions of wxXmlResourceHandler-derived classes (making it "const" itself would achieve this too, of course, but it just doesn't need to be non-static).
2010-10-23 20:56 VZ, revision 65886Add wxIcon::GetSize() to wxIcon in wxOSX. This fixes the compilation errors under OS X after r65884 due to the lack of this method there.
2010-10-23 20:56 VZ, revision 65885Don't use non-existent icon in XRC sample. appicon.xpm was removed so use another icon in the controls demo in the sample instead, it doesn't matter which one we use anyhow.
- M /wxWidgets/trunk/build/bakefiles/files.bkl
- M /wxWidgets/trunk/build/msw/makefile.bcc
- M /wxWidgets/trunk/build/msw/makefile.gcc
- M /wxWidgets/trunk/build/msw/makefile.vc
- M /wxWidgets/trunk/build/msw/makefile.wat
- M /wxWidgets/trunk/build/msw/wx_core.dsp
- M /wxWidgets/trunk/build/msw/wx_vc7_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc7_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_xrc.dsp
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/docs/doxygen/overviews/xrc_format.h
- M /wxWidgets/trunk/include/wx/xrc/xh_all.h
- A /wxWidgets/trunk/include/wx/xrc/xh_toolbk.h
- M /wxWidgets/trunk/Makefile.in
- M /wxWidgets/trunk/samples/xrc/rc/controls.xrc
- A /wxWidgets/trunk/src/xrc/xh_toolbk.cpp
- M /wxWidgets/trunk/src/xrc/xmlrsall.cpp
2010-10-23 20:56 VZ, revision 65884Add XRC handler for wxToolbook. Closes #11615.
2010-10-23 20:56 VZ, revision 65883Don't assume any particular default size for XRC image lists. Let the image list deduce its size from the first bitmap in it. This is better than the old behaviour of using the standard icon size as it allows to omit the size from the image lists provided they contain the bitmaps of the same size.
2010-10-23 16:10 VZ, revision 65882Correct wxDialog::SetAffirmativeId() documentation. The return value of ShowModal() is the affirmative id and not wxID_OK, of course. See ##11413 (specifically comment 5).
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/thread.h
- M /wxWidgets/trunk/interface/wx/thread.h
- M /wxWidgets/trunk/src/msw/thread.cpp
- M /wxWidgets/trunk/src/unix/threadpsx.cpp
2010-10-23 16:10 VZ, revision 65881Added wxThread::OnKill() and OnDelete() callbacks. Call OnXXX() from wxThread::Kill() and Delete() respectively to allow the thread being terminated perform some cleanup. Closes #9046.
2010-10-23 16:09 VZ, revision 65880Construct paths using wxFileName in wxHTML help. Use wxFileName instead of more complicated and error-prone manipulations with strings. Closes #12602.
2010-10-23 16:09 VZ, revision 65879Use rpmbuild to build the RPMs in "make rpm" target. In recent versions of rpm rpmbuild must be used for building the RPMs instead of rpm itself. See #12567.
2010-10-23 16:09 VZ, revision 65878Add more headers to "make dist" and remove .mo files. Add wx/persist headers to the list of files used by "make dist" and remove the message catalogs which shouldn't be part of the source distribution. See #12567.
2010-10-23 16:09 VZ, revision 65877Include wxscintilla library in wxGTK RPM. Include libwxscintilla.a for static linking. See #12567.
2010-10-23 16:09 VZ, revision 65876Generate the full list of wxBase headers paths in wxGTK.spec. Instead of hardcoding the list of wxBase headers path, build it automatically from the list of their base names which is generated by bakefile and so is always up to date. See #12567.
2010-10-23 16:09 VZ, revision 65875Force the use of GNOME printing support and wxMediaCtrl in wxGTK RPMs. Explicitly enable the use of GNOME printing and media control to ensure that RPMs are always created with these features enabled. See #12567.
2010-10-23 16:09 VZ, revision 65874Remove "release" suffix from wx-config links used in RPMs. We don't distinguish debug and release builds under Unix any more in 2.9 and don't use "release" and "debug" suffixes in full wx-config names. Remove these suffixes from the wx-config links created by RPM post-installation step. See #12567.
2010-10-23 16:03 RR, revision 65873Document that wxProcess::GetOutputStream() can't be used after CloseOutput(). As closing the output stream makes it unusable, it is destroyed as well and so GetOutputStream() returns NULL after calling CloseOutput(). Closes #12605.
2010-10-23 16:00 RR, revision 65872wxDataViewCtrl::Expand() only works on items whose parents are already expanded. The attached patch fixes this by expanding all ancestors of the item before expanding the item itself. Closes #12585: wxDataviewCtrl::Expand() needs to expand all ancestors
2010-10-23 15:53 RR, revision 65871Set focus to generic wxDataViewCtrl when clicking with any mouse button, not just left, closes #12586: wxDataviewCtrl only gets focused on left mouse
2010-10-23 15:48 RR, revision 65870Implement wxDataViewCtrl::HitTest() under GTK+, second part of #12582: enhancing wxDataViewCtrl, closes #12582
2010-10-23 00:15 MW, revision 65869Also set mouse position in ITEM_BEGIN_DRAG event in wxDataViewCtrl under GTK+, part of #12582: enhancing wxDataViewCtrl
2010-10-23 00:12 MW, revision 65868Change the return code of the test program so that aborting a test with an exception doesn't count as a failure, to provide a way to skip tests that can't be performed.
- M /wxWidgets/trunk/build/buildbot/config/brandt32.xml
- M /wxWidgets/trunk/build/buildbot/config/ravnsgaard.xml
- M /wxWidgets/trunk/build/buildbot/config/StellarWerx32.xml
- M /wxWidgets/trunk/build/buildbot/config/StellarWerx64.xml
2010-10-22 18:33 VZ, revision 65867Add debugging info to the trunk Linux builds.
2010-10-22 18:33 VZ, revision 65866Enable ListBoxTestCase::HitTest() for wxGTK. wxListBox::HitTest() does work in wxGTK but we need to realize the control before using it.
2010-10-22 18:33 VZ, revision 65865Restore the note about auto-repeat in key events documentation. Closes #12598.
2010-10-22 16:17 VZ, revision 65864Use GTK_SELECTION_BROWSE instead of SINGLE for wxListBox in wxGTK. A single-selection listbox must always have a selected item, at least after initial selection is done, i.e. its selected item can't be deselected. This behaviour corresponds to GTK_SELECTION_BROWSE style in GTK+. Closes #2549.
2010-10-22 16:17 VZ, revision 65863Fixes for calling Enable() on children of a disabled TLW in wxMSW. The change of the child window state wasn't reflected immediately if it was done while the TLW itself was disabled but only happened when it was reenabled and in some cases the child could not be enabled even then. Fix this by updating the child state immediately, even when its TLW parent is disabled and only skip the update of the children state when TLW is being disabled, not when it's enabled back. Closes #11622.
2010-10-22 16:17 VZ, revision 65862Use single BeforeLast() call in wxConfigPathChanger ctor. Use a single BeforeLast() call with the "rest" argument and avoid calling AfterLast() laster in wxConfigPathChanger ctor. This is a small optimization which may count because wxConfigPathChanger is used in a lot of wxFileConfig functions but, even more importantly, this works around a bug in g++ 4 optimized build when the name was not filled by AfterLast() call correctly as apparently the optimizer decided it was not used. The real cause of this compiler bug was difficult to find as it couldn't be reproduced in a simple test case but this change avoids it and fixes wxFileConfig unit test in optimized build.
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/string.h
- M /wxWidgets/trunk/interface/wx/string.h
- M /wxWidgets/trunk/src/common/string.cpp
- M /wxWidgets/trunk/tests/strings/strings.cpp
2010-10-22 16:17 VZ, revision 65861Added "rest" argument to wxString::Before{First,Last}(). This allows to search the string just once, in BeforeXXX(), when both the parts of the string before and after some character are needed instead of having to do it twice in both BeforeXXX() and AfterXXX().
- M /wxWidgets/trunk/src/common/config.cpp
- M /wxWidgets/trunk/src/common/ctrlcmn.cpp
- M /wxWidgets/trunk/src/common/ffile.cpp
- M /wxWidgets/trunk/src/common/file.cpp
- M /wxWidgets/trunk/src/common/intl.cpp
- M /wxWidgets/trunk/src/common/mstream.cpp
- M /wxWidgets/trunk/src/common/strconv.cpp
- M /wxWidgets/trunk/src/generic/grid.cpp
- M /wxWidgets/trunk/src/msw/bitmap.cpp
- M /wxWidgets/trunk/src/msw/notebook.cpp
- M /wxWidgets/trunk/src/msw/thread.cpp
- M /wxWidgets/trunk/src/osx/carbon/thread.cpp
- M /wxWidgets/trunk/src/unix/fontutil.cpp
2010-10-22 16:17 VZ, revision 65860No real changes, just use const_cast<> instead of C casts. Replace many comments indicating that the C cast used was really a const_cast<> with the proper cast itself. There is no reason to not use it any longer, all the supported compilers understand it.
2010-10-21 21:51 VZ, revision 65859Don't add quotes to string representation in gdb. gdb adds quotes itself around string values so don't duplicate them.
2010-10-21 21:44 VZ, revision 65858Add missing comparison operator declarations in wxString::iterator. Fix compilation in !wxUSE_UNICODE_UTF8 case after r65857. Modify the second declaration of wxString::iterator class which was not updated by the previous commit in the same way, i.e. add declaration of comparison operators taking const_iterator to iterator class.
2010-10-21 21:22 VZ, revision 65857Document the meaning of wxToolBar tool id more clearly. Make it clear that the id is the same one as was passed to AddTool(). Closes #12597.
2010-10-21 01:11 VZ, revision 65856Implement comparisons between wxString::iterator and const_iterator. Only comparisons between const_iterator and iterator worked before (because of implicit conversion from the latter to the former), implement the ones in the other direction explicitly now. Closes #12594.
- M /wxWidgets/trunk/build/bakefiles/files.bkl
- M /wxWidgets/trunk/build/msw/makefile.bcc
- M /wxWidgets/trunk/build/msw/makefile.gcc
- M /wxWidgets/trunk/build/msw/makefile.vc
- M /wxWidgets/trunk/build/msw/makefile.wat
- M /wxWidgets/trunk/build/msw/wx_core.dsp
- M /wxWidgets/trunk/build/msw/wx_vc7_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc7_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_xrc.vcproj
- M /wxWidgets/trunk/build/msw/wx_xrc.dsp
- M /wxWidgets/trunk/docs/doxygen/overviews/xrc_format.h
- M /wxWidgets/trunk/include/wx/xrc/xh_all.h
- A /wxWidgets/trunk/include/wx/xrc/xh_cmdlinkbn.h
- M /wxWidgets/trunk/Makefile.in
- M /wxWidgets/trunk/samples/xrc/rc/controls.xrc
- A /wxWidgets/trunk/src/xrc/xh_cmdlinkbn.cpp
- M /wxWidgets/trunk/src/xrc/xmlrsall.cpp
2010-10-21 01:11 VZ, revision 65855Add XRC handler for wxCommandLinkButton. Added a handler for wxCommandLinkButton class and a demo of it in the xrc sample. Closes #12593.
2010-10-21 01:11 VZ, revision 65854Merge wxBitmapButton and wxButton panels in the xrc sample. There are already way too many pages in the "Controls Example" in the sample, combine wxBitmapButton and wxButton ones to save some space and make it more usable.
2010-10-20 19:49 PJC, revision 65852Correct the fix that broke wxRegion::ConvertToBitmap(). The changes in r64874 were incorrect and made the size of the bitmap even more wrong than before. Fix it correctly now by just adding 1 extra pixel to the size of the bitmap used in the original (pre-r64874) version. Closes #12213.
- M /wxWidgets/trunk/include/wx/ribbon/panel.h
- M /wxWidgets/trunk/interface/wx/ribbon/panel.h
- M /wxWidgets/trunk/samples/ribbon/ribbondemo.cpp
- M /wxWidgets/trunk/src/ribbon/art_msw.cpp
- M /wxWidgets/trunk/src/ribbon/panel.cpp
2010-10-20 15:08 MW, revision 65851Improve support for ribbon panel sizers: panels with sizers should now automatically minimise at small sizes, and behave properly when popping up from a minimised state. Patch by johnr in trac issue #12580.
2010-10-19 01:43 VZ, revision 65847Check for window manager before running GUI tests on unix.
2010-10-19 01:43 VZ, revision 65846Change wxSP_XXX flags values to avoid clashes with wxTE_XXX. wxSP_ARROW_KEYS conflicted with wxTE_AUTO_URL (which was probably not important in practice as URLs don't appear in spin controls anyhow) and wxSPWR conflicted with wxTE_NOHIDESEL (which could conceivably be a problem). Change their values to reuse the bits of wxTE_CHARWRAP and wxTE_RICH2 neither of which definitely makes sense for a spin control. Closes #11461.
- M /wxWidgets/trunk/src/gtk/bdiag.xbm
- M /wxWidgets/trunk/src/gtk/cdiag.xbm
- M /wxWidgets/trunk/src/gtk/cross.xbm
- M /wxWidgets/trunk/src/gtk/dcclient.cpp
- M /wxWidgets/trunk/src/gtk/fdiag.xbm
- M /wxWidgets/trunk/src/gtk/horiz.xbm
- M /wxWidgets/trunk/src/gtk/verti.xbm
2010-10-19 01:43 VZ, revision 65845Use unsigned char for XBM bitmaps data. This fixes compilation with g++ in C++0x mode in which conversions of constants not fitting into signed char range to char are not permitted. Closes #12575.
2010-10-19 01:43 VZ, revision 65844Correctly handle S_FALSE return value of IActiveMovie::get_Duration(). IActiveMovie::get_Duration() can return S_FALSE in which case outDuration isn't initialized and so wxAMMediaBackend::GetDuration() would return a completely wrong value. Fix this by returning 0 from it instead which seems like the only reasonable thing to do (in the absence of documentation of this interface it's not really clear what does S_FALSE return value mean nor why didn't it return it before).
2010-10-19 01:43 VZ, revision 65843Correct recently broken checked state handling in wxRearrangeList. The checked state of them wasn't preserved correctly any more since r64875, correct this by changing the state only after storing the old one. Closes #12578.
2010-10-18 15:55 JMS, revision 65841Add missing "static" to wxSystemOptions::SetOption() documentation. Closes #12576.
2010-10-17 20:17 VZ, revision 65840Call wxScrollHelper::AdjustScrollbars() to fix scroll bar setup that broke after wxPropertyGrid was changed to inherit from wxScrollHelper instead of wxScrolledWindow
- M /wxWidgets/trunk/include/wx/stc/stc.h
- M /wxWidgets/trunk/src/stc/ScintillaWX.cpp
- M /wxWidgets/trunk/src/stc/stc.cpp
- M /wxWidgets/trunk/src/stc/stc.cpp.in
- M /wxWidgets/trunk/src/stc/stc.h.in
2010-10-17 16:06 MW, revision 65839Fix wxSTC compilation without wxUSE_DRAG_AND_DROP after r65827. Correct the changes of r65827 to also compile with wxUSE_DRAG_AND_DROP==0 (especially important for the ports without dnd support such as wxX11 and wxDFB). Also do the changes in the correct files, i.e. src/stc/stc.{h,cpp}.in and not in the generated files themselves to prevent them from being overwritten the next time gen_iface.py is ran. Finally keep backwards compatibility as SetDragAllowMove(bool) is a public method so preserve its old semantics and add a new SetDragFlags() instead of silently breaking the existing code using SetDragAllowMove(). See #11709.
2010-10-17 15:59 VZ, revision 65838Disable the Mingw x64 builds as there's no compiler.
2010-10-17 15:59 VZ, revision 65837No real changes, just fix a warning in the test suite. Don't assign wxNO_LEN to int variable, this results in gcc warnings about overflow in implicit constant conversion. Use size_t for the variable containing string length to fix it.
2010-10-17 15:59 VZ, revision 65836Revert the changes of r65826 in wxConvertToGTK(). This is not necessary any longer after the previous commit which changed cMB2WC() to not return NULL for empty input. See #12432.
2010-10-17 01:05 VZ, revision 65835Return valid buffer from wxMBConv::c{MB,WC}2{WC,MB} for empty input. Returning invalid buffer for empty input is unexpected and resulted in e.g. wxString::utf8_str() returning NULL and not "" in ANSI build for empty strings (which, in turn, resulted in crashes in the test suite and undoubtedly not only) as well as crashes when calling GTK+ functions (see #12432). Other uses of cMB2WC() also show that NULL return value from it is unexpected as it is often passed to CRT functions not accepting NULL. So return empty buffer instead for empty input to avoid all these problems.
2010-10-17 01:05 VZ, revision 65834Fix FileTestCase to really test strings with embedded NULs. The test was intended to verify that round trip via wxFile::Write/Read() worked even for the strings with embedded NULs but as the string wasn't constructed correctly it didn't actually contain any NULs but was ended by the first of them. Fix this by using explicit length of the string as usual when dealing with strings with embedded NULs. Also fix the conversion back to Unicode to use the correct length.
2010-10-17 01:05 VZ, revision 65833Disable tests for UTF-encoded files in FileTestCase in ANSI build. These tests didn't work correctly in ANSI build because the conversion parameter of wxFile::Write() isn't used there, the contents of an ANSI wxString is always written to the file as is -- hence reading it back using UTF-16 or UTF-32 conversion fails. The test would need to be totally rewritten for ANSI build of wx and it wouldn't test wxFile but rather conversion functions already tested elsewhere so just disable it instead. This fixes a crash (due to passing NULL pointer to memcmp()) which prevented the test suite from running to completion in ANSI build.
2010-10-16 20:11 VZ, revision 65831Compilation fix for STL build after r65830. Explicit conversion from wxString to "const char *" is needed in STL build. And even in non-STL build it's wrong to rely on implicit conversion as it wouldn't work correctly in non-UTF-8 locales.
2010-10-16 20:11 VZ, revision 65830Avoid crashes in wxGenericListCtrl client<->screen conversion code. At least in wxUniv build, DoScreenToClient() can be called before the main control window is created which results in a crash when attempting to forward to its DoScreenToClient() version. Check for m_mainWin being non-NULL before using it to at least avoid the crash, even if it's not really clear whether this is a 100% correct fix. Closes #12390.
2010-10-16 20:11 VZ, revision 65829Improve wxGTK print and page setup dialogs. Handle more fields (notably collation, number of copies and "print to file" flag) and fix the bug with return value of print dialog ShowModal(). Closes #12499.
2010-10-16 20:11 VZ, revision 65828Transfer printer name to/from GTK+ native print setup dialog. Printer name in the GTK+ dialog was neither initialized nor retrieved before. See #12499.
2010-10-16 20:11 VZ, revision 65827Correctly initialize wxGtkPrintNativeData members. In particular, create a valid GtkPrintOperation object instead of using an uninitialized pointer to it in wxGtkPrintDialog::ShowModal(), resulting in crashes or, at best, GTK errors. Closes #12483.
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/stc/stc.h
- M /wxWidgets/trunk/src/stc/ScintillaWX.cpp
- M /wxWidgets/trunk/src/stc/stc.cpp
2010-10-16 20:10 VZ, revision 65826Restore text drag-and-drop in wxSTC broken by Scintilla 2 update. Drag and drop in wxStyledTextCtrl was broken, apparently since upgrade to Scintilla 2. Restore it by using the correct wxDrag_XXX constants instead of boolean values in the code for wxEVT_STC_START_DRAG events generation. Closes #11709.
2010-10-16 20:10 VZ, revision 65825Don't return invalid buffer from wxConvertToGTK(""). The result of wxConvertToGTK() is often passed to GTK+ functions directly and not all of them handle NULLs gracefully, e.g. gtk_editable_insert_text() just crashes. Return an empty string from wxConvertToGTK() explicitly for empty string input to avoid such problems. Another potential solution might have been to change wxMBConv::cMB2WC() to return empty buffer instead of invalid one for empty input but it's not clear if this is not going to break something else. Closes #12432.
- M /wxWidgets/trunk/docs/doxygen/mainpages/const_cpp.h
- M /wxWidgets/trunk/include/wx/checkbox.h
- M /wxWidgets/trunk/tests/controls/checkboxtest.cpp
2010-10-16 20:10 VZ, revision 65824Add wxHAS_3STATE_CHECKBOX symbol. This symbol is defined for the ports that support wxCHK_3STATE style. While most of the ports do support it, a couple still do not and having this symbol makes it more convenient to exclude 3-state-checkbox-specific code, like in CheckBoxTestCase.
- M /wxWidgets/trunk/include/wx/checkbox.h
- M /wxWidgets/trunk/src/gtk/checkbox.cpp
- M /wxWidgets/trunk/src/gtk1/checkbox.cpp
- M /wxWidgets/trunk/src/msw/checkbox.cpp
- M /wxWidgets/trunk/src/osx/checkbox_osx.cpp
- M /wxWidgets/trunk/src/univ/checkbox.cpp
- M /wxWidgets/trunk/tests/controls/checkboxtest.cpp
2010-10-16 20:10 VZ, revision 65823Improve validation of wxCheckBox styles. Detect when incompatible styles are used (this required changing the value of wxCHK_2STATE to be non-null) and sanitize the styles (after asserting) in this case. Put the validation code in wxCheckBoxBase instead of having slightly different versions of it in port-specific wxCheckBox implementations. Add a unit test checking that the expected asserts are indeed generated.
2010-10-16 12:24 JS, revision 65822Put libraries in %{_libdir} when building wxGTK RPMs. Using the default libdir value ${_prefix}/lib is not always appropriate, notably this takes care of systems using /usr/lib64 instead of /usr/lib.
2010-10-16 01:46 VZ, revision 65821Disabled wxRTC tests that don't work in wxGTK
2010-10-16 01:46 VZ, revision 65820Clear selection when generic wxDataViewCtrl is cleared. Selection could retain its old value and become invalid after calling Reset() before. Closes #12559.
- M /wxWidgets/trunk/include/wx/brush.h
- M /wxWidgets/trunk/include/wx/pen.h
- M /wxWidgets/trunk/interface/wx/brush.h
- M /wxWidgets/trunk/interface/wx/pen.h
- M /wxWidgets/trunk/src/common/imagfill.cpp
- M /wxWidgets/trunk/src/generic/dcpsg.cpp
- M /wxWidgets/trunk/src/gtk/dcclient.cpp
- M /wxWidgets/trunk/src/gtk/gnome/gprint.cpp
- M /wxWidgets/trunk/src/gtk/print.cpp
- M /wxWidgets/trunk/src/msw/dc.cpp
2010-10-16 01:46 VZ, revision 65819Add wx{Pen,Brush}::Is[Non]Transparent() methods and use them. Using GetStyle() == wx{PEN,BRUSH}STYLE_TRANSPARENT doesn't work for uninitialized pen or brush objects so add convenient helpers which do work for them. Use the new helper functions everywhere instead of explicitly checking for style. This makes the code shorter and more clear and also fixes some bugs (at least those in GTK printing code). Notice that this patch removes the main reason for explicitly initializing m_pen and m_brush in wxGTKDCImpl ctor but this initialization still can't be removed, at least for the latter, as doing this somehow breaks GetPixel(). It would be nice to understand why and do remove this initialization so that a newly created DC doesn't have any non-default pen nor brush. Closes #12522.
2010-10-16 01:46 VZ, revision 65818Use wxDCPenChanger instead of setting/resetting pen explicitly. No real changes, just use wxDCPenChanger instead of manual calls to SetPen() in wxDCImpl::DrawPolygon(). This makes the code shorter and more clear.
- M /wxWidgets/trunk/include/wx/gtk/choice.h
- M /wxWidgets/trunk/src/gtk/choice.cpp
- M /wxWidgets/trunk/tests/controls/itemcontainertest.cpp
- M /wxWidgets/trunk/tests/controls/itemcontainertest.h
2010-10-16 01:46 VZ, revision 65817Add "GTK" prefix to wxChoice::{Dis,En}ableEvents() methods in wxGTK. This is more than a cosmetic change: adding "GTK" prefix in wxComboBox and not doing it in wxChoice in r64436 broke the event generation for wxComboBox as it didn't override wxChoice methods any longer but defined its own (useless) ones. Using the same name for the methods in both classes notably fixes unexpected event generation from wxComboBox::SetSelection(). Closes #12568.
2010-10-16 01:46 VZ, revision 65816Include wx_presets.py in the distribution made by "make dist". This file is required by "make install".
2010-10-16 01:46 VZ, revision 65815Check for task dialog availability even under Vista and later. Task dialogs are not always available under Vista and later Windows versions because we might not be using the right (i.e. 6+) version of comctl32.dll. Improve the check for task dialog availability and fall back to the classic message box if we can't use it. Closes #12553.
2010-10-16 01:46 VZ, revision 65814Remove all mentions of non-existent contrib from .spec files. Remove contrib packages from .spec files. Closes #12567.
2010-10-16 01:46 VZ, revision 65813Add libraries new in 2.9 to wxGTK.spec. Add propgrid, ribbon and stc libraries. Correct the name of the media library ("mmedia" was an old contrib library name that doesn't exist any more). See #12567.
2010-10-16 01:45 VZ, revision 65812Fix GTK+ development RPM dependency in wxGTK.spec. Apparently the standard name for this RPM is gtk2-devel and not gtk+-2.0-devel, at least rpmfind.net database doesn't have any matches for the latter and plenty for the former. See #12567.
2010-10-15 17:49 JMS, revision 65808Fix button order in wxGTK wxMessageDialog and wxStdDialogButtonSizer. The order of buttons in wxGTK wxMessageDialog was accidentally broken since r55482 and wxStdDialogButtonSizer implementation for wxGTK was subsequently modified to work in the same way as the broken version of wxMessageDialog. Fix wxMessageDialog and remove the "compatibility" workarounds from wxStdDialogButtonSizer to restore correct behaviour in both places. Closes #12565.
2010-10-15 17:18 JMS, revision 65807Fix non-PCH builds
2010-10-15 17:15 JMS, revision 65806Added the missing DLL export declaration for wxNumericPropertyValidator
2010-10-14 20:06 JS, revision 65805Added wxNumericPropertyValidator, which is a custom wxTextValidator with more accurate filtering of inappropriate input for wxIntProperty, wxFloatProperty and wxUIntProperty (fixes #12563).
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/samples/richtext/richtext.cpp
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
2010-10-14 01:08 VZ, revision 65804Fixed #12566 (assert on deletion) due to inconsistent commit
2010-10-14 01:02 VZ, revision 65803wxUniv/MSW compilation fix. wxUniv/MSW compilation was broken by r65589, fix it by not assuming that wxWindowMSW is a wxWindow because wxWindow derives from it in wxUniv. Closes #12534.
2010-10-14 00:53 VZ, revision 65802Regenerate Makefile.in after recent changes to make_dist.mk. Rebake with changes of r65800, r65801 and r65802.
2010-10-14 00:53 VZ, revision 65801Remove obsolete files from "make dist" rules. Avoid errors due to attempts to copy non-existing files when making Unix distribution.
2010-10-14 00:53 VZ, revision 65800Skip Windows-only samples when making Unix distribution. Some samples are by definition Windows-only so they don't have Makefile.in files for Unix at all, skip them when creating the Unix distribution to avoid errors due to attempts to copy non-existent files.
2010-10-14 00:10 VZ, revision 65799Include include/wx/generic/private/*.h files in distribution. We must include the generic private files into the distribution as well, otherwise at least wxGTK fails to build.
2010-10-14 00:10 VZ, revision 65798Fix display of right aligned columns in wxGenericListCtrl. Take into account the width of the image when drawing the right aligned item in wxGenericListCtrl. Closes #12562.
2010-10-14 00:10 VZ, revision 65797Pass last page in wxEVT_WIZARD_FINISHED event. Delay resetting the wizard page to NULL when it terminates to allow wxEVT_WIZARD_FINISHED event to carry the correct pointer to the last page. Closes #12537.
2010-10-14 00:10 VZ, revision 65796Fix print format specifiers used for enum values. Enums are ints, not longs, so use %d instead of %ld to avoid asserts under LP64 64 bit architectures. Closes #12556.
2010-10-10 14:48 VZ, revision 65789Don't return "false" when a pointer is needed. Return NULL and not false from wxFileTranslationsLoader:: GetAvailableTranslations(). This is, of course, more correct and also fixes a compilation problem with Borland, see #12558.
2010-10-10 11:34 JMS, revision 65788Move wxList::Member() to pseudo-template base list class. Member() should be available in all list classes, not just specially crafted list of wxObjects (wxList). See #3616.
- M /wxWidgets/trunk/include/wx/propgrid/property.h
- M /wxWidgets/trunk/samples/propgrid/tests.cpp
- M /wxWidgets/trunk/src/propgrid/property.cpp
- M /wxWidgets/trunk/src/propgrid/propgridpagestate.cpp
2010-10-10 10:32 JMS, revision 65787When wxPGProperty is un-attached from wxPropertyGrid, keep its 'default' cell references invalid/NULL (fixes #12552)
2010-10-09 00:17 JS, revision 65786Also reset DatePicker property editor's global pointer (fixes #11787)
2010-10-08 23:51 JS, revision 65785Compile fix
2010-10-08 13:16 MW, revision 65784Blind fix for Mac compile problem
2010-10-08 13:16 MW, revision 65783Fix for wxChm
2010-10-07 22:57 VZ, revision 65782Fix for wxChm
2010-10-07 22:43 VZ, revision 65781Don't use default "Error" title for wxMessageOutputBest message box. Use the application display name as the message box title if possible andu se "Message" rather than "Error" otherwise. See #12548.
2010-10-06 23:27 JS, revision 65780Remove unnecessary check from IPC sample. No real changes, just remove a check for pointer passed to wxDELETE() bot being NULL as wxDELETE() already checks for this anyhow.
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
2010-10-06 22:22 JS, revision 65779Don't use wxDC in header
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/include/wx/richtext/richtextxml.h
- M /wxWidgets/trunk/samples/richtext/richtext.cpp
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
- M /wxWidgets/trunk/src/richtext/richtextxml.cpp
2010-10-06 15:15 JS, revision 65778Eliminated redundant wxRichTextAnchoredObject class; refactored XML I/O code so that objects can stream themselves; added a wxXmlDocument-based method of writing XML, though this turned out to be much slower than writing directly so the direct approach is retained and is the default (can be changed with wxRICHTEXT_USE_XMLDOCUMENT_OUTPUT). Loading and saving new attributes implemented. Added custom properties to objects.
2010-10-05 15:38 VZ, revision 65769More efficient access to name and value
- M /wxWidgets/trunk/include/wx/generic/private/listctrl.h
- M /wxWidgets/trunk/src/generic/listctrl.cpp
- M /wxWidgets/trunk/tests/controls/listctrltest.cpp
2010-10-05 15:37 VZ, revision 65768Destroy the in-place edit control in wxGenericListCtrl dtor. If the in-place text control was still alive when wxGenericListCtrl was destroyed, it resulted in asserts from wxWindow dtor about child windows still being alive, so explicitly destroy it from wxListMainWindow dtor. As this required a slightly different behaviour from wxListTextCtrlWrapper:: EndEdit(), replace its bool argument with an enum one which can take more than 2 values. Not using bool values when calling it also made the code more clear. Finally, added a unit test verifying that the in-place control is indeed destroyed correctly.
2010-10-05 15:37 VZ, revision 65767Disable TimerEventTestCase::Multiple() test for ANSI wxGTK build. This test crashes for unknown reasons on wxGTK ANSI build slave and prevents the rest of the test suite from running, so disable it for now.
2010-10-05 08:33 JS, revision 65765Fix harmless unused variables warnings. Don't initialize the variables we never use in richtext sample, this results in g++ warnings.
2010-10-05 08:17 JS, revision 65764Removed test code
- M /wxWidgets/trunk/include/wx/xml/xml.h
- M /wxWidgets/trunk/interface/wx/xml/xml.h
- M /wxWidgets/trunk/src/xml/xml.cpp
2010-10-04 14:25 JS, revision 65762Added a flag suppressing node content conversion when saving to XML. This helps improve the extremely poor performance of XML saving if you have, for example, hex data that does not need conversion.
2010-10-04 14:20 JJ, revision 65761Exports fixed
2010-10-04 12:53 VZ, revision 65760Update OpenVMS Makefile
2010-10-04 12:41 VZ, revision 65759Don't throw assert failure exception in the test suite if it's unsafe. Don't throw when already handling an exception as it would result in a call to terminate() and no useful information about the test failure would be given. Abort ourselves instead to at least give the message about the assert failure. This should help debug the mysterious ListCtrlTestCase failures in buildbot wxGTK builds.
2010-10-04 12:41 VZ, revision 65758Fix timing format string in the test suite. wxStopWatch::Time() returns a long value so use %ld, not %d. This fixes assert failure when using "-t" option with the test suite under 64 bit Unix architectures.
2010-10-04 11:27 JS, revision 65757Fix tests compilation with wxUSE_TOOLTIPS==0 as in wxX11. Unit test suite didn't compile in wxX11 build because it doesn't support tooltips, just disable the relevant test then.
2010-10-04 10:37 JS, revision 65756Removed redundant GetEditableWindow on GTK+
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/include/wx/richtext/richtextbulletspage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextctrl.h
- M /wxWidgets/trunk/include/wx/richtext/richtextfontpage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextformatdlg.h
- M /wxWidgets/trunk/include/wx/richtext/richtexthtml.h
- M /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/include/wx/richtext/richtextindentspage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextliststylepage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextstylepage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextstyles.h
- M /wxWidgets/trunk/include/wx/richtext/richtexttabspage.h
- M /wxWidgets/trunk/include/wx/richtext/richtextxml.h
- M /wxWidgets/trunk/include/wx/textctrl.h
- M /wxWidgets/trunk/samples/richtext/richtext.cpp
- M /wxWidgets/trunk/src/common/textcmn.cpp
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
- M /wxWidgets/trunk/src/richtext/richtextbulletspage.cpp
- M /wxWidgets/trunk/src/richtext/richtextctrl.cpp
- M /wxWidgets/trunk/src/richtext/richtextdialogs.pjd
- M /wxWidgets/trunk/src/richtext/richtextfontpage.cpp
- M /wxWidgets/trunk/src/richtext/richtextformatdlg.cpp
- M /wxWidgets/trunk/src/richtext/richtexthtml.cpp
- M /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
- M /wxWidgets/trunk/src/richtext/richtextindentspage.cpp
- M /wxWidgets/trunk/src/richtext/richtextliststylepage.cpp
- M /wxWidgets/trunk/src/richtext/richtextstyledlg.cpp
- M /wxWidgets/trunk/src/richtext/richtextstylepage.cpp
- M /wxWidgets/trunk/src/richtext/richtextstyles.cpp
- M /wxWidgets/trunk/src/richtext/richtexttabspage.cpp
- M /wxWidgets/trunk/src/richtext/richtextxml.cpp
2010-10-04 10:10 JS, revision 65755wxRTC no longer derives from wxTextCtrlBase; added wxRichTextAttr deriving from wxTextAttr with CSS-like attributes for future developments; removed image-specific attributes object
2010-10-04 00:24 VZ, revision 65754Avoid id clashes
2010-10-04 00:23 VZ, revision 65753Fix wchar_t with int comparisons for Apple gcc. Apple gcc refuses to compile comparisons between wchar_t and int for some reason, so add explicit casts to int to make it work there.
2010-10-04 00:23 VZ, revision 65752Fix wxUSING_VC_CRT_IO definition in the tests when not using MinGW. The condition was always true for non-MinGW compilers because of a missing pair of parentheses, do add them.
2010-10-03 19:34 VZ, revision 65749Fix gcc warnings about comparing iterators with NULL in STL build. Iterators are not pointers and shouldn't be compared to NULL.
2010-10-03 19:34 VZ, revision 65748Fix use of DELETE and BACKSPACE when starting editing grid with them. Using the current insertion position in wxGridCellTextEditor::StartingKey() didn't make much sense, it was always 0 -- so DELETE worked as expected and did delete the first character of the cell but BACKSPACE never did anything. Just always delete the first character when DELETE is used and always delete the last one when BACKSPACE is.
2010-10-03 19:16 VZ, revision 65747Fix non-ASCII key handling in wxGrid editors. Use wxKeyEvent::GetUnicodeKey() correctly, there is no need to guess about what does it return now that its correct behaviour is documented and implemented. Simply check if it returns WXK_NONE to check for non-characters. Also use WXK_START instead of hard-coded 255 when checking GetKeyCode() result.
2010-10-03 19:16 VZ, revision 65746Disable the use of __thread with MinGW. __thread keyword doesn't work correctly with at least some MinGW builds and in particular TLS unit tests failed with the official 4.4 version. Disable the use of __thread with MinGW entirely for now to be sure that the generated code behaves correctly. In the future we should white list the known good versions of MinGW and/or use run-time test for __thread support in configure instead of compile-time one only.
2010-10-03 19:16 VZ, revision 65745Update CRT environment in wxSetEnv() for MinGW too. MinGW uses the same CRT as MSVC so we can use the same _putenv() call for it too. This ensures that wxGetenv() returns the value updated by wxSetEnv() and fixes CrtTestCase::SetGetEnv() unit test when using MinGW.
- M /wxWidgets/trunk/tests/strings/strings.cpp
- M /wxWidgets/trunk/tests/strings/vsnprintf.cpp
- M /wxWidgets/trunk/tests/testprec.h
2010-10-03 19:15 VZ, revision 65744Use wxUSING_VC_CRT_IO for MSVC CRT-specific test results. Move USING_VC_CRT into testprec.h to allow its reuse in other files and rename it to wxUSING_VC_CRT_IO as it only checks whether we're using MSVC STDIO implementation and could be false even when we are otherwise using MSVC CRT. Use this symbol for the tests whose result depends on the concrete version of the CRT we use. This fixes StringTestCase::FromDouble() failure under MinGW.
2010-10-03 19:15 VZ, revision 65743Fix DirTestCase to run on the systems without "C:" drive. "C:" drive doesn't need to exist under Windows, rely on HOMEDRIVE environment variable defined in all recent Windows versions to get a valid drive letter (still fall back to "C:" if the variable is not defined -- we could have use wxFSVolume to find it then but this seems like an overkill).
2010-10-03 19:15 VZ, revision 65742Run MBConvTestCase::LibcTests() only for MSVC and not other Windows compilers. This test fails for MinGW, probably because its CRT doesn't use the same locale names as MSVC CRT. Just disable it for now, as it was already disabled for non-MSW platforms. Also use LocaleSetter class (extracted from CLocaleSetter) to change the locale for this test duration only to avoid affecting any tests running after it.
2010-10-03 19:15 VZ, revision 65741Show the failing string when conversion fails in MBConvTestCase. No real changes, just give more information when a test fails in MBConvTestCase::TestDecoder().
2010-10-03 19:15 VZ, revision 65740No real changes, just simplify some MBConvTestCase code. Remove unnecessary casts and initialize the variable with its contents directly instead of using strange looking wxWCharBuffer ctor from size_t (even if it did work, it was unnecessary).
2010-10-03 19:15 VZ, revision 65739Exclude tests relying on last error being set under MinGW. The value of the last error seems to change somewhere between our code and ::GetLastError() call, probably in MinGW CRT, so exclude the tests relying on it being preserved.
2010-10-03 19:15 VZ, revision 65738Correct wxConvAuto::ToWChar() behaviour with wxNO_LEN input size. We didn't handle the case when the length of the input buffer was not specified correctly and wxConvAuto::DetectBOM() could read beyond the end of input. Moreover, the unit test actually relied on this as it didn't pass the correct length for the literal strings with embedded NULs. This somehow worked with MSVC but failed with MinGW (see #10713). Correct the code to handle wxNO_LEN case correctly and fix the unit test to pass the correct lengths.
2010-10-03 19:15 VZ, revision 65737Fix VsnprintfTestCase for recent MinGW versions. MinGW now uses its own printf() implementation which handles %p differently from the VC CRT one and uses %8x instead of %8X for it. Compare the results of wxPrintf("%p") case-insensitively to let the test pass in any case. Also introduce a USING_VC_CRT macro instead of testing for __USE_MINGW_ANSI_STDIO in two different places.
2010-10-03 19:14 VZ, revision 65736Remove redundant wxUSE_WXVSNPRINTF checks from the unit test. The entire VsnprintfTestCase is only used when using our own wxUSE_WXVSNPRINTF so remove the redundant tests for it inside the enclosing #if.
2010-10-03 19:14 VZ, revision 65735Fix tests compilation without wxUSE_REGEX. Don't build wxRegEx unit tests when wxUSE_REGEX == 0.
2010-10-03 12:51 JMS, revision 65734Suppress harmless g++ 4.4 warnings about missing braces. Put braces around MSW-only wxLogXXX() calls to avoid warnings when building with MinGW 4.4+.
2010-10-02 18:50 TIK, revision 65730In wxBitmapComboBox::RecreateControl(), always get recreated control's height from the best size, and also set the ComboBox item height with CB_SETITEMHEIGHT message (fixes #12515).
2010-10-02 17:47 TIK, revision 65726Backport r65494: Initialize all fields of struct tm used by wxDateTime::Format(). Closes #12455
2010-10-02 15:05 TIK, revision 65725Backport r65192: Fix attributes escaping when writing XML. Closes #12275
2010-10-02 14:57 TIK, revision 65724Backport fix for crash in wxCommandProcessor::Store. Closes #12027
2010-10-02 11:39 TIK, revision 65723Backport r65496: Fix infinite loop in wxDateTime::Format() when fields width was used. Closes #12451
2010-10-02 10:53 TIK, revision 65722Connect to events only if using native implementation instead of using event table. Closes #12469
2010-10-01 15:05 VZ, revision 65707Apply #12469: Do not start rename timer if the generic implementation is used which has its own rename timer already.
- M /wxWidgets/trunk/include/wx/mimetype.h
- M /wxWidgets/trunk/interface/wx/mimetype.h
- M /wxWidgets/trunk/tests/interactive/output.cpp
2010-10-01 15:05 VZ, revision 65706Add non-vararg wxFileTypeInfo ctor and various setters. This allows to create wxFileTypeInfo objects in a more readable even if more verbose way. This should also incidentally fix the unit tests compilation with VC6 which seems to have some existential troubles with the vararg ctor in debug DLL build (only). Using the non-vararg ctor should hopefully make it happy and let the unit tests pass with this compiler. Also document wxFileTypeInfo class which wasn't documented at all.
- M /wxWidgets/trunk/docs/doxygen/mainpages/const_cpp.h
- M /wxWidgets/trunk/include/wx/tglbtn.h
- M /wxWidgets/trunk/interface/wx/tglbtn.h
- M /wxWidgets/trunk/tests/controls/bitmaptogglebuttontest.cpp
2010-10-01 15:05 VZ, revision 65705Add wxHAS_BITMAPTOGGLEBUTTON and test for it in the unit test. Not all ports define wxBitmapToggleButton class currently, so add a special symbol which is defined only if this class is indeed available and test for it in the unit test for this class. This fixes the tests compilation under wxX11.
2010-09-30 19:35 VZ, revision 65694Disable ItemClick() unit test for wxListCtrl under wxMSW. This test just doesn't want to work on MSW buildbot slaves even though it works perfectly locally. No idea why but disable it when running on a build bot slave for now to let the entire test suite pass. Also add a comment explaining why the test is disabled for wxGTK.
2010-09-30 19:30 SC, revision 65693Disable wxEVT_COMMAND_LIST_ITEM_FOCUSED test for wxMSW. This test fails on MSW buildbot slaves for unknown reasons so disable it to make the test suite pass. The failure is irreproducible locally so no idea how to debug this unfortunately.
2010-09-30 16:33 VZ, revision 65692opening ATSU Font info for Ulrich Telle's wxPDFContext
2010-09-30 16:30 VZ, revision 65691Add default value for GetPopupMenuSelectionFromUser() position argument. Let the menu be popped up at the system-determined position, just as it can already be done with PopupMenu() itself. Closes #12530.
2010-09-30 16:30 VZ, revision 65690Correctly convert wxPrintf() to a buffer even when it doesn't fit. ConvertStringToBuf() helper function was defined incorrectly for converting wxString to a char* buffer as it didn't fill the buffer at all if the string didn't fit into it entirely instead of putting as much of the string into it as possible as was already done for the conversion to wchar_t* buffer. This broke wxSprintf()-related functions in when the ASCII output buffer was not big enough as it was not filled at all.
2010-09-30 16:30 VZ, revision 65689Correct handling of %hs and %ls in our wxPrintf() implementation. The strings corresponding to %hs and %ls are always narrow/wide independently of the build so using wxArgNormalizedString which is defined differently in different builds doesn't make sense in wxPrintf(). Instead, simply expect the parameter of the appropriate matching type for these conversion specifications. Any conversions to it, if necessary, had been already done before by wxFormatString. This fixes some VsnprintfTestCase::BigToSmallBuffer() unit test failures.
2010-09-30 16:30 VZ, revision 65688Fix handling of asterisks in wxPrintf() implementation. Count the number of asterisks before modifying the string we use to do this, otherwise we were off by one for the format specifications containing two of them. This really fixes the handling of asterisks (used for width/precision) in wxPrintf() format string, it wasn't done correctly by r60120 but now VsnprintfTestCase::Asterisk() test does pass.
2010-09-30 16:30 VZ, revision 65687Expect an assert in wxVsnprintf() test with too many parameters. The call to wxPrintf() should provoke an assert if there are too many parameters, so update the test to expect it.
2010-09-30 16:30 VZ, revision 65686Disable test failing under VC6 only. Somehow the expected assert is not generated by wxString::Format("%d", ptr) with VC6. Disable this test to make the test suite pass for VC6 for now to at least be able to monitor the appearance of the new errors in it. Of course, this one should ideally be debugged (by someone who is interested in VC6 support) as well...
2010-09-30 16:30 VZ, revision 65685Insert another item in the list control in its unit test. For some reason the test fails with a single item in the control when running on the buildbot slave, check if this is still the case if we add another item to the control.
2010-09-30 15:09 MW, revision 65683Remove out of date code in DoStringPrintfV(). We can't clear a NULL buffer, the code didn't make any sense any more because it wasn't updated when the function was changed as part of UTF-8 transition. Closes #12529.
2010-09-30 15:09 MW, revision 65682A couple of fixes for wxChm
2010-09-30 14:30 VZ, revision 65681A couple of fixes for wxChm
2010-09-30 13:44 VZ, revision 65680More compilation fixes for new wxRTC image code without PCH. Add more headers needed when not using PCH.
- M /wxWidgets/trunk/demos/bombs/bombs1.cpp
- M /wxWidgets/trunk/include/wx/button.h
- M /wxWidgets/trunk/include/wx/dataview.h
- M /wxWidgets/trunk/include/wx/dir.h
- M /wxWidgets/trunk/include/wx/dvrenderers.h
- M /wxWidgets/trunk/include/wx/generic/dataview.h
- M /wxWidgets/trunk/include/wx/glcanvas.h
- M /wxWidgets/trunk/include/wx/gtk/dvrenderers.h
- M /wxWidgets/trunk/include/wx/gtk/private/string.h
- M /wxWidgets/trunk/include/wx/gtk/slider.h
- M /wxWidgets/trunk/include/wx/gtk/window.h
- M /wxWidgets/trunk/include/wx/object.h
- M /wxWidgets/trunk/include/wx/osx/bmpbuttn.h
- M /wxWidgets/trunk/include/wx/osx/button.h
- M /wxWidgets/trunk/include/wx/osx/carbon/evtloop.h
- M /wxWidgets/trunk/include/wx/osx/carbon/private.h
- M /wxWidgets/trunk/include/wx/osx/carbon/private/print.h
- M /wxWidgets/trunk/include/wx/osx/cocoa/dataview.h
- M /wxWidgets/trunk/include/wx/osx/cocoa/evtloop.h
- M /wxWidgets/trunk/include/wx/osx/cocoa/private.h
- M /wxWidgets/trunk/include/wx/osx/cocoa/private/textimpl.h
- M /wxWidgets/trunk/include/wx/osx/combobox.h
- M /wxWidgets/trunk/include/wx/osx/core/private.h
- M /wxWidgets/trunk/include/wx/osx/dialog.h
- M /wxWidgets/trunk/include/wx/osx/dirdlg.h
- M /wxWidgets/trunk/include/wx/osx/evtloop.h
- M /wxWidgets/trunk/include/wx/osx/filedlg.h
- M /wxWidgets/trunk/include/wx/osx/font.h
- M /wxWidgets/trunk/include/wx/osx/iphone/chkconf.h
- M /wxWidgets/trunk/include/wx/osx/iphone/private.h
- M /wxWidgets/trunk/include/wx/osx/iphone/private/textimpl.h
- M /wxWidgets/trunk/include/wx/osx/msgdlg.h
- M /wxWidgets/trunk/include/wx/osx/nonownedwnd.h
- M /wxWidgets/trunk/include/wx/osx/popupwin.h
- M /wxWidgets/trunk/include/wx/osx/private/glgrab.h
- M /wxWidgets/trunk/include/wx/osx/sound.h
- M /wxWidgets/trunk/include/wx/osx/textctrl.h
- M /wxWidgets/trunk/include/wx/osx/textentry.h
- M /wxWidgets/trunk/include/wx/osx/toolbar.h
- M /wxWidgets/trunk/include/wx/osx/toplevel.h
- M /wxWidgets/trunk/include/wx/osx/window.h
- M /wxWidgets/trunk/include/wx/propgrid/property.h
- M /wxWidgets/trunk/include/wx/propgrid/propgrid.h
- M /wxWidgets/trunk/include/wx/ribbon/art.h
- M /wxWidgets/trunk/include/wx/ribbon/buttonbar.h
- M /wxWidgets/trunk/include/wx/ribbon/panel.h
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/include/wx/stattext.h
- M /wxWidgets/trunk/include/wx/toplevel.h
- M /wxWidgets/trunk/include/wx/typeinfo.h
- M /wxWidgets/trunk/include/wx/unix/evtloop.h
- M /wxWidgets/trunk/samples/access/accesstest.cpp
- M /wxWidgets/trunk/samples/caret/caret.cpp
- M /wxWidgets/trunk/samples/console/console.cpp
- M /wxWidgets/trunk/samples/dataview/dataview.cpp
- M /wxWidgets/trunk/samples/dataview/mymodels.cpp
- M /wxWidgets/trunk/samples/dialogs/dialogs.cpp
- M /wxWidgets/trunk/samples/docview/doc.h
- M /wxWidgets/trunk/samples/docview/view.cpp
- M /wxWidgets/trunk/samples/dragimag/dragimag.cpp
- M /wxWidgets/trunk/samples/flash/flash.cpp
- M /wxWidgets/trunk/samples/font/font.cpp
- M /wxWidgets/trunk/samples/help/demo.cpp
- M /wxWidgets/trunk/samples/layout/expt.cpp
- M /wxWidgets/trunk/samples/layout/layout.h
- M /wxWidgets/trunk/samples/listctrl/listtest.cpp
- M /wxWidgets/trunk/samples/mfc/mfctest.cpp
- M /wxWidgets/trunk/samples/mfc/resource.h
- M /wxWidgets/trunk/samples/minimal/minimal.cpp
- M /wxWidgets/trunk/samples/nativdlg/resource.h
- M /wxWidgets/trunk/samples/notebook/notebook.cpp
- M /wxWidgets/trunk/samples/opengl/cube/cube.cpp
- M /wxWidgets/trunk/samples/opengl/isosurf/isosurf.cpp
- M /wxWidgets/trunk/samples/propgrid/propgrid.cpp
- M /wxWidgets/trunk/samples/propgrid/tests.cpp
- M /wxWidgets/trunk/samples/ribbon/ribbondemo.cpp
- M /wxWidgets/trunk/samples/sockets/baseclient.cpp
- M /wxWidgets/trunk/samples/stc/edit.h
- M /wxWidgets/trunk/samples/svg/svgtest.cpp
- M /wxWidgets/trunk/samples/toolbar/toolbar.cpp
- M /wxWidgets/trunk/samples/treectrl/treetest.cpp
- M /wxWidgets/trunk/samples/widgets/gauge.cpp
- M /wxWidgets/trunk/samples/widgets/searchctrl.cpp
- M /wxWidgets/trunk/src/common/colourcmn.cpp
- M /wxWidgets/trunk/src/common/combocmn.cpp
- M /wxWidgets/trunk/src/common/ctrlcmn.cpp
- M /wxWidgets/trunk/src/common/datavcmn.cpp
- M /wxWidgets/trunk/src/common/dcbufcmn.cpp
- M /wxWidgets/trunk/src/common/dircmn.cpp
- M /wxWidgets/trunk/src/common/gdicmn.cpp
- M /wxWidgets/trunk/src/common/glcmn.cpp
- M /wxWidgets/trunk/src/common/stattextcmn.cpp
- M /wxWidgets/trunk/src/generic/datavgen.cpp
- M /wxWidgets/trunk/src/generic/dirctrlg.cpp
- M /wxWidgets/trunk/src/generic/splitter.cpp
- M /wxWidgets/trunk/src/gtk/app.cpp
- M /wxWidgets/trunk/src/gtk/bitmap.cpp
- M /wxWidgets/trunk/src/gtk/choice.cpp
- M /wxWidgets/trunk/src/gtk/collpane.cpp
- M /wxWidgets/trunk/src/gtk/colordlg.cpp
- M /wxWidgets/trunk/src/gtk/dataview.cpp
- M /wxWidgets/trunk/src/gtk/dnd.cpp
- M /wxWidgets/trunk/src/gtk/stattext.cpp
- M /wxWidgets/trunk/src/msw/choice.cpp
- M /wxWidgets/trunk/src/msw/listctrl.cpp
- M /wxWidgets/trunk/src/msw/stattext.cpp
- M /wxWidgets/trunk/src/osx/button_osx.cpp
- M /wxWidgets/trunk/src/osx/carbon/bmpbuttn.cpp
- M /wxWidgets/trunk/src/osx/carbon/combobox.cpp
- M /wxWidgets/trunk/src/osx/carbon/dcprint.cpp
- M /wxWidgets/trunk/src/osx/carbon/dcscreen.cpp
- M /wxWidgets/trunk/src/osx/carbon/dialog.cpp
- M /wxWidgets/trunk/src/osx/carbon/evtloop.cpp
- M /wxWidgets/trunk/src/osx/carbon/filedlg.cpp
- M /wxWidgets/trunk/src/osx/carbon/font.cpp
- M /wxWidgets/trunk/src/osx/carbon/graphics.cpp
- M /wxWidgets/trunk/src/osx/carbon/listctrl_mac.cpp
- M /wxWidgets/trunk/src/osx/carbon/msgdlg.cpp
- M /wxWidgets/trunk/src/osx/carbon/popupwin.cpp
- M /wxWidgets/trunk/src/osx/carbon/renderer.cpp
- M /wxWidgets/trunk/src/osx/carbon/sound.cpp
- M /wxWidgets/trunk/src/osx/carbon/toolbar.cpp
- M /wxWidgets/trunk/src/osx/carbon/window.cpp
- M /wxWidgets/trunk/src/osx/core/colour.cpp
- M /wxWidgets/trunk/src/osx/core/display.cpp
- M /wxWidgets/trunk/src/osx/core/evtloop_cf.cpp
- M /wxWidgets/trunk/src/osx/core/mimetype.cpp
- M /wxWidgets/trunk/src/osx/core/printmac.cpp
- M /wxWidgets/trunk/src/osx/core/sound.cpp
- M /wxWidgets/trunk/src/osx/dialog_osx.cpp
- M /wxWidgets/trunk/src/osx/nonownedwnd_osx.cpp
- M /wxWidgets/trunk/src/osx/sound_osx.cpp
- M /wxWidgets/trunk/src/osx/textctrl_osx.cpp
- M /wxWidgets/trunk/src/osx/textentry_osx.cpp
- M /wxWidgets/trunk/src/osx/toplevel_osx.cpp
- M /wxWidgets/trunk/src/osx/utils_osx.cpp
- M /wxWidgets/trunk/src/propgrid/editors.cpp
- M /wxWidgets/trunk/src/propgrid/propgrid.cpp
- M /wxWidgets/trunk/src/propgrid/props.cpp
- M /wxWidgets/trunk/src/ribbon/art_aui.cpp
- M /wxWidgets/trunk/src/ribbon/art_internal.cpp
- M /wxWidgets/trunk/src/ribbon/art_msw.cpp
- M /wxWidgets/trunk/src/ribbon/buttonbar.cpp
- M /wxWidgets/trunk/src/ribbon/panel.cpp
- M /wxWidgets/trunk/src/ribbon/toolbar.cpp
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
- M /wxWidgets/trunk/src/richtext/richtextctrl.cpp
- M /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
- M /wxWidgets/trunk/src/richtext/richtextstyles.cpp
- M /wxWidgets/trunk/src/richtext/richtextxml.cpp
- M /wxWidgets/trunk/src/stc/PlatWX.cpp
- M /wxWidgets/trunk/src/stc/stc.cpp
- M /wxWidgets/trunk/src/unix/threadpsx.cpp
- M /wxWidgets/trunk/src/xrc/xh_toolb.cpp
2010-09-30 13:31 VZ, revision 65679No changes whatsoever, just remove trailing whitespace. There are no real changes in this commit but it removes all trailing white space from our source files. This avoids problems when applying patches and making diffs and it would be nice to prevent it from reappearing.
- M /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
2010-09-30 13:31 VZ, revision 65678Use Unix EOL format for the new files.
- M /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
2010-09-30 13:30 VZ, revision 65677Include correct headers from richtextimagedlg.*. Include or forward declares the classes used by the header to make it self-contained. Do not include wx/wx.h from the source file to make compiling it faster when not using PCH. This fixes compilation under Unix after SOC2010_RTC_IMAGES branch merge.
- M /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
2010-09-30 12:27 VZ, revision 65676Remove interface/implementation #pragmas from richtextimagedlg.*. These pragmas are not necessary and may actually be harmful, no idea why were they added in the first place to a new file.
- M /wxWidgets/trunk/build/bakefiles/files.bkl
- M /wxWidgets/trunk/build/msw/makefile.bcc
- M /wxWidgets/trunk/build/msw/makefile.gcc
- M /wxWidgets/trunk/build/msw/makefile.vc
- M /wxWidgets/trunk/build/msw/makefile.wat
- M /wxWidgets/trunk/build/msw/wx_core.dsp
- M /wxWidgets/trunk/build/msw/wx_richtext.dsp
- M /wxWidgets/trunk/build/msw/wx_vc7_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc7_richtext.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc8_richtext.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_core.vcproj
- M /wxWidgets/trunk/build/msw/wx_vc9_richtext.vcproj
- M /wxWidgets/trunk/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/trunk/include/wx/richtext/richtextctrl.h
- A /wxWidgets/trunk/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/trunk/Makefile.in
- M /wxWidgets/trunk/samples/richtext/richtext.cpp
- A /wxWidgets/trunk/src/richtext/readme
- M /wxWidgets/trunk/src/richtext/richtextbuffer.cpp
- M /wxWidgets/trunk/src/richtext/richtextctrl.cpp
- M /wxWidgets/trunk/src/richtext/richtextdialogs.pjd
- M /wxWidgets/trunk/src/richtext/richtexthtml.cpp
- A /wxWidgets/trunk/src/richtext/richtextimagedlg.cpp
- M /wxWidgets/trunk/src/richtext/richtextxml.cpp
2010-09-30 00:01 VZ, revision 65675Merge of SOC2010_RTC_IMAGES branch. Added floating images and image property dialog to wxRichTextCtrl, by Mingquan Yang as part of GSOC 2010. Also changed image block creation to use a memory stream instead of creating a temporary file.
2010-09-29 15:46 VZ, revision 65674Correct printf() format specifiers for long variables in life demo. Fix asserts in 64 bit builds due to using %u (expecting 32 bit values on a typical Unix LP64 platform) for 64 bit long values.
- M /wxWidgets/trunk/docs/changes.txt
- M /wxWidgets/trunk/include/wx/ribbon/bar.h
- M /wxWidgets/trunk/interface/wx/ribbon/bar.h
- M /wxWidgets/trunk/src/ribbon/bar.cpp
2010-09-29 15:46 VZ, revision 65673Add EVT_RIBBONBAR_TAB_LEFT_DCLICK event. Generate a special event when a ribbon bar is double clicked. Closes #12399.
2010-09-29 15:46 VZ, revision 65672Fix crash in wxWebKitCtrl when using JavaScript. Ignore the unknown types of the script result, in particular don't crash trying to dereference an uninitialized pointer if the script didn't return anything. Closes #12361.
2010-09-29 15:46 VZ, revision 65671Preserve page size when changing increment in wxGTK wxSpinCtrlDouble. The page size was wrongly reset when changing the increment before. See #12342.
2010-09-29 15:46 VZ, revision 65670Fix wrong return value of wxGTK wxSpinCtrlDouble::GetIncrement(). Due to confusion in gtk_spin_button_get_increments() parameters order the page size was returned instead of the increment. See #12342.
- M /wxWidgets/trunk/include/wx/cocoa/font.h
- M /wxWidgets/trunk/include/wx/dfb/font.h
- M /wxWidgets/trunk/include/wx/font.h
- M /wxWidgets/trunk/include/wx/gtk/font.h
- M /wxWidgets/trunk/include/wx/gtk1/font.h
- M /wxWidgets/trunk/include/wx/mgl/font.h
- M /wxWidgets/trunk/include/wx/motif/font.h
- M /wxWidgets/trunk/include/wx/msw/font.h
- M /wxWidgets/trunk/include/wx/os2/font.h
- M /wxWidgets/trunk/include/wx/osx/font.h
- M /wxWidgets/trunk/include/wx/palmos/font.h
- M /wxWidgets/trunk/include/wx/x11/font.h
- M /wxWidgets/trunk/interface/wx/font.h
- M /wxWidgets/trunk/src/cocoa/font.mm
- M /wxWidgets/trunk/src/common/fontcmn.cpp
- M /wxWidgets/trunk/src/dfb/font.cpp
- M /wxWidgets/trunk/src/gtk/font.cpp
- M /wxWidgets/trunk/src/gtk1/font.cpp
- M /wxWidgets/trunk/src/mgl/font.cpp
- M /wxWidgets/trunk/src/motif/font.cpp
- M /wxWidgets/trunk/src/msw/font.cpp
- M /wxWidgets/trunk/src/os2/font.cpp
- M /wxWidgets/trunk/src/osx/carbon/font.cpp
- M /wxWidgets/trunk/src/palmos/font.cpp
- M /wxWidgets/trunk/src/x11/font.cpp
2010-09-29 15:45 VZ, revision 65669Return wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily(). Although returning wxFONTFAMILY_UNKNOWN when the font family is not recognized makes more sense, it breaks a lot of existing code including all the font-related code generated by DialogBlocks, so prefer to return wxFONTFAMILY_DEFAULT instead -- which can't be confused for a valid font family neither but can be passed to wxFont ctor or SetFamily() without problems. To ensure that this behaviour is correctly implemented by all ports, rename the existing wxFont::GetFamily() to DoGetFamily() and call the new method from wxFontBase::GetFamily() which adjusts the return value if needed. Closes #12330.
2010-09-29 15:45 VZ, revision 65668Improve mouse handling code in wxAuiToolBar. Capture the mouse to handle mouse input on the buttons to ensure we always reset the button when the mouse leaves it. Closes #11784.
2010-09-28 20:59 JMS, revision 65666Include wx/defs.h before testing for wxUSE_RADIOBOX. We need to include wx/defs.h that (indirectly) defines wxUSE_RADIOBOX before testing for it in wx/radiobox.h, otherwise the test may fail if the latter header is the first wx header included by the user code. This is similar to r65210 fix for wxUSE_CHECKLISTBOX. Closes #12526.
- M /wxWidgets/trunk/src/propgrid/advprops.cpp
- M /wxWidgets/trunk/src/propgrid/editors.cpp
- M /wxWidgets/trunk/src/propgrid/propgrid.cpp
2010-09-28 08:27 JS, revision 65661Reset wxPGEditor singleton instance pointers in dtors. This is useful if wxPropertyGrid is being accessed from an external main loop.
2010-09-27 20:13 JS, revision 65660Compile fix
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextdialogs.pjd
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextimagedlg.cpp
2010-09-27 14:55 VZ, revision 65659Image dialog properties.
2010-09-27 14:55 VZ, revision 65658Replace some stray _T()s with wxT(). We use wxT() exclusively now so replace some _T()s which crept in unnoticed. This also fixes compilation using Sun CC. See #12452.
2010-09-27 14:48 VZ, revision 65657Fix wx/event.h compilation with Sun CC compiler. Move wxObjectEventFunctor::operator() definition after wxEvtHandler declaration as it uses call through a pointer to member of this class and Sun CC refuses to compile this without having the full class declaration. Closes #12452.
2010-09-27 14:48 VZ, revision 65656Use wxString methods for UTF-8 conversions in wxX11 code. Use wxString::utf8_str() and FromUTF8() to convert to and from UTF-8. This is more efficient than using wxConvUTF8 as the code did before as it avoids the conversion entirely when wxString uses UTF-8 internally (as it does by default in wxX11) and also has the advantage of compiling in STL build unlike the old code. Closes #12518.
2010-09-27 14:48 VZ, revision 65655Small clean up in wxX11 Pango code. Don't use unnecessary explicit casts of wxCharBuffer to "const char *". Use wxCharBuffer::length() instead of strlen().
2010-09-27 13:57 VZ, revision 65654Fix wxX11 compilation when using PCH. wx/unix/utilsx11.h is not included by wx/wxprec.h so we need to include it when using PCH too. Closes #12517.
2010-09-27 13:52 VZ, revision 65653Document wxSpinDoubleEvent class. Add documentation for the class itself and the associated EVT_SPINCTRLDOUBLE macro. Patch by Carsten Fuchs. Closes #12520.
2010-09-27 13:51 VZ, revision 65652Close a modal dialog even when it doesn't have any buttons. The close button in the dialog title bar should work even if there are no buttons in the dialog itself (unlike the Escape key which works as an accelerator for a button), so close the dialog explicitly if the emulated button click wasn't processed in wxDialogBase::OnCloseWindow(). Closes #12513.
2010-09-27 00:11 VZ, revision 65651Fix typo in wxStandardPathsBase::ResourceCat description and document it. Document the enum itself and also correct GetLocalizedResourcesDir() documentation which didn't specify the default value for the category parameter. Closes #12523.
2010-09-27 00:11 VZ, revision 65650Compilation fix for MinGW STL build. std::tr1::unordeded_map<T *>::find() doesn't accept "const T *" pointer, at least with MinGW 4.4.0 standard library version, so add an explicit const_cast<> to fix compilation.
2010-09-27 00:11 VZ, revision 65649Compilation fix for MinGW 4.x in new keyboard code. Explicitly choose the comparison operator to use when comparing wchar_t and int values, otherwise MinGW (correctly) complains about ambiguity between (int, int) and (wchar_t, const wxUniChar&) overloads.
- M /wxWidgets/trunk/include/wx/datetime.h
- M /wxWidgets/trunk/interface/wx/datetime.h
- M /wxWidgets/trunk/src/common/datetime.cpp
2010-09-27 00:11 VZ, revision 65648Make wxDateTime::Tm::yday public and document it. There doesn't seem any reason to allow access to all the other struct Tm fields but not yday so make it public, fill it in correctly when creating Tm without using its ctor from struct tm and document struct Tm itself including its yday field.
2010-09-27 00:11 VZ, revision 65647Initialize wxDateTime::Tm::yday in the ctor. Set Tm::yday to a fixed value in the ctor as well instead of not initializing it at all. This bug actually didn't have any visible consequences as yday is currently a private member of struct tm and didn't seem to be used anywhere but it at least avoids MinGW 4.x warnings about possibly uninitialized variable and might become important in the future if we allow accessing this field.
2010-09-26 22:26 PMO, revision 65646Correct g++ 4.x warnings about suggested explicit braces. Several warnings were generated for wxLogLastError() calls inside CALL_CARET_API macro by MinGW 4.4. Fix them by adding the extra braces. See also r61475.
- M /wxWidgets/branches/wxQT/include/wx/qt/combobox_qt.h
- M /wxWidgets/branches/wxQT/include/wx/qt/radiobox.h
- M /wxWidgets/branches/wxQT/src/qt/choice.cpp
- M /wxWidgets/branches/wxQT/src/qt/combobox.cpp
- M /wxWidgets/branches/wxQT/src/qt/combobox_qt.cpp
- M /wxWidgets/branches/wxQT/src/qt/radiobox.cpp
2010-09-26 20:39 PMO, revision 65645Added basic implementation for wxRadioBox and simplified choices handling for wxComboBox and wxChoice
2010-09-26 18:38 PMO, revision 65644Added basic implementation for wxCheckBox
2010-09-26 18:07 JS, revision 65643Added implementation of wxWindow::DoFindFocus
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/include/wx/richtext/richtextbuffer.h
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/include/wx/richtext/richtextctrl.h
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/include/wx/richtext/richtextimagedlg.h
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/samples/richtext/richtext.cpp
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextbuffer.cpp
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextctrl.cpp
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextdialogs.pjd
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtexthtml.cpp
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextimagedlg.cpp
- M /wxWidgets/branches/SOC2010_RTC_IMAGES/src/richtext/richtextxml.cpp
2010-09-26 16:39 PMO, revision 65642General tidying of the floating image layout code Added CanEditProperties, EditProperties to make object editing more generic
2010-09-26 16:33 PMO, revision 65641Added missing wxStaticLine::GetHandle() implementation
- M /wxWidgets/branches/wxQT/include/wx/qt/button.h
- M /wxWidgets/branches/wxQT/include/wx/qt/calctrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/checkbox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/choice.h
- M /wxWidgets/branches/wxQT/include/wx/qt/combobox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/dialog.h
- M /wxWidgets/branches/wxQT/include/wx/qt/frame.h
- M /wxWidgets/branches/wxQT/include/wx/qt/gauge.h
- M /wxWidgets/branches/wxQT/include/wx/qt/listbox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/listctrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/msgdlg.h
- M /wxWidgets/branches/wxQT/include/wx/qt/notebook.h
- M /wxWidgets/branches/wxQT/include/wx/qt/radiobox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/radiobut.h
- M /wxWidgets/branches/wxQT/include/wx/qt/scrolbar.h
- M /wxWidgets/branches/wxQT/include/wx/qt/slider.h
- M /wxWidgets/branches/wxQT/include/wx/qt/statbmp.h
- M /wxWidgets/branches/wxQT/include/wx/qt/statline.h
- M /wxWidgets/branches/wxQT/include/wx/qt/stattext.h
- M /wxWidgets/branches/wxQT/include/wx/qt/statusbar.h
- M /wxWidgets/branches/wxQT/include/wx/qt/tglbtn.h
- M /wxWidgets/branches/wxQT/include/wx/qt/treectrl.h
- M /wxWidgets/branches/wxQT/src/qt/button.cpp
- M /wxWidgets/branches/wxQT/src/qt/calctrl.cpp
- M /wxWidgets/branches/wxQT/src/qt/checkbox.cpp
- M /wxWidgets/branches/wxQT/src/qt/choice.cpp
- M /wxWidgets/branches/wxQT/src/qt/combobox.cpp
- M /wxWidgets/branches/wxQT/src/qt/dialog.cpp
- M /wxWidgets/branches/wxQT/src/qt/frame.cpp
- M /wxWidgets/branches/wxQT/src/qt/gauge.cpp
- M /wxWidgets/branches/wxQT/src/qt/listbox.cpp
- M /wxWidgets/branches/wxQT/src/qt/listctrl.cpp
- M /wxWidgets/branches/wxQT/src/qt/msgdlg.cpp
- M /wxWidgets/branches/wxQT/src/qt/notebook.cpp
- M /wxWidgets/branches/wxQT/src/qt/radiobox.cpp
- M /wxWidgets/branches/wxQT/src/qt/radiobut.cpp
- M /wxWidgets/branches/wxQT/src/qt/scrolbar.cpp
- M /wxWidgets/branches/wxQT/src/qt/slider.cpp
- M /wxWidgets/branches/wxQT/src/qt/statbmp.cpp
- M /wxWidgets/branches/wxQT/src/qt/statline.cpp
- M /wxWidgets/branches/wxQT/src/qt/stattext.cpp
- M /wxWidgets/branches/wxQT/src/qt/statusbar.cpp
- M /wxWidgets/branches/wxQT/src/qt/tglbtn.cpp
- M /wxWidgets/branches/wxQT/src/qt/treectrl.cpp
- M /wxWidgets/branches/wxQT/src/qt/window.cpp
2010-09-26 14:00 PMO, revision 65640Removed manual deletion of Qt widgets (wxQtPointer destructor is doing this now)
- M /wxWidgets/branches/wxQT/include/wx/qt/app.h
- M /wxWidgets/branches/wxQT/include/wx/qt/button.h
- M /wxWidgets/branches/wxQT/include/wx/qt/calctrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/checkbox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/choice.h
- M /wxWidgets/branches/wxQT/include/wx/qt/combobox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/dialog.h
- M /wxWidgets/branches/wxQT/include/wx/qt/evtloop.h
- M /wxWidgets/branches/wxQT/include/wx/qt/frame.h
- M /wxWidgets/branches/wxQT/include/wx/qt/gauge.h
- M /wxWidgets/branches/wxQT/include/wx/qt/listbox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/listctrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/menu.h
- M /wxWidgets/branches/wxQT/include/wx/qt/menuitem.h
- M /wxWidgets/branches/wxQT/include/wx/qt/msgdlg.h
- M /wxWidgets/branches/wxQT/include/wx/qt/notebook.h
- M /wxWidgets/branches/wxQT/include/wx/qt/radiobox.h
- M /wxWidgets/branches/wxQT/include/wx/qt/radiobut.h
- M /wxWidgets/branches/wxQT/include/wx/qt/scrolbar.h
- M /wxWidgets/branches/wxQT/include/wx/qt/slider.h
- M /wxWidgets/branches/wxQT/include/wx/qt/statbmp.h
- M /wxWidgets/branches/wxQT/include/wx/qt/stattext.h
- M /wxWidgets/branches/wxQT/include/wx/qt/statusbar.h
- M /wxWidgets/branches/wxQT/include/wx/qt/textctrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/tglbtn.h
- M /wxWidgets/branches/wxQT/include/wx/qt/treectrl.h
- M /wxWidgets/branches/wxQT/include/wx/qt/window.h
2010-09-25 16:15 JS, revision 65639Replaced QPointer usage with wxQtPointer
2010-09-24 19:44 JMS, revision 65631Fix
2010-09-24 19:40 JMS, revision 65630Correct empty space drawing
2010-09-24 17:22 JMS, revision 65629Removed debug log message
2010-09-24 16:47 JMS, revision 65628Fixed PCH-less build
- M /wxWidgets/trunk/include/wx/propgrid/propgrid.h
- M /wxWidgets/trunk/include/wx/propgrid/propgridpagestate.h
- M /wxWidgets/trunk/interface/wx/propgrid/propgrid.h
- M /wxWidgets/trunk/src/propgrid/propgrid.cpp
2010-09-23 23:12 RD, revision 65627Have wxPropertyGrid inherit from wxControl and wxScrollHelper instead of wxScrolledWindow. This is the approach other scrolled controls use.
2010-09-23 23:11 RD, revision 65626Fix sending a size event for the displayed page when the notebook is sized
2010-09-23 23:10 RD, revision 65625Use the wx version of the wxDECLARE_EVENT_TABLE_ENTRY macro
2010-09-23 23:09 RD, revision 65624Avoid an endless recursion situation
2010-09-23 23:08 RD, revision 65623Allow the renderer to also work with wxMemoryDCs
2010-09-23 23:07 RD, revision 65622SetUserScale(1.0, 1.0) in Unmask() so the image will not be scaled again when blitted
2010-09-23 23:05 RD, revision 65621CanSetTransparent needs to be virtual
2010-09-23 22:54 RD, revision 65620Various build tweaks and updates for wxPython 2.9.1.1
2010-09-23 19:02 SJL, revision 65597Add flag to enable specifying an architecture to build on Mac. Also add x86_64 architecture to universal build when buildng wxOSX-Cocoa
2010-09-23 18:55 SJL, revision 65596Remove an assert that was not backed up by the documentation and so failed on some platforms but not on others. Re-enable some tests that were disabled in wxGTK as they now pass.
2010-09-23 18:24 JS, revision 65595Add ClearEventCount to wxTestableFrame. This means we can clear an event count when an event counter goes out of scope so the are no spurious results in later tests.
2010-09-23 18:16 JS, revision 65594Fix bug finding line after line break
2010-09-23 14:58 JMS, revision 65593Fix bug finding line after line break
- M /wxWidgets/trunk/include/wx/propgrid/propgrid.h
- M /wxWidgets/trunk/include/wx/propgrid/propgriddefs.h
- M /wxWidgets/trunk/src/propgrid/propgrid.cpp
2010-09-23 14:55 JMS, revision 65592Streamline wxPropertyGrid tooltip code
2010-09-22 21:24 SJL, revision 65591When setting empty string as a tooltip, call gtk_widget_set_has_tooltip() with FALSE to remove the tooltip. This will bring wxGTK behavior in line with wxMSW.
2010-09-22 15:31 VZ, revision 65590Fix assert when changing the filter selection on a multiple selection wxGenericDirCtrl. Because ExpandPaths selects the item we can simply grab a list of selected paths and then expand them all in the multiple selection case. The single selection case is unchanged. Closes #12340
2010-09-22 15:31 VZ, revision 65589Better checks for wxMSWKeyboard::VKToWX() return value. Don't generate key events without any valid key code (this shouldn't normally happen but might on exotic keyboards with keys that we don't know about). Also ensure that we can distinguish between VKToWX() returning dead keys and non-Latin-1 keys by setting wchar_t output parameter to WXK_NONE too in the former case but not the latter. Generate wxEVT_CHAR_HOOK events for non-Latin-1 keys too in Unicode build.
2010-09-22 14:45 SJL, revision 65588Fix recently broken generation of wxEVT_CHAR_HOOK events in wxMSW. Changes to VKToWX() semantics broke the logic of the global keyboard hook function in wxMSW which didn't generate wxEVT_CHAR_HOOK events for ASCII special keys such as WXK_ESCAPE any more. Fix this and also generate wxEVT_CHAR_HOOK for all events, not just the non-ASCII keys for consistency with the documentation and wxGTK. Closes #12501.
2010-09-22 12:06 SJL, revision 65587Re-enable disabled wxWindow label tests under wxGTK as they were fixed in r65374
2010-09-22 10:48 SJL, revision 65586Send generic wxTreeCtrl wxEVT_COMMAND_TREE_KEY_DOWN events from OnKeyDown rather than OnChar. This change means it sends events for the same keys as the wxMSW control. It also fixes the failing unit test.
- M /wxWidgets/trunk/interface/wx/listctrl.h
- M /wxWidgets/trunk/src/generic/listctrl.cpp
- M /wxWidgets/trunk/tests/controls/listbasetest.cpp
2010-09-21 21:54 PMO, revision 65583Send generic wxListCtrl wxEVT_COMMAND_LIST_KEY_DOWN events from OnKeyDown rather than OnChar. Also remove the HasCurrent check. These changes bring the generic control into line with the control under wxMSW. Re-enable the previously failing unit test and document that the key down event might not have a valid item associated with it.
2010-09-21 14:57 VZ, revision 65582Adding wxQtPointer to ease the memory management of Qt objects.
- M /wxWidgets/trunk/include/wx/msw/missing.h
- M /wxWidgets/trunk/include/wx/msw/private/button.h
- M /wxWidgets/trunk/src/msw/button.cpp
- M /wxWidgets/trunk/src/msw/checkbox.cpp
2010-09-21 13:56 VZ, revision 65581Compilation fixes for old SDKs (VC6) after recent commit. Define WM_QUERYUISTATE in wx/msw/missing.h too as src/msw/statbox.cpp uses it now. Also move DT_HIDEPREFIX definition from wx/msw/private/button.h to missing.h as well as it's now used in statbox.cpp too. Include missing.h explicitly from the files that use DT_HIDEPREFIX.
2010-09-21 13:44 VZ, revision 65580Compilation fix of wxSocket code for older Solaris versions. Include sys/filio.h to define FIONBIO in all cases (sometimes this header is already included from sys/ioctl.h but not always). Closes #12481.
Correct drawing of mnemonics in wxStaticBox label under wxMSW. Only show the mnemonics if they need to be shown, i.e. use the same logic as the standard controls use, to avoid showing mnemonics in wxStaticBox with custom label colour even when other wxStaticBoxes don't show it.