- r63660: 2010-03-10 13:57:47 [FM] Francesco Montorsi
-
Click to show all 13 changes...
Fix function wxControlBase::DoEllipsizeSingleLine to really make sure that the ellipsized string takes less pixels than maxFinalWidthPx.
Add comments to explain in more details what the function does and in particular the valid ranges of all internal variables; fix in that regard both the code of both wxELLIPSIZE_START, wxELLIPSIZE_MIDDLE and wxELLIPSIZE_END.
Add more asserts to check the valid ranges and turn a couple of time-expensive checks in level-2 asserts.
Add a test unit for the wxControl::Ellipsize function.
Fix minor details in the docs of wxControl::Ellipsize.
Closes #11567.
- r63659: 2010-03-10 11:07:57 [FM] Francesco Montorsi
-
/src/common/ctrlcmn.cpp [diff, log, file]
no real changes, just rename the variables to make the code more readable and to prepare everything for the next commit:
- add postfix "Px" to all variables containing numbers of pixels
- add postfix "ToRemove" to initialChar and nChars vars to make it clear what they are for
- r63658: 2010-03-09 11:08:52 [VZ] Vadim Zeitlin
-
/include/wx/msw/winundef.h [diff, log, file]
Use _UNICODE instead of UNICODE in wx/msw/winundef.h.
This is consistent with the other checks and generally more correct.
- r63655: 2010-03-08 23:34:08 [VZ] Vadim Zeitlin
-
/locale/de.po [diff, log, file]
Another German translation update from Herbert Breunung.
German translation is now 100% complete again.
- r63654: 2010-03-08 19:37:08 [VZ] Vadim Zeitlin
-
/include/wx/generic/filepickerg.h [diff, log, file]
/src/generic/filepickerg.cpp [diff, log, file]
Use correct style for the dialog shown by generic file/dir pickers.
The picker styles don't make sense for the button so we don't use them when
creating the button but we do need to somehow use the style the picker was
created with to create an appropriate dialog when it's clicked.
Fix the problem by simply storing the style in a member variable and using it
instead of wxWindow::m_windowStyle.
Closes #11635.
- r63653: 2010-03-08 12:21:58 [VS] Václav Slavík
-
/include/wx/msw/tls.h [diff, log, file]
/include/wx/os2/tls.h [diff, log, file]
/include/wx/tls.h [diff, log, file]
/include/wx/unix/tls.h [diff, log, file]
Fix wxTlsValue<> memory leaks.
Win32 API doesn't provide pthreads-like destructors, so we need to
emulate them to free per-thread allocated memory.
- r63652: 2010-03-08 11:08:10 [SC] Stefan Csomor
-
/src/osx/cocoa/evtloop.mm [diff, log, file]
pending events detected didn't work properly, go the safe route now, fixes #11797
- r63650: 2010-03-07 16:03:53 [FM] Francesco Montorsi
-
/interface/wx/platinfo.h [diff, log, file]
/interface/wx/utils.h [diff, log, file]
Provide more details about the major and minor version numbers returned by wxGetOsVersion() under linux,mac,windows.
Document that wxOS_UNIX, wxOS_MAC and wxOS_WINDOWS enum values are combinations of other values (unfortunately doxygen does not show the definition of those symbols in the HTML docs so we need to explicitely state that).
- r63649: 2010-03-07 11:37:30 [VZ] Vadim Zeitlin
-
/locale/de.po [diff, log, file]
German translations update from Herbert Breunung.
- r63648: 2010-03-07 10:46:24 [VZ] Vadim Zeitlin
-
/src/aui/auibook.cpp [diff, log, file]
Skip wxChildFocusEvent in wxAuiNotebook handler.
There doesn't seem to be any good reason to eat the event in this handler,
leave it for the others if needed.
See #11785.
- r63647: 2010-03-07 10:46:17 [VZ] Vadim Zeitlin
-
/docs/changes.txt [diff, log, file]
/src/aui/auibook.cpp [diff, log, file]
Show pages icons in window list menu in wxAuiNotebook.
Reuse the tab icons in the wxAuiNotebook window list menu.
Closes #11785.
- r63646: 2010-03-06 21:30:59 [KO] Kevin Ollivier
-
Click to show all 14 changes...
Add uncommitted uiaction `sample bakefiles.
- r63645: 2010-03-06 20:15:39 [KO] Kevin Ollivier
-
Click to show all 14 changes...
Rebake after wxUIActionSimulator addition.
- r63644: 2010-03-06 20:09:23 [KO] Kevin Ollivier
-
Click to show all 11 changes...
Adding wxUIActionSimulator, a class for programmatically controlling the mouse and keyboard.
- r63642: 2010-03-06 13:30:01 [VZ] Vadim Zeitlin
-
/samples/aui/auidemo.cpp [diff, log, file]
/src/aui/auibook.cpp [diff, log, file]
Reset wxAuiNotebook selection to wxNOT_FOUND if it becomes empty.
The selection was 0 in a notebook without any pages which was wrong as it must
always be less than the page count.
Fix this in wxAuiNotebook itself and add an assert checking for this invariant
to the sample.
- r63641: 2010-03-06 04:51:51 [KO] Kevin Ollivier
-
/include/wx/osx/popupwin.h [diff, log, file]
/src/osx/carbon/popupwin.cpp [diff, log, file]
A call to wxPopupWindow::Show shouldn't automatically cause the popup window to steal focus.
- r63640: 2010-03-06 04:15:54 [KO] Kevin Ollivier
-
/distrib/scripts/create-archive.py [diff, log, file]
Add git source control dirs to the list of excludes.
- r63639: 2010-03-06 04:08:01 [KO] Kevin Ollivier
-
/distrib/scripts/create-archive.py [log, file] (copied from r63638 of /wxWidgets/tools/build/create-archive.py)
Add create-archive.py to wx source tree.
- r63638: 2010-03-06 00:31:04 [VZ] Vadim Zeitlin
-
/include/wx/generic/listctrl.h [diff, log, file]
/src/generic/listctrl.cpp [diff, log, file]
Don't store header height in generic wxListCtrl member variable.
This is simply unnecessary and resulted in a crash in wxDFB because the window
was used for this variable initialization before being created.
Closes #11711.
- r63637: 2010-03-06 00:31:00 [VZ] Vadim Zeitlin
-
/samples/listctrl/listtest.cpp [diff, log, file]
/samples/listctrl/listtest.h [diff, log, file]
/src/generic/listctrl.cpp [diff, log, file]
Fix toggling the header in the generic wxListCtrl.
We need to update the lfags first before deciding whether we should create or
destroy the header.
Also add a test for toggling the header to the listctrl sample.
- r63636: 2010-03-05 23:56:47 [VZ] Vadim Zeitlin
-
/src/generic/grid.cpp [diff, log, file]
Don't stop dragging in the grid when the mouse leaves the window.
Unexpected/unaccounted for mouse leaving and entering events stopped the drag
operation currently in progress in wxGrid. And while it was resumed later,
this resulted in the mouse being captured only twice but released only once.
Fix this by ignoring the leaving and entering events and checking that we
don't capture the mouse again.
Closes #11662.
- r63635: 2010-03-05 23:55:31 [VZ] Vadim Zeitlin
-
/src/common/datavcmn.cpp [diff, log, file]
Fix memory leak in wxDataViewListStore::DeleteItem().
The item data needs to be deleted in addition to simply removing it from the
internal storage.
Closes #11757.
- r63634: 2010-03-05 23:55:27 [VZ] Vadim Zeitlin
-
/src/osx/cocoa/nonownedwnd.mm [diff, log, file]
Correct IsMaximized() in wxOSX for non-resizable windows.
NSWindow isZoomed always returns true in this case, so check the window
rectangle ourselves to determine whether it's maximized.
Closes #11734.
- r63633: 2010-03-05 23:55:23 [VZ] Vadim Zeitlin
-
/samples/aui/auidemo.cpp [diff, log, file]
Make the code more clear in aui sample and avoid g++ 4 warning.
The code used bitwise XOR which was rather difficult to read and also resulted
in g++ 4 warnings about suggested parentheses.
Fix both issues by using bitwise AND and OR in two separate statements instead.
- r63632: 2010-03-05 23:55:19 [VZ] Vadim Zeitlin
-
/include/wx/bookctrl.h [diff, log, file]
/include/wx/choicebk.h [diff, log, file]
/include/wx/listbook.h [diff, log, file]
/include/wx/toolbook.h [diff, log, file]
/include/wx/treebook.h [diff, log, file]
/src/common/bookctrl.cpp [diff, log, file]
/src/generic/choicbkg.cpp [diff, log, file]
/src/generic/listbkg.cpp [diff, log, file]
/src/generic/toolbkg.cpp [diff, log, file]
/src/generic/treebkg.cpp [diff, log, file]
Implement wxBookCtrlBase::CalcSizeFromPage() in the base class.
The definition of this method was needlessly duplicated in all of
wx{Choice,List,Tool,Tree}book and in all of them except the first one it
didn't account correctly for the case when the size of the controller was
greater than the size of the page.
Avoid the duplication and fix the best size determination in such case by
providing a single, correct version of the function in the base class itself.
Closes #11793.