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

Changes per page:

25 50 100 250 500 1000 2000

Changelog for wxWidgets (70435 changes):

2013-05-13 01:04 VZ, revision 73973

Whack-a-mole with wxOSX/PPC unit tests continued. The problem was not related to float-to-double conversions in wxAny code, try to narrow it even further.

2013-05-13 01:04 VZ, revision 73972

Fix harmless Clang warning about unreachable code. Unfortunately Clang intelligent flow analysis prevents us from using different asserts for invalid parameter value and unhandled one, which could happen if more elements are added to wxMouseButton enum in the future. Closes #15201.

2013-05-12 22:34 VZ, revision 73971

Disable double-to-float conversion tests in wxAny code. This seems to be the reason for the heap corruption in wxOSX PPC builds.

2013-05-12 22:34 VZ, revision 73970

Disable the rest of Editable() test for wxBitmapComboBox. See r73957, this test keeps failing when running on a build slave, even though it passes when ran locally.

2013-05-12 22:34 VZ, revision 73969

Use "-t" option when running buildbot tests under Windows. Use "-t" in runtests.bar used by Windows build slaves to get more information about the test failures, notably if they crash before completing.

2013-05-12 22:34 VZ, revision 73968

Fix spurious g++ warning about possibly uninitialized variable use. The variables are actually initialized in all cases if the enum has valid value but the compiler doesn't seem to take this into account, so just initialize them always to avoid the warnings.

2013-05-12 22:18 SC, revision 73967

deactivating r65382 see #12267 (which does not seem to happen anymore even without this change), fixes #14938,

2013-05-12 21:19 VZ, revision 73966

Enable another test in wxAnyTestCase under OS X.

2013-05-12 21:19 VZ, revision 73965

Recognize "sandbox" user as indicating automatic testing. The buildbot slaves actually use "sandbox" as the user name, not "buildbot", so test for the former instead for the latter, see r73963.

2013-05-10 21:21 VZ, revision 73964

Enable yet more tests in wxAnyTestCase::GetAs(). This is part of the continuing series of commits to find out what results in heap corruption in wxOSX PPC builds.

2013-05-10 21:21 VZ, revision 73963

Recognize "buildbot" user in IsAutomaticTest() too. Some build slaves apparently run under "buildbot" user and not "buildslave", recognize them as running automatic tests too. Also show the name of the current system and user on startup to avoid such guess work in the future.

2013-05-10 21:21 VZ, revision 73962

Revert "Show the name of the actually tested class in text entry unit tests." Revert r73959, the name of the control can be seen from the name of the failing test case actually, so there is no need to include it in the message.

2013-05-10 20:31 SC, revision 73961

applying editor part of patch, see #15003

2013-05-10 15:25 VZ, revision 73960

Use wxjpeg_boolean in libtiff sources. This fixes compilation problem when using libtiff with the built-in modified version of libjpeg that uses wxjpeg_boolean instead of boolean as it doesn't define boolean at all in its headers, but just wxjpeg_boolean. Closes #15179.

2013-05-10 15:22 VZ, revision 73959

Show the name of the actually tested class in text entry unit tests. This test is used for several different classes, show the name of the class being tested when the assert in Editable() test fails.

2013-05-10 15:22 VZ, revision 73958

Enable a few more tests in wxAnyTestCase::GetAs(). This is part of the continuing series of commits to find out what results in heap corruption in wxOSX PPC builds.

2013-05-10 01:22 VZ, revision 73957

Disable a sporadically failing check in wxBitmapComboBox unit test. This check keeps failing in buildbot builds even though it always passes in local ones (and sometimes in buildbot ones too). Disable it to allow the entire test suite to pass.

2013-05-10 01:22 VZ, revision 73956

Reduce the number of wxAny tests ran under wxOSX further. Something in GetAs() test definitely corrupts memory, but what?

2013-05-10 00:29 VZ, revision 73955

Start bisecting GetAs() wxAny test itself. This is the test that results in memory corruption in wxOSX PPC builds, try to find out where exactly does this happen.

2013-05-09 21:56 VZ, revision 73954

Leave only a single wxAny unit test disabled. It looks like the culprit is GetAs() test, verify it.

2013-05-09 01:18 VZ, revision 73953

Another attempt to isolate memory corrupting wxAny test. We now know it's either As() or GetAs() (or both).

2013-05-09 00:01 VZ, revision 73952

Continue bisecting tests crash in PPC OS X builds. Disable more wxAny tests.

2013-05-09 00:00 VZ, revision 73951

Fix wxRichTextCtrl test compilation. Work around broken pre-C++98 for loop scoping rules in VC6. See #15184.

2013-05-08 23:17 VZ, revision 73950

Really disable wxAny tests under wxOSX. Instead of disabling them everywhere but there. See r73944.

2013-05-08 13:21 VZ, revision 73949

Fix duplicate wxContextMenuEvent generation in wxMSW. Prevent WM_CONTEXTMENU from being propagated upwards the window parent chain by DefWindowProc(), we already do it ourselves and not marking the message as processed could result in multiple calls to the same wxEVT_CONTEXT_MENU handler if it skipped the event. See #13683.

2013-05-08 13:21 VZ, revision 73948

Fix wrong wxUSE_ACCEL around wxUSE_HOTKEY-related code in wxMSW. Closes #15193.

2013-05-08 13:21 VZ, revision 73947

Add wxVector<>::const_reverse_iterator. Provide this type too for compatibility with std::vector<>. Closes #15192.

2013-05-07 23:09 RD, revision 73946

Call InitializeModules instead of just module->Init(). This is needed so the module will have the proper state and not cause an assert when the modules are cleaned up. Since InitializeModules will skip any that are already initialized it doesn't hurt to call it for modules loaded later.

2013-05-07 17:56 VZ, revision 73945

Test for NULL associated frame in doc/view event handling code. A view might not have any associated frame at all (this is probably a bad idea but we don't seem to explicitly forbid this). This should have been part of r73943, see #14314.

2013-05-07 17:10 VZ, revision 73944

Disable more wxAny tests under OS X to try to find the buildbot crash. Disabling wxVariantConversions test was not enough to fix the crash happening in OS X PPC build slave, so disable a few more of them. Temporarily do it for any wxOSX build, the run-time check for buildbot will be restored later when I finally manage to find the problematic test(s?).

2013-05-07 17:07 VZ, revision 73943

Fix for event propagation in "single document" doc/view mode. Ensure that the events still get to wxDocManager even when we are using the single document mode in which a view can be directly associated with the parent frame. Closes #14314.

2013-05-06 23:46 VZ, revision 73942

Disable wxAny-to-wxVariant conversion test case under OS X. This is a blind attempt to fix the test crash under PPC OS X.

2013-05-06 15:39 JS, revision 73941

Applied patches for #15184 (wxRichTextAction fix for when the command identifier is wxRICHTEXT_CHANGE_OBJECT) and #15185 (Make adding/deleting wxRichTextTable rows and columns undoable)

2013-05-06 15:08 VZ, revision 73940

Fix a typo in wxNumberFormatter styles documentation. s/cab/can/

2013-05-06 10:54 JS, revision 73939

Applied patch #15183 (wxRichTextTable::DeleteColumns doesn't remove the deleted columns: dghart)

2013-05-06 02:31 VZ, revision 73938

Add IEEE 754 single/double precision support to wxDataStream classes. Allow to optionally raed/write float/double values in IEEE 754 single/double precision formats, respectively, instead of always using the extended precision format for both of them. This makes the code more flexible, allowing for better interoperability with the other programs, and also allows to implement floating point functions in these classes even when wxUSE_APPLE_IEEE is turned off (as can be the case because of the licencing concerns for the code in extended.c). Closes #10625.

2013-05-06 02:30 VZ, revision 73937

Minor wording fixes in wxDataStream classes documentation. Mostly just s/amount/number/

2013-05-06 02:30 VZ, revision 73936

Test wxDataStream floating point methods in big endian format too. Added a hack to test float/double reading/writing using wxDataInputStream/wxDataOutputStream to the test case using big endian extended float format too.

2013-05-06 02:30 VZ, revision 73935

No changes, just a small optimization in DataStreamTestCase. Don't create streams on the heap completely unnecessarily, just allocate them on the stack. This makes the code shorter, safer and slightly more efficient.

2013-05-06 02:30 VZ, revision 73934

No real changes, just rename double variables to "d". Don't use "i" or "f" for double variable names, this is confusing, especially when we do it inconsistently. See #10625.

2013-05-06 02:30 VZ, revision 73933

Extract common parts of wxData{In,Out}putStream in a common base class. No real changes, just put BigEndianOrdered() and SetConv() methods and the corresponding fields in a common wxDataStreamBase class instead of duplicating them in wxDataInputStream and wxDataOutputStream. This will make it simpler to add more features common to both classes in the future, see #10625.

2013-05-05 18:17 VZ, revision 73932

Don't use gtk_file_chooser_set_filename() for save file dialogs. This seems to be broken in old GTK+ versions, so use gtk_file_chooser_set_current_name() and gtk_file_chooser_set_current_folder() for save file dialogs which seem to work in all versions. Closes #15133.

2013-05-05 13:48 SJL, revision 73931

Speculative fix for wxWebView unit tests on OSX. Use stringByEvaluatingJavaScriptFromString as it is guaranteed to return an NSString.

2013-05-05 02:07 VZ, revision 73930

Correct misleading error message in locale mismatch assert. Don't advise people to use non-existent (or at least not publicly accessible) wxSetLocale(), they should just create wxLocale objects instead.

2013-05-05 02:00 VZ, revision 73929

Use wxWindow::Refresh() instead of artificial wxPaintEvent in the test. This fixes memory leaks under wxMSW: as the test code didn't (and couldn't) call wxPaintDCImpl::EndPaint(), there was a leak for each wxPaintEvent generated in it since the changes to wxDC caching in r72938. It's also preferable because it uses public API instead of feeding events to the window which is not documented to work. Unfortunately even using Refresh() still doesn't allow the test to work under wxOSX.

2013-05-05 01:59 VZ, revision 73928

Fix event handling order in doc/view framework. Ensure that the events are always (provided there is an open document) processed in the following order: 1. wxDocument 2. wxView 3. wxDocManager 4. wxDocChildFrame 5. wxDocParentFrame 6. wxApp Do this by forwarding the events from wxDocParentFrame to wxDocChildFrame first and forward them from there to wxDocManager which -- and this part remains unchanged -- in turn forwards them to the active wxView which finally forwards them to wxDocument. This requires another condition in the event handling code as we still must forward from wxDocParentFrame to wxDocManager itself if there are no active children at all, but this is the only way to have the same event order in all cases, whether the event is originally received by wxDocChildFrame or wxDocParentFrame. Document this and add a unit test verifying that things indeed work like this. See #14314.

2013-05-05 01:59 VZ, revision 73927

Forward events to active child at MSW, not wx, level in wxMDIParentFrame. We want to handle menu (and toolbar) events in the active MDI child before handling them in the parent frame itself and the existing code achieved this by forwarding wxEVT_MENU events at wx event processing level to the active child. However this was not enough as the underlying MSW WM_COMMAND message was still sent to the parent frame only and this could result in wx event not being generated at all if the parent frame had a disabled menu item with the same ID as (an enabled) item in the child frame, see #14314. So forward WM_COMMAND directly to ensure that the correct window gets the event in the first place. And this makes wxEVT_MENU forwarding in TryBefore() unnecessary.

2013-05-05 01:59 VZ, revision 73926

Factor out functions dealing with menus in the event propagation test. No real changes, just refactor the code to allow testing for menu events in other frames too.

2013-05-05 01:59 VZ, revision 73925

Add public wxDocManager::GetAnyUsableView(). This method tries to find the current view harder than GetCurrentView() and always returns a non-NULL view if there are any open documents at all. This is used by wxDocManager internally to find the view to apply the user commands to and will also be needed in the upcoming changes outside of wxDocManager, so just make this method public, as it seems that it could be useful in user code too, especially if we could use some better fallback than the first opened document (e.g. the last document the user interacted with would be better). This also clarifies the confusion between GetCurrentView() and GetActiveView(), see #13296.

2013-05-05 01:59 VZ, revision 73924

Use correct line numbers in assert failures in event propagation test. Replace the calls to CheckMenuEvent() helper with ASSERT_MENU_EVENT_RESULT() macro to allow passing the correct line number to cppunit assertion function, otherwise the line number of CheckMenuEvent() was always used in case of failure.

2013-05-05 01:59 VZ, revision 73923

Consistently set wxMenuBar parent in all ports. Previously, wxGTK used the associated frame as wxMenuBar parent, while the other ports did not. Do set the frame as menu bar parent in all ports now. Of course, considering that wxMenuBar is not a window at all, this doesn't necessarily make much sense, but at least it makes the behaviour consistent.

2013-05-05 01:59 VZ, revision 73922

Pass menu events to the handler in the associated menu bar. We handled the menu events in the menu itself and the associated window, but not in the menu bar that the menu belonged to. This was unexpected, so allow handling the events in the menu bar itself too. Closes #15095.

2013-05-05 01:59 VZ, revision 73921

Fix menu event handlers calling order. Pass the menu event to the window associated with the menu first, before falling back on wxApp. This required adding yet another flag to keep state in wxEvent but it seems to be unavoidable as wxMenuBase::SendEvent() calls ProcessEvent() twice and we must have some way to distinguish the first call from the second one. Added a test case verifying that the menu events are indeed processed in the expected order.

2013-05-03 00:08 VZ, revision 73906

Mention using wxString::c_str() with vararg functions in the change log. This is sufficiently important to be mentioned here in addition to the main documentation. Especially considering that this results in run-time crashes instead of (just) compile-time errors with MSVC.

2013-05-03 00:08 VZ, revision 73905

Expand wxString overview and document some problems due to its dual nature. Explain the possible problems with wxString due to its dual Unicode/ASCII nature. Also document the various conversions in the overview itself. Closes #14694.

2013-05-01 22:53 VZ, revision 73899

Copy max width of wxGridCellTextEditor when cloning it. Previously the max number of characters that could be entered into the editor was lost when it was cloned, making it impossible to really limit the user entry. Closes #15175.

2013-05-01 22:53 VZ, revision 73898

Remove the apparently unneeded wxPGPropArgCls default ctor. This ctor didn't initialize the flags correctly and could result in a crash when a default constructed object was destroyed. Closes #15174.

2013-04-30 22:23 RD, revision 73897

export wxRichTextObjectPtrArrayArray since it is used in the public API.

2013-04-30 22:23 RD, revision 73896

Richtext interface fixes and additions for Phoenix

2013-04-30 22:23 RD, revision 73895

Richtext interface fixes and additions for Phoenix

2013-04-30 22:07 RD, revision 73892

Documentation tweaks for wxFontInfo

2013-04-30 22:07 RD, revision 73891

Add wxICON_AUTH_NEEDED

2013-04-30 17:39 VZ, revision 73890

Compilation fix for wxFont in wxGTK1. wx/encinfo.h is not included from wx/wx.h so include it explicitly. This is the same change as was done in r73519 for wxX11/wxMotif.

2013-04-30 13:13 VZ, revision 73889

Fix wxFont test compilation after wxFont(int flags) ctor removal. Also mention this incompatible (since 2.9.4) change in the change log.

2013-04-30 12:36 VZ, revision 73888

Use WXUNUSED() to suppress unused parameter warnings. Just suppress a harmless warning in wxCarbon build.

2013-04-30 12:36 VZ, revision 73887

Work around harmless g++ warning about possible uninitialized variable. Return from the function before using the variables in the (impossible) case they are actually not initialized.

2013-04-30 12:35 VZ, revision 73886

Add a trivial virtual dtor to suppress g++ warnings. Add a useless but virtual dtor to ValidationTraverserBase private class to avoid g++ warnings.

2013-04-30 12:27 VZ, revision 73885

Add wxFontInfo class to allow using named parameters for wxFont creation. This helper class allows to create wxFonts using shorter and more readable code, e.g. wxFont font(12, wxFONTFLAG_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, true, "DejaVu Sans"); can now be written simply as wxFont font(wxFontInfo(12).FaceName("DejaVu Sans").Underlined()); Remove the ctor from font flags added in r70445 as it's not needed any longer now that we have this one and adding it resulted in compilation errors in the existing code which compiled with 2.8 because of ambiguities between that ctor and wxFont(int size, int family, int style, int weight. bool underlined, ...) one, e.g. wxFont(12, wxFONTFAMILY_SWISS, wxNORMAL, wxNORMAL) didn't compile any more but it does compile again now. See #9907.

2013-04-30 12:27 VZ, revision 73884

Allow using wxDEFAULT as font size in wxOSX. Using wxDEFAULT as the font size in wxOSX resulted in creating 70pt font, change this to use the normal font size instead for compatibility with the other platforms. Also allow using -1 as wxDEFAULT for compatibility with wxGTK, see #12541.

2013-04-30 01:53 VZ, revision 73881

Fix VC6 compilation after r73880. Work around the broken scoping for the variables declared inside for loops in this compiler by declaring the loop variable once for all loops.

2013-04-30 01:13 VZ, revision 73880

Fix assert when adding items with bitmaps wxBitmapComboBox. The change of r73567 resulted in an assert when adding items with bitmaps to wxBitmapComboBox without object client data. Fix the code added by this commit to work for all kinds of client data, including wxClientData_None. See #14892.

2013-04-30 01:00 VZ, revision 73879

Trying to blindly fix WebTestCase unit test failure. Navigate to about:blank initially, not "about:".

2013-04-29 14:54 VZ, revision 73878

Add empty paragraph in wxRichTextTable::AddColumns() and AddRows(). Do the same thing in Add{Columns,Rows}() as in CreateTable() to ensure the proper cell creation. Closes #15153,

2013-04-29 14:54 VZ, revision 73877

Add support for wxICON_AUTH_NEEDED to wxMessageDialog. Allow showing the standard "Authentication needed" dialog in the message boxes under MSW. Closes #15121.

2013-04-28 20:25 VZ, revision 73876

Really fix the problem with caret in wxGrid text editor under MSW. The problem (see #11681) was due to not allowing the native control handle the focus loss event. This, in turn, was due to the changes of r58969 which tried to work around a crash which happened if the grid was destroyed from the code of one of the user-defined event handlers called during the editor dismissal. Fix both problems at once by calling event.Skip() in OnKillFocus() to let the native handler have the event too and postponing the editor dismissal a little by calling DisableCellEditControl() indirectly from a posted event handler instead of immediately. As this reverts the now unnecessary changes of r64646, it closes #15162.

2013-04-28 20:25 VZ, revision 73875

No real changes, just make wxGridCellEditor accessors const. IsCreated(), GetControl() and GetCellAttr() should both be const, so make them so.

2013-04-26 22:00 VZ, revision 73870

wxOSX: store the menu title when inserting it in the menu bar. We "lost" the menu title if the menu was inserted, and not appended, to the menu bar, resulting wxMenuBar::GetMenuLabel[Text]() returning empty strings for it in this case.

2013-04-26 21:41 VZ, revision 73869

Remove "Windows only" mention from wxTE_PROCESS_ENTER documentation. This style works for wxComboBox under GTK and OS X as well.

2013-04-26 21:41 VZ, revision 73868

Test wxTE_PROCESS_ENTER in the combobox page of the widgets sample. Remove the unused "File name" checkbox in this page and put "Process Enter" one in its place to allow toggling wxTE_PROCESS_ENTER interactively to test whether it works as expected.

2013-04-26 21:41 VZ, revision 73867

Minor visual enhancement in the combobox page of the widgets sample. Expand the lower static box to align it with the upper one, otherwise they look really ugly, especially under Mac.

2013-04-26 18:48 RD, revision 73866

revert part of last change, run configure from the builddir or cwd, not from configure's location.

2013-04-26 08:37 RD, revision 73856

Add wxEVT_DIRCTRL_CHANGED

2013-04-26 08:37 RD, revision 73855

Changes needed to help builder.py be more generic and working well with other modules

2013-04-25 15:16 VZ, revision 73854

Fix generic wxDataViewToggleRenderer hit testing with any alignment. This change reverts the changes of r73835 and r73838 to wxDataViewToggleRenderer::WXActivateCell() and instead fix the bug with mouse hit testing in this function in the wxDataViewMainWindow::OnMouse() itself. The problem there was that it offset the coordinates of the event differently depending on whether the column alignment was set or left as default. Now always make the coordinates relative to the item (not cell) rectangle for compatibility with GTK+ native version, which is enough to make the original, i.e. before the changes of r73835, code work. See #15144.

2013-04-25 14:54 VZ, revision 73853

Fix compilation-breaking typo in the previous commit. s/LoadUrl/LoadURL/

2013-04-25 14:53 VZ, revision 73852

Fix wxWebView test setup failure under OS X. Call LoadUrl() after associating our custom event handler with the browser object as otherwise the wxEVT_WEBVIEW_LOADED event could be generated before we were set up to catch it, resulting in the assertion failure inside ENSURE_LOADED.

2013-04-25 13:56 VZ, revision 73851

Fix wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK event type name. Fix incorrect conflict resolution between the changes of r73823 and r73850: the first renamed wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED to wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK while the latter renamed it to wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED. The proper new name is wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, use it instead.

2013-04-25 12:11 VZ, revision 73850

Provide shorter synonyms for wxEVT_XXX constants. Use the same short names as are used by the event table macros for the event type constants themselves. This makes them much more comfortable to use, e.g. Bind(wxEVT_BUTTON) compared to Bind(wxEVT_COMMAND_BUTTON_CLICKED). The old long names are still kept for backwards compatibility and shouldn't be removed as it doesn't really cost anything to continue providing them, but all new event types should only use the short versions. Closes #10661.

2013-04-25 11:35 VZ, revision 73849

Small fixes after wxHtmlTagHandler::GetParser() addition. Amend the changes of r73839: - Don't use covariant return type for wxHtmlWinTagHandler::GetParser() as VC6, which we still support, doesn't like it. Besides, this seems unnecessary. - Don't make GetParser() virtual at all as this doesn't appear to be necessary neither. - Add "@since 2.9.5" to the documentation of the new method.

2013-04-24 11:01 VZ, revision 73848

Fix showing back hidden columns and rows in wxGrid. While we don't support auto-sizing of the hidden columns and rows, we need to still show them back when SetColSize() or SetRowSize() is called with -1 (a.k.a. wxGRID_AUTOSIZE) argument.

2013-04-24 04:40 RD, revision 73841

Add documentation for some additional cell types so they can be seen in Phoenix

2013-04-24 04:40 RD, revision 73840

Add ctor for wxHtmlWinTagHandler

2013-04-24 04:40 RD, revision 73839

Add GetParser methods for the tag handlers

2013-04-23 13:56 VZ, revision 73838

Really fix hit testing in the generic wxDataViewToggleRenderer. The changes of r73835 fixed hit testing in horizontal direction but broke it in the vertical one as the computed checkbox rectangle was not relative to the cell rectangle as it should have been. Do fix this now. See #15144.

2013-04-22 12:45 VZ, revision 73837

Add wxSocketBase::GetSocket(). Provide direct access to the underlying socket descriptor. Closes #8829.

2013-04-22 02:32 VZ, revision 73836

Add test for correct short/long file names in wxDir. Verify that enumerating the files using the pattern *.foo doesn't match *.foo.bar files, as it used to do under MSW. See #3432.

2013-04-21 19:39 VZ, revision 73835

Fix hit testing in generic wxDataViewToggleRenderer. Handle clicks on the checkboxes in generic wxDataViewCtrl correctly by taking into account that the checkbox rectangle is centred inside the total cell rectangle. Closes #15144.

2013-04-21 19:18 VZ, revision 73834

Reset sorting column in generic wxDataViewCtrl properly. We could keep using the column previously used for sorting even after UnsetAsSortKey() was called on it. Ensure that this doesn't happen by resetting the owner wxDataViewCtrl sort column index too. Closes #15160.

2013-04-21 00:13 VZ, revision 73832

Add wxTextEntryDialog::SetMaxLength(). Allow restricting the maximal number of characters that can be entered in wxTextEntryDialog. Closes #15158.

2013-04-21 00:13 VZ, revision 73831

Standardize on using "Added" instead of "Add" in the change log. As all the other verbs were used in the infinitive and not past tense, do the same thing for this one too, especially as we already had a mix of both forms.

2013-04-19 12:47 VZ, revision 73824

EVT_TREE_STATE_IMAGE_CLICK is not Windows-only any more. State images in wxTreeCtrl are now supported under all platforms. See #9591.

2013-04-17 13:45 VZ, revision 73823

Remove "ED" suffix from EVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED. The naming of this macro was inconsistent with other similar macros in wxListCtrl and wxTreeCtrl and even EVT_DATAVIEW_COLUMN_HEADER_CLICK in wxDataViewCtrl itself. Moreover, it was even documented under the wrong name without "ED". Clear this mess by removing the "ED" suffix while still keeping the old macro name for compatibility.

2013-04-17 13:36 VZ, revision 73822

Document lack of wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK under OS X. The native versions don't contain any code to send it currently.

2013-04-17 13:31 VZ, revision 73821

Fix wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK name in the documentation. Unlike the corresponding event table macro, it doesn't have "ED" suffix.

2013-04-17 04:50 RD, revision 73817

Add missing interface items for Phoenix

2013-04-16 21:44 VZ, revision 73816

Document that wxPoint(wxRealPoint) ctor truncates, not rounds. Also give an example showing how to do rounding instead.

2013-04-13 01:45 RD, revision 73812

Ensure there is valid context for DrawRectangle

2013-04-11 18:54 VZ, revision 73809

Check that focused window is non-NULL before using it in wxComboCtrl. wxWindow::FindFocus() may return NULL, don't crash by attempting to dereference the pointer returned by it. Closes #15146.

2013-04-11 18:54 VZ, revision 73808

Add missing t_str() call to fix wxUSE_STL build after r73792. Don't rely on implicit conversion from wxString to wxChar* which is not available in all builds. Closes #15145.

2013-04-11 01:06 RD, revision 73807

also check for the SDK in subtrees used by newer XCodes

2013-04-10 14:12 VZ, revision 73806

Added chainable wxWizardPageSimple::Chain() overload. Add the simplest and most fool proof of chaining the pages in static wizards: just chain several calls to the new, non-static, wxWizardPageSimple::Chain() overload.

2013-04-10 02:51 RD, revision 73803

Cut is documented in wxTextEntry now

2013-04-10 02:01 RD, revision 73795

Add missing doc for Cut()

2013-04-09 08:52 SC, revision 73794
  • D /wxWidgets/trunk/src/stc/stc_cw.h
  • D /wxWidgets/trunk/src/stc/stc_cwc.h
  • D /wxWidgets/trunk/src/stc/stc_cwc_d.h
  • D /wxWidgets/trunk/src/stc/stc_cw_d.h

removing codewarrior support

2013-04-08 16:15 VZ, revision 73793

Use API_VERSION_NUMBER for debug help API version check. This symbol is not documented but seems to be defined in all the existing versions of imagehlp.h, so use it instead of relying on a hack with checkng whether DBHLPAPI symbol is defined.

2013-04-08 16:15 VZ, revision 73792

Support Unicode module names in wxDynamicLibrary::MSWGetModuleHandle(). The module names are not necessarily ASCII strings, so use wxString instead of "char*" and W-version of GetModuleHandle() if appropriate. See #15138.

2013-04-08 12:03 VZ, revision 73791

Remove rightarr.cur which doesn't exist any more from files list. This should have been part of r73491, see #14991.

2013-04-08 12:03 VZ, revision 73790

Check that files returned from wxDir::FindXXX() match the filter. Native Windows functions used by wxDir check the filter against both the short and the long name resulting in unexpected results, e.g. searching for "foo.baz" would find "foo.bazaar". Fix this by explicitly rechecking that we have a valid match ourselves. Closes #3432.

2013-04-05 23:11 VZ, revision 73789

Allow to customize wxGrid column auto-sizing. By default the columns are auto-sized to fit just their label, which is fast but not very user-friendly. Allow customizing this behaviour by handling the (new) wxEVT_GRID_COL_AUTO_SIZE event. Closes #15077.

2013-04-05 22:11 VZ, revision 73788

Use LF eol-style svn property for all Unix-only files. At least with some of them (e.g. tiffconf.h) using native EOLs under Windows confuses MinGW/MSYS and results in build failures. As all these files are only used under Unix or in Unix-like environments, use Unix EOLs for them everywhere.

2013-04-05 22:02 VZ, revision 73787

Basque translations update from Xabier Aramendi.

2013-04-05 17:55 JS, revision 73786

Don't reset URL if applying character style

2013-04-05 17:54 JS, revision 73785

Don't reset URL if applying character style

2013-04-05 06:01 RD, revision 73779

/dev/null may not exist, be smarter about it

2013-04-04 18:15 VS, revision 73778

Fix spurious errors about removing nonexistent files in wxrc.

2013-04-04 02:11 VZ, revision 73775

Document wxTextEntryDialog::SetTextValidator(). These methods exist since r15925 but were never documented. See #5420.

2013-04-04 02:11 VZ, revision 73774

Fix wxTextEntryDialog::GetValue() when using SetTextValidator(). Associating a validator with the text control in wxTextEntryDialog resulted in GetValue() always returning an empty string which was completely unexpected. Fix this by setting the value string manually to avoid interfering with any possibly used validators.

2013-04-03 20:13 VS, revision 73773

Use the same wxDEBUG_LEVEL settings for Xcode projects as elsewhere. Use the same debug flag default settings in the build/osx Xcode projects as are used by all other makefiles and projects - that is, wxDEBUG_LEVEL=1. This is done automatically by the headers, no need to define any extra symbols when building.

2013-04-03 04:08 RD, revision 73768

Add wxRect::SetPosition

2013-04-02 01:59 VZ, revision 73764

Don't use GetStandardCmdLineOptions() under non-Unix platforms. The GTK+ standard options are only available under Unix. Closes #15131.

2013-04-01 21:39 JS, revision 73763

Corrected code that re-encodes the book title.

2013-04-01 21:38 JS, revision 73762

Corrected code that re-encodes the book title.

2013-03-31 03:12 VZ, revision 73757

Make wxToolBar styles consistent and add wxTB_DEFAULT_STYLE. Don't include wxBORDER_NONE in neither wxToolBar ctor and Create() nor wxFrame::CreateToolBar() flags parameter, override GetDefaultBorder() in wxToolBar itself instead to use the border style appropriate for the current platform by default. This has the same effect -- the default border style is used unless another one is explicitly specified -- but is more clear and consistent. Also add wxTB_DEFAULT_STYLE for consistency with the other classes. Closes #15037.

2013-03-31 03:12 VZ, revision 73756

Remove wxTextCtrl::OnEnabled() hack from wxGTK. Don't change the background colour when the control is being enabled or disabled, it doesn't seem necessary and it's unclear why was this added by r10179 in the first place. It does result in problems however as it could somehow make the selection of wxTextCtrl invisible when it lost focus and so fixes a serious usability problem which happened to all wxTextCtrls for which a wxEVT_UPDATE_UI handler using wxUpdateUIEvent::Enable() was defined. Closes #14898.

2013-03-31 03:12 VZ, revision 73755

Explicitly trigger wxNotebook layout in wxMSW to ensure it is correct. Due to an apparent bug in the native control implementation, space could be reserved for the second row of tabs even when the notebook was big enough to need it. Sending it an extra WM_SIZE seems to be enough to fix this. Closes #1792.

2013-03-31 03:12 VZ, revision 73754

Added wxSearchCtrl to list of currently non-native wxGTK controls. It could be implemented using the native GtkSearchEntry in GTK+ 3.

2013-03-31 03:12 VZ, revision 73753

Fix the style value in wxWizard::Create() documentation. Somehow the raw value was used instead of the symbolic constant. Closes #15130.

2013-03-31 03:12 VZ, revision 73752

Fix the header to be included in wxStringTokenizer documentation. See #15130.

2013-03-31 03:12 VZ, revision 73751

Document wxDateTime arithmetic operators. wxDateTime::operator+() and operator-() were not documented, do it now. Also fix the return value of wxDateTime::Add(). See #15130.

2013-03-31 03:11 VZ, revision 73750

Document wxDataView{List,Tree}Ctrl as only available since 2.9.0. See #15130.

2013-03-31 03:11 VZ, revision 73749

Remove wx{File,Dir}PickerCtrl::CheckPath() declaration. This function wasn't defined, so don't declare it neither. This should have been part of r72475.

2013-03-31 03:11 VZ, revision 73748

Remove remaining occurrences of wxUSE_XPM_IN_MSW. This symbol is not used since a very long time as XPM support is now always available in wxMSW and most of its occurrences were removed almost 10 years ago, just remove the remaining ones too.

2013-03-31 03:11 VZ, revision 73747

Add a comment with links to proper command line parsing rules. No real changes, just added a comment with links to the descriptions of the correct rules that we should use in ConvertStringToArgs().

2013-03-29 20:53 VZ, revision 73737

Fix program not shutting down when using Ubuntu app menu. Ensure that an idle event is generated after a menu event even when the latter comes, via DBUS, from the out of process app menu and not from a real GTK menu. Closes #15122.

2013-03-29 20:53 VZ, revision 73736

Mention the relationship of wxDocument::Activate() with Raise(). Also provide an example of a custom overridden Raise(). See #15120.

2013-03-29 20:53 VZ, revision 73735

Minor documentation corrections in wxBookCtrlBase. Use the correct preposition in "set selection to the given page". See #15125.

2013-03-29 20:53 VZ, revision 73734

Added wxBookCtrlBase::FindPage(). Add helper function to find the index of the given page. Closes #15125.

2013-03-28 00:10 VZ, revision 73731

Fix assert when constructing invalid wxGBSpan inside wxWidgets itself. Various wxGridBagSizer methods returning wxGBSpan asserted when trying to construct an invalid wxGBSpan as its components must now (since r66964) be positive. Fix this by adding a special new method to wxGBSpan for constructing such invalid spans and use it now. Closes #15124.

2013-03-28 00:10 VZ, revision 73730

Add wxDocManager::FindDocumentByPath() helper. Simply refactor the code which already existed inside wxDocManager in a new public method. Closes #15126.

2013-03-28 00:10 VZ, revision 73729

Fix display of empty wxStaticBoxSizers. wxStaticBoxSizer should be considered shown if its static box is shown, even if it has no elements (or all of them are hidden). Closes #14698.

2013-03-26 12:00 VZ, revision 73720

Add wxDocument::Activate() method. Make activating the first (and, in the vast majority of cases, the only) view of the document easier. Closes #15120.

2013-03-26 12:00 VZ, revision 73719

Initialize Unicode code when generating wxEVT_CHAR_HOOK in wxMSW. Use the fixed value of 0 for the keys without Unicode equivalent instead of whatever junk was there in the uninitialized variable.

2013-03-26 12:00 VZ, revision 73718

Use WXK_DELETE as Unicode key code for VK_DELETE in wxMSW. U+007F is a Unicode character so we should set Unicode key code to this value for VK_DELETE presses. This also makes wxMSW consistent with wxGTK. Closes #3458.

2013-03-26 01:59 VZ, revision 73717

Use wxCONTROL_PRESSED instead of wxCONTROL_SELECTED in wxOSX renderer code. wxCONTROL_SELECTED is supposed to only apply to the selected items in a listbox and similar cases whereas the buttons use wxCONTROL_PRESSED flag to indicate whether they are toggled. Correct the code in wxRendererMac to use the latter, for consistency with the other platforms.

2013-03-26 01:59 VZ, revision 73716

No changes, just remove wxGtkIMData forward declarations. This class doesn't exist any more, so clean up references to it. See #3158.

2013-03-22 18:03 PC, revision 73708

fix GTK3 build

2013-03-22 15:13 VZ, revision 73707

Add GdkEventKey declaration fix PCH-less build. Declare it in wx/gtk/textentry.h too, not only wx/gtk/window.h.

2013-03-21 23:37 VZ, revision 73695

Add IM and full wxEVT_CHAR support to wxTextCtrl and wxComboBox in wxGTK. Generate wxEVT_CHAR events for non-ASCII characters entered in these controls by intercepting their insert-text signal. Also try to use GtkEntry/GtkTextView internal IM objects but unsuccessfully so far. Closes #3158.

2013-03-21 23:37 VZ, revision 73694

Allow using either single or multi line wxTextCtrl in keyboard sample. These controls are implemented quite differently in wxGTK, so it's convenient to be able to test both of them in the sample to check that they both behave correctly.

2013-03-21 23:37 VZ, revision 73693

Refactor wxGTK IM-related code to allow future modifications. No real changes, just make it possible to use a different IM than the one allocated in wxWindow for input handling. This will be used in the upcoming changes to wxTextEntry and the related classes. See #3158.

2013-03-21 23:36 VZ, revision 73692

Tweak wxGTK keyboard handling to allow accelerators to work again. Accelerators were broken by the changes of r72640 which were done to ensure that the focused window gets the keyboard event first, before its top level parent. Fix them now by still passing the events to the focused window first but also passing them to the parent top level if it hasn't been handled by the focused child. Unfortunately this is still not fully compatible with wxMSW because in wxGTK wxEVT_CHAR handler must skip the event in order to allow the accelerator using the same key to work, while in wxMSW the accelerator can only be suppressed by overriding wxWindow::MSWShouldPreProcessMessage(). We will need to make the two ports behave in the same way when the event is not skipped in the future. But for now, at least make them both behave correctly when the handler does skip the event. Closes #14553.

2013-03-21 23:36 VZ, revision 73691

Use flat generic status bar by default and add wxSB_SUNKEN. GTK+ applications don't use sunken status bars since many years, do don't do it in wxWidgets neither by default any more. Add wxSB_SUNKEN style that can be explicitly used if the old appearance is desired. Closes #15009.

2013-03-21 23:36 VZ, revision 73690

Disable Unity global menu while native modal dialogs are shown in wxGTK. We need to use wxOpenModalDialogLocker even with native GTK+ dialogs to prevent the menu commands from being available while they're shown, so do it in wxMessageDialog and wxColourDialog which call gtk_dialog_run(). Closes #14823.

2013-03-21 23:36 VZ, revision 73689

Create a small helper class for Unity global menu bug workaround. Encapsulate the code temporarily incrementing wxOpenModalDialogsCount in a small helper class to make it easier to reuse it elsewhere. See #14823.

2013-03-21 23:36 VZ, revision 73688

No changes, just remove an unused line of code. Fix g++ warning about initialized but unused variable in wxRTC code.

2013-03-19 16:43 VZ, revision 73687

Add missing space to fix r73681 changes. We need a space between the command and stderr redirection to avoid the "2" from being taken as part of the last option on the command line.

2013-03-19 03:58 VZ, revision 73682

Fix WM_UNINITMENUPOPUP missing definition for VC6. The previous workaround of defining it explicitly if it's not defined was left in src/msw/frame.cpp while the code using WM_UNINITMENUPOPUP was moved to src/msw/toplevel.cpp in r73562. Move the fallback definition there too.

2013-03-19 03:55 VZ, revision 73681

Suppress error output from Unix system information functions. Redirect stderr to /dev/null in wxGetCommandOutput() to avoid errors from the shell if the command we're trying to run doesn't exist.

2013-03-19 00:32 JS, revision 73680

Make sure include doesn't get overwritten when code regenerated

2013-03-18 21:41 RD, revision 73679

fix compilation problem

2013-03-18 21:21 JS, revision 73678

Fixed help for symbol picker and style manager dialogs

2013-03-18 13:07 JS, revision 73677

Added control over whether size and position units can be changed, and also size and position checkboxes.

2013-03-17 13:10 VZ, revision 73676

Fix minor typo in wxDV_VERT_RULES documentation. Don't say "is supported" when meaning "if supported" and, in fact, remove this part entirely as these styles are supported by all implementations.

2013-03-17 09:14 JS, revision 73675

Corrected clipboard data id

2013-03-17 09:13 JS, revision 73674

Corrected clipboard data id

2013-03-16 20:36 JS, revision 73673

Fixed centering/right alignment of last line

2013-03-16 18:27 VZ, revision 73672

Don't create temporary file in wxDebugReport ctor. Just use wxFileName::GetTempDir() instead of creating a file in the temporary directory and then using its path. Closes #15103.

2013-03-15 11:21 JS, revision 73665

Fixed a wxRichTextCaret refresh bug

2013-03-14 23:32 JS, revision 73664

Corrected wxRichTextCaret refresh

2013-03-14 22:04 JS, revision 73663

We need to switch off UI elements before they are laid out. Do this via static functions.

2013-03-13 14:47 VZ, revision 73648

Remove obsolete parts of autoconf_inc.m4. This file has accumulated a lot of condition checks which were not relevant any more, remove and recreate it (by running bakefile_gen) to get rid of them. Closes #15101.

2013-03-13 10:05 JS, revision 73647

Fixed some warnings

2013-03-12 21:54 JS, revision 73646

Added ability to switch off more components of the size page UI

2013-03-12 14:33 JS, revision 73645

Fixed UI customization helper

2013-03-11 19:03 JS, revision 73644

Search for font instead of creating it each time

2013-03-11 19:02 JS, revision 73643

Added missing RTTI

2013-03-11 11:08 SC, revision 73642

more specific solution to tooltips appearing on neighboring views, refs #15072

2013-03-10 23:13 SC, revision 73641

supporting also mouse entered / exited events which are not sent to the deepest child window, refs #15072

2013-03-10 22:14 SC, revision 73640

support alpha in color dialog, see #14127

2013-03-10 22:12 SC, revision 73639

make sure dialogs can support alpha transparency sliders

2013-03-10 21:36 SC, revision 73638

add support for alpha in color dialog on OSX, see #14127

2013-03-10 20:02 SC, revision 73637

avoid multiple mouse moved events, refs #15072

2013-03-10 15:20 SC, revision 73636

trying to solve cursor update problems with AUI, refs #15072

2013-03-10 02:09 VZ, revision 73635

Disable sorting of generic wxDataViewCtrl while it is frozen. Don't sort the contents of wxDataViewCtrl while it is frozen and resort it only when it is thawed. This dramatically speeds up adding items to the control when sorting is used as we only sort it once now instead of doing it after adding every item. Closes #14073.

2013-03-10 02:09 VZ, revision 73634

Use symbolic constants instead of magic numbers in wxDataViewCtrl code. No real changes, just add SortColumn_XXX symbolic constants which are somewhat more clear than -1 and -2 used before. Although the code based on the global variables remains as bad as before.

2013-03-09 16:08 VZ, revision 73633

Add GetFile() accessor to wxFileStream classes. Allow to retrieve the underlying file used by the stream. Closes #15093.

2013-03-09 16:08 VZ, revision 73632

No real changes, just use wxString::clear() instead of assignment. Consistently use clear() everywhere instead of assigning wxEmptyString in some places and wxT("") in some others to a string in order to clear it. See #15091.

2013-03-09 16:08 VZ, revision 73631

Return false from wxFileName::AppendDir() and InsertDir() on failure. Give the caller a way to know whether the directory was valid or not. Closes #15091.

2013-03-09 16:08 VZ, revision 73630

Use generic spin control itself as parent for its children. This fixes a problem with using wxSpinCtrlGeneric in toolbars under wxOSX, using the toolbar itself (i.e. the parent of the spin control) as parent for the children didn't work there and no windows were visible at all. Also use wxNavigationEnabled as base class of wxSpinCtrlGeneric to fix keyboard navigation. And override SetBackgroundColour() to set it for the text control part of the spin control only. Closes #15016.

2013-03-09 16:08 VZ, revision 73629

Implement support for pen cap and join in wxPostScriptDC. Use PostScript "setlinecap" and "setlinejoin" commands to do it. Closes #1244.

2013-03-09 16:08 VZ, revision 73628

Test PostScript printing in the print sample if it is compiled in. Just use wxUSE_POSTSCRIPT instead of wxTEST_POSTSCRIPT_IN_MSW and also do it under all platforms, not just MSW. See #1244.

2013-03-09 16:08 VZ, revision 73627

Fix compilation with MinGW -std=c++11 option. With this option _strdup() is not available, so update the code defining wxCRT_StrdupA() to check for __WX_STRICT_ANSI_GCC__. Also try to simplify it a bit and make it more clear. Closes #15011.

2013-03-09 16:08 VZ, revision 73626

Fix compilation for MinGW with wxUSE_IPV6==1. MinGW doesn't provide wspiapi.h header, so only include it when using MSVC and include ws2tcpip.h which directly declares the functions used for the other compilers. This doesn't have quite the same semantics but it's better than failing to compile at all. See #15005.

2013-03-09 16:08 VZ, revision 73625

Don't cache HDC used by wxPaintDCEx in wxMSW. This avoids the problem with mistakenly using wrong HDC in wxBitmapComboBox code which was due to assuming that we can only ever have one paint HDC for the given window -- while in wxBitmapComboBox case we are passed different HDCs for the same window via WM_DRAWITEM. Instead of fixing the cache, just don't use it at all for wxPaintDCEx as we don't gain anything from doing it anyhow. Closes #14842.

2013-03-09 16:08 VZ, revision 73624

Fit the generic preferences editor dialog to its pages size initially. Ensure that the dialog has the appropriate size before showing it. In addition to making it big enough to fit the pages contents, this also fixes a problem with initial appearance under MSW. Closes #15092.

2013-03-09 16:08 VZ, revision 73623

Don't set cell value in wxDataViewEvent in one place only. We should either set the cell value in the event object everywhere or not do it anywhere and as currently the native GTK and OS X versions don't do it at all and the generic version only does it for ITEM_CONTEXT_MENU events, it's easier to not do it at all. See #14163.

2013-03-09 16:07 VZ, revision 73622

Remove wxLogWindow::OnFrameCreate() virtual method. This method couldn't be overridden by the classes deriving from wxLogWindow because it was called (indirectly) from wxLogWindow ctor itself and so was completely useless. Just remove it to avoid confusion. Closes #12763.

2013-03-09 16:07 VZ, revision 73621

Restore wxDIRCTRL_SHOW_FILTERS flag of wxDirCtrl. Closes #8572.

2013-03-07 22:41 SC, revision 73614

avoid infinite recursion for richtooltops, (hopefully) fixes #15070

2013-03-06 22:00 SC, revision 73610

implementing canBecomeKeyView for user panes, native focus support, fixes #15070

2013-03-05 07:50 RD, revision 73604

Minor tweaks to the preferences docs for Phoenix.

2013-03-05 07:50 RD, revision 73603

don't use string module

2013-03-04 19:19 VZ, revision 73602

Unselect all wxDataViewCtrl items when clicking outside of the item area. This is consistent with Windows behaviour and as the generic wxDataViewCtrl is mostly used under Windows, it makes sense to follow Windows convention in it. Closes #15082.

2013-03-04 12:48 VZ, revision 73601

Fix crash on wxDataViewCtrl creation after r73565. Initialize m_clientArea to NULL to avoid crash in SetFont() which is called during the control creation. This might still be not 100% correct as the initial font is not set at all for the client area but at least it fixes the crash. See #15056.

2013-03-04 11:47 JS, revision 73600

Corrected layout when scaling the control

2013-03-03 23:44 VZ, revision 73599

Fix handling of wxST_NO_AUTORESIZE in wxOSX. We do need to set the size of wxStaticText initially even when this style is specified, it only tells us to not update it later. Otherwise even the initial label was never shown in full.

2013-03-03 23:44 VZ, revision 73598

Fix hundreds of unused parameter warnings in wxOSX build. Comment out the name of the parameter in the recently added SetupTabs().

2013-03-03 18:23 SC, revision 73597

issue NUMPAD constants only for Key but not for Char events, fixes #15073

2013-03-03 13:19 VZ, revision 73596

Revert "Fix off by 1 error in wxGenericListCtrl::HitTest()." Revert r73563, this breaks the selection in the control apparently. See #15063.

2013-03-02 14:01 SC, revision 73595

enabling cursor events, fixes #15044

2013-03-02 13:11 VZ, revision 73594

Reset accelerator table after removing last accelerator in wxMSW wxMenuBar. We didn't update the accelerator table if no more accelerators were left in it but we still need to do it to stop handling the previously active accelerators. Closes #15078.

2013-03-02 13:11 VZ, revision 73593

Use more native icons in wxMSW wxArtProvider. Use SHGetStockIconInfo() and SHGetFileInfo() to look up some icons. Closes #15068.

2013-03-02 13:11 VZ, revision 73592

Enable wxUSE_FSVOLUME in configure builds. This was never set to 1 when using configure, add a configure option for it and set it to 1 by default now.

2013-03-02 13:11 VZ, revision 73591

Don't give error message for non-existent paths in wxFileSystemWatcher. The file we're trying to watch might have been just deleted, this is an unavoidable (and not only in theory but also in practice when watching busy directories) race condition so don't give an error message if this does happen but simply return false from Add(). Closes #15051.

2013-03-02 13:11 VZ, revision 73590

Interpret wxRect passed to wxRichToolTip::ShowFor() as client coords. It makes more sense to use the window coordinates here instead of the screen ones. Closes #15060.

2013-03-02 13:11 VZ, revision 73589

Make wxRect parameter of wxRichToolTip::ShowFor() const. This parameter is read-only, so accept a const pointer here. See #15060.

2013-03-01 14:00 VZ, revision 73588

Traditional Chinese translations update from Wei-Lun Chao.

2013-03-01 13:21 VZ, revision 73587

Don't use GetThreadId() in wxMSW code. Revert r73585, GetThreadId() is only available in Vista or later so don't use it. Just cast the handle to an integer explicitly to be able to print it with "%x".

2013-02-28 21:41 VZ, revision 73585

Use thread ID and not thread handle in the error messages in wxMSW. The ID is in general more useful than the handle and this also fixes an assert failure due to mismatch between the HANLDE type and "%x" format specifier.

2013-02-28 19:11 SC, revision 73580

enabling menu close event, fixes #15069

2013-02-28 18:23 JS, revision 73579

Corrected loading of images: we need the parent size to compute initial object size

2013-02-28 17:53 VS, revision 73578

Compilation fix for wxPreferencesPage.

2013-02-28 17:29 VS, revision 73577

Add preferences sample.

2013-02-28 17:29 VS, revision 73576

Add wxPreferencesEditor class. Implements native UI for preferences editing. In particular, the API handles the differences between modal (Windows) and non-modal (OS X) preferences windows and provides platform's native look. Currently implemented natively for wxOSX/Cocoa, wxGTK and Windows (the latter is used as a fallback generic implementation as well).

2013-02-28 17:28 VS, revision 73575

Add support for Cocoa's selectable toolbar items. The support is currently limited to making all toolbar items selectable and is only available in wxOSX with Cocoa and native toolbars.

2013-02-28 17:28 VS, revision 73574

Add wxBitmap(NSImage*) ctor to wxOSX.

2013-02-28 15:29 VS, revision 73573

Line endings fixes in bakefile-generated files.

2013-02-28 14:31 VS, revision 73572

Don't include Common-Controls manifest in wxBase apps. If only the non-GUI portions of wxWidgets are used, the dependency on Microsoft.Windows.Common-Controls assembly shouldn't be automatically added to Visual C++. Only do it when compiling GUI code.

2013-02-27 13:05 SN, revision 73571

No real changes, just spelling fixes to comments. Closes #15030.

2013-02-27 09:12 SJL, revision 73570

Minor change. Fix LoadURL case typo in wxWebView docs. Closes #15067

2013-02-24 14:48 VZ, revision 73568

Fix, or at least make less common, deadlock in the thread sample. Don't always deadlock when "Stop the last spawned thread" menu command is selected. There is still a problem with a race condition which could result in a crash when dereferencing an invalid pointer, but at least this doesn't happen all the time, unlike the current bug. Of course, the real solution would be to properly rewrite the sample to show how thread deletion should be handled correctly... See #14891.

2013-02-24 14:48 VZ, revision 73567

Preserve client data pointers when setting bitmaps in wxBitmapComboBox. Changing the bitmap could recreate the control if the height of the bitmap changed but recreating wxBitmapComboBox lost all the client data pointers. Do preserve them now when recreating. Closes #14892.

2013-02-24 14:48 VZ, revision 73566

Fix typo in definitions of BEGIN_EVENT_TABLE_TEMPLATEn() macros with n>=2. They were all defined as wxBEGIN_EVENT_TABLE_TEMPLATE1() instead of the correct wxBEGIN_EVENT_TABLE_TEMPLATEn(). Closes #15050.

2013-02-24 14:48 VZ, revision 73565

Make wxGenericDataViewCtrl::SetFont() really work. Do use the new font for the items display. Closes #15056.

2013-02-24 14:48 VZ, revision 73564

Fix compilation in !wxUSE_MENUS case. wxFrameBase::ShouldUpdateMenuFromIdle() should be defined inside "#if wxUSE_MENUS" as it's only declared when wxUSE_MENUS==1. Closes #15062.

2013-02-24 14:48 VZ, revision 73563

Fix off by 1 error in wxGenericListCtrl::HitTest(). Account for the header height if the header is present. Closes #15063.

2013-02-24 14:48 VZ, revision 73562

Move menu messages handling from wxFrame to wxTLW in wxMSW. This allows to generate the menu open/close/highlight events correctly for the popup menus used in the dialogs. Extend the menu sample with a test using such menus.

2013-02-22 06:59 RD, revision 73554

Fix MSVCBuilder so it can pass an alternate make command to the Builder

2013-02-22 06:59 RD, revision 73553

Enable using jom in place of nmake in the wxMSW build

2013-02-22 06:59 RD, revision 73552

Add version check for MSVC 10

2013-02-21 15:32 VZ, revision 73549

Fix crash when drawing bitmaps with mask in wxGTK with GTK+ < 2.20. r73386 introduced a crash in wxGTK drawing code when using old GTK+ versions by releasing the mask pixmap prematurely. Apparently GTK+ itself was fixed at some time in 2.19.x time frame but work around the bug for the sake of older GTK+ versions in wxGTK itself by simply releasing the pixmap at the end of DoDrawBitmap(), as pre-r73386 code did.

2013-02-21 14:22 VZ, revision 73548

No real changes, just suppress a harmless warning. g++ warned about possibly uninitialized variable, so initialize it in its declaration even if it was actually already always initialized in the branches where it could be used.

2013-02-20 00:13 VZ, revision 73543

Fix background corruption in scrolled wxHtmlWindow. Draw the background on the entire virtual size, not just the currently shown client size. Closes #15047.

2013-02-17 17:17 SC, revision 73533

applying patch, closes #13045

2013-02-17 15:54 SC, revision 73532

switching notebook implementation to common

2013-02-15 13:40 VZ, revision 73521

Remove wxRTTI macro for wxComboBox from Motif port. This is now done in src/common/combocmn.cpp.

2013-02-15 13:40 VZ, revision 73520

Don't use ternary operator ?: with wxString and literal strings. This results in warnings about converting string literal to (non const) C string. Also remove the now unneeded calls to c_str() inside wxString::Printf().

2013-02-15 13:40 VZ, revision 73519

sAlways iInclude wx/encinfo.h from src/unix/fontutil.cpp. We use wxNativeEncodingInfo in this file, so we always need this header, not just when not using PCH.

2013-02-15 13:40 VZ, revision 73518

Don't connect to the same signal multiple times in wxGTK wxClipboard. We called g_signal_connect("selection_get") in wxClipboard code each time its AddData() method was called. This resulted in progressive but noticeable slowdown as the handler was called more and more times. Only connect to the handler once now. Closes #15038.

2013-02-14 09:07 SC, revision 73517

closes #13841

2013-02-13 20:31 SC, revision 73516

adding CoreText

2013-02-13 20:29 SC, revision 73515

updating dates, fixing product name

2013-02-13 20:28 SC, revision 73514

using default compiler

2013-02-12 20:14 SC, revision 73512

making sure cfbundle identifier has correct characters

2013-02-12 12:49 SC, revision 73510

added new files

2013-02-12 12:18 SC, revision 73509

added new files

2013-02-12 11:51 SC, revision 73508

added new files

2013-02-12 11:49 SC, revision 73507

adding lexlib header include, turning off utf8 default

2013-02-12 11:34 SC, revision 73506

missed the ppc switch

2013-02-12 11:33 SC, revision 73505

increasing deployment to 10.5 min

2013-02-12 08:30 RD, revision 73504

Fix missing or incorrect wxGrid interface items for Phoenix

2013-02-10 17:14 VZ, revision 73495

Account for scrolling when setting the background brush origin in wxMSW. We must use physical coordinates for the brush origin to account for the coordinates offset in scrolled windows, so add MSWAdjustBrushOrg() and call it from MSWGetBgBrushForChild(). Closes #14917.

2013-02-10 17:13 VZ, revision 73494

No changes, just factor out PrepareDC() call in the erase sample. Call this only once in DoPaint() itself instead of calling it twice before calling it. See #14917.

2013-02-10 17:13 VZ, revision 73493

Erase the entire virtual area of the window in the erase sample. Just clearing the DC is not enough when the window is scrolled, so clear the entire virtual area. We should be able to optimize it by clearing just the rectangle currently scrolled into view but this is at least correct, i.e. doesn't result in corrupted display, even if it's suboptimal. See #14917.

2013-02-10 17:13 VZ, revision 73492

Compilation fix for !wxHAS_MSW_BACKGROUND_ERASE_HOOK case. This doesn't actually change anything as wxHAS_MSW_BACKGROUND_ERASE_HOOK is always defined, except under WinCE where this file is not used anyhow, but do test it here for completeness.

2013-02-10 17:13 VZ, revision 73491

Create wxCURSOR_RIGHT_ARROW on the fly from normal arrow cursor under MSW. This allows to avoid having another cursor resource and also makes this cursor nicer as rightarr.cur looks rather out of place under modern Windows systems. Closes #14991.

2013-02-10 17:13 VZ, revision 73490

Create new tab at the correct location in wxAuiNotebook. Create the new tab in wxAuiTabCtrl that was double clicked and not near the last selected tab which could have been in another wxAuiTabCtrl. Closes #14995.

2013-02-10 17:13 VZ, revision 73489

Add wxIcon::CreateFromHICON() to wxMSW. Provide a public method properly assigning an HICON to wxIcon, instead of asking people to call SetHICON() and SetSize(). Closes #15023.

2013-02-09 12:11 VZ, revision 73488

Don't call ::GetLayout() in wxMSW code directly. Use wxMSW::GetLayout() wrapper to avoid directly binding to a function not present in old Windows versions and also to fix linking errors with MinGW after the changes of r73484. See #3995.

2013-02-09 01:36 VZ, revision 73487

Fix infinite loop in wxGrid::PosToEdgeOfLine(). Return -1 from wxGridRowOperations::GetLineBefore(0) to ensure that we exit the loop in wxGrid::PosToEdgeOfLine(). Doing this is the logical thing to do as wxGridColumnOperations::GetLineBefore() already behaved like this and this was is more expected than returning 0, as the function previously did for some reason. Closes #15035.

2013-02-09 01:35 VZ, revision 73486

Fix pulsing of bitmaps in focused buttons under Windows 7. It turns out that the actual bitmap shown in this case varies between the bitmaps at PBS_DEFAULTED and PBS_STYLUSHOT, so that it's invisible half of the time if we don't specify the value for the latter. Do it now to fix unwanted pulsing of the bitmap in the focused button. Closes #15034.

2013-02-09 01:35 VZ, revision 73485

Refresh wxMSW wxStaticBitmap when its size changes. As MSW native control centers the image, it must be entirely redrawn when the area in which the image is centered changes, but it doesn't happen by default, so do it ourselves explicitly. Also explain that this centering behaviour is platform-specific and shouldn't be relied upon. Closes #4564.

2013-02-09 01:35 VZ, revision 73484

Fix drawing of bitmaps with masks in mirrored wxDC. The mask must be mirrored in the same way as the main bitmap itself (currently it's not mirrored at all but this could change in the future), so create the temporary memory HDC with the same layout as is used by the main HDC. Closes #3995.

2013-02-09 01:35 VZ, revision 73483

Don't include the manifest in wx/msw/wx.rc by default for MSVC compiler. The later versions of this compiler don't need it any more, so make it easier to set up the projects for them at the expense of MSVC 6 and 7 users who will now need to explicitly define wxUSE_RC_MANIFEST=1 and predefine the architecture macro (or setup their resource compiler include path to get wx/msw/rcdefs.h under the lib directory but predefining the architecture is clearly simpler). Do generate manifest when using gcc as it predefines the architecture macros allowing us to avoid requiring using the generated rcdefs.h. The other compilers will be dealt with as needed if anybody is still using them.

2013-02-06 13:48 VZ, revision 73482

Don't recurse into top level children when validating recursively. Even with wxWS_EX_VALIDATE_RECURSIVELY flag, we should never validate the top level children (e.g. dialogs) when validating the parent window. This is never useful and can be completely unexpected.

2013-02-06 13:48 VZ, revision 73481

Refactor children traversal in wxWindow::TransferData{To,From}Window(). No real changes, just factor out the logic for children traversal into a helper template class and reuse it in Validate() and both TransferData() methods to avoid triplicating it.

2013-02-06 13:46 VZ, revision 73480

Allow creating wxCursor from ANI files under MSW. Simply pass them to the standard LoadCursorFromFile() function which supports this format. Closes #3472.

2013-02-06 13:43 VZ, revision 73479

Don't show log menu tiems in the tree control sample when !wxUSE_LOG. No real changes, just correct the "#if wxUSE_LOG" placement. See #4024.

2013-02-06 01:42 VZ, revision 73478

Fix harmless warning about NULL in wxStyledTextCtrl code. Cast NULL to the type of third argument of SendMsg() explicitly to avoid a warning about it from Ubuntu g++ 4.6.

2013-02-06 01:42 VZ, revision 73477

Fix harmless g++ warning about operator precedence. Add parentheses to suppress "&& inside ||" warning.

2013-02-06 01:42 VZ, revision 73476

Check for _MSC_VER definedness in libtiff code. This avoids warnings about _MSC_VER being undefined when it's compared with 1500 when building with gcc.

2013-02-05 21:47 VZ, revision 73475

Fix printf format specifier in graphics benchmark. Use "%ld" for long arguments to fix asserts under 64 bit architectures.

2013-02-05 21:47 VZ, revision 73474

Added possibility to use OpenGL for bitmap drawing to graphics benchmark. Draw the bitmap using OpenGL textures. Even without using PBO this results in much greater performance than using wxImage or raw bitmap access.

2013-02-05 21:47 VZ, revision 73473

Use a non-uniform bitmap for image tests in the graphics benchmark. This makes it easier to estimate the speed of the display update visually.

2013-02-05 21:47 VZ, revision 73472

No changes, just rename command line option in graphics benchmark test. It's not used for lines only, so call it "number of iterations" and not "number of lines" and use "N" instead of "L" option for it.

2013-02-05 21:47 VZ, revision 73471

Add benchmarks for wxImage and raw bitmap access to the graphics test. Compare the speed of drawing the bitmaps by synthesizing wxImage and converting it to wxBitmap and directly modifying wxBitmap bits using raw bitmap access.

2013-02-05 21:47 VZ, revision 73470

Allow selecting the kinds of DC to test in the graphics benchmark too. Still run all the tests by default but allow specifying --dc or --gc as well as --paint, --client or --memory to test just the specified kinds of DCs.

2013-02-05 21:46 VZ, revision 73469

No real changes, just flush output in the graphics benchmark. Show the output messages sooner instead of showing them all only when the test ends.

2013-02-05 21:46 VZ, revision 73468

Run wxClientDC and wxMemoryDC tests too in the graphics benchmark. These tests were not run because OnPaint() handler was called before OnCreate() and exited the main loop before the create event could be dispatched. Fix this by just running everything from OnPaint(), like this we're sure to do it. Also refactor the code a little to avoid duplicating the tests.

2013-02-05 21:46 VZ, revision 73467

Allow running only some graphics benchmarks to save time. Running all the benchmarks is relatively long, so allow running individual ones only.

2013-02-05 21:46 VZ, revision 73466

Ignore empty LC_XXX variables in locale detection code. If LC_ALL or LC_MESSAGES is set but empty, ignore it and use the next environment variable. This is consistent with the standard setlocale() behaviour which only uses LC_ALL if it is set and not empty. Closes #15006.

2013-02-05 21:46 VZ, revision 73465

Fix spelling in utils/screenshotgen sources. No real changes. Closes #15024.

2013-02-05 21:46 VZ, revision 73464

No changes, just remove unused part of expression. We don't do anything with the result of inserting the watch in fswatchercmn.cpp. Closes #15027.

2013-02-05 21:46 VZ, revision 73463

Add simple tests for Scintilla annotations to the stc sample. Show how add, remove and clear annotations and also how to update the text width when long annotations are added.

2013-02-05 21:46 VZ, revision 73462

Use a single EVT_MENU_RANGE in stc sample instead of tons of EVT_MENU. Make it easier to add new menu items forwarded to the editor in the sample. No real changes.

2013-02-05 21:46 VZ, revision 73461

Only impose minimal height for buttons with non-empty label in wxMSW. wxBU_EXACTFIT in wxMSW only affected the width of the button but not its height, which was still made as big as the standard button size as otherwise the button text was rendered badly. However there is no reason to do this for the buttons without any text, so let wxBU_EXACTFIT be really exact, in both directions, in this case. Also document this rather non obvious wxBU_EXACTFIT behaviour.

2013-02-05 21:46 VZ, revision 73460

Really fix resizing of wxGird column/rows after a hidden one. The previous fix (r73399) broke resizing from the side of the preceding grid line, restore the old code and just add a loop finding the first visible line before the one being clicked. See #14947.

2013-02-05 21:46 VZ, revision 73459

Fix wxGridColumnOperations::GetLineBefore() for the first column. We should return -1 from here as there is no column before the first one and wxGridRowOperations::GetLineBefore() already does this.

2013-02-04 17:16 VZ, revision 73456

Avoid harmless warning about comparing unsigned with 0. Fix warning in assert in wxProcess::SetPriority(): don't compare unsigned priority with wxPRIORITY_MIN which is just 0, the condition is always true. Closes #14931.

2013-02-04 14:54 JS, revision 73455

Invalid conversion compile error fix (GTK+ 2.12.9)

2013-02-04 13:52 JS, revision 73454

Added support for sub-object virtual attributes (temporary attributes for characters within objects) and also virtual text that can replace the actual text.

2013-02-01 10:38 SJL, revision 73453

Rename all WEB_VIEW* style identifiers to WEBVIEW*. This makes wxWebView consistent with the rest of the toolkit. Closes #15013

2013-01-27 15:49 SN, revision 73445

No changes, just remove unneeded variable initialization in carbon listctrl. Closes #14997.

2013-01-27 15:42 SN, revision 73444

No real changes, just spelling fixes. Closes #14998.

2013-01-27 15:41 SN, revision 73443

No real changes, cleaned up whitespace, fixed spelling. See #14998.

2013-01-27 15:30 SN, revision 73442

Just some spelling fixes, no real changes. Closes #15001.

2013-01-27 09:41 JS, revision 73441

Prevent assertions because of zero image size

2013-01-24 10:24 JS, revision 73438

Updated the Latvian translation (Janis Eisaks)

2013-01-24 10:23 JS, revision 73437

Updated the Latvian translation (Janis Eisaks)

2013-01-23 12:44 VZ, revision 73436

Initialize all wxHTTPStream members in ctor. Don't leave m_httpsize and m_read_bytes uninitialized. Closes #14993.

2013-01-23 12:44 VZ, revision 73435

No real changes, just fix some typos in comments in wxMSW code. Closes #14994.

2013-01-23 11:15 JJ, revision 73434

let wxCheckListBox get the properties of wxCheckListBoxBase (was wxListBox) for wxGTK1, just like the other versions of wx

2013-01-22 08:18 JJ, revision 73429

Update openVMS compile support

2013-01-21 17:37 VZ, revision 73428

Fix background drawing in EVT_ERASE_BACKGROUND handler in erase sample. Clear the DC before moving its offset to ensure that it's cleared entirely and also draw the background using the virtual, not client, size. See #14917.

2013-01-21 17:37 VZ, revision 73427

Don't include wxUniversal configurations in MSVC project files. wxUniversal is practically not used under MSW and just confuses people.

2013-01-21 12:28 VZ, revision 73426

Fix a crash in wxExecute() in wxMSW too. Don't dereference potentially NULL wxProcess pointer unconditionally. This should have been together with the changes of r73425, see #14931.

2013-01-21 12:26 VZ, revision 73425

Fix crash in wxExecute() introduced by r73406. Don't dereference potentially NULL wxProcess pointer. See #14931.

2013-01-21 12:19 VZ, revision 73424

No changes, just remove unused variable in wxCarbon code. Closes #14989.

2013-01-21 12:19 VZ, revision 73423

Add wxAUI_TB_PLAIN_BACKGROUND wxAuiToolBar style. This style allows to use a plain, solid colour, background instead of the default gradient one. Closes #10585.

2013-01-21 12:18 VZ, revision 73422

Add wxCheckListBox::GetCheckedItems() helper. This method is similar to wxListBox::GetSelections() and allows to retrieve all checked items at once. Closes #14969.

2013-01-21 12:18 VZ, revision 73421

Derive wxCheckListBox from wxCheckListBoxBase in wxGTK. This ensures that any methods defined in wxCheckListBoxBase will be available in wxGTK wxCheckListBox too. See #14969.

2013-01-21 12:11 JJ, revision 73420

OpenVMS configuration update

2013-01-21 12:04 JJ, revision 73419

OpenVMS compile support for wxSPLASH and sample

2013-01-21 09:26 SC, revision 73418

updated for 10.5 minimum

2013-01-20 23:39 VZ, revision 73415

A fix for VC6 compilation: define missing priority constants. {ABOVE,BELOW}_NORMAL_PRIORITY_CLASS aren ot defined in VC6 headers, see http://buildbot.tt-solutions.com/wx/builders/XPSP2%20VC6%20wxMSW%20trunk%20release/builds/2943/steps/compile/logs/stdio so define them ourselves.

2013-01-20 22:07 SC, revision 73414

workaround for crash, see #14906

2013-01-20 20:28 SJL, revision 73413

Pass wxWANTS_CHARS to the wxRichTextCtrl constructor in the unit tests. Fixes test failures caused by the return key being used for dialog navigation.

2013-01-20 13:53 VZ, revision 73412

Improve appearance of text with background colour in wxHTML. Use wxHTML_CLR_TRANSPARENT_BACKGROUND instead of wxHTML_CLR_BACKGROUND for the bgcolor attribute of the body tag to prevent clipping of the text cells by the next cell with opaque background. Closes #14986.

2013-01-20 13:45 VZ, revision 73411

Fix wxKeyEvent::GetPosition() after the changes of r72207. Now that the position of wxKeyEvent is initialized on demand, don't use m_x and m_y fields directly but always use GetX() and GetY(). Also improve GetPosition() documentation slightly and mention only the new version, taking wxCoord, in it as the old one, taking long, is provided for compatiblity only. Closes #14987.

2013-01-20 07:38 PC, revision 73410

no real changes, just move wxMask::GetBitmap() to wxMask section

2013-01-20 07:28 PC, revision 73409

add wxMask::GetBitmap(), closes #9381

2013-01-20 04:24 PC, revision 73408

silence GCC warning "base class ‘class wxEvtHandler’ should be explicitly initialized in the copy constructor"

2013-01-20 04:08 PC, revision 73407

sizeof(char) is 1. By definition.

2013-01-20 03:10 VZ, revision 73406

Add wxProcess::SetPriority() to allow setting the priority of child processes. This uses the same conventions as wxThread::SetPriority() but works on the entire process. Closes #14931.

2013-01-20 03:10 VZ, revision 73405

Rename WXTHREAD_XXX_PRIORITY yo wxPRIORITY_XXX. This will allow to reuse the same constants for the process priorities in an upcoming commit. See #14931.

2013-01-20 03:09 VZ, revision 73404

Fix appearance of multiline wxCheckBox with non-standard colours in wxMSW. Owner-drawn checkbox (which is used when wxCheckBox colour is changed) didn't center its label correctly and didn't right align it when using wxALIGN_RIGHT style in focused state. Closes #9628.

2013-01-20 03:09 VZ, revision 73403

Add copy constructor to wxValidator. It can be useful for implementing Clone() in the derived classes. Closes #2146.

2013-01-20 03:09 VZ, revision 73402

Fix wxDateTime::GetWeekOfYear() for the days in the last week of the year. The code took into account the possibility that the days in the beginning of the year might belong to the last week of the previous year but not that the days at the end of the year could belong to the first week of the next year. Closes #14973.

2013-01-20 03:09 VZ, revision 73401

Fix wxSearchCtrl::HasFocus() in the generic version. Override GetMainWindowOfCompositeControl() in the windows composing the generic wxSearchCtrl to ensure that HasFocus() correctly returns true for the entire control when any of them has focus. Add a trivial unit test to check that this really works and facilitate adding more tests for this class later. Closes #14970.

2013-01-20 03:09 VZ, revision 73400

Fix changing labels of menu items with bitmaps in wxMSW. We need to call SetMenuItemInfo() from wxMenuItem::SetItemLabel() even for the owner-drawn items, otherwise their width is not recomputed. Closes #3897.

2013-01-20 03:09 VZ, revision 73399

Fix bug with showing hidden wxGrid lines when resizing an adjacent one. Don't blindly assume that the previous line is big enough if the current one isn't in wxGrid::PosToEdgeOfLine() (this assumption is wrong even without taking hiding into account...). Closes #14947.

2013-01-20 03:09 VZ, revision 73398

Make "More windows..." menu item in MDI "Window" menu work in wxMSW. Don't interpret the commands from this menu item as child window selection. Closes #3295.

2013-01-20 03:09 VZ, revision 73397

Put "#if wxUSE_TOOLBAR" around a variable only used in this case. No real changes. Closes #14957.

2013-01-20 03:09 VZ, revision 73396

Fix the list markers in wxGridCellEditor::EndEdit() documentation. Doxygen allows to use "-", "+" or "*" for the list items but not "#". Closes #14955.

2013-01-20 03:09 VZ, revision 73395

64 bit compilation fix for wxTextCtrl in wxMSW. Use DWORD_PTR instead of DWORD for a pointer. This was already done for another occurrence of the same cast in r58564 but somehow this one fell through the cracks. Close #14949.

2013-01-20 03:09 VZ, revision 73394

Fix setting initial wxSpinCtrl value outside 0..100 range in wxMSW. Set the range before setting the initial value when creating wxSpinCtrl, as otherwise the value was wrongly limited to the default 0..100 range instead of the one really specified. Closes #14894.

2013-01-20 03:09 VZ, revision 73393

Really fix the background colour used for the cells in wxHTML tables. Respect "bgcolor" attributes of <td> tags, they were ignored since the changes of r72589 (see #14443). Closes #14909.

2013-01-20 03:09 VZ, revision 73392

Don't use margins for wxGrid in place text editor controls. The default non-zero (at least under MSW) margins don't look well inside wxGrid, don't waste space on them. See #14958.

2013-01-20 03:08 VZ, revision 73391

Set margins on creation correctly for wxTE_RICH[2] wxTextCtrl in wxMSW. In spite of the MSDN documentation, EC_USEFONTINFO can't be used in lParam with rich edit controls, so pass it in wParam for them. Closes #14598.

2013-01-20 03:08 VZ, revision 73390

Set both left and right wxTextEntry margins in wxMSW. Use the horizontal margin argument of SetMargins() to set both left and right margins in wxMSW and not just the left one. See #14958.

2013-01-20 03:08 VZ, revision 73389

Fix bug with dragging non-draggable columns in wxMSW wxHeaderCtrl. Properly ignore HDN_BEGINDRAG events for the columns without wxCOL_REORDERABLE flag. This fixes dragging non-draggable columns in wxDataViewCtrl under MSW. Closes #14940.

2013-01-20 03:08 VZ, revision 73388

Fix some harmless but annoying warnings about casts in libtiff code. Avoid MSVC C4244 warnings due to implicit casts between 64 and 32 bit integers. This patch was also submitted to libtiff via http://bugzilla.maptools.org/show_bug.cgi?id=2427

2013-01-20 03:04 PC, revision 73387

draw monochrome source directly onto destination when it is also monochrome

2013-01-20 02:46 PC, revision 73386

make some reference handling a little more direct and less obscure

2013-01-19 19:26 JS, revision 73385

When selecting the bitmap bullet style, the name can now be edited since it could be used for providing the bullet image.

2013-01-19 19:25 JS, revision 73384

When selecting the bitmap bullet style, the name can now be edited since it could be used for providing the bullet image.

2013-01-18 18:27 PC, revision 73382

use const arrays for wxDC array parameters, closes #10712

2013-01-17 10:57 SJL, revision 73381

When handling accelerators in wxWebView make sure that we do not block right-alt which can be mapped to alt + ctrl. Fixes #14974.

2013-01-16 16:39 JS, revision 73378

Fix wrong value

2013-01-16 10:35 JS, revision 73377

Better compatibility with old files when creating an image cache

2013-01-15 06:55 PC, revision 73373

add support for GtkFontChooserDialog, new in GTK 3.2

2013-01-14 17:19 JS, revision 73372

Added Set/GetFloatingLayoutMode to switch off time-consuming floating object layout if required

2013-01-14 17:08 RD, revision 73371

enum wxWebViewBackend has been removed.

2013-01-13 20:22 SJL, revision 73369

Allow registering of custom wxWebView backends. Add wxWebViewFactory as an abstract factory to provide backend creation. Remove old factory methods using wxWebViewBackend enum in favour of the new wxString based method.

2013-01-13 16:28 VZ, revision 73368

Fix wrong return value in the changes of r73365. Really fix menus under Unity. Closes #14961.

2013-01-12 13:03 VZ, revision 73367

Fix compilation without PCH after r73365. Need to explicitly include wx/dialog.h to use wxDynamicCast to wxDialog. See #14961.

2013-01-12 04:09 VZ, revision 73366

Allow hiding/showing already hidden/shown wxGrid rows/columns. Don't assert if an already hidden/shown row/column is being hidden/shown again but simply don't do anything. This is more convenient because the code outside wxGrid has no efficient way to only hide a row/column if it's currently shown. Closes #14960.

2013-01-12 04:09 VZ, revision 73365

Relax Unity menu interdiction hack to allow popup menus in modal dialogs. The changes of r73007 fixed the problem with menus remaining active while a modal dialog was shown (see #14823) but also disabled processing of the events from any popup menus shown by the dialog itself. Reallow the latter while still forbidding the former now by checking whether the window associated with the menu is the dialog itself. Closes #14961.

2013-01-11 05:28 PC, revision 73364

Always run the frame sizing code when a menubar is set This is needed to properly set the size of a new menubar which is replacing one with the same height, while also allowing the fixes from r67149 and r66344 to work.

2013-01-11 04:36 PC, revision 73363

re-apply r67149 to fix high CPU usage on Ubuntu r67149 was removed as part of r67929, but is still needed on Ubuntu when using their "appmenu" (global menubar), because the menubar height is always zero in that case. The problem can be seen with Audacity.

2013-01-10 18:59 VZ, revision 73362

Fix a typo in wxKeyEvent::GetKeyCode() code example. Add missing object to the method call.

2013-01-10 08:17 PC, revision 73361

call GTKApplyWidgetStyle() from PostCreation() instead of GTKHandleRealized() it's a better place to catch font or color changes made before creation

2013-01-10 07:53 PC, revision 73360

allow setting window font and bg/fg color before creation wxMSW and wxOSX don't have a problem with it, so neither should wxGTK

2013-01-10 07:28 PC, revision 73359

simplify code setting backing pixmap

2013-01-09 21:27 SJL, revision 73358

Add HTTP status code definitions to attempt to fix VC6 compilation following #73325.

2013-01-09 18:40 PC, revision 73357

backport of r73276, fix for libdbusmenu warnings, see #14292

2013-01-09 04:27 PC, revision 73356

don't use deprecated wxMouseState functions

2013-01-08 11:25 JS, revision 73355

Detect when the window is still captured when dragging was aborted for some reason

2013-01-08 11:24 JS, revision 73354

Detect when the window is still captured when dragging was aborted for some reason

2013-01-08 11:23 JS, revision 73353

Style collection fixes

2013-01-08 11:20 JS, revision 73352

Fill in mouse button and key state when generating mouse event for auto scrolling

2013-01-08 11:20 JS, revision 73351

Fill in mouse button and key state when generating mouse event for auto scrolling

2013-01-05 06:08 PC, revision 73346

define wxComboBox rtti stuff even when wxUSE_COMBOCTRL==0

2013-01-04 23:14 VZ, revision 73345

Attempt to fix MSVC6 compilation after the previous commit. Include <shlobj.h> before our wx/msw/missing.h, otherwise many things were redefined.

2013-01-04 21:13 VZ, revision 73344

Including wx/msw/missing.h to define INVALID_FILE_ATTRIBUTES for MSVC6. This header is also needed in filename.cpp (see r73317 for a previous commit fixing the same problem in filefn.cpp).

2013-01-03 21:47 VZ, revision 73343

Re-lay out the grid sample window after auto-sizing the grid. Changing the size of the grid without updating the sizer resulted in overlapping windows and a mess on the display. Closes #14948.

2013-01-03 17:43 PC, revision 73339

gtk_assert_dialog_set_message() was unintentionally excluded in r73163

2013-01-03 16:19 JJ, revision 73338

gtk_assert_dialog_set_message is only defined if wxUSE_STACKWALKER is set

2013-01-03 07:09 PC, revision 73337

use gtk_file_chooser_set_show_hidden() now that GTK 2.6 is required

2013-01-03 06:09 PC, revision 73334

remove ancient SetModal(), it was deprecated long ago and is not present in wxMSW or wxOSX

2013-01-02 19:11 PC, revision 73333

look for backtrace() in -lexecinfo, fixes #14942

2013-01-02 17:41 VZ, revision 73332

Chinese translations update from William Jiang.

2012-12-31 14:40 VZ, revision 73327

Slight improvements to wxWebView::EnableContextMenu() documentation. Explain that the menu is enabled by default so the main use of this method is to disable it. Also add "@since" tags for the new methods. And mention this in the changelog. See #14789.

2012-12-31 14:21 SJL, revision 73326

Add context menu enabling and disabling to wxWebView, all backends supported. Closes #14789.

2012-12-30 21:19 SJL, revision 73325

Add handling of http errors to wxWebViewIE. Tidy up existing large case statement. Closes #14877.

2012-12-30 00:47 VZ, revision 73324

Slovenian translations update from Martin Srebotnjak.

2012-12-29 22:53 VZ, revision 73320

Fix wxLocale::GetInfo() in C locale under Windows. Don't use LOCALE_USER_DEFAULT when the locale hadn't been changed because the user default locale often (and maybe even always) is different from "C" locale used by the CRT resulting in mismatch between the conventions used by wxDateTime::Format(), which uses the CRT locale, and wxDateTime::Parse(), which uses Windows format. Instead use the hard-coded values corresponding to the "C" locale to ensure we use the same values as the CRT in this case. This also reverts r73244 which was applies to make the unit tests pass before this fix as it's not necessary any longer. Closes #14918.

2012-12-29 22:53 VZ, revision 73319

Ensure that scrollbars are shown in scrolled popup in the popup sample. Don't call SetScrollbars(), this is overridden by sizer logic later. Instead, add a sufficiently big window to the popup and make fix the size of the popup itself to be smaller to ensure that the scrollbars do show. Closes #14900.

2012-12-29 22:53 VZ, revision 73318

No changes, just fix unused variable in wxUSE_STATBMP==0 build. Move the condition used only for wxStaticBitmap positioning inside "#if wxUSE_STATBMP" section. Closes #14929.

2012-12-29 22:53 VZ, revision 73317

Including wx/msw/missing.h to define INVALID_FILE_ATTRIBUTES for MSVC6. This should fix the remaining problem in VC6 build.

2012-12-29 21:15 VZ, revision 73315

No changes, just remove unneeded variable initialization. Don't initialize htmlWindowBorder in wxHtmlHelpWindow::Create() just to overwrite it with another value on the next line. Closes #14933.

2012-12-29 21:15 VZ, revision 73314

Spelling fixes in comments in wxOSX. No real changes. Closes #14932.

2012-12-29 08:07 PC, revision 73311

reference count the GtkMenuItem in wxMenuItem as well

2012-12-29 07:29 PC, revision 73310

make GTKNeedsParent() private

2012-12-29 07:21 PC, revision 73309

m_menubar does not need to be public for hildon, it's the same as m_widget in that case

2012-12-29 03:32 RD, revision 73300

Fix missing or broken interface items for Phoenix

2012-12-28 19:38 PC, revision 73298

use wxDEPRECATED_CONSTRUCTOR() instead of inline

2012-12-28 18:04 PC, revision 73297

remove unused variable assignment, closes #14928

2012-12-28 17:56 PC, revision 73296

Use gtk_menu_item_remove_submenu() with GTK2 because gtk_menu_item_set_submenu() with NULL menu argument does not work before GTK 2.12 and there is no need to avoid calling it on later GTK2 versions

2012-12-28 17:03 VZ, revision 73295

Suppress warning about _set_se_translator() for VC++ 10 and 11 too. Previously we disabled this warning for VC versions up to 9 but the warning still seems to be as harmless as before for the newer versions too. Closes #13607.

2012-12-28 17:03 VZ, revision 73294

Don't assume that wxTE_RICH(2) implies wxTE_MULTILINE for wxTextCtrl in wxOSX. Under MSW single line text controls can still use these styles, so don't assume that the control should be made multi-line just because one of them is specified. This fixes the appearance of the in-place text control in wxGridCellTextEditor which is created with wxTE_RICH2 style to work around some wxMSW problem. Closes #11681.

2012-12-28 17:03 VZ, revision 73293

Process HDN_TRACK in wxMSW wxHeaderCtrl just in case. This message is not supposed to be sent but apparently some buggy comctl32.dll versions do send it instead of HDN_ITEMCHANGING, so handle it too. Closes #13506.

2012-12-28 17:03 VZ, revision 73292

Don't call wxTextMeasure::BeginMeasuring() when using non-native wxDC. This is useless as we don't use wxTextMeasure in this case but just forward to the wxDC itself, and also results in an assert in wxMSW wxTextMeasure implementation. Closes #14916.

2012-12-28 17:03 VZ, revision 73291

Parse files from include/wx/*.h when making wxMSW tags. Fix missing wxTextMeasure &c in wxMSW tags.

2012-12-28 17:03 VZ, revision 73290

Allow building wxGTK under Windows with MSVC. Replace a few more __WXMSW__ tests with __WINDOWS__ ones and modify bakefiles to allow specifying the toolkit to be built in wxMSW makefiles. Closes #13902.

2012-12-28 17:02 VZ, revision 73289

Remove connection of MyDllApp::OnIdle() handler in the dll sample. This method didn't really exist, the code only worked because it connected to wxApp::OnIdle() which exists in wxMSW but not the other ports. Simply remove the apparently unnecessary call. See #13902.

2012-12-28 17:02 VZ, revision 73288

No changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build. Move the declaration of a variable only used for tooltip setting inside "#if wxUSE_TOOLTIPS" test. Closes #14927.

2012-12-28 17:02 VZ, revision 73287

Use a single taskbar icon for all notifications in wxMSW. Allocating a new icon for every notification could result in showing many identical icons in the taskbar notification area if several notification messages were generated which looked like a bug to the user. It was also inconsistent with the behaviour in the case when UseTaskBarIcon() was called. Always behave as in the latter case now, i.e. any subsequent notification replaces the previous one instead of being shown in addition to it.

2012-12-28 17:01 VZ, revision 73286

Remove extra "#" operator in wxFAIL_COND_MSG macro. The argument of this macro is already a string, so we don't need to stringify it again. This fixes VC6 build, unlike all the other compilers this one didn't apply "#" to an argument which was already a quoted string correctly.

2012-12-28 14:15 SC, revision 73285

silence unused var warning

2012-12-28 02:50 PC, revision 73284

non-pch build fix

2012-12-28 01:44 VZ, revision 73283

Fix regression with wxHTML table elements background handling. Wrong background was used for the text inside HTML tables since r72589, fix this by setting the correct background before processing the table elements and restoring it after doing it. Closes #14909.

2012-12-28 01:44 VZ, revision 73282

Ensure that client display rectangle is always less than its total area. Under Unix we could return client display rectangle that was bigger than the entire display size as it corresponded to the total screen size when _NET_WORKAREA was not supported or was not correctly implemented by the WM. Fix this by explicitly intersecting the client rect with the total one. Closes #14419.

2012-12-28 01:44 VZ, revision 73281

Document wxListBox and wxChoice as inheriting from wxItemContainer. Due to an apparent Doxygen bug, methods inherited from wxItemContainer via wxControlWithItems didn't appear in the documentation, so work around this by using wxItemContainer as a direct base class. Closes #14882.

2012-12-28 01:44 VZ, revision 73280

Add wxGCC_WARNING_{SUPPRESS,RESTORE} macros and use them for -Wfloat-equal. Suppress the warnings about comparing floating point values for equality in wxWidgets headers when the user code is compiled with -Wfloat-equal (at least when using g++ 4.6 or later). Closes #14895.

2012-12-28 01:43 VZ, revision 73279

No changes, just don't initialize the variable twice. Remove the inactive code probably copy-and-pasted from somewhere else. Closes #14924.

2012-12-28 01:43 VZ, revision 73278

No changes, just remove an unused variable. Closes #14923.

2012-12-27 06:59 PC, revision 73277

Use proper reference counting on GtkMenuItem that we keep a pointer to Fixes crash that occurs with Ubuntu libdbusmenu See #14292

2012-12-27 06:28 PC, revision 73276

Better fix for avoiding warnings from Ubuntu libdbusmenu Previous workaround from r71648, modified in r72560, broke MDI child menu handling See #14292

2012-12-26 18:47 PC, revision 73271

remove unused private member m_ordered from wxDataViewVirtualListModel

2012-12-26 18:32 PC, revision 73270

fix consruction of string thanks to clang for finding this one

2012-12-23 20:28 SC, revision 73269

removing 10.5 version checks

2012-12-23 20:04 SJL, revision 73268

Fix webview compilation for the mingw-w64 compiler.

2012-12-23 19:44 SC, revision 73267

removing outdated code

2012-12-23 19:42 SC, revision 73266

making sure we are using correct implementation for shades

2012-12-23 16:46 SC, revision 73265

adding isFlipped to userpane

2012-12-23 12:50 SC, revision 73264

try support for native isFlipped usage and coalesce update rects into bounding box by default

2012-12-23 12:33 VZ, revision 73263

Fix wrong tab order in wxAuiNotebook after dragging. Update the tab index correctly to keep tabs list and windows list in sync. Closes #10848.

2012-12-22 22:31 JS, revision 73258

Fix for bug #14915 - wxRichTextCtrl: Not able to move up to empty first line

2012-12-22 13:51 VZ, revision 73257

Sort wxPAPER_XXX constants alphabetically in the documentation. This makes it much simpler to find the one you want. See #14919.

2012-12-22 09:00 RD, revision 73246

Various interface fixes for Phoenix

2012-12-22 08:59 RD, revision 73245

Interface fixes for wxGrid classes

2012-12-22 03:35 VZ, revision 73244

Add a temporary workaround to make the tests pass. Call SetCLocale() on tests startup to avoid problems with wxDateTime parsing that happen when the user locale is different from "C" one under Windows. See #14918.

2012-12-22 03:34 VZ, revision 73243

Invalidate wxGrid best size when its associated table changes. The number of grid cells changes too, so the old best size can't be used any more. Closes #14761.

2012-12-22 03:34 VZ, revision 73242

Fix libtiff compilation with VC6 after upgrade to 4.0.3. VC6 headers don't define INVALID_SET_FILE_POINTER constant so do it ourselves if necessary.

2012-12-22 03:34 VZ, revision 73241

No changes, just improve wxScrolled::EnableScrolling() documentation. Explain that, in spite of its name, this function doesn't disable scrolling when called with false argument but just changes the mechanism used to implement it.

2012-12-22 03:33 VZ, revision 73240

Remove unnecessary variable assignment from wxBoxSizer::RecalcSizes(). The "delta" variable was assigned a value that was never used afterwards. Closes #14908.

2012-12-22 03:33 VZ, revision 73239

Add wxListCtrl::EnableAlternateRowColours() and SetAlternateRowColour(). Add methods to simply enable alternative row background colours in wxListCtrl. Closes #14618.

2012-12-22 03:33 VZ, revision 73238

Don't use "Cancel" button in the about dialog of the listctrl sample. No real changes, just remove the unnecessary button. See #14618.

2012-12-21 06:45 PC, revision 73232

revert r73185, it should no longer be needed after r73231

2012-12-20 19:46 PC, revision 73231

Use client size determined by size-allocate when possible Our client size calculation can be wrong for reasons beyond our control, notably on Ubuntu 12.04 with overlay scrollbars where the GtkScrolledWindow "scrollbar-spacing" is wrong. By using the true size from size-allocate when it becomes available, we can recover from an earlier incorrect client size calculation. See #14871

2012-12-20 14:00 SC, revision 73230

benefit from 10.5+ call HIShapeUnionWithRect

2012-12-19 20:27 RD, revision 73217

Add accessors for some of the data members in wxXmlResourceHandler

2012-12-19 16:41 SC, revision 73210

activating DrawRectangle optimization

2012-12-19 16:31 SC, revision 73209

fixing typo

2012-12-19 16:30 SC, revision 73208

HIThemeBrushCreateCGColor seems to have become very CPU-expensive, cache the results for better performance

2012-12-19 10:58 SC, revision 73207

making Xcode builds work against against libtiff, copied over from a console build

2012-12-18 18:59 SC, revision 73199

setting offsets for window and client dcs when not in a paint event, see #14904

2012-12-16 08:14 PC, revision 73196

Fix for toolbars and menus not being disabled on Ubuntu Ubuntu overlay scrollbar changes the GtkWindowGroup for its toplevel, which is disastrous for modal windows. Put in a hack to detect and undo this. Fixes #14855

2012-12-14 21:04 SC, revision 73192

support SDK < 10.6, fixes #14902

2012-12-14 17:21 SC, revision 73191

supporting private types in DnD on osx_cocoa, fixes #14884

2012-12-14 13:29 VZ, revision 73190

Fix libtiff compilation with MinGW. At least some versions of MinGW don't define 64 bit integer types resulting in errors when they're used in libtiff code, so explicitly include basetyps.h to make sure these types are defined. Closes #14897.

2012-12-14 11:42 SC, revision 73189

avoid double up events for static text, fixes #14902

2012-12-14 07:29 PC, revision 73186

compute scrollbar spacing the same way GtkScrolledWindow does it

2012-12-14 07:25 PC, revision 73185

Get DC size from GDK window if possible, client size can unfortunately be wrong This should fix wxDC::Clear() not clearing the whole window on Ubuntu 12.04 with overlay scrollbars see #14871

2012-12-14 03:10 RD, revision 73184

Patch from niki@vintech.bg allowing builds for Python 2.5 (using MSVC 7.1) to work again.

2012-12-13 05:41 PC, revision 73178

decrease number of skipped frames in assert dialog backtrace, 7 is not the minimum, closes #14690

2012-12-12 14:52 VZ, revision 73167

Brazilian Portuguese translations update from Felipe.

2012-12-11 07:43 PC, revision 73165

use correct signature for callback

2012-12-11 07:37 PC, revision 73164

make local functions static

2012-12-11 07:31 PC, revision 73163

add wrappers to avoid compiling code which will never be used

2012-12-11 02:32 VZ, revision 73162

Handle IN_MOVE inotify events better. Set the new path correctly for moved or renamed files. Closes #14889.

2012-12-11 02:32 VZ, revision 73161

Initialize wxRibbonBar::m_help_button_hovered. This variable was never initialized, do it now. See #14868.

2012-12-10 15:41 VZ, revision 73160

Use wxSetWorkingDirectory() instead of chdir(). This fixes compilation of wxGTK under Windows after the changes of r72779 and r72780, where _wchdir() would need to be used but we don't currently have a wxChdir() CRT function wrapper so use wxSetWorkingDirectory() instead. Closes #14886.

2012-12-10 15:30 VZ, revision 73159

Readded tiffconf.h removed by libtiff 4.0.3 merge. This file is needed by Windows builds. Should have been part of r73157, see #12301.

2012-12-10 15:27 VZ, revision 73158

Bakefile updates for libtiff 4.0.3 merge. This should have been part of r73157,

2012-12-10 15:01 VZ, revision 73157

Merged libtiff 4.0.3 changes into the trunk. This should help with making libtiff work better in 64 bit builds as libtiff 4 is supposed to support them much better. Closes #12301.

2012-12-08 22:04 RD, revision 73155

typo fix

2012-12-08 14:47 VZ, revision 73151

Document wxXmlResourceHandler::GetFloat(). Closes #14879.

2012-12-08 14:27 VZ, revision 73150

Also account for EOL chars correctly in wxStyledTextCtrl::GetLineLength(). Make GetLineLength() consistent with GetLineText() after the changes of r73140. Closes #13646.

2012-12-08 14:22 VZ, revision 73149

Document wxWindow::Get{Min,Max}{Width,Height}(). These methods were not documented and somehow inherited the description of the first method of the group they were in, which didn't make any sense for them.

2012-12-08 01:37 VZ, revision 73148

Don't test for key code being valid unnecessarily. The key code was already found to be valid just above, so suppress Coverity warning about an always true test by not checking it again. This also makes the code more clear.

2012-12-08 01:37 VZ, revision 73147

Remove unnecessary default from a switch statement. Don't check for impossible enum element value, it's better to not have the default clause at all to get a warning from g++ if this enum ever changes later. And for now the presence of default results in a warning from Coverity about unreachable code.

2012-12-08 01:37 VZ, revision 73146

Fix copy/paste error in UnsetConstraints(). "top" was mistakenly used in the code dealing with "left" constraint. Thanks to Coverity for finding this one.

2012-12-08 01:37 VZ, revision 73145

Check gtk_tree_model_iter_nth_child() return value in wxChoice code. This is probably harmless but check the return value just to suppress Coverity warning about not doing it.

2012-12-08 01:37 VZ, revision 73144

Don't use values returned by lstat() if it failed in wxFileCtrl code. The buffer may be uninitialized or at least not contain the correct data if lstat() failed, don't use it in this case.

2012-12-08 01:37 VZ, revision 73143

Check wxDir::GetNext() return value in wxFindNextFile(). This doesn't really change anything as the returned value would be empty anyhow in case of an error, but suppresses Coverity warning about not checking the return value of a function whose return value is checked in other places.

2012-12-08 01:37 VZ, revision 73142

Add a wxHtmlTag helper parsing both absolute values and percents. This allows to avoid some code duplication in different handlers. Closes #14868.

2012-12-08 01:37 VZ, revision 73141

Don't unnecessarily NUL-terminate wxCharBuffer contents. wxCharBuffer already initializes the last byte of the buffer it allocates to 0 so there is no need to do it explicitly. Also don't allocate an extra byte, wxCharBuffer already adds one to the length passed to it for the trailing NUL. See #13885.

2012-12-08 01:37 VZ, revision 73140

Strip EOL characters from wxStyledTextCtrl::GetLineText() return value. For consistency with all the other wxTextCtrl-like classes, the value returned by this method must not include line terminator characters (like '\n'). Notice that Scintilla-specific GetLine() does still include them, for consistency with the Scintilla API itself. Closes #13646.

2012-12-08 01:37 VZ, revision 73139

Catch attempts to create a window with itself as parent. This doesn't happen often but when it does, the results are catastrophic and not always easy to debug, so try catch this as soon as possible.

2012-12-08 01:37 VZ, revision 73138

Remove check of eof() return value validity. It's useless and resulted in a warning from Coverity as it correctly determined that this code could never be executed under Unix.

2012-12-06 06:33 PC, revision 73136

disable Ubuntu "overlay scrollbar", see #14871

2012-12-05 18:38 PC, revision 73134

fix tests for valid pen and brush, broken in r73099

2012-12-05 17:23 JS, revision 73133

wxRTC text box layout fixes

2012-12-04 13:28 VZ, revision 73127

Compilation fir for VC6 after r73124. VC6 doesn't have __debugbreak().

2012-12-04 01:39 VZ, revision 73126

Explicitly set margins for single line text controls in wxMSW. The margin used by them was inconsistent and depended on the initial size the control was created with for some reason. Call EM_SETMARGINS explicitly to ensure consistent appearance in all cases. Closes #2438.

2012-12-04 01:39 VZ, revision 73125

Add missing critical section locking before accessing shared variable. WinThreadStart() in wxMSW wxThread implementation accessed the variable containing the thread state without locking which was wrong, do it only inside the critical section. Notice that there is still an unavoidable race condition between exiting the thread and starting it, so it's not clear at all if we should try to avoid calling DoThreadStart() here. Closes #14865.

2012-12-04 01:39 VZ, revision 73124

Open debugger at the location of failing assert, if possible. Break into the debugger in the function containing the assert that failed instead of inside wxWidgets assert handler which is several (~8) levels below the last line of the user code. This is much more useful in practice and also less confusing. Currently this only works for MSVC as the other compilers don't have any __debugbreak intrinsice equivalent. Also update the except sample to test wxTrap() directly too. Closes #11184.

2012-12-04 00:56 VZ, revision 73123

Tag complete libtiff 4.0.3 on vendor branch.

2012-12-04 00:55 VZ, revision 73122

Add directory somehow omitted from libtiff 4.0.3 import. We don't really need this one but add it to avoid unnecessary differences with the upstream sources.

2012-12-03 20:09 VZ, revision 73113

Tag libtiff 4.0.3 on vendor branch.

2012-12-03 19:22 VZ, revision 73112

Update vendor libtiff sources to version 4.0.3. See #12301.

2012-12-03 19:14 PC, revision 73111

Remove SashHitTest() "tolerance" parameter Mouse events (LeftDown in particular) will only occur if the mouse is over the sash, so it does not make sense to have a fudge factor

2012-12-03 19:04 PC, revision 73110

Avoid setting sash resize cursor when mouse is still over border of second pane with wxGTK This made it possible to have the resize cursor, but not be able to drag the sash, and happened because wxGTK sends a leave event when mouse leaves client area instead of outer border of window. Setting the useless SashHitTest() "tolerance" parameter to zero avoids the problem. Fixes #1397

2012-12-03 18:37 PC, revision 73109

Fix SashHitTest() returning true one pixel past the sash If the sash is n pixels wide, the last position over the sash is start + n - 1, not start + n

2012-12-03 18:05 VZ, revision 73108

Exclude files in vendor branches from svn hook checks. These files correspond to upstream sources and shouldn't be subject to our checks.

2012-12-03 01:34 VZ, revision 73107

wxGTK linking fix after r73102. Remove SendSelectionChangedEvent() declaration, it's now in the base class.

2012-12-03 00:50 VZ, revision 73106

Correct lookup of Explorer-specific file association information. The code added in r52154 never worked because it was looking for the Progid value in a wrong place, look for it under UserChoice subkey where it really is. Also add a way to look up the command to open files with the given extension to the exec sample. Closes #12302.

2012-12-03 00:50 VZ, revision 73105

No changes, just reorganize the menu slightly in the exec sample. Move all file association related commands under "File" menu from the "Exec" one, having them there makes more sense and "Exec" menu is already quite big.

2012-12-03 00:49 VZ, revision 73104

Allow specifying -1 as font size to mean "default" in wxMSW. This has never been officially documented but used to work in 2.8 and still works in wxGTK, so make it works in wxMSW too for consistency. Closes #12541.

2012-12-03 00:49 VZ, revision 73103

Make wxChoice and wxComboBox behaviour same as in native controls in wxMSW. Keep the item selected from the drop down using keyboard when switching away from the control by pressing TAB: although this generates CBN_SELENDCANCEL notification, the selection is actually kept by the native controls in this case, so don't reset it ourselves -- even though it makes sense, it makes wx applications behave differently from the native ones.

2012-12-03 00:48 VZ, revision 73102

Add wxControlWithItems::SendSelectionChangedEvent() helper. Reuse the same event generation code for wxChoice in wxMSW, wxGTK and wxOSX and also wxComboBox in wxMSW and wxGTK instead of duplicating it (incompletely and so partially incorrectly in wxOSX case). This is just a refactoring so no changes in behaviour.

2012-12-03 00:48 VZ, revision 73101

Avoid using "do { ... } while ( wxFalse )" pseudo-loop. This loop can't be optimized away by the compiler because wxFalse is an extern variable which can't be known to be always false. Additionally, this creates many false positives from Coverity as it assumes that the loop can be executed more than once. Define wxSTATEMENT_MACRO_BEGIN/END macros abstracting the exact solution used and replace wxFalse with "(void)0, 0" for now as this seems to placate MSVC (which warns about using a bare "0" as a condition) while still allowing the loop to be completely optimized away.

2012-12-02 21:24 VZ, revision 73100

Warn, don't assert, about unexpected inotify events. In practice we seem to be getting some unexpected inotify() events during heavy IO activity. This shouldn't happen but it does, so at least don't prevent the program from running by popping up the assertion dialog when it happens. Closes #14854.

2012-12-02 06:48 PC, revision 73099

simplify code so it always returns the same object

2012-12-02 06:11 PC, revision 73098

clean up wxCairoRenderer initialization mess Remove unused Unload(), wxCairoCleanUp(), m_loaded and gCairoRenderer, and redundant Load() and EnsureIsLoaded(). Just call wxCairoInit() directly, and for GTK do nothing at all.

2012-12-02 04:35 PC, revision 73097

remove unnecessary include of wx/cairo.h

2012-12-02 03:28 PC, revision 73096

Remove nearly empty wx/cairo.h header It does so little now it's not worth having. And it should not have been a public header.

2012-12-02 00:06 PC, revision 73095

use stock colour/pen/brush objects in samples

2012-12-01 23:34 PC, revision 73092

use new pen/brush style names in samples

2012-12-01 23:14 PC, revision 73091

remove colour/pen/brush arguments which are the default in the samples

2012-12-01 19:30 PC, revision 73089

Fix path returned from wxFileDialog, closes #14786

2012-12-01 01:14 VZ, revision 73086

Use disabled colour for the dropdown arrow of disabled ribbon. Previously the normal colour was used for the arrow in MSW art provider even if the ribbon was disabled. Closes #14864.

2012-12-01 01:14 VZ, revision 73085

Miscellaneous spelling and typo fixes in the documentation. Closes #14866.

2012-12-01 01:14 VZ, revision 73084

Fix premature truncation of brief descriptions in Doxygen comments. Don't end the brief description at the first period if it's a period which is part of "i.e." or "e.g.": escape the space following it to prevent Doxygen from recognizing it as an end of sentence. See #14866.

2012-12-01 01:13 VZ, revision 73083

Fix documentation of wxGridBagSizer::Add() spacer overload. Describe the width and height parameters. See #14866.

2012-11-30 23:28 RD, revision 73070

Interface fixes for Phoenix

2012-11-30 19:21 PC, revision 73068

simplify code to return from the end of the function

2012-11-30 19:01 PC, revision 73067

indentation fixes

2012-11-30 07:56 PC, revision 73066

move wxGet{Colour,Font}FromUser() out of utilscmn.cpp so they don't have to be in every app that links statically

2012-11-29 23:03 VZ, revision 73065

Don't assert when stopping watching a just renamed file. (Almost) silently ignore renames of the files which we don't watch any longer instead of asserting if this happens. Closes #14863.

2012-11-29 23:02 VZ, revision 73064

Log invalid inotify() events without a valid watch descriptor. Apparently we can get events without any valid watch descriptor, even though this is not supposed to happen. At least warn about them. See #14854.

2012-11-29 23:02 VZ, revision 73063

Correct handling of IN_Q_OVERFLOW in wxFileSystemWatcher Linux code. Don't use wd field if it's -1 which can happen for IN_Q_OVERFLOW. See #14854.

2012-11-29 11:17 JS, revision 73060

Cope with the common case of utf-8 being specified in the .hhp file, and convert the book title.

2012-11-29 11:15 JS, revision 73059

Cope with the common case of utf-8 being specified in the .hhp file, and convert the book title.

2012-11-29 08:53 PC, revision 73058

declare wxQsort in vector.h as well as utils.h to work around circular header dependency mess

2012-11-29 08:00 JJ, revision 73057

Do not use GTKIsUsingGlobalMenu when compiled against gtk1.x

2012-11-29 00:56 VZ, revision 73056

Fix bezel used for bitmap buttons in wxOSX/Cocoa. Don't use NSRoundedBezelStyle for bitmap buttons as this bezel has fixed height. Instead, use NSRegularSquareBezelStyle which can used with buttons of any size and is the correct bezel to use for the buttons mostly identified by their icon according to Apple docs. Notice that we still use the standard bezel for the "small" (where "small" is arbitrarily defined by the hard coded 20 pixels height) icons as those are usually used in addition to the text and not replacing it and so it makes more sense to use the same bezel as for the normal buttons for them.

2012-11-29 00:56 VZ, revision 73055

Select the entire spin control contents when changing its value. Selecting the entire contents makes it more convenient for the user to enter the new value.

2012-11-29 00:55 VZ, revision 73054

Handle Shift-TAB correctly in wxOSX/Carbon wxComboBox. The navigation event direction should depend on Shift key state. See #3821.

2012-11-28 21:57 SC, revision 73053

adding some additional fixes for programmatic selection handling

2012-11-28 18:14 RD, revision 73052

Compilation fix.

2012-11-28 16:42 VZ, revision 73051

Compilation fixes after r73050. See #14862.

2012-11-28 15:18 VZ, revision 73050

Add "rect" paramerer to wxRichToolTip::ShowFor(). Allow to show the tooltip at the exact specified position instead of placing it automatically. Closes #14862.

2012-11-28 15:17 VZ, revision 73049

Add missing wxUSE_OLE checks to safearray.cpp. Fix compilation with wxUSE_OLE==0. Closes #14860.

2012-11-28 15:17 VZ, revision 73048

Compilation fix for wxDocManager after r73004. Define GetXXXVector() methods after all the classes are fully declared to ensure that static_cast<> inside wxList::AsVector() they use compiles with the OpenVMS compiler. See #14814.

2012-11-28 11:13 SC, revision 73047

support for inheriting non-standard attributes (explicit fonts instead of window variants), fixes #3583

2012-11-28 09:51 SC, revision 73046

supporting selection methods when not focused, closes #1480

2012-11-27 20:16 SC, revision 73045

simulating focus events, see #13495

2012-11-27 20:09 SC, revision 73044

support for simulating focus events since not all controls can be focused

2012-11-27 14:23 SC, revision 73043

emulating wx' focus-lost behavior

2012-11-27 14:22 SC, revision 73042

spell error fixed

2012-11-27 09:29 SC, revision 73041

workaround, see #14856

2012-11-27 08:42 JJ, revision 73040

Fix OpenVMS makefile

2012-11-27 02:19 RD, revision 73029

More interface fixes for Phoenix

2012-11-27 00:53 VZ, revision 73028

Compilation fix to docview sample after r73004. Don't use wxDocManager::GetDocumentsVector() with VC6 which doesn't have it.

2012-11-26 19:30 PC, revision 73027

disconnect "toggled" signal in dtor when style has wxALIGN_RIGHT

2012-11-26 18:53 PC, revision 73026

fix for GTK assert after r72696, a draw/expose_event signal may also be attached to parent

2012-11-26 16:51 VZ, revision 73025

Disable CallAfter() for MSVC 7 too, it can't compile this code. It was already disabled for VC6 but VC7 doesn't compile this code neither, so disable it for this compiler as well.

2012-11-26 16:50 VZ, revision 73024

Bracket vararg macro definition with wxHAS_VARIADIC_MACROS. This should fix tests compilation with VC6.

2012-11-26 14:50 VZ, revision 73023

Another Nepalese translations update.

2012-11-26 14:14 VZ, revision 73022

Fix wxALWAYS_SHOW_SB behaviour in wxGTK. Don't show the scrollbar always if it's not enabled at all, i.e. if the corresponding wxHSCROLL or wxVSCROLL style is not specified.

2012-11-26 14:14 VZ, revision 73021

Fix harmless warning about uninitialized variable in fswatcher sample. Just always initialize it.

2012-11-26 14:13 VZ, revision 73020

Fix warnings about using type attribute on forward declaration. This results in many, many warnings in OS X build.

2012-11-26 00:18 VZ, revision 73019

Fix wxGenericListCtrl scrolling by not processing the events twice. Scrolling wxGenericListCtrl was broken since r72939 because its OnScroll() event handler explicitly called wxScrollHelper::HandleOnScroll() which was also called by the base class ProcessEvent(). Arguably, wxScrollHelper::ProcessEvent() should be updated to allow handling events directly like this by not processing it again if the event wasn't skipped but for now just do skip the event and let the default handling take place which at least makes wxGenericListCtrl work correctly again. Closes #14852.

2012-11-26 00:17 VZ, revision 73018

Fix TAB navigation in wxGTK broken by r72663. Don't call SetCanFocus(true) for container windows with focusable children, this doesn't play well at all with wxGTK focus handling and in particular totally disabled TAB navigation.

2012-11-26 00:17 VZ, revision 73017

Restore generic GetPartialTextExtents() version use in wxGTK and wxMSW. Non-wxWindowDC-derived wxDC classes in wxGTK, such as wxGtkPrinterDCImpl, have to fall back on the generic implementation of GetPartialTextExtents() as Pango version can't be used with them. This fixes a crash due to using NULL Pango layout when printing wxRichTextCtrl in wxGTK. Closes #14847.

2012-11-26 00:17 VZ, revision 73016

Don't dereference NULL output pointer in wxTextMeasure. Check that pointers are non-NULL before assigning 0 to them.

2012-11-25 22:30 PC, revision 73015

backport r56474, "fix for assert failure when first paint event occurs before first idle event" closes #10085

2012-11-25 12:51 VZ, revision 73014

Handle UBUNTU_MENUPROXY=0 as "not using global menu". Although the correct way to disable the global menu bar under Ubuntu is to set UBUNTU_MENUPROXY to an empty string, many guides on the web advise setting it to "0", so handle this special case in wxApp::GTKIsUsingGlobalMenu() too.

2012-11-25 04:41 PC, revision 73013

avoid functions deprecated in GTK3

2012-11-25 03:49 PC, revision 73012

fix wxBitmapComboBox Gtk-CRITICAL assertion `GTK_IS_ENTRY (entry)' failed

2012-11-25 03:30 PC, revision 73011

non-pch build fix

2012-11-25 03:23 PC, revision 73010

Simplify GetDefaultAttributesFromGTKWidget() by passing the widget to use, rather than a pointer to a function to create the widget

2012-11-25 01:15 VZ, revision 73009

Use idle time menu updating when using global menu bar in wxGTK. We don't get wxEVT_MENU_OPEN events when using the global menu bar so don't rely on them for updating the menu items status and fall back to idle time menu updating if the global menu bar is used. This required changing wxUSE_IDLEMENUUPDATES tests from compile- to run-time ones. Closes #14302.

2012-11-25 01:15 VZ, revision 73008

Add wxApp::GTKIsUsingGlobalMenu() helper to wxGTK. This allows to check whether the global menu is being used and will be mostly useful for working around various bugs/problems uncovered by it. See #14302.

2012-11-25 01:15 VZ, revision 73007

Ignore menu events while modal dialogs are shown in wxGTK. Normally menus are disabled in this case but not when running under Ubuntu Unity, so add an explicit test for this to avoid breaking the program expected flow of control by allowing the user to show the same modal dialog twice, for example. This is not ideal, it would be better to visually disable the menu while the modal dialogs are shown but is better than nothing. Closes #14823.

2012-11-25 00:01 VZ, revision 73006

Blind compilation fix for VC6 after r73004. Define wxDocTemplateVector for VC6 too, it's used in docview.cpp. Also wrap too long lines.

2012-11-24 22:49 PC, revision 73005

silence GCC warning "enumeral and non-enumeral type in conditional expression"

2012-11-24 18:37 VZ, revision 73004

Add wxDocManager::Get{Views,Documents,Templates}Vector(). Add accessors returning more convenient wxVectors to supplement the existing ones giving access to internally used wxLists. Closes #14814.

2012-11-24 18:36 VZ, revision 73003

Add wxList::AsVector<>() helper. This can be useful in legacy code using wxList to progressively replace it with wxVector. See #14814.

2012-11-24 18:36 VZ, revision 73002

Don't include wx/utils.h from wx/vector.h. This will allow to include wx/vector.h from wx/list.h which is itself included from wx/utils.h by breaking this circular dependency. Don't use wxMin(), defined in wx/utils.h, in order to do this. See #14814.

2012-11-24 01:33 VZ, revision 73001

Use wxBufferedPaintDC for wxStyledTextCtrl drawing in wxGTK. GTK+ doesn't seem to use double buffering for Scintilla window for some reason, resulting in bad flicker when it's updated, e.g. when the user types into it. Force the use of double buffering at wxWidgets level by using wxBufferedPaintDC for painting it. This may be inefficient if GTK+ does double buffer it in some cases but at least it gets rid of the flicker. Closes #12704, #14828.

2012-11-24 01:33 VZ, revision 73000

Add check for destroying window with mouse capture in wxGTK. We already have an assert checking for this at wxWindowBase level but it seems that it wasn't always triggered somehow (maybe because we crashed before getting there?), so do it sooner. Closes #14602.

2012-11-23 20:02 SC, revision 72999

support for custom app controllers, override OSXCreateAppController in wxApp subclass

2012-11-23 15:34 VZ, revision 72998

Fix ribbon bar scroll buttons visibility bug. Fix scroll buttons update code in wxRibbonPage. Closes #14844.

2012-11-23 15:32 VZ, revision 72997

Add possibility to delay showing wxRichToolTip. Optionally show the tooltip after a delay instead of doing it immediately when Show() is called. Closes #14846.

2012-11-23 08:55 SC, revision 72996

fixing overrelease and out-of-bounds write, fixes #13725

2012-11-20 13:49 VZ, revision 72995

Implement GetSizeFromTextSize() for wxSpinCtrl. Implement it for the native MSW and GTK versions and the generic one used in the other ports and also for wxSpinCtrlDouble under MSW. Also test this function in the spin page of the widgets sample. Closes #14840.

2012-11-20 13:49 VZ, revision 72994

Make wxSpinCtrlGenericBase a wxCompositeWindow. This takes care of propagating methods setting fonts and colours to the subwindows automatically, so that setting font for the generic wxSpinCtrl now works, unlike before. Closes #14839.

2012-11-20 13:49 VZ, revision 72993

Revert all wxNOEXCEPT-related changes. This reverts r72978, 72984, 72989 and 72992. Do not use wxNOEXCEPT for wxTextCtrl dtor as this breaks compilation of any user-defined classes inheriting from it unless they use wxNOEXCEPT as well and the benefits (fixing a harmless warning for the niche ICC compiler) are just not worth the compatibility breakage. See #14826.

2012-11-20 01:57 VZ, revision 72992

Fix another compilation problem after wxNOEXCEPT introduction. Also add wxNOEXCEPT to wxTextCtrl dtor definition in wxMSW. See #14826.

2012-11-19 19:07 VZ, revision 72990

Add wxTL_NO_HEADER style to wxTreeListCtrl. Closes #14838.

2012-11-19 19:01 VZ, revision 72989

More compilation fixes after wxNOEXCEPT introduction. This is a temporary change, r72984 and the following changes (see #14826) will probably be reverted soon anyhow, but for now at least fix wxGTK compilation. Closes #14837.

2012-11-19 14:06 SC, revision 72988

implementing delayed freezing, fixes #12865

2012-11-19 13:52 VZ, revision 72987

Add wxFSW_EVENT_UNMOUNT wxFileSystemWatcher flag and implement it for Linux. This flag generates the corresponding event when the file system containing the watched directory is unmounted. Currently it is only implemented for Linux where unmounting now generates this event instead of an error. Closes #14834.

2012-11-19 13:51 VZ, revision 72986

Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly. Previously these types were not handled at all, resulting in asserts. See #14834.

2012-11-19 12:54 VZ, revision 72985

Implement wxLocale::GetSystemEncodingName() for wxOSX. Use CFStringGetNameOfEncoding() to get the canonical name of the encoding from OS X itself. Closes #2571.

2012-11-19 12:53 VZ, revision 72984

Add wxNOEXCEPT to all wxTextCtrl dtors. Fix compilation with some compilers after r72978 which added wxNOEXCEPT to wxTextCtrlBase dtor and wxTextCtrl dtor in wxMSW but not in all the other ports. See #14826.

2012-11-19 05:17 PC, revision 72983

put both versions of wxGetMousePosition in one place so they can use one implementation

2012-11-19 03:29 PC, revision 72982

fix object referencing with wxSL_MIN_MAX_LABELS

2012-11-18 01:17 VZ, revision 72981

Define SPI_GETCARETWIDTH ourselves if it's not defined. This fixes another compilation error for VC6.

2012-11-18 01:14 VZ, revision 72980

Compilation fixes for VC6 after MSWGetComboBoxInfo() introduction. Don't use COMBOBOXINFO outside of WINVER checks, we can only use tagCOMBOBOXINFO that we forward declared ourselves.

2012-11-18 00:56 VZ, revision 72979

Fix path returned from wxGTK wxFileDialog too. This is similar to the fixes to wxDirDialog in r72779. Closes #14786.

2012-11-18 00:56 VZ, revision 72978

Add wxNOEXCEPT and use it for std::streambuf-derived classes. This fixes warnings from Intel compiler about overriding function using a different exception specification than the base one and also incidentally provides a handy macro that can be useful in other situations. Closes #14826.

2012-11-18 00:56 VZ, revision 72977

Add wxFSW_EVENT_ATTRIB wxFileSystemWatcher flag. This flag allows to monitor changes to the file attributes, such as file modification time. This patch adds the flag, support for it under Linux and the corresponding modifications to the sample and the test suite. Closes #14833.

2012-11-18 00:55 VZ, revision 72976

Fix typo in include/wx/generic/private/richtooltip.h header guard. A wrong symbol was being defined.

2012-11-17 23:17 RD, revision 72966

Fix broken and missing DataView interface items for Phoenix

2012-11-17 14:34 SJL, revision 72965

Fixed unused parameter warnings for webview on OSX.

2012-11-16 08:35 PC, revision 72964

avoid deprecated functions with GTK3

2012-11-16 08:30 PC, revision 72963

silence warnings about unhandled enum value in switch

2012-11-16 08:24 PC, revision 72962

Remove code that has no effect Adjusting the wxEVT_ENTER_WINDOW mouse position is pointless, execution won't reach that far if gdk_event->window != gtk_widget_get_window(widget), and GetClientAreaOrigin() always returns (0,0).

2012-11-15 23:24 VZ, revision 72961

Support monitoring only some events in wxGTK wxFileSystemWatcher. Call inotify() with the appropriate flags instead of always using IN_ALL_EVENTS. Closes #14832.

2012-11-15 19:48 VZ, revision 72960

Restore setting focus to generic wxDataViewCtrl on any mouse click. The changes of r72632 resulted in focus not being given to wxDataViewMainWindow on right or middle click, restore this behaviour.

2012-11-15 19:45 VZ, revision 72959

Document how to build wxOSX/Carbon under recent OS X. Mention that Xcode 3 is needed for this. Closes #14524.

2012-11-15 13:22 VZ, revision 72958

Add back WINVER check to fix VC6 compilation of wxMSW. The changes of r72953 removed the check for WINVER around the code using COMBOBOXINFO but it's still needed with VC^, so restore it.

2012-11-14 19:19 PC, revision 72957

Fix GetClientSize() when scrollbars are present The value of GtkScrolledWindowClass.scrollbar_spacing seems to be invalid (-1). Use the style property "scrollbar-spacing" instead.

2012-11-14 17:55 PC, revision 72956

re-enable using our own resize grip with GTK3, themes can (and do) disable the native grip

2012-11-14 14:48 VZ, revision 72955

Implement wxComboCtrl::GetSizeFromTextSize(). Improve calculation of wxComboCtrl best size which doesn't work correctly for non-default fonts as shown by r72935. It is still not perfect but better now. Closes #14825.

2012-11-14 14:47 VZ, revision 72954

Implement DoGetSizeFromTextSize() for wxMSW wx{Choice,Combobox,TextCtrl}. Refactor and improve the existing DoGetBestSize() implementations to use DoGetBestSize(). Closes #14816.

2012-11-14 14:47 VZ, revision 72953

No changes, just refactor wxMSW wxComboBox code calling GetComboBoxInfo(). Move the code dynamically loading this function to the base wxChoice class to make it possible to use it from there in the upcoming commit.

2012-11-14 14:47 VZ, revision 72952

Handle wxBORDER_NONE in wxGTK wxTextCtrl::DoGetSizeFromTextSize(). Don't add margins for the controls without borders, they are not used in this case. See #14816.

2012-11-14 14:46 VZ, revision 72951

Don't call setlocale("") on startup by default any longer. This undoes the changes of r44773 because calling setlocale() resulted in C locale being set differently from C++ locale which was confusing and led to huge slowdowns in any code using std::stream with at least MinGW. And setting the C++ locale to be the same, as r72719 tried to do, doesn't seem to be practical as it results in immediate crashes under OS X and MinGW when used under XP. Do provide wxApp::SetCLocale() helper to explicitly do what was previously done implicitly, even though currently it is a trivial wrapper for setlocale() and we don't even need to call gtk_set_locale() as it has never done anything else and is deprecated since GTK+ 2.24. Closes #14780.

2012-11-14 01:16 VZ, revision 72950

Optionally allow showing tooltips for disabled ribbon buttons. Add wxRibbonButtonBar::SetShowToolTipsForDisabled() to allow enabling the tooltips even for the disabled buttons. Closes #14820.

2012-11-13 18:38 PC, revision 72949

re-enable drawing our own resize grip with GTK3, themes can (and do) disable the native grip

2012-11-13 13:36 VS, revision 72948

Fix wxGTK's wxFileDialog:Get/SetFilename() to be in sync. The m_fileName and m_dir variables, managed by the base class, were out of sync when the dialog wasn't shown yet, because the wxGTK implementation didn't always set them. GetFilename() following SetFilename(x) could return something other than x. Fixed by calling the base class version.

2012-11-12 16:50 VZ, revision 72947

Replace a template function with template class to fix VC6 build. VC6 doesn't like template methods, so use a helper template class instead, hopefully this will finally allow it to compile the test suite again.

2012-11-12 14:36 SC, revision 72946

making sure we have an initial frame buffer, even though the first initial rootview controller lead to an empty framebuffer

2012-11-11 14:10 VZ, revision 72945

Use wxID_EXIT for the "Quit" item in the exec sample. This fixes the behaviour of the standard "Quit" menu item under OS X. See #3204.

2012-11-10 13:40 VZ, revision 72944

Disallow drop downs on AUI check buttons. This doesn't make much sense and disallowing it makes check items consistent with radio ones as previously you could set up a dropdown for the former but not for the latter. Also update the documentation of the relevant methods. Closes #14795.

2012-11-10 13:22 VZ, revision 72943

Fix crashes after using "wildcard" wxEvtHandler::Disconnect(). When not specifying the function to disconnect, the associated event sink was destroyed too early resulting in crashes later. Fix this and add unit tests verifying that things work as expected and at least don't crash. Closes #14563.

2012-11-10 13:22 VZ, revision 72942

No changes, just fix a harmless warning in FileSystemWatcherTestCase. Fix an unused parameter warning under non-Unix platforms.

2012-11-10 13:21 VZ, revision 72941

Fix filename test compilation with VC6. Just disable tests resulting in an internal compiler error.

2012-11-10 01:53 VZ, revision 72940

Fix link errors with VC 11 in DLL STL build. Don't declare wxWindowList as DLL-exported. It's unnecessary and appears to create problems for VC 11. Closes #14741.

2012-11-10 01:53 VZ, revision 72939

Simplify wxEVT_PAINT handling in wxScrollHelperBase. Just always call the virtual OnDraw() if wxEVT_PAINT wasn't handled. This is much simpler than connecting our own special handler just to set a flag saying whether the event was processed which was very complicated and didn't work anyhow for the statically connected wxEVT_PAINT handlers. See #14757.

2012-11-10 01:52 VZ, revision 72938

Cache HDC used for painting for the entire duration of WM_PAINT processing. This fixes a long standing problem with 2 wxPaintDC created one after another (and not with nested lifetimes, which was handled by the caching mechanism previously used) not working correctly. And as this was exactly what happened when handling wxEVT_PAINT for wxScrolled, it also fixes drawing artefacts when using scrolled windows. Closes #14757.

2012-11-10 01:52 VZ, revision 72937

Fix incorrect wxSizerFlags::Border() call in the scroll sample. Using 20 instead of a wxDirection resulted in an assert, fix the syntax.

2012-11-10 01:52 VZ, revision 72936

Set ID correctly for wxScrollWinEvents generated by wxScrollHelper. Add forgotten wxEvent::SetId() calls. See #14757.

2012-11-09 22:11 VZ, revision 72935

Add wxControl::GetSizeFromTextSize() to size the control to its text. This function can be used to size a, say, wxTextCtrl to be exactly of the size needed to enter the given amount of text in it. This patch adds wxGTK implementation for wxTextCtrl, wxChoice and wxCombobox; changes to the samples and the documentation. Closes #14812.

2012-11-09 07:17 PC, revision 72934

avoid deprecated functions with GTK3

2012-11-09 06:02 RD, revision 72933

wxBrushList and wxFontList do not derive from wxList.

2012-11-08 18:47 PC, revision 72927

don't assign NULL to wxUIntPtr, wxUIntPtr is not a pointer, closes #14811

2012-11-08 18:34 PC, revision 72926

avoid using deprecated gdk_cursor_unref() with GTK3

2012-11-08 18:18 PC, revision 72925

Disable GTK2-specific code to change theme when building wxGTK3. It doesn't work with GTK3, it causes deprecation warnings, and allowing an app to change its theme is a dumb idea

2012-11-08 16:46 SC, revision 72924

support for freeze and thaw under cocoa

2012-11-08 15:20 VZ, revision 72923

No changes, just remove unnecessary forward declarations. wxToggleBitmapButton doesn't exist any more, don't forward declare it. wxToggleButton does exist but is (fully) declared just below, so don't forward declare it neither.

2012-11-07 19:10 VZ, revision 72922

Another Nepalese translations update from Him Prasad Gautam.

2012-11-07 18:58 PC, revision 72921

update fullscreen state when it is changed by the WM

2012-11-07 11:02 JJ, revision 72920

Update OpenVMS make-files

2012-11-07 10:00 JJ, revision 72919

Fix for specific filename syntax of OpenVMS

2012-11-07 07:32 PC, revision 72918

add GTK3 implementations for remaining renderer functions

2012-11-07 00:57 VZ, revision 72917

Don't leave orphan taskbar icon window alive if setting it up fails. This fixes a rare bug which happens when we fail to install the task bar icon under MSW for whatever reason (the only known way to reproduce it is to try to do it very quickly after resume from suspend but there might be other situations in which this happens). In this case we must delete the icon as we are not going to get any timeout expiration notifications for it and so if we don't delete it immediately, it would remain alive forever, preventing the application from exiting as it counts as a top level window.

2012-11-07 00:56 VZ, revision 72916

Keep item data in sync with their position in wxEditableListBox. When swapping the items, we also need to swap their client data and not just their labels. Closes #14800.

2012-11-07 00:56 VZ, revision 72915

Restore propagation of EVT_SEARCHCTRL_CANCEL_BTN events to the parent. This was broken by r72581, add event.Skip() call to the handler for this event added there. Also add a handler for this event to the corresponding page of the widgets sample to be able to test this. Closes #14799.

2012-11-07 00:54 VZ, revision 72914

Fix regression with wxAuiToolBar gripper and overflow members initialization. The changes of r72785 moved m_gripperVisible and m_overflowVisible initialization to Init() but this was too early as these fields depend on the window style only set when it's really created, so re-initialize them to their proper values in Create(). Closes #14794.

2012-11-07 00:54 VZ, revision 72913

Use wxAUI_TB_DEFAULT_STYLE instead of 0 as default style value. No real changes. See #14794.

2012-11-07 00:54 VZ, revision 72912

Minor improvements to wxEVT_COMMAND_DIRCTRL_CHANGED generation. Set the event object for this event. Also don't skip the original tree event if the wxEVT_COMMAND_DIRCTRL_CHANGED event was handled and disallowed. Closes #14792.

2012-11-07 00:53 VZ, revision 72911

Add wxUSE_BASE checks for wxLog classes in the interface header. Also rearrange them so that the derived classes always appear after the base ones, otherwise SWIG can't compile this file. Closes #14784.

2012-11-07 00:53 VZ, revision 72910

Add wxUSE_{BASE,GUI} checks to interface headers. This allows to define just one of them to run some tool, e.g. SWIG, on only the classes defined in the base or in the core library (both are defined by default for Doxygen itself). Closes #14785.

2012-11-06 18:43 PC, revision 72908

add GTK3-specific code for DrawItemSelectionRect(), fixes drawing selected tree control item

2012-11-06 17:51 VZ, revision 72907

No changes, just fix indentation in wxDataViewMainWindow::Expand(). The code was indented two extra levels for some reason.

2012-11-06 17:51 VZ, revision 72906

Update the current row after item deletion in generic wxDataViewCtrl. Also change the code changing the current item to collect the range checks inside OnVerticalNavigation() itself instead of doing them in the caller. Closes #14802.

2012-11-06 17:50 VZ, revision 72905

Never collapse invisible root item in generic wxDataViewCtrl. Since the changes of r72325, the root item could be collapsed and marked as not having any children but this was wrong because no items could be added to it after this. Just ignore any attempts to collapse it. Closes #14801.

2012-11-06 17:25 VZ, revision 72904

Remove __WXMSW__ check around background erasing in generic wxDataViewCtrl. The background was erased only under MSW for some reason, do it everywhere now.

2012-11-06 07:35 SC, revision 72903

fixing compile for ios

2012-11-06 07:31 SC, revision 72902

supporting iOS 6 autorotate

2012-11-05 00:55 VZ, revision 72898

Slightly improve the date/time dialogs in the calendar sample. Use CreateStdDialogButtonSizer() instead of constructing wxStdDialogButtonSizer directly, not only this is shorter but it also makes the "OK" button default correctly. Also initialize the labels instead of leaving them initially empty.

2012-11-05 00:55 VZ, revision 72897

Don't move the insertion point if text didn't change in wxTextEntry. This avoids accidentally resetting the selection if SetValue() is called again with the same value. Closes #13728.

2012-11-05 00:54 VZ, revision 72896

Make hack for button creation in wxOSX more robust. Don't crash when creating a plain wxButton with wxBU_NOTEXT style. This happened because we skipped creating the peer (real implementation) in this case entirely on the assumption that we were creating a wxBitmapButton, but this is not necessarily the case. So now test that the creation of the peer is really disabled before skipping it (this required adding ShouldCreatePeer() accessor). Merging wxWidgetImpl::CreateButton() and CreateBitmapButton() (and the same thing for toggle buttons) would still be a better solution but while it's trivial to do for Cocoa, it isn't for Carbon. And we can't use a single function for Cocoa but different functions for Carbon, so for now just continue to use this hack. Closes #13622.

2012-11-05 00:54 VZ, revision 72895

Ensure that paths used inside wxOSX are always in NFC form. OSX uses NFKD but this is unexpected for wx applications, so normalize the string to use the composed form whenever we receive a file system path from OS X. Closes #13504.

2012-11-05 00:53 VZ, revision 72894

Add wxCFStringRef::AsStringWithNormalizationFormC() Cocoa overload. Provide an overload taking NSString and casting it to CFStringRef, just as for AsStringWithNormalizationFormC(). See #13504.

2012-11-05 00:53 VZ, revision 72893

Use kCGBlendModeExclusion for wxCOMPOSITION_XOR operation. The previously used kCGBlendModeXOR doesn't seem to be the right mode to use. Closes #13095.

2012-11-05 00:53 VZ, revision 72892

Implement setting default wxTextCtrl style in wxOSX. Use NSTextView setTypingAttributes to change the attributes used for the new text by default as setting them for the selected region didn't do anything useful under OS X (and did nothing at all when there was no selection). Closes #12839.

2012-11-05 00:52 VZ, revision 72891

No changes, just remove unnecessary wxTextAttr tests. If wxTextAttr::HasFoo() returns true, there is no need to test for GetFoo().IsOk().

2012-11-05 00:52 VZ, revision 72890

Suppress warnings about NSText not responding to setAllowsUndo. Cast NSText to NSTextView when sending this message to it. Hopefully it doesn't change the run-time behaviour but just fixes several lines of warnings that were given without this cast.

2012-11-05 00:51 VZ, revision 72889

No changes, just make it easier to tweak splitter sample. The sample contains disabled code for using other type of windows than MyCanvas for the splitter children but it didn't compile any more because the variables were declared as wxScrolledWindow. Fix this by using just wxWindow for them.

2012-11-05 00:51 VZ, revision 72888

Create tags for Cocoa, not Carbon, by default under wxOSX. Just change the default value of the "port" parameter.

2012-11-05 00:51 VZ, revision 72887

Fix annoying warning when running the script to generate tags under OS X. It complained about no matches for src/osx/cocoa/*.cpp.

2012-11-05 00:50 VZ, revision 72886

Update the button bezel to account for multi-line labels in wxOSX. If a button was created using a normal single-line label (including empty one) and then its label was changed to something multi-line later, its size stayed wrong in wxOSX as it still used the fixed size bezel used by normal buttons. Adjust the bezel after each bezel change now to update the size of the button if necessary. Closes #12491.

2012-11-05 00:50 VZ, revision 72885

No changes, just rename OSXSetAcceleratorFromLabel(). Make the name of the function more general and call it OSXUpdateAfterLabelChange() as it's supposed to be called whenever the label changes.

2012-11-05 00:50 VZ, revision 72884

No real change, just make bezel setting code in wxOSX more clear. Avoid code duplication between SetAcceleratorFromLabel() and wxWidgetImpl::CreateButton(), generalize the former to handle the special cases taken into account only in the latter previously. Also use a switch on border flags instead of series of nested ifs as this seems to be more clear. No changes in behaviour.

2012-11-05 00:49 VZ, revision 72883

Revert "Fix the pages range in the print dialog in wxOSX." This reverts r72805 (leaving only the changes to printdlg.cpp which seem harmless and potentially useful) as it resulted in crashes when using wxHtmlEasyPrinting because we called wxPrintout::OnPreparePrinting() before setting the DC to be used, which was wrong. In fact it's not clear how can we get the correct range of pages at all because we need a DC to paginate properly (i.e. taking into account its size) but we need to show a dialog, in which we already want to show the pages range, before choosing the DC. Perhaps we could create a dummy DC for pagination purposes but how could this work with printers using different page sizes? The best would probably be to avoid setting any limits on the page range as showing 9999 looks ugly but anything else would be wrong. See #8349, #11779.

2012-11-05 00:49 VZ, revision 72882

Update tree control layout in EditLabel() for wxOSX too. A special preprocessor check for OS X prevented the control from being relaid out correctly in EditLabel() there, which resulted in problems when trying to edit a just added item. Simply remove this check for OS X (and also MSW but this is less important as this version of the control is almost never used there anyhow) to fix it. Closes #11179.

2012-11-04 18:39 PC, revision 72881

fix setting background color in wxGTK3 with themes which use background images or gradients, fixes #14759

2012-11-04 13:44 VZ, revision 72880

Check that doxygen version is 1.8.2 in docs generation script. Doxygen often has backwards incompatible changes, so verify that we really use the version the docs are supposed to be generated with.

2012-11-04 13:44 VZ, revision 72879

Don't use "readlink -e" in docs generation script, it's not portable. "readlink" command also exists under OS X but with a completely different syntax than under Linux, so just use "pwd -P" to get the physical path name instead, this should hopefully work everywhere as it's POSIX. Closes #14796.

2012-11-04 13:44 VZ, revision 72878

Allow using _T() in docs/doxygen/overviews/changes_since28.h. This file describes changes to this macro so don't block commits changing it just because it contains "_T".

2012-11-03 19:34 BP, revision 72877

Finished adding @tableofcontents to all overviews in the manual.

2012-11-03 19:33 BP, revision 72876

Bumped the reference manual date.

2012-11-03 19:33 BP, revision 72875

Fixed up Windows regen.bat script to use environment variables instead of conditional config file includes.

2012-11-03 19:33 BP, revision 72874

Moved format selection logic into environment variables instead of conditional config file includes.

2012-11-03 19:33 BP, revision 72873
  • D /wxWidgets/trunk/docs/doxygen/background_navigation.png
  • D /wxWidgets/trunk/docs/doxygen/img_downArrow.png
  • D /wxWidgets/trunk/docs/doxygen/jquery-1.3.2.min.js
  • M /wxWidgets/trunk/docs/doxygen/regen.sh
  • D /wxWidgets/trunk/docs/doxygen/wxdocsettabs.css
  • D /wxWidgets/trunk/docs/doxygen/wxdocsetwidgets.css

Removed obsolete files from old Doxygen versions.

2012-11-03 19:33 BP, revision 72872

Cleaned up the server based search results page styles.

2012-11-03 19:32 BP, revision 72871

Fixed appearance images to use Doxygen @image command (Doxygen will now copy files automatically), and cleaned up some more overviews.

2012-11-03 19:29 BP, revision 72870

Fixed docs footer to bottom, and fixed up TOC on all main pages, and some overviews.

2012-11-03 19:08 BP, revision 72869

Documentation screenshot generator source code cleanup.

2012-11-03 19:08 BP, revision 72868

Upgraded Doxygen to 1.8.2 for the docs.

2012-11-02 18:02 SC, revision 72865

missing commit, fixes #14797

2012-11-02 11:46 SC, revision 72864

using smaller size for font on non native toolbar

2012-11-02 11:45 SC, revision 72863

fixing class

2012-11-02 11:45 SC, revision 72862

using button impl

2012-11-02 11:41 SC, revision 72861

exposing common used button impl class

2012-11-02 11:06 SC, revision 72860

exposing common used button impl class

2012-11-01 23:56 RD, revision 72858

Fixes and tweaks and additions to the wxHtml docs for Phoenix

2012-11-01 19:25 VS, revision 72850

wxCALL_FOR_EACH compilation fix for VC++. VC++ has a bug where __VA_ARGS__ is incorrectly expanded as a single token, contrary to C99. The solution is to pass the arguments to another macro as a single token inside parenthesis. See http://stackoverflow.com/questions/9183993/msvc-variadic-macro-expansion for the gory details.

2012-11-01 19:25 VS, revision 72849

Compilation fix for PCH-less build.

2012-11-01 18:15 VZ, revision 72848

Refactor and simplify wxChoice::DoGetBestSize(). Use wxTextMeasure instead of duplicating its code and also reuse the code between different ports. Closes #14706.

2012-11-01 18:15 VZ, revision 72847

Invalidate best size of wxOSX wxChoice after its number of items changes. This fixes the calculation of the initial best size as previously the default value was not updated even if longer strings were added later.

2012-11-01 18:15 VZ, revision 72846

Allow creating wxTextMeasure without specifying the font. Use the default window/DC font by default as this is the most common case.

2012-11-01 18:15 VZ, revision 72845

Always set the font to use in wxMSW wxTextMeasure when using a window. The default window HDC font is not the same as the wxWindow font, so we need to always set the font explicitly in this case (when using a wxDC, its HDC does have the current wxDC font already selected into it, so doing it once again would be unnecessarily wasteful).

2012-11-01 18:15 VZ, revision 72844

Allow constructing wxGTK wxTextMeasure with NULL font. The font is explicitly documented as being possibly NULL in the base class and wxMSW handles NULL font just fine, so also handle it in the GTK version. See #14706.

2012-11-01 18:15 VZ, revision 72843

Don't crash in wxHTML when parsing empty tables with empty width parameter. Guard against accessing invalid string element.

2012-11-01 18:15 VZ, revision 72842

Added wxEVT_COMMAND_DIRCTRL_CHANGED for wxDirCtrl selection changes. This makes it much simpler to react to the changes in the control, update the sample to show it. Closes #14792.

2012-11-01 18:15 VZ, revision 72841

No changes, just some cleanup in wxGenericDirCtrl code. Use GetItemData() helper to only write a cast to wxDirItemData in this function instead of repeating it many times. See #14790.

2012-11-01 18:14 VZ, revision 72840

Add distclean target to samples/Makefile. It is necessary because it is used by the distclean target of the top level makefile. Closes #14793.

2012-11-01 18:14 VZ, revision 72839

Deal correctly with wx directory being a symlink in docs generation script. The script calling Doxygen is smart enough to strip the path of the wxWidgets directory from the paths of the files, but it didn't do it correctly if this directory was a symlink. Fix this by using readlink, if available, to get the canonical name. Closes #14796.

2012-11-01 17:45 VS, revision 72838

Tests for wxTEST_DIALOG and wx/testing.h.

2012-11-01 17:45 VS, revision 72837

Add wxTEST_DIALOG for testing of modal dialogs.

2012-11-01 17:45 VS, revision 72836

Add wxCALL_FOR_EACH() macro.

2012-10-31 14:39 VZ, revision 72833

Nepalese translations update from Him Prasad Gautam.

2012-10-31 13:55 VZ, revision 72832

Revert "Split documentation of the GUI wxLog classes in a separate file." This reverts r72818 as it resulted in wrong header files being generated in the documentation for the GUI wxLog classes. See #14784.

2012-10-31 08:16 SC, revision 72831

adding principal class for command line builds (High Resolution Support), changing years in copyright info

2012-10-31 08:10 SC, revision 72830

adding constants for newer OSX versions to make sure our conditional expressions are working with earlier SDKs

2012-10-31 06:43 PC, revision 72829

fix WakeUpIdle() when called from another thread while idle processing is in progress

2012-10-31 01:17 VZ, revision 72828

Define wxSOCKET_XXX flags as wxSOCKET_XXX_READ|wxSOCKET_XXX_WRITE. The recently introduced (in r72591) wxSOCKET_{WAITALL,NOWAIT}_{READ,WRITE} flags weere for some reason completely different and unrelated to the existing bidirectional wxSOCKET_{WAITALL,NOWAIT} ones. Change this by defining the bidirectional version simply as the sum of the two others. This makes much more sense than testing for either wxSOCKET_XXX or wxSOCKET_XXX_READ or wxSOCKET_XXX_WRITE being specified. And it also fixes an assert in wxSocketWaitModeChanger where a sanity check failed when this class was used with wxSOCKET_WAITALL|wxSOCKET_WAITALL_READ. See #14506.

2012-10-30 15:04 VZ, revision 72825

Revert "Split documentation of non-GUI wxEvent-related classes." This reverts r72817 as it resulted in build problems for wxPython and incorrect headers in the generated documentation. See #14785.

2012-10-29 19:30 VZ, revision 72820

Compare file paths using wxFileName, not wxString, in the sample. Comparing paths using wxString is a bad idea as identical paths can be seen as mismatching because of case-only differences. Also, don't reset wxRadioBox selection from its selection handler, this doesn't work under e.g. wxGTK and is a bad example. Closes #14791.

2012-10-29 19:30 VZ, revision 72819

Add wxDirCtrl::GetPath(). This allows to retrieve the directory being affected by wxTreeCtrl event. Closes #14790.

2012-10-29 16:15 VZ, revision 72818

Split documentation of the GUI wxLog classes in a separate file. Put the GUI classes in a new interface/wx/generic/logg.h to make it easier to generate wrappers for only the base or only the core libraries. Also change the order of the classes remaining in log.h to ensure that the base classes are always defined before the derived ones. Closes #14784.

2012-10-29 16:15 VZ, revision 72817

Split documentation of non-GUI wxEvent-related classes. Separate GUI from base classes to make it easier to generate wrappers for just the latter using e.g. SWIG. Closes #14785.

2012-10-29 15:50 VZ, revision 72816

Get rid of wxAuiToolBar::m_style and just use base class m_windowStyle. This fixes an assert exposed by the addition of wxAuiToolBar::Create() in r72785: as m_style was not initialized before, calling GetWindowStyle() from wxControl::Create() returned wrong flags. Fix this by just removing m_style completely, there doesn't seem to be any need for it nor for overriding GetWindowStyleFlag(). See #13520.

2012-10-29 02:20 VZ, revision 72815

Fix the use of obsolete wxDD_NEW_DIR_BUTTON in wxOSX. Use wxDD_DIR_MUST_EXIST, testing for wxDD_NEW_DIR_BUTTON always failed. Closes #13596.

2012-10-29 02:20 VZ, revision 72814

No changes, just avoid code duplication in wxOSX wxDirDialog. Factor our common parts of wxDirDialog::ShowModal() and ShowWindowModal() in OSXCreatePanel() helper. Also some minor cosmetic changes.

2012-10-29 02:20 VZ, revision 72813

Avoid double destruction of wxTipWindow under wxOSX. Hiding the window results in wxEVT_KILL_FOCUS under OS X and this destroys it already, so when we call Destroy() from wxTipWindow::Close() later, it triggers assert about destroying it twice. Avoid doing this under OS X for now, even though the real problem is probably the discrepancy in wxEVT_KILL_FOCUS event generation under different platforms. Closes #14651.

2012-10-28 22:01 SJL, revision 72812

Document which wxWebView methods must wait for a page load before being called. Closes #14768

2012-10-28 14:31 VZ, revision 72811

Don't return "void" to fix MSVC6 compilation. VC6 doesn't support returning void "value".

2012-10-28 13:36 VZ, revision 72810

Updates to Indonesian translations by Rahmat Bambang.

2012-10-28 02:08 VZ, revision 72809

Implement support for button mnemonics in wxOSX/Cocoa. Set the mnemonic as "key equivalent". Closes #12917.

2012-10-28 02:08 VZ, revision 72808

Improve splitter appearance in wxOSX/Cocoa. Try to imitate NSSplitView better. Closes #12921.

2012-10-28 02:08 VZ, revision 72807

Implement image support for wxNotebook pages in wxOSX/Cocoa. This currently doesn't work correctly for left/right orientations but at least it does work for the default top (and also bottom) one. Closes #12754.

2012-10-28 02:08 VZ, revision 72806

Fix taskbar sample compilation under wxOSX/Cocoa. Use wxTBI_XXX constants instead of wxTaskBarIcon::XXX ones which don't seem to exist any longer. See #11831.

2012-10-28 02:08 VZ, revision 72805

Fix the pages range in the print dialog in wxOSX. Set the min/max pages earlier for them to be taken into account and also actually do set them in the print settings. Closes #8349.

2012-10-27 14:28 VZ, revision 72803

Another attempt to fix wxTextMeasure compilation with VC6. Simply make the methods accessed by the nested class public.

2012-10-27 14:28 VZ, revision 72802

Allow using wxTextMeasure::GetLargestStringExtent() with wxArrayString. Change the signature of this method to take the number of strings and the pointer to the first of them instead of wxVector<wxString> as this allows it to be used with all of wxVector<wxString>, wxArrayString and raw arrays of wxStrings. Also return the computed size from it instead of filling output parameters. Closes #14781.

2012-10-27 14:27 VZ, revision 72801

Allow wxTextMeasure to work with non-native wxDC objects too. Just forward back to wxDC itself in this case instead of using the platform-specific code in wxTextMeasure that only works with native DCs. See #14781.

2012-10-27 14:27 VZ, revision 72800

Fix warning about signed/unsigned comparison in wxFile::ReadAll(). Compare ssize_t value with another ssize_t value instead of size_t one to avoid warnings.

2012-10-27 14:27 VZ, revision 72799

Just fix header comments of wxTextMeasure-related files, no real changes. See #14781.

2012-10-27 07:51 PC, revision 72798

redo r72781 in a way that preserves binary compatibility, closes #14525

2012-10-27 05:15 RD, revision 72788

Add missing WXK constants for the control keys

2012-10-27 05:15 RD, revision 72787

Generate the interface file for STC from gen_iface too.

2012-10-27 03:27 VZ, revision 72786

Fix incorrect libraries in the documentation. Use wxcore for the GUI classes that were mistakenly documented as belonging to the wxbase library. Closes #14783.

2012-10-27 03:27 VZ, revision 72785

Add wxAuiToolBar::Create(). Implement two-step creation of wxAuiToolBar to allow doing it from XRC. See #13520.

2012-10-27 03:27 VZ, revision 72784

Renamed file containing wxAuiToolBar documentation. The real header is called wx/aui/auibar.h, not wx/aui/toolbar.h.

2012-10-27 03:27 VZ, revision 72783

Fix PCH-less build after previous commit. Need to include wx/window.h now that wx/animate.h is not included any more.

2012-10-27 02:46 VZ, revision 72782

Break implicit dependency of "core" on "adv" via wxXmlResourceHandlerImplBase. wxXmlResourceHandlerImplBase::GetAnimation() returned wxAnimation by value which created references to wxAnimationCtrlNameStr and wxNullAnimation symbols, defined in the "adv" library, in "core" when using Sun CC even though they were not referenced directly. Fix this by returning wxAnimation by pointer to keep it opaque for "core" code.

2012-10-26 18:32 PC, revision 72781

Store the selected directory in wxGTK wxDirDialog, fixes #14525

2012-10-26 01:55 VZ, revision 72780

Compilation fix for STL build after the last commit. Add missing fn_str() call.

2012-10-26 01:26 VZ, revision 72779

Store the selected directory in wxGTK wxDirDialog. This should help with the selected directory not being remembered since GTK+ 2.24.11 as apparently gtk_file_chooser_get_filename() doesn't work any more now after hiding the dialog -- so call it before doing this and save the result. Also get rid of the ugly and apparently completely unnecessary OnFakeOk(). Closes #14525.

2012-10-26 01:26 VZ, revision 72778

Prevent pasting too much text into limited length wxTextCtrl in wxGTK. Improve insert-text signal handler to block pasting text into the control, which may overflow the specified max length in one action, and not only entering individual characters. See #3158.

2012-10-26 00:30 VZ, revision 72777

Make wxFILE_EXISTS_SYMLINK work on its own, without wxFILE_EXISTS_NO_FOLLOW. Include the wxFILE_EXISTS_NO_FOLLOW bit in wxFILE_EXISTS_SYMLINK definition to allow using just wxFileName::Exists(wxFILE_EXISTS_SYMLINK) which used to never work because the link was followed. Closes #14777.

2012-10-26 00:19 VZ, revision 72776

Include wx/xml/xml.h from the XRC handlers that need it. Including this header from wx/xrc/xmlres.h itself only when WXMAKINGDLL_XRC is defined doesn't work when we're building a static library and not a shared/DLL one and we don't have any symbol defined in this case, so just don't try to be smart and include this header from the files that need it. This fixes breakage of r72756.

2012-10-25 15:37 JS, revision 72775

Backported menu update event processing, but only in wxGTK if idle update processing is being used to work around the global menu not generating open events in Ubuntu Unity. This is the minimal code change to get idle processing working in wxGTK. You can either edit platform.h to switch on idle event processing, or set UBUNTU_MENUPROXY to 0 in your application before GTK+ initialisation, e.g. in your app class ctor, to switch off the global menu and avoid the bug.

2012-10-25 01:41 VZ, revision 72763

PCH-less build fix for DynamicLibraryTestCase. Include wx/log.h needed by wxLogWarning().

2012-10-25 01:40 VZ, revision 72762

Implement clipping in wxSVGFileDC. Support setting the clipping region and add update the documentation and the sample accordingly. Closes #14462.

2012-10-25 01:40 VZ, revision 72761

No real changes, just avoid unnecessary string operations in wxSVGFileDCImpl. Simply write string together instead of concatenating them during run-time. See #14462.

2012-10-25 01:39 VZ, revision 72760

No changes, just remove unused variable from wxSVGFileDCImpl. sWarn was never used, drop it. See #14462.

2012-10-25 01:14 VZ, revision 72759

Show some information about the environment in the unit tests. For now just show the system description and the locale, this should already be helpful for diagnosing some test failures.

2012-10-25 01:13 VZ, revision 72758

Test for the shared library existence in DynamicLibraryTestCase. Trying to understand why does the test fail in some build slaves builds.

2012-10-25 01:13 VZ, revision 72757

Add a missing test for wxHAS_CALL_AFTER in the implementation too. This completes the changes of r72743.

2012-10-24 20:34 VZ, revision 72756

Try to avoid accidental use of wxXmlNode in XRC handlers. Now that the handlers can be defined outside of the XRC library, we can't use wxXmlNode in them because this would create an (unsatisfied) link dependency on the xml library. To avoid this happening accidentally, don't include wx/xml/xml.h from the XRC header, unless building the xrc library itself.

2012-10-24 20:33 VZ, revision 72755

Disable dropdown menu support in wxRibbonXmlHandler. The code handling it uses wxXmlNode directly as it's written now which isn't allowed as it introduces a dependency of ribbon library on the xml one and so currently breaks linking of the ribbon DLL under MSW. See #12058.

2012-10-24 20:22 VZ, revision 72754

Don't call wxSafeYield() from wxGenericListCtrl::EditLabel(). This could result in wxYield() reentrancy and while it could be avoided by using wxSafeYield(NULL, true /* only if needed */) it seems that we don't actually need to yield here at all and a simple Update() should be enough. Closes #14727.

2012-10-24 20:22 VZ, revision 72753

Don't iterate over files in wxFileSystemWatcherBase. We ignore the files anyhow when recursively adding watches for the entire tree, so don't include them in the iteration. See #14543.

2012-10-24 20:21 VZ, revision 72752

Remove wxAUI dependency on wxXML as it doesn't depend on it. Don't include wxAUI -> wxXML dependency in the libraries diagram in the manual.

2012-10-24 20:21 VZ, revision 72751

Respect wxFileName::DontFollowLink() in wxFileSystemWatcher. Watch the link itself and not its target if DontFollowLink() had been called. Closes #14543.

2012-10-24 16:02 VZ, revision 72750

Make wxDateTime invalid after Set((time_t)-1) call. Closes #14776.

2012-10-24 16:02 VZ, revision 72749

Close wxLogWindow automatically if it's the last remaining TLW. Don't keep the application opened just because a log window is shown. Closes #14775.

2012-10-24 16:01 VZ, revision 72748

Add wxVector::assign(). Closes #14703.

2012-10-24 15:13 JS, revision 72747

Updated Lativan translation

2012-10-24 15:11 JS, revision 72746

Updated Latvian translation

2012-10-24 02:25 VZ, revision 72745

Don't use std::min(), it's not available everywhere. Fix compilation using Sun CC under Solaris.

2012-10-24 02:25 VZ, revision 72744

Don't use Shift-TAB in keyboard test. This key combination seems to be intercepted by GTK now for keyboard navigation purposes and we never get key up events for it. Just use a different key.

2012-10-24 02:17 VZ, revision 72743

Disable wxEvtHandler::CallAfter() for VC6, it's too broken for it. There is no clear way to implement wxRemoveRef() for VC6 so just disable it, and CallAfter() as it relies on it, for this compiler.

2012-10-24 01:58 VZ, revision 72742

Don't follow symlinks in wxFileName::Rmdir(wxPATH_RMDIR_RECURSIVE). Following symlinks, possibly leading outside of the directory being removed, is at best surprising and at worst dangerous, so don't do it and just mimic the behaviour of "rm -rf", i.e. remove everything inside this directory, including the symlinks themselves, but don't follow them. Closes #14649.

2012-10-24 01:57 VZ, revision 72741

Mention wxFILE_EXISTS_NO_FOLLOW in wxFILE_EXISTS_SYMLINK description. Using wxFILE_EXISTS_SYMLINK without wxFILE_EXISTS_NO_FOLLOW can only be fruitless, so mention that they should normally be used together in the documentation. An alternative solution would be to always add wxFILE_EXISTS_NO_FOLLOW automatically if wxFILE_EXISTS_SYMLINK is used, perhaps we should do this instead. See #14542.

2012-10-24 01:57 VZ, revision 72740

Add wxDIR_NO_FOLLOW flag for wxDir iteration. This flag allows to avoid following the symbolic links during the directory traversal. In particular, this means that links to the directories (potentially outside the directory being traversed) are not considered as directories at all when it is used, potentially avoiding surprises. Closes #14542.

2012-10-24 01:57 VZ, revision 72739

Change the way directory iteration flags are constructed. Instead of explicitly constructing the flags from the flags that should be included, construct them by excluding the flags that shouldn't be used. This makes the code more stable in the sense that it will continue to work when new flags, such as the upcoming wxDIR_NO_FOLLOW, are added. See #14542.

2012-10-23 22:48 JS, revision 72738

We need to generate an event even if the value is the same else combobox event-ignoring behaviour breaks and a combobox in a property editor (for example) can fail to respond to the first key press.

2012-10-23 19:29 PC, revision 72737

non-pch build fix

2012-10-23 19:28 PC, revision 72736

Minor changes to some comments remove ambiguous "only" procession --> processing

2012-10-23 16:30 VZ, revision 72731

Fix for PCH-less compilation of wxRibbonXmlHandler. Need to have wxMenu declaration in order to wxDynamicCast() to it.

2012-10-23 16:03 VZ, revision 72730

Guard gmake-specific syntax with IF_GNU_MAKE in make_dist.mk. Debian distribution target uses GNU make extensions to make syntax which makes the entire makefile impossible to use with other make versions, e.g. Solaris make. Fix this by prepending IF_GNU_MAKE to all Debian-specific lines, there should be never any need to use them with non-GNU make.

2012-10-23 15:52 VZ, revision 72729

Add support for wxRibbonBar and related controls to XRC. Add wxRibbonXmlHandler and an example of using it to the xrc sample. Closes #12058.

2012-10-23 15:51 VZ, revision 72728

Add support for wxAuiNotebook to XRC. Add wxAuiNotebookXmlHandler to "aui" library, now that we can do it without adding a dependency of it on "xrc" one. Closes #10889.

2012-10-23 15:51 VZ, revision 72727

Refactor wxXRC to allow defining handlers outside of xrc library. Split wxXmlResourceHandler into an ABC and the real implementation to allow referencing the ABC in the core library itself but without pulling in all of the XRC into it. This also allows defining XRC handlers, which only depend on this ABC and not the xrc library, in other libraries, such as richtext, as demonstrated by the now enabled wxRichTextXMLHandler. Closes #10996.

2012-10-23 15:51 VZ, revision 72726

Define WXDLLIMPEXP_FWD_RIBBON for consistency with all the other libraries. We defined only WXDLLIMPEXP_RIBBON but not the FWD version, do add it now.

2012-10-23 14:06 VZ, revision 72725

Recognize more XRC elements as containing translatable strings. This allows to translate the text of these elements in wxrc-generated code using gettext. Closes #14765.

2012-10-23 14:03 VZ, revision 72724

Add a simple unit test for wxRegion::Intersect(). Check that Intersect() returns true, yet the intersection is empty.

2012-10-23 14:02 VZ, revision 72723

Process pending events from wxYield() in wxGTK. Calling wxYield() is supposed to process the pending events but it didn't, any more, in wxGTK. Restore this by explicitly calling ProcessPendingEvents() from wxGTK wxYield() implementation as wxGUIEventLoop::ProcessIdle() does not call it, in spite of a comment to the contrary in the sources. Closes #14760.

2012-10-23 14:02 VZ, revision 72722

Add wxEvtHandler::CallAfter() for asynchronous method calls. Add wxAsyncMethodCallEvent that is handled simply by calling the method this event was created for and add default handler for this event to wxEvtHandler. Implement CallAfter() overloads for up to 2 parameters only for now.

2012-10-23 14:02 VZ, revision 72721

Add wx/meta/removeref.h header defining wxRemoveRef<> helper. This is a very simple template allowing to remove the reference from the given type, similar to std::remove_reference<>.

2012-10-22 23:46 VZ, revision 72720

Fix border size computation in wxAuiTabArt. Space was reserved for the borders even when it wasn't filled, resulting in visual artefacts. Fix this by virtualizing the function returning the additional space needed for the borders and only overriding it to return non zero in wxAuiGtkTabArt. Closes #14710.

2012-10-22 17:51 VZ, revision 72719

Set C++ global locale too in wxAppTraitsBase::SetLocale(). Ensure that C++ locale matches the C one, otherwise operations on C++ streams may get much slower because some implementations (notable MinGW-64) change and reset the C locale on every function call in this case.

2012-10-22 17:51 VZ, revision 72718

Revert accidental incompatible change to wxFileName::DirExists(). The non-static version tests for the existence of the directory part of the object only as is explicitly mentioned in the documentation, so do the test on GetPath() and not GetFullPath() as we did since r72707. Also add a unit test for this behaviour. Closes #14771.

2012-10-22 13:21 VZ, revision 72717

Ensure the correct cleanup order for GDI+-related modules in wxMSW. GDI+ DLL could be unloaded by wxGdiPlusModule before wxGDIPlusRendererModule:: OnExit() was called, resulting in a crash when trying to call a GDI+ function from the latter. Fix this by adding a correct dependency between the modules. Closes #14769.

2012-10-21 22:48 VZ, revision 72716

Remove unnecessary SetInitialSize() from wxGTK wxComboBox::Create(). SetInitialSize() is already done by PostCreation() called just above, no need to call it twice.

2012-10-21 22:33 SJL, revision 72715

Explicitly unregister custom wxWebViewIE namespaces when we are done with them. Also add a missing ClassFactory::AddRef. Closes #14749

2012-10-20 16:49 VZ, revision 72714

Check the return value of system() and pipe() in the test suite. This is mainly to avoid -Wunused-result warnings under recent Linux systems but also could give valuable information if the call does fail.

2012-10-20 16:48 VZ, revision 72713

Fix tests compilation in STL build after r72707. Add an explicit call to wxString::c_str() as there is no implicit conversion in STL build.

2012-10-20 14:04 VZ, revision 72712

Nepali translation update from Him Prasad Gautam.

2012-10-20 00:03 VZ, revision 72711

Update header control when wxPropertyGridManager is resized. Closes #14762.

2012-10-20 00:03 VZ, revision 72710

Allow specifying all wxFlexGridSizer parameters in XRC. Add support for specifying flexible direction, grow mode in non-flexible direction and row/column proportions for the growable ones. Closes #14767.

2012-10-20 00:03 VZ, revision 72709

Add more error checks to XRC handler for longs, doubles and fonts. Verify that the values in the XRC really conform to the expected type. Closes #14766.

2012-10-20 00:02 VZ, revision 72708

Add missing styles support to wxWindow XRC handler. wxBORDER_RAISED, wx[HV]SCROLL and a few extended styles were not recognized. See #14766.

2012-10-20 00:02 VZ, revision 72707

Allow testing for existence of specific file types in wxFileName. Add "flags" parameter to wxFileName::Exists() to allow testing for the existing of files of specific type: not only regular or directory but also symlink, device, FIFO or socket. And also to pass wxFILE_EXISTS_NO_FOLLOW flag inhibiting following the symlinks without using DontFollowLink(). Closes #14542.

2012-10-19 13:06 VZ, revision 72706

Remove assert checking for valid font in wxMSW wxDC::GetTextExtent(). It wasn't there before wxTextMEasure changes and it doesn't seem obvious why should it be there, it should be possible to measure the text using the default wxDC font without setting one explicitly.

2012-10-19 12:43 VZ, revision 72705

Declare MeasuringGuard as friend in wxTextMeasureBase. This should hopefully fix VC6 compilation.

2012-10-19 12:42 VZ, revision 72704

Invalidate wxGrid best size when the grid is changed. Don't keep using the cached best size if rows/columns are added/removed to/from wxGrid or resized, doing this meant that we always used the first computed best size which was way too small after adding rows/columns to the grid. There could be more places where the grid best size may need to be invalidated but this should be a good start. Closes #14761.

2012-10-19 01:41 VZ, revision 72703

Fix bug in wxFileName::Exists("/"). Don't remove too many trailing slashes, the lone slash of "/" should remain.

2012-10-18 20:35 RD, revision 72702

non-pch build fix

2012-10-18 07:06 PC, revision 72701

non-pch build fix

2012-10-18 01:06 VZ, revision 72700

Fix crash in wxDC::GetMultiLineTextExtent() after last commit. Don't call wxTextMeasure::DoGetTextExtent() with NULL width pointer, it now supposes that both width and height pointers are non-NULL. Add at least a trivial unit test for GetMultiLineTextExtent().

2012-10-18 00:35 VZ, revision 72699

Factor out text measurement from wxDC and wxWindow into wxTextMeasure. Add a new private wxTextMeasure class implementing methods for measuring text and move the often duplicated (but not always identically) code for doing the same from wxDC and wxWindow into it. Currently this class is only really implemented in wxMSW and wxGTK. Also extend the test for text measuring functions and rename it to MeasuringTextTestCase from MeasuringContextTestCase as it's not wxGC-specific any more. Closes #14705.

2012-10-18 00:35 VZ, revision 72698

Remove unused code from MeasuringContextTestCase. m_win variable was never used and setUp() and tearDown() were simply not needed here.

2012-10-17 18:44 VZ, revision 72697

Fix wxGrid editors background painting. There were two fundamental problems: first, we painted on a separately created wxClientDC instead of using the wxPaintDC already available in wxGrid. Second, we invalidated the control while painting, resulting in endless repainting, at least under wxGTK. Fix the first problem by passing wxDC to wxGridCellEditor::PaintBackground() and the second one by not refreshing the control from there as it just seems unnecessary. Also pass the attribute by reference for consistency with wxGridCellRenderer::Draw() and because this pointer can never be NULL. Closes #2628.

2012-10-17 18:23 PC, revision 72696

Disconnect all GTK signals referencing a wx object which is being destructed or which is destroying the associated GTK object

2012-10-17 17:45 VZ, revision 72695

Make wxFindReplaceData accessors const. Closes #14755.

2012-10-17 02:24 VZ, revision 72694

Added buildbot slave configuration for brandt64. New 64 bit build slave ran by Gerald Brandt with just a couple of builds for now.

2012-10-17 00:28 VZ, revision 72693

Add wxEvent::GetEventUserData() and improve user data documentation. Provide a public and documented accessor for wxEvent::m_callbackUserData. Also document better the user data semantics and how it can be used. Closes #14748.

2012-10-17 00:28 VZ, revision 72692

Define CLSID_DragDropHelper ourselves to fix VC6 build. VC6 SDK doesn't define CLSID_DragDropHelper constant neither, so do it ourselves too to complete the changes of r72673. Closes #14697.

2012-10-16 20:05 PC, revision 72691

fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752

2012-10-16 16:06 VZ, revision 72690

Use the correct window as parent of wxInfoBar close button. Fix breakage of r72474 that used the parent window instead of wxInfoBar itself as the parent of its close button. Closes #14750.

2012-10-16 16:02 VZ, revision 72689

Improve inotify()-based wxFileSystemWatcher to handle creation/deletion. Handle creation and deletion of directories under the watched path better. See #14544.

2012-10-16 16:02 VZ, revision 72688

Add a debug helper to show information about a GtkWidget under gdb. For now just give its type which is not exactly exhaustive but better than nothing.

2012-10-16 16:01 VZ, revision 72687

Correct example of handling property values changes in the docs. "." was incorrectly used with a pointer, replace it with a "->".

2012-10-15 03:17 VZ, revision 72686

Correctly document the library the classes belong to. Many classes were documented as being in a wrong library, mostly a lot of wxbase vs wxcore confusion but we even managed to document wxAuiManager as being in wxbase. Correct all this. Closes #14745, #14747.

2012-10-15 03:13 VZ, revision 72685

Make help strings for --enable-webview* configure options match their names. The options didn't have the underscore shown in the help message, so remove the underscore (while it could be argued that underscore makes the option names more readable, it seems better to preserve the existing names for compatibility).

2012-10-15 03:10 VZ, revision 72684

Mention David Hart bug fixes in wxFileSystemWatcher. See #14488, #14490, #14544.

2012-10-15 03:10 VZ, revision 72683

Handle deletion of watched directories in wxFileSystemWatcher sample. Don't assert when trying to stop watching a directory that doesn't exist any more later. See #14544.

2012-10-15 03:09 VZ, revision 72682

Fix bug in Unix wxFileSystemWatcher implementation when watch is deleted. Don't assert when removing a watch descriptor from the stale descriptors list. See #14544.

2012-10-15 03:09 VZ, revision 72681

Check for filespec when generating events in wxFileSystemWatcher. Instead of setting watches on individual files when a non-empty filespec is given, always watch all the files but just ignore the events from the ones not matching the filespec. This makes the code simpler and fixes several bugs. See #14544.

2012-10-15 03:09 VZ, revision 72680

Add support for symlinks to wxFileName. Allow to work with the symlinks themselves and not the file they reference by calling the new wxFileName::DontFollowLink(). Update Unix wxDir implementation to not treat symlinks to directories as directories, this ensures that we don't recurse into the directories outside of the original parent accidentally. Closes #14542.

2012-10-15 03:08 VZ, revision 72679

Make wxFileSystemWatcher watch entries reference-counted. This helps to avoid problems that arise from watching the same physical file system path multiple times, which could happen when adding a watch for a path already watched because of a recursive watch on a parent directory, for example. Closes #14490.

2012-10-15 03:08 VZ, revision 72678

Improve handling of file spec in wxFileSystemWatcher::AddTree(). Fix watching too many files (i.e. even those not matching the provided spec) and asserts when removing a recursive watch with a file spec in wxMSW. Closes #14488.

2012-10-14 21:30 VS, revision 72677

anybutton.cpp compilation fix for wxUSE_IMAGE=0. Disabled bitmaps are not rendered properly in this configuration, they look the same as normal ones. This is hardly ideal, but such degradations are to be expected when disabling something as widely used as wxImage.

2012-10-14 21:15 VS, revision 72676

Compilation fix - wx/vector.h is not part of PCH.

2012-10-14 21:14 VS, revision 72675

wxDisplay only needs dynlib.h, not dynload.h.

2012-10-14 16:55 VZ, revision 72674

Make GetClippingBox() work for wxPrinterDC in wxGTK. GetClippingBox() implementation relies on wxDCImpl::m_clip[XY][12] being updated in DoSetClippingRegion() but this wasn't done here. Fix this by adding the code to do this to the base class version of this method and calling it from wxGtkPrinterDCImpl. Also, refactor wxGCDCImpl to reuse the same code instead of duplicating it. Closes #14697.

2012-10-14 16:42 VZ, revision 72673

Provide stand-in IDropTargetHelper definition to fix VC6 build. VC6 SDK doesn't define this interface, so do it ourselves to fix its build after the changes of r72668. See #14697.

2012-10-14 00:55 VZ, revision 72672

Make TAB behaviour in wxGrid more configurable. Allow making TAB/Shift-TAB wrap to the next/previous row or going to the next/previous control when the cursor is at the end/beginning of the current row easily. Also add wxEVT_GRID_TABBING event to allow customizing TAB behaviour even further. Update the sample to show the different possible standard behaviours and a stupid example of a custom one (it would be probably more useful to implement something a tad more realistic, e.g. tabbing to the next non-empty cell). Closes #14711.

2012-10-14 00:54 VZ, revision 72671

Just correct the path in the header comment. Add the missing "private" path component.

2012-10-14 00:54 VZ, revision 72670

Document that HasFocus() is new in 2.9. Closes #14740.

2012-10-14 00:54 VZ, revision 72669

No changes, just update a comment about default buttons in wxMSW. Remove the TODO from it because it's not really obvious if using the proposed approach is such a good idea.

2012-10-14 00:53 VZ, revision 72668

Display system-provided drag images during drag-and-drop in wxMSW. This is especially useful when dragging files from Explorer as it provides big, informative drag images for them that can be easily displayed using Windows shell support for them. See #14697.

2012-10-14 00:53 VZ, revision 72667

Use a "hidden" dialog, not frame, in sync wxExecute() hack in wxMSW. Replace a "hidden" (not really, but shown far off screen) frame with a dialog to avoid this frame appearing in the Alt+TAB list. Closes #13251.

2012-10-14 00:52 VZ, revision 72666

Set the standard sample icon for the exec sample. Do this for consistency with all the other ones and also because it makes it simpler to notice any unwanted icons for hidden windows created by this sample. See #13251.

2012-10-14 00:52 VZ, revision 72665

Freeze wxTreeCtrl in wxMSW by hiding it. This is far from perfect but better than alternative as freezing this control by sending WM_SETREDRAW to it can result in completely broken behaviour as explained in http://support.microsoft.com/kb/130611. And not freezing it at all shows horrible flicker when adding even a relatively small number of items at once to the control because it recalculates and repositions its scrollbars after every parent node addition.

2012-10-14 00:52 VZ, revision 72664

Set wxTAB_TRAVERSAL for wxNavigationEnabled<> windows with focusable children. We need to have this flag under wxMSW in order for navigation events to be generated for the window. As wxNavigationEnabled can't set this flag on creation because its ctor is called too early, do it in overridden AddChild(). Closes #13271.

2012-10-14 00:51 VZ, revision 72663

Allow using windows that can't be focused with wxNavigationEnabled<>. The code in wxNavigationEnabled<> assumed that the window itself could be focused if it didn't have any focusable children because it was originally extracted from wxPanel that can, indeed, be focused. This is however not the case for all windows, notably not for wxStaticBox which now derives from wxNavigationEnabled as well but can never be focused itself. Add wxControlContainer::DisableSelfFocus() and call it from wxStaticBox to support this situation. This required splitting m_acceptsFocus flag into m_acceptsFocusSelf and m_acceptsFocusChildren and updating various methods using them. See #13271.

2012-10-14 00:51 VZ, revision 72662

Use WS_EX_CONTROLPARENT for wxStaticBox in wxMSW. This doesn't change anything currently but it seems correct to use this style with wxStaticBox as it can now contain other windows (and so be "control parent"), so it could allow Windows or other programs checking for this style to handle it more correctly.

2012-10-14 00:51 VZ, revision 72661

Remove unused wxNavigationEnabled::AcceptFocus() method. This doesn't seem to be ever called or used from anywhere else.

2012-10-14 00:50 VZ, revision 72660

Document wxListBox limitation concerning TAB characters. TABs appear simply as a space under MSW (because we don't use LBS_USETABSTOPS style there) but are aligned to (multiple of 8?) tab stops under GTK. It's not clear which behaviour is actually preferable so for now just document the inconsistency and advise people to use spaces instead.

2012-10-14 00:50 VZ, revision 72659

Remove mention of "listbox callback" from wxListBox documentation. This is probably a left over from wxWidgets 1.x.

2012-10-14 00:49 VZ, revision 72658

Improve explanation of maximal number of wxListBox items in the documentation. Don't say that it's limited -- because, strictly speaking, it isn't -- but mention other controls that are better alternatives for large numbers of items.

2012-10-14 00:49 VZ, revision 72657

Do give focus to the wxNotebook page when switching to it under MSW. Switching to the page but keeping the focus on the notebook itself makes it difficult to use the UI from keyboard and is inconsistent with the behaviour of native property sheets. Do restore the code to set the focus to the page as the bug that resulted in a wrong radio button being selected when we did this was apparently fixed elsewhere in the meanwhile because it doesn't happen any more even with this change. See #2268.

2012-10-12 20:45 VZ, revision 72656

Tamil translations update from DINAKAR T.D.

2012-10-12 00:29 VZ, revision 72655

Document default argument value of wxListCtrl::EnableBellOnNoMatch(). In addition to forgetting to specify the default value in wxGenericListCtrl, it was also not documented, do it now to complete the fix of r72654.

2012-10-11 14:41 VZ, revision 72654

Use "true" by default in wxGenericListCtrl::EnableBellOnNoMatch(). The changes of r72639 mistakenly omitted the default value for EnableBellOnNoMatch() argument in this class (although it was present in the base class and in wxGenericTreeCtrl), fix this.

2012-10-11 13:15 JJ, revision 72653

Update setup.h for OpenVMS

2012-10-10 20:47 VZ, revision 72652

Mention InvalidateBestSize() in DoGetBestClientSize() documentation. It is not obvious that it needs to be called when the best size changes, so give at least a hint.

2012-10-10 17:45 JS, revision 72651

Don't write text if it's empty

2012-10-10 17:43 JS, revision 72650

Don't write text if it's empty

2012-10-09 23:28 VZ, revision 72649

Do return the protocol part from GetLocaltion() for local wxFSFiles. wxLocalFSHandler created wxFSFile without the protocol information which means that calling GetLocaltion() on this file later doesn't return it, contrary to the documentation. Do include the protocol to fix this. Closes #14638.

2012-10-09 23:02 VZ, revision 72648

Generate text events in generic wxSpinCtrl itself. The text events in a wxSpinCtrl should originate from the control itself but they were just propagated upwards from wxTextCtrl embedded into it and hence had wrong event object and event ID fields. Fix this by making EVT_TEXT come from wxSpinCtrl itself, in addition to EVT_TEXT_ENTER ones which we already forwarded like this.

2012-10-09 23:01 VZ, revision 72647

Copy wxCommandEvent string explicitly in its copy ctor. Due to the optimization used in wxCommandEvent::GetString(), which returns the string from the text control that generated the event only if it's really needed, wxCommandEvent::m_cmdString field may be empty even when it does have an associated string. As we lose the possibility to retrieve the value on demand from wxTextCtrl when we make a copy (because it can be associated with a different object), we need to explicitly copy the string to avoid losing this data entirely. This fixes GetString() value for the text events generated by generic wxSearchCtrl.

2012-10-09 23:01 VZ, revision 72646

Fix printing in landscape mode in wxGTK. Only apply Cairo transforms in StartPage(), doing it earlier interferes with the code doing the coordinate system rotation inside GTK+ itself when a non-portrait printing mode is used. Closes #14732.

2012-10-09 06:01 PC, revision 72645

backport r69863 "Don't include pbt.h from wxMSW code unnecessarily"

2012-10-08 14:09 VZ, revision 72643

Document wxGrid methods dealing with cell overflow. Closes #14733.

2012-10-08 14:09 VZ, revision 72642

Recreate GtkPrintOperation every time when printing in wxGTK. Apparently reusing GtkPrintOperation is not allowed, so create a new one every time we need it. Closes #14731.

2012-10-08 14:09 VZ, revision 72641

Improve wxAuiNotebook appearance when using some GTK themes. Let wxAuiNotebook render the border itself, instead of doing it in dock art class. This allows the notebook to do it correctly for the current theme. Closes #14710.

2012-10-08 00:42 VZ, revision 72640

Ensure that key events are sent to focused window first in wxGTK. Start processing key events from the currently focused window, this ensures that its key event handlers are tried before the top level window accelerators. This is consistent with wxMSW and allows a window to locally override the global accelerators which really makes sense. Closes #14553.

2012-10-08 00:42 VZ, revision 72639

Implement incremental search in wxGenericListCtrl. Mostly copy wxGenericTreeCtrl incremental search implementation to wxGenericListCtrl (unfortunately there is no simple way to reuse this code currently), including the recently added EnableBellOnNoMatch() method. Update the sample to test it, the key event handling in it had to be modified to allow it.

2012-10-08 00:42 VZ, revision 72638

Add a possibility to beep on no match to wxGenericTreeCtrl. For consistency with Windows, allow to optionally generate a beep when incremental search in the tree control doesn't find anything.

2012-10-08 00:41 VZ, revision 72637

Fix return value of wxGenericTreeCtrl::FindItem(). We incorrectly returned the item we started from instead of invalid item if there was no match, fix this.

2012-10-08 00:41 VZ, revision 72636

Handle successive key presses better in wxGenericTreeCtrl search code. Go to the next item starting with the given character if the same one is pressed multiple times. This is more useful than searching for an item starting with multiple occurrences of this character (which usually won't exist) and is more consistent with how Windows handles this.

2012-10-08 00:40 VZ, revision 72635

Recognize "_" as alphanumeric key in wxGenericTreeCtrl find item code. Items can have underscores in their names too, not just letters and digits.

2012-10-08 00:40 VZ, revision 72634

Fix spurious label editing in generic wx{List,Tree,DataView}Ctrl. Clicking on the control to give it focus must not start editing the label of an item in it, this is bad UI as you need to carefully select where do you click to avoid starting to edit the label and nobody else does it like this (probably because of the former reason). As a side note, it would be really great to abstract the item handling in a class that could be reused by all these controls instead of having to update 3 slightly different versions of the same code every time.

2012-10-08 00:40 VZ, revision 72633

Don't set focus explicitly in wxGenericListCtrl mouse handling code. Just skip the event to allow the system to set the focus to the control itself. This is more consistent with the other controls and should result in correct behaviour everywhere automatically.

2012-10-08 00:39 VZ, revision 72632

Don't set focus to generic wxDataViewCtrl on any button press. Only set focus if the left button was pressed for consistency with just about everything else. Also, just skip the event instead of setting the focus explicitly.

2012-10-08 00:39 VZ, revision 72631

No real changes, just don't use brush styles for background mode in wxHTML. Use just wxTRANSPARENT and wxSOLID instead of wxBRUSHSTYLE_TRANSPARENT and wxBRUSHSTYLE_SOLID when changing the background mode. See #14599.

2012-10-08 00:38 VZ, revision 72630

Support some CSS styles for the links in wxHTML too. Refactor limited CSS styles support for <span> tag to reuse it for <a> tag as well. Closes #14599.

2012-10-08 00:38 VZ, revision 72629

Flush log messages from other threads on shutdown too. Add a call to wxLog::FlushActive() to the shutdown code as calling just wxLog::SetActiveTarget(NULL) is not enough, it flushes the current log target only but not the ones used by other threads. Closes #14595.

2012-10-08 00:38 VZ, revision 72628

Update the year in the copyright for wxMSW DLLs. Just s/2010/2012/

2012-10-08 00:37 VZ, revision 72627

Fix drawing of wxAuiNotebook with GTK theme when active tab is invisible. Draw a box using gtk_paint_box() for the tabs, without border for the active one to avoid an extra line across the gap, and with the border for the others. Closes #14728.

2012-10-08 00:37 VZ, revision 72626

Fix test for __WXGTK__ in wxCairoContext. It must be tested with #ifdef, not #if.

2012-10-07 18:49 VS, revision 72625

Fix wxGenericCollapsiblePane to expand frame's size. wxGenericCollapsiblePane::DoGetBestSize() is dynamic, returning different values for collapsed and open states. Therefore the control must invalidate best sizes cache every time its state changes.

2012-10-05 01:24 VZ, revision 72621

Add support for wxALWAYS_SHOW_SB style to wxScrolled<>. Simply call ShowScrollbars(wxSHOW_SB_ALWAYS) if this style is specified. Closes #13616.

2012-10-05 01:24 VZ, revision 72620

Document wxHSCROLL and wxVSCROLL styles for wxScrolled<>. Explain that by default both styles are assumed but that using just one of them disables the scrolling in the other direction.

2012-10-05 01:23 VZ, revision 72619

Add a setting for the disabled text colour to wxRibbon art. Allow specifying the text for the labels of the disabled items separately. Closes #14721.

2012-10-05 01:23 VZ, revision 72618

Add a more convenient wxColour::MakeDisabled() overload. Allow creating a disabled version of the colour without having to manually break it into RGB components and then recreating it from them.

2012-10-05 00:49 VZ, revision 72617

Remove unneeded variable initializations in wxPM code. Closes #14724.

2012-10-05 00:48 VZ, revision 72616

Fix bugs in the recently added wxDateTime::DiffAsDateSpan(). Correct the test for negative spans less than a month and use the correct month for computing the number of days in it. Also add unit tests for problematic cases. Closes #14704.

2012-10-05 00:48 VZ, revision 72615

Add wxDateSpan::GetTotalMonths() method. This is similar to the existing GetTotalDays() and counts both months and years. See #14704.

2012-10-05 00:47 VZ, revision 72614

Fix fatal bug in the recently added wxFile::ReadAll(). Make sure we exit the loop when reading the file in chunks in wxFile::ReadAll() and add a unit test for it to ensure that it's really correct. Closes #14725.

2012-10-04 18:08 PC, revision 72613

non-pch build fix

2012-10-04 17:58 PC, revision 72612

remove always-true comparison of unsigned value >= 0

2012-10-04 17:55 PC, revision 72611

silence warnings about shadowed variables with GCC -Wshadow

2012-10-03 10:32 VZ, revision 72610

Do use IsEscapeKey() in wxDialog escape key handling. This method was added back in r40686 but was never actually used anywhere. Do use it in wxDialogBase::OnCharHook() now instead of hard-coding the check for WXK_ESCAPE, this should allow using Cmd+. to work like Escape under Mac which was apparently the intention of the code in src/osx/dialog_osx.cpp. Also fix IsEscapeKey() itself to ignore any modifiers as at least under MSW Esc always closes the dialog, even if Shift or Alt is pressed.

2012-10-03 09:58 VZ, revision 72609

Add missing header to fix MiscGUIFuncsTestCase compilation. Need full wxPanel declaration here now.

2012-10-03 02:16 VZ, revision 72608

Fix wxFindWindowAtPoint() unit test to pass under GTK. We need to ensure that all windows are realized before querying their positions on screen, so add an extra wxYield(). Also adjust the tests slightly as the windows are now all created in the beginning of the function. Finally, use Destroy() instead of wxDELETE() for windows.

2012-10-03 02:16 VZ, revision 72607

Added a simple unit test for wxWindow::ClientToScreen(). Check that this function works consistently for the TLW and its children and grand-children.

2012-10-03 02:16 VZ, revision 72606

Avoid creating children of wxButton in MiscGUIFuncsTestCase. This doesn't work in wxGTK, use a normal wxWindow instead of wxButton in this case.

2012-10-02 18:19 PC, revision 72605

remove some unnecessary casts

2012-10-02 17:57 PC, revision 72604

make more Init() functions private

2012-10-01 12:47 VZ, revision 72603

Fix assert about passing long as "%d" in wxXRC code. Closes #14718.

2012-10-01 11:55 VZ, revision 72602

No changes, just remove some unneeded variables initializations. Closes #14716, #14717.

2012-10-01 11:55 VZ, revision 72601

Test for wxAuiMDIClientWindow being non-NULL before using it. wxAuiMDIParentFrame::GetActiveChild() may be called before the client window is created, don't crash in this case but just return NULL. Closes #14684.

2012-10-01 11:55 VZ, revision 72600

Add wxDateTime::DiffAsDateSpan(). This method returns the difference between the dates as wxDateSpan, unlike the existing Subtract() and overloaded operator-() that return wxTimeSpan. Closes #14704.

2012-10-01 11:40 VZ, revision 72599

Fix PCH-less build after the changes of r72589. Use wx{SOLID,TRANSPARENT} instead of wxBRUSHSTYLE_{SOLID,TRANSPARENT}. This makes more sense as we're setting background mode, not brush style, here and also fixed compilation when not using PCH.

2012-10-01 00:28 VZ, revision 72598

Read and write files using binary mode in wxStyledTextCtrl. Use binary mode to preserve the original file EOLs when loading it and also to save it with the same EOLs later. Add very primitive EOL auto-detection to LoadFile(). Also add SaveFile()/LoadFile() which were missing in !wxUSE_TEXTCTRL case.

2012-10-01 00:28 VZ, revision 72597

Small optimization of wxFFile::ReadAll(): avoid extra string copy. Use swap() to move the newly created string into its destination instead of copying it there. This can be relatively important as the string represents an entire file contents here and so could be quite long.

2012-10-01 00:28 VZ, revision 72596

Added wxFile::ReadAll() for consistency with wxFFile::ReadAll(). Make it possible to use wxFFile and wxFile interchangeably for simply reading the entire contents of the file as a string.

2012-10-01 00:27 VZ, revision 72595

Reimplement wxTextEntry::DoSetValue() in wxStyledTextCtrl. The version inherited from the base class does work already but calling Scintilla SetText() directly should be more efficient than selecting everything and then calling ReplaceSelection() as the base class version does, less code is executed.

2012-10-01 00:27 VZ, revision 72594

Fix wxStyledTextCtrl::WriteText() to replace the selection. WriteText() must replace the selection, not just insert the new text, otherwise SetValue() implementation inherited from the base class doesn't work as it doesn't clear the old contents of the control before adding new text to it.

2012-10-01 00:26 VZ, revision 72593

Don't call ClearAll() before LoadFile() in the stc sample. There is no need to clear the control contents before loading a file into it because LoadFile() is supposed to do this on its own (although currently it doesn't, which will be fixed soon).

2012-10-01 00:26 VZ, revision 72592

Make stc sample startup faster. Don't show "About" dialog on startup, this has nothing to do with the purpose of this sample and is just annoying. Also, don't select the entire file after opening it.

2012-10-01 00:21 VZ, revision 72591

Add per-direction wxSocket wait flags and byte counters. Allow to specify whether the socket should block until all the data is read or written or, on the contrary, avoid blocking only when reading or writing instead of always using the same behaviour in both directions. Also add separate counters for the bytes read/written instead of using the same one for both. These changes make it possible to use the same socket for reading/writing in different threads. Closes #14506.

2012-10-01 00:21 VZ, revision 72590

Don't crash in generic wxDataViewCtrl if it doesn't have any model. A model may be dissociated from a still existing control, don't crash if it happens (notice that we still would crash in the native GTK version right now, so this still remains to be fixed there). See #14616.

2012-10-01 00:20 VZ, revision 72589

Add support for background-color style to span element in wxHTML. Add code for setting/restoring background mode and use it to implement support for changing the text background colour. Closes #14443.

2012-10-01 00:20 VZ, revision 72588

Fix handling of spaces after <img> tag in wxHTML. Don't collapse the spaces following this tag with the ones preceding it. See #14557. Closes #2980.

2012-10-01 00:20 VZ, revision 72587

Convert image tags to text using their alt attribute in wxHTML. This is useful when copying wxHtmlWindow contents to clipboard, for example. Closes #14557.

2012-10-01 00:19 VZ, revision 72586

Fix handling of not fully specified min/max size in wxBoxSizer. wxSizerItem::AddBorderToSize() added in r72344 (see #11497) didn't work correctly as it replaced unspecified (i.e. set to -1) components of wxSize with the small positive values that did take effect, contrary to the intention. Fix it to only adjust the actually set component(s) of wxSize. Closes #14696.

2012-10-01 00:19 VZ, revision 72585

No changes, just fix some typos in comments in wxXRC code. Closes #14714.

2012-10-01 00:19 VZ, revision 72584

No changes, just remove unneeded variable initialization. Closes #14712, #14713.

2012-09-30 22:35 VZ, revision 72583

Revert "Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext." This reverts r72442 and restores the use of GenericTypographic string format for GDI+ text rendering. While it's true that using this flag with small font sizes results in pretty bad output, especially under Windows XP, not using it results in wrong text extent calculations for all sizes which is even worse. See #14537.

2012-09-30 22:35 VZ, revision 72582

Fix computation of menu button best size in generic wxSearchCtrl. Invalidate the cached best size when the bitmap changes. Closes #14708.

2012-09-30 22:35 VZ, revision 72581

Clear the search control automatically when it's "Cancel" button is pressed. This should be the desired behaviour in the vast majority of cases, so do it by default. Replace the useless OnSearchButton() doing nothing with search button events with OnCancelButton() handling cancel button events and clearing the control.

2012-09-30 22:34 VZ, revision 72580

Don't use text control foreground colour for generic wxSearchCtrl itself. Logically, it should be done in the other direction and also doing it like this means that the search and cancel icons, rendered using the current foreground colour, are barely visible when using generic wxTextCtrl::SetHint() implementation, as in wxGTK, because the text control foreground is set to light grey in this case.

2012-09-30 18:55 PC, revision 72579

make wxWindowGTK::Init() private, it is not meant to be called from derived classes

2012-09-30 04:33 RD, revision 72578

Use Refresh when the initial paint was abandoned by Scintilla so it will trigger a repaint of the whole window. This is done for things like style changes, word wrapping or brace highlights where more than the current line is affected. Fixes #14653.

2012-09-29 01:50 VZ, revision 72577

Fix generic wxSearchCtrl best size calculation. The best size of its text control part was not calculated correctly any more because a wrong best size was cached during wxSearchTextCtrl construction, when the final class overridden DoGetBestSize() was not called. Fix this by explicitly invalidating the best size at the end of constructor for now even though it would be arguably better to fix this in some way not requiring anything extra to be done to always take the overridden method into account, especially as it used to work before. But it's not clear how exactly to restore this so for now do at least fix wxSearchCtrl appearance. Closes #14708.

2012-09-29 01:50 VZ, revision 72576

Fix wxSearchCtrl recreation in the widgets sample. The control wasn't readded to the sizer correctly after being recreated.

2012-09-29 01:49 VZ, revision 72575

Remove unused SearchCtrlWidgetsPage::Reset() from widgets sample. This method was simply unused and unneeded.

2012-09-29 01:49 VZ, revision 72574

Don't send events for disabled ribbon bar buttons. Hover and activation events were sent even for the disabled buttons which was unexpected and inconsistent with wxRibbonToolBar, so don't do it. Closes #14709.

2012-09-29 01:48 VZ, revision 72573

Make wxHelpControllerBase::SetFrameParameters() title more clear. Describe it as "title format string" and call it "titleFormat" and not just "title" because this is what it is. Closes #14707.

2012-09-29 01:48 VZ, revision 72572

Add "inherit" to <font> XRC tag. This allows to construct a font based on the parent window font instead of either fully specifying all font parameters or basing it on a standard font. Closes #14632.

2012-09-29 01:48 VZ, revision 72571

Fix testing for existence of paths with trailing separators in wxMSW. We removed the trailing separators, that prevented GetFileAttributes() from working correctly, from the path but then didn't pass the modified path to it but the original one. Fix this and do use the updated path.

2012-09-28 18:09 PC, revision 72569

Avoid unrealizing a frozen window It seems to continue to prevent updates to the affected area Fixes #13543

2012-09-28 00:41 VZ, revision 72568

Make wxTextEntryDialog resizable. It can be used for entry of relatively long text now, especially when wxTE_MULTILINE flag is used, so allow the user to resize it to facilitate the entry. Closes #14702.

2012-09-28 00:41 VZ, revision 72567

Add two step creation to wxTextEntryDialog. Add Create() method and default ctor for consistency with the other classes. See #14702.

2012-09-28 00:41 VZ, revision 72566

Use SelectAll() instead of SetSelection(-1, -1). The former is more clear and also shorter. Closes #14701.

2012-09-28 00:40 VZ, revision 72565

Remove the now unnecessary wxRichTextCtrl::SelectAll(). It is already inherited from the base wxTextEntry class. See #14701.

2012-09-27 15:58 VZ, revision 72564

Fix _tputenv() return value test in wxSetEnv(). _tputenv() returns -1, not 0, on error, as all the other CRT functions, so the test added by r72496 resulted in wxSetEnv() and wxUnsetEnv() always failing when using MSVC.

2012-09-27 14:47 VZ, revision 72563

Account correctly for the controller when computing wxBookCtrl best size. We must not increase the total control size in the direction along the controller window as the size of the controller in this direction is determined by the size of the control itself. So doing this resulted in always increasing best size in this direction to be at least equal to the current size which was wrong. Closes #14496.

2012-09-27 14:47 VZ, revision 72562

Use wxSize::IncTo() in wxBookCtrlBase::DoGetBestSize(). No changes, just use an existing wxSize method instead of reimplementing it in the loop over the pages in wxBookCtrlBase.

2012-09-27 14:46 VZ, revision 72561

Avoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize(). If m_fitToCurrentPage is true, there is no need to iterate over all the pages computing their max best size only in order to overwrite it with the best size of the current page later. This doesn't result in any changes in the behaviour, just avoids useless best size computations.

2012-09-27 00:30 VZ, revision 72560

Do not unref GtkWidget of unattached wxMenuBar. This results in the destruction of the widgets of all of its menu and when wxMenu objects are themselves destroyed in the base class dtor, we try to destroy their already destroyed widgets, resulting in critical GTK warnings. Simply don't do anything in wxMenuBar dtor itself if the menu bar is not attached to a frame as the workaround was only needed in case of destroying attached menu bars.

2012-09-27 00:29 VZ, revision 72559

Fix GTK warnings when destroying unattached wxMenuBar. Reset m_focusWidget to NULL when destroying m_widget in wxMenuBar dtor, otherwise we try to use this already destroyed (because it's the same as m_widget) widget in wxWindow dtor later resulting in critical GTK warnings.

2012-09-27 00:29 VZ, revision 72558

Don't crash in wxMenuBar::Remove() if unattached in wxGTK. It should be possible to remove a menu from a menu bar even before it is attached to a frame without crashing.

2012-09-26 14:20 VZ, revision 72557

Update MSW installation instructions for 2.9. Remove all mentions of 16 bit build. Update the list of supported compilers and their versions. Update Unicode build description. Closes #11908.

2012-09-26 14:20 VZ, revision 72556

Merge "selected" and "active" child in wxAuiMDIParentFrame. They are one and the same thing and so just make them really synonymous instead of (unsuccessfully) trying to keep them synchronized. Closes #14684.

2012-09-26 01:53 RD, revision 72555

Reserve the whole style byte for styles. See #14688

2012-09-26 01:53 RD, revision 72554

Scintilla's Point class no longer matches the structure of wxPoint, so we need to copy points to a wxPoint array instead of just typcasting Scintilla's array. Fixes #14687

2012-09-25 22:40 BP, revision 72553

Fixed interface typo breaking wxRibbonBar docs (from r72495).

2012-09-25 20:01 PC, revision 72552

call Thaw() instead of DoThaw() so frozen status will be properly updated, and use a loop in case window has been frozen more than once

2012-09-25 19:55 PC, revision 72551

fix deleting a frozen multi-line wxTextCtrl, see #13543

2012-09-25 15:50 VZ, revision 72550

Attempt to fix wxHelpControllerBase::SetFrameParameters() documentation. Don't use "%s" in the brief comment, "%" is apparently not allowed there.

2012-09-25 15:08 SC, revision 72549

adding constants for newer OSX versions to make sure our conditional expressions are working with earlier SDKs

2012-09-25 12:50 VZ, revision 72548

Add wxGenericAboutDialog documentation. Closes #14660.

2012-09-25 12:50 VZ, revision 72547

Fix too hastily copy-pasted wxVariantDataSafeArray documentation. Some parts were not updated after copying them from wxVariantDataErrorCode. Closes #14689.

2012-09-25 12:49 VZ, revision 72546

Really fix stack dumps for asserts and wxStackWalker::Walk() calls. The code apparently tried to compensate for the wrong "skip" values used in the calls to wxStackWalker::Walk() by skipping too much in Walk() itself which was wrong as it dropped the frames that should have been shown. Fix this by skipping only the one extra (compared to Walk() itself) frame we add in wxStackWalker Unix implementation and not 3 of them and do skip more frames when calling Walk() from assert failure handlers. Also fix the wrong number of frames used in ProcessFrames(): we must not subtract the number of skipped frames, they were already skipped. Closes #14690.

2012-09-25 12:49 VZ, revision 72545

Use utf8_str(), not mb_str(), for strings passed to GTK+. All GTK+ strings must be encoded in UTF-8, not whichever encoding the current locale happens to use.

2012-09-25 12:48 VZ, revision 72544

Vietnamese translations update from Trần Ngọc Quân.

2012-09-24 00:49 VZ, revision 72543

Improve SAFEARRAY support in wxMSW OLE Automation code. Add a new wxSafeArray<> class wrapping SAFEARRAY. Also add support for converting VARIANTs containing other, previously unsupported, standard types. Closes #14637.

2012-09-24 00:49 VZ, revision 72542

Explain EVT_CONTEXT_MENU generation in more details. Document that you should not count on specific order of mouse right button and context menu events. Closes #12535.

2012-09-24 00:49 VZ, revision 72541

No changes, just reuse a bit of code in wxMSW wxMDIParentFrame. Call wxMDIChildFrame::Activate() instead of redoing the same thing. This also ensures that iconized MDI children are restored before being activated (see previous commit). See #13946.

2012-09-24 00:48 VZ, revision 72540

Restore an iconized MDI child frame when activating it. Without doing this activating an iconized frame doesn't do anything at all, i.e. doesn't present it to the user as presumably intended. Closes #13946.

2012-09-24 00:48 VZ, revision 72539

Correct best size computation for wxCheckBox with borders under MSW. As wxCheckBox can now have borders (see previous commit), we must override DoGetBestClientSize() and not DoGetBestSize() in it to take account of them.

2012-09-24 00:47 VZ, revision 72538

Respect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton. Take into account the window styles that translate to extended Windows styles at MSW level. Also override MSWGetStyle() in these classes, just as in most (all?) other ones, for consistency instead of doing wx-to-MSW styles translation directly in Create(). Notice that as a side effect of this change, border styles now work for wxCheckBox which wasn't the case before. It's not clear if this is really wanted but OTOH there doesn't seem to be any real reason to forbid them neither. Closes #14674.

2012-09-22 18:16 VZ, revision 72537

Allow wxWrapSizer to request more size than it used previously. The code in wxWrapSizer::CalcMin() ensured that the sizer never requested more space than what it had been already given which, while clearly done intentionally, seems to be wrong because it can never end up with enough space for all its rows/columns unless it is set to up to expand in the containing sizer. In other words, the old code could return the size which was not enough to show the sizer contents fully which is against CalcMin() contract. Change this by simply removing the check for the new minimal size being less than the old one. This allows the wrap sizer demo in the layout sample to work correctly whereas before the sizer contents was completely invisible initially.

2012-09-22 18:16 VZ, revision 72536

Make wxWrapSizer demo in the layout sample more dynamic. Allow adding checkboxes to and removing them from the wrap sizer to demonstrate how it adjusts to its contents dynamically.

2012-09-22 18:16 VZ, revision 72535

Credit "sodev" with correct full name. Amend the change log entry of r71701. See #14380.

2012-09-21 12:26 VZ, revision 72534

Fix crash on wxMediaCtrl creation in wxMSW. A valid RECT pointer must be passed to DoVerb(OLEIVERB_INPLACEACTIVATE) but r72027 (see #14209) broke this and passed it NULL resulting in an instant crash. Revert this part of the change and do pass out window client area. Closes #14682.

2012-09-21 01:12 VZ, revision 72533

Fix wxPluginLibrary wxClassInfo pointers initialization. The values of m_ourFirst and m_ourLast were inversed in wxPluginLibrary ctor. Fix this and explain in a comment that "first" and "last" here refer to the order in the linked list and not the chronological order. Closes #14483.

2012-09-21 01:12 VZ, revision 72532

Fix wrong configure test for abi::__forced_unwind in previous commit. The previous commit was accidental and contained an initial version of the patch which didn't test for NPTL abi::__forced_unwind correctly and just tested whether cxxabi.h header was available. Tighten the check to work on the other systems and check for __forced_unwind existence itself. Also check for cxxabi.h before testing for __cxa_demangle as there is no need to try to compile another test program if we already know that this entire header is unavailable anyhow. See #14626.

2012-09-21 01:00 VZ, revision 72531

Rethrow abi::__forced_unwind in wxThread code under Unix. We must always rethrow the special abi::__forced_unwind exception when handling exception in threads under Linux as the NPTL simply terminates the process at first opportunity if this exception is not rethrown. See http://udrepper.livejournal.com/21541.html for more details. Closes #14626.

2012-09-21 00:15 VZ, revision 72530

Add public (but not documented) wxCheckBox::MSWMakeOwnerDrawn(). It can be useful to explicitly make a check box owner drawn, so make the private MakeOwnerDrawn() public and add "MSW" prefix to it to allow doing this from the user code. Closes #14679.

2012-09-20 22:02 VZ, revision 72529

Fix and enhance support for client data in wxRibbonButtonBar. Add the possibility to retrieve the client data associated with a button and not only set it (which wasn't very useful on its own). Also allow having both typed (owned) and untyped (not owned) client data, as in the other wxWidgets controls. To avoid confusion between two different kinds of data, remove "client_data" argument from the functions adding buttons and provide separate methods with distinct names for setting and getting client data. Closes #14630.

2012-09-20 22:02 VZ, revision 72528

Add wxRibbonButtonBarEvent::GetButton(). Allow to retrieve the button associated with the given button bar event. See #14630.

2012-09-20 22:01 VZ, revision 72527

Add wxRibbonButtonBar::GetActiveItem() and GetHoveredItem(). Add accessors for the button being currently clicked or hovered over. See #14630.

2012-09-20 22:01 VZ, revision 72526

Add wxRibbonButtonBar::GetItem(), GetItemById() and GetItemId(). Allow accessing the ribbon bar buttons either by index or ID. See #14630.

2012-09-20 22:00 VZ, revision 72525

Fix alpha handling in Scintilla when not using wxGraphicsContext. When using raw bitmap data access classes such as wxAlphaPixelData we must destroy them to ensure that the changes done via them are committed to the bitmap before drawing the bitmap. Just add an extra block (the diff should be viewed ignoring white space to see the only significant change) to ensure that wxAlphaPixelData is destroyed before DrawBitmap() is called. Closes #14680.

2012-09-20 18:42 RD, revision 72524

Document ShowWithoutActivating

2012-09-20 18:00 VZ, revision 72523

Make it possible to TAB-navigate among wxStaticBox children. As wxStaticBox can now contain child windows, derive it from wxNavigationEnabled<> to allow TAB-navigating among them. Without this, it was impossible to switch focus from keyboard to any of the controls inside wxStaticBox.

2012-09-20 17:47 VZ, revision 72522

No real changes, just remove an unnecessary variable assignment. Initialize m_gtk_model with its correct value immediately, without setting it to NULL first. Closes #14673.

2012-09-20 17:46 VZ, revision 72521

Better documentation for wxRect::Set{Left,Top}(). These functions also change the rectangle right/bottom position, unlike Set{Right,Bottom}() that change its width/height respectively. This is not very logical but impossible to change for compatibility reasons, so at least document it clearly. Closes #14678.

2012-09-20 17:46 VZ, revision 72520

Quote wxExecute() arguments in wxDebugReportUpload when using curl. Quote the argument to curl as it might contain spaces. Closes #14677.

2012-09-20 14:33 JJ, revision 72519

backport wxspinctrl::get/setbase form gtk ->gtk1

2012-09-20 12:20 VZ, revision 72518

Add wxStyledTextCtrl::AnnotationClearLine(). Simply set NULL annotation text for the given line. Closes #12960.

2012-09-20 12:20 VZ, revision 72517

Add wxStyledTextCtrl::SelectNone() to the template header file too. This method was only added to the generated include/wx/stc/stc.h but not to src/stc/stc.h.in from which it is created in r72490, do update the latter file too now. See #12960.

2012-09-20 12:19 VZ, revision 72516

Fix incorrect code sorting pages by their widths in wxRibbon. The "sneaky obj array trickery" wasn't very sneaky but was just plain wrong and misused object array of pages in a way that was invalid and didn't crash just because of sheer luck. Rewrite this code to use a temporary wxVector of pages that can be sorted independently of the main m_pages array. This is 100% safe and also more clear. Closes #14625.

2012-09-19 23:18 SC, revision 72515

completing the removal of PICT

2012-09-19 22:23 SJL, revision 72514

Update the wxSpinCtrlDouble documentation so SetIncrement refers to SetDigits Closes #12342

2012-09-19 20:55 RD, revision 72513

Add define for MAC_OS_X_VERSION_10_7 if there isn't one already

2012-09-19 16:09 SC, revision 72512

bracing 10.7+ constant

2012-09-19 14:36 SC, revision 72511

workaround for non-standard icon sizes under 64 bit

2012-09-19 13:28 JJ, revision 72510

Update setup.h for OpenVMS

2012-09-19 10:18 SC, revision 72509

fixing incorrect scrolling - which happened at least under OSX ...

2012-09-19 09:53 VZ, revision 72508

Update wxGTK.spec to work with openSUSE build server. Changes from Marcin Wojdyr fixing issues for different RPM-using systems: - added all necessary BuildRequires fields - for openSuse wxGTK-gl package is named libwx_gtk*_gl... (it's enforced that package with one shared lib has name matching the library name) - added missing '%dir's - on some distros rpms didn't built without it - Fedora, Suse and Mandriva have all different set of known Groups, I've changed group from 'X11/Libraries' to 'System/Libraries' -- it's defined at least in Suse and Mandriva. (in recent distro releases Group can be skipped, so it's becoming irrelevant). - removed 'Packager' field and dots ending Summary field - AFAIR these were errors on Opensuse - added '= %{version}' to Provides - for Redhat5 use GCC4.4 (build crashed with default 4.2)

2012-09-19 09:50 VZ, revision 72507

Let wxWindow::Fit[Inside]() work even for windows without children. The best [virtual] size of the window is usually determined by its children but it's also possible to have a min size constraint set on the window sizer so set the window to its best size in Fit() independently of whether it has children or not. Closes #14668.

2012-09-19 00:45 VZ, revision 72506

More s/loose/lose/ in wxEncodingConverter comments. Finish the changes started by r72500 and lose the remaining loosely used words. Closes #14665.

2012-09-19 00:45 VZ, revision 72505

Show tooltips for the too long items in generic wxTreeCtrl. Show the full item text in a tooltip if the entire text can't be shown on screen. Closes #14667.

2012-09-18 02:03 VZ, revision 72504

Fix wxMSW compilation in STL build after the changes of r72472, Call t_str() to explicitly convert wxString to wxChar* as implicit conversion is not available in STL build. Closes #14666.

2012-09-18 01:35 DS, revision 72503

Set svn properties on recently added files. Added svn:eol-style (set to native) and svn:keywords (set to Id) for .cpp and .h files that were added since r72218.

2012-09-17 14:18 VZ, revision 72502

Rebake after addition of richtexttabspage.h in r72497. See #14644.

2012-09-17 13:07 VZ, revision 72501

Don't show hidden wxGrid rows/columns when they're auto-sized. Fix the problem introduced in r72491 which resulted in wxGrid rows/columns being shown after auto-sizing even if they had been hidden. Closes #14133.

2012-09-17 13:07 VZ, revision 72500

No changes, just fix some typos in the comments in the headers. Closes #14665.

2012-09-17 01:09 VZ, revision 72499

No real changes, just remove an unneeded variable initialization. Closes #14664.

2012-09-16 17:35 JS, revision 72498

Updates

2012-09-16 17:31 JS, revision 72497

Added include/wx/richtext/richtexttabspage.h to files.bkl

2012-09-16 01:20 VZ, revision 72496

No changes, just silence some MSVC 11 static analyzer warnings. This is an aborted attempt to make wxWidgets code compile without warnings when using MSVC 11 /analyze option, as it was supposed to have become much better. Unfortunately it still produces way too many false positives to be really useful, in particular NULL pointer detection is completely broken as even the code such as (from object.cpp): wxClassInfo *info = sm_first; while (info) { if ( info->m_next == this ) ... } provokes tons of warnings about "info" being NULL inside the loop which is clearly impossible. So this commit just fixes a few obvious warnings, mostly about variable shadowing but also a couple about possibly passing NULL to memcpy().

2012-09-16 01:19 VZ, revision 72495

Add help button support to wxRibbonBar. Optionally show standard "Help" question mark button in the ribbon top right corner and generate the appropriate event for it. Closes #14576.

2012-09-16 01:19 VZ, revision 72494

Fix text origin and bounding box computations in wxSVGFileDC. Text origin was calculated incorrectly for the rotated text and the bounding box was wrong even in non-rotated case. Fix this by using correct definition of the text anchor according to the SVG specification and add a test to the svg sample demonstrating this. Closes #14489.

2012-09-16 01:19 VZ, revision 72493

No real changes, just slightly simplify wxSVGFileDCImpl code. Move m_graphics_changed check inside NewGraphics() itself instead of checking whether it's true each time before calling it, it is better to both test the flag and reset it inside this function rather than do the first part in the caller and the second one in the callee. Also rename the function to NewGraphicsIfNeeded() to make its meaning more clear.

2012-09-16 01:18 VZ, revision 72492

Minor fixes to wxSVGFileDC implementation. Update W3C recommendation URL; Mention Inkscape; replace wrong wxSVGFileDC occurrence with wxDC. See #14462.

2012-09-16 01:18 VZ, revision 72491

Preserve size of wxGrid rows/columns when hiding and showing them back. Previously, if a wxGrid row or column was hidden by setting its size to 0, its original size was lost. Change this so that it's preserved now and can be restored by setting the size to the special -1 value later. Closes #14133.

2012-09-16 01:17 VZ, revision 72490

Fix wxGrid::PosToLinePos() in presence of hidden rows or columns. The optimization of the binary search inside this function failed if any rows/columns were hidden and so were of zero size. See #14133.

2012-09-16 01:17 VZ, revision 72489

Fix wxGrid::AutoSizeColOrRow() logic for multicells. This fixes the regression of r64885 and also tries to make the code more clear by setting the variables explicitly to their correct values. Closes #14611.

2012-09-16 01:17 VZ, revision 72488

Handle underlined and strikethrough attributes in wxGTK native font info. These attributes were not handled by wxFont::GetNativeFontInfoDesc() as it only serialized the Pango font description which doesn't support them. Fix this by handling these attributes explicitly and prepending them to the Pango font string if necessary. Closes #14559.

2012-09-16 01:16 VZ, revision 72487

Take into account wxFONTFLAG_STRIKETHROUGH in wxGTK wxFont ctor. Honour wxFONTFLAG_STRIKETHROUGH in wxFont ctor taking flags as this is the only way to create a strike-through font currently. See #14559.

2012-09-15 00:26 VZ, revision 72486

Fix spelling in the comments in wxPropertyGrid code. No real changes. Closes #14645.

2012-09-15 00:26 VZ, revision 72485

Allow using horizontal cursor navigation keys in non-readonly wxComboCtrl. Don't intercept Left/Right/Home/End keys until the control is read-only, otherwise they're more useful for navigating in its text part than in its drop-down. Closes #14648.

2012-09-15 00:26 VZ, revision 72484

No changes, just remove an unused variable from CHM code. Closes #14655.

2012-09-15 00:25 VZ, revision 72483

No changes, just remove unnecessary variable initialization. Combine variable declaration and initialization. Closes #14659.

2012-09-14 12:27 VZ, revision 72482

Czech translations update from Zbynek Schwarz.

2012-09-13 19:16 VZ, revision 72479

Relax wxMessageDialog style checks, assume wxOK by default. Don't complain if neither wxOK nor wxYES[_NO] are specified but just assume wxOK by default. This allows the code calling wxMessageBox() with just an icon flag to continue to work in the same way in 2.9 as it did in 2.8.

2012-09-13 19:15 VZ, revision 72478

No changes, just remove unneeded variable initialziation in wxAUI. Initialize the variables to the correct values when defining them instead of initializing them as 0 first and then assigning them the real value. Closes #14652.

2012-09-13 19:15 VZ, revision 72477

Add wxBITMAP_PNG() macro similar to wxBITMAP() but for PNG images. Just as wxBITMAP() provides a portable way of loading bitmaps from either Windows BMP resources or embedded XPM data depending on the platform, wxBITMAP_PNG() hides the difference between loading bitmaps from PNG resources under Windows and embedded PNG data elsewhere. Also add wxBITMAP_PNG_FROM_DATA() macro which always loads PNG data from memory: it's needed anyhow as part of wxBITMAP_PNG() implementation and some people may prefer to always use it under all platforms. Finally modify the image sample to demonstrate loading PNG images from both resources and memory. This involved creation of a new Windows .rc file for it and copying its data files to Resources bundle directory under OS X.

2012-09-13 19:15 VZ, revision 72476

Add wxBitmap::NewFromPNGData() for creating bitmaps from PNG data. This simple function can be used to create a wxBitmap from the raw image data in PNG format. It is just a thin wrapper around wxImage load functions under almost all platforms but has two advantages: 1. It can be implemented natively for some platforms (currently only OS X). 2. It can be used in a single expression as it doesn't require creating a temporary wxMemoryInputStream and this will be required by wxBITMAP_PNG() macro that will be added soon.

2012-09-13 19:14 VZ, revision 72475

Don't ignore invalid files entered into wxFileDirPickerCtrlBase. File/directory picker controls with wxFLP_FILE_MUST_EXIST/wxDIRP_DIR_MUST_EXIST style simply ignored any value entered by user if it didn't correspond to an existing file/directory. This meant that the program didn't use the value that was shown on the screen resulting in very confusing UI -- e.g. a program could complain that no value was entered when actually it was and just corresponded to a non-existing file. As we can't prevent the entry of arbitrary strings in the text field of the file picker control, stop pretending that we can validate it and just update the control value, and send the corresponding event, whenever the text control value changes.

2012-09-13 19:14 VZ, revision 72474

Extract "Close" button creation from wxInfoBarGeneric into new function. Such buttons may be needed in other places and it's not obvious to create them, so add a new public wxBitmapButton::NewCloseButton() method to allow creating them easily.

2012-09-13 19:13 VZ, revision 72473

Provide up to date documentation for wxLoadUserResource(). Document the new and preferred overload avoiding copying the data. Also document the new (since 2.9.1) parameters of the old one.

2012-09-13 19:13 VZ, revision 72472

Change wxMSW-specific wxLoadUserResource() to accept standard RT_XXX types. Resource types can be either strings for custom types or integers casted to a TCHAR* for the standard ones. Using wxString for the resource type prevented us from using the latter as any attempt to initialize wxString for such a pseudo-string resulted in an immediate crash. Change wxLoadUserResource() resource type parameter type to wxChar* to avoid this and allow passing standard resource types, such as RT_RCDATE, to this function directly.

2012-09-13 19:13 VZ, revision 72471

Don't initialize alpha twice when loading wxImage from resources. Calling InitAlpha() when we already had loaded alpha from the resource data results in an assert. Fix this by only initializing alpha if don't have it yet. Closes #14643.

2012-09-13 19:12 VZ, revision 72470

Fix wxFindWindowAtPoint() with nested windows in wxMSW. Return the deepest child of the window and not the first one as this function needs to return the window that is at the top of Z-order. Closes #14591.

2012-09-13 19:12 VZ, revision 72469

Fix "pos" argument description in wxTreeCtrl::InsertItem() documentation. Closes #14640.

2012-09-13 19:11 VZ, revision 72468

Fix setting colours for the edit control part of wxComboBox. Recognize this control as part of wxComboBox and so handle WM_CTLCOLOR for it. To do this, override ContainsHWND() in wxComboBox and use it, on the parent window, in wxControl::DoMSWControlColor(), if we fail to find the window directly. Closes #811.

2012-09-13 13:15 JS, revision 72467

Removed excessive space above style type selector

2012-09-12 20:58 JS, revision 72466

Added support for wxTEXT_ATTR_EFFECT_SMALL_CAPITALS.

2012-09-12 20:58 JS, revision 72465

Added support for wxTEXT_ATTR_EFFECT_SMALL_CAPITALS.

2012-09-12 20:57 JS, revision 72464

Added support for wxTEXT_ATTR_EFFECT_SMALL_CAPITALS.

2012-09-12 09:47 JS, revision 72463

You can now remove the font face name attribute by clearing the name field in the font dialog.

2012-09-11 13:15 JS, revision 72462

Fixes for overlarge combo/choice height in small variant mode, and too small/mispositioned button size. Tested on 10.3.9 (PPC), 10.4.11, 10.5.6, 10.6.2, 10.6.8, 10.7.4, 10.8.0, 10.8.1 Set wxUSE_MAC_BUTTON_POSITION_FIX to 1 in include/wx/mac/carbon/button.h for button fix.

2012-09-11 11:26 SJL, revision 72461

Add generic wxFileSystem support to wxWebView using wxWebViewFSHandler. Closes #14623.

2012-09-10 22:02 SJL, revision 72460

Move wxWebViewIE missing definitions to webview_missing.h and add new definitions required for Find. These are required as some compilers, notably MinGW and VC6, do not include up to date headers. Fixes #14621.

2012-09-10 14:49 SC, revision 72459

layout adaption, current sizer code leads to too much white space

2012-09-09 22:28 VZ, revision 72458

Fix handling of wxTextEntry hints in wxGTK. Recent changes (r71308) optimizing away setting the text of the text entry if it didn't really change completely broke the generic text hints implementation as e.g. clearing the hint didn't change anything because the entry was already logically empty anyhow. Fix this by simply comparing the new value with the real value of the entry returned by DoGetValue() and not GetValue() that takes hints into account.

2012-09-09 15:37 VZ, revision 72457

Fix deprecating warning introduced in r72446. Use wxVScrolledWindow::ScrollToRow() instead of the old and ambiguous ScrollToLine() which is only preserved for compatibility reasons.

2012-09-09 15:36 VZ, revision 72456

Allow using versions of libnotify < 0.7 in wxGTK. libnotify 0.4.5 included in Ubuntu Lucid (10.04) can be used for implementing wxNotificationMessage too, there is only a minor difference with 0.7 API. So while we stick check for 0.7 initially, accept lower versions too if 0.7 is not available.

2012-09-09 15:36 VZ, revision 72455

Set modifiers properly for the key events with AltGr in wxGTK. Just as under Windows, represent AltGr as a combination of wxMOD_CONTROL and wxMOD_ALT.

2012-09-09 15:35 VZ, revision 72454

Remove workarounds for wxTextCtrl::SetValue() events in pickers code. Simply use ChangeValue() instead of SetValue() to avoid the unwanted events instead of using guard variables. No real changes but the code is simpler and shorter now.

2012-09-09 15:35 VZ, revision 72453

Add a test of wxFilePickerCtrl::GetValue() to the widgets sample. Make the current value of the control visible in its page.

2012-09-09 15:35 VZ, revision 72452

Add an informational message to the file picker page of widgets sample. No real changes, just indicate that clicking the "Set initial directory" button was indeed taken into account.

2012-09-09 15:34 VZ, revision 72451

Simplify and correct setting of initial directory for wxFilePickerCtrl. Create wxFileDialog with correct initial directory and default file name from the very beginning instead of updating it later. This makes the code simpler and also actually makes it work as the initial directory setting was overwritten by setting the default path later even if it didn't contain any directory component.

2012-09-09 15:34 VZ, revision 72450

Fix harmless virtual function hiding warning in wxMSW build. Override the other StrokeLines() overload in wxGDIPlusContext just to avoid the warning about hiding a base class virtual method from MinGW compiler.

2012-09-09 12:46 VZ, revision 72449

Fix wxKeyEvent::GetKeyCode() descripotion: it doesn't depend on locale. GetKeyCode() will always return valid key codes for Latin-1 symbols but won't do it for other non-ASCII Unicode characters even if they are representable in the current locale.

2012-09-09 12:46 VZ, revision 72448

Do not use wxIsprint() in EVT_CHAR example in the documentation. This is incorrect as wxIsprint() is locale-dependent and only really works as expected in UTF-8 locales (which are never used under Windows). Instead, just test for control characters directly.

2012-09-09 11:39 JS, revision 72447

Ensure the selected style is visible.

2012-09-09 11:38 JS, revision 72446

Ensure the selected style is visible.

2012-09-09 10:34 VZ, revision 72445

Italian translations update from Roberto Boriotti.

2012-09-09 02:44 VZ, revision 72444

Don't try to determine the clicked item ourselves in wxMSW wxListBox. This doesn't work when the listbox is scrolled as the result of a click to make the selected item fully visible and results in the index of the item being off by 1 in the generated event which is a pretty serious problem. Fix it by simply retrieving the item from the listbox itself, without doing any hit testing. This seems to give the correct result in all cases and also makes the code much simpler as we don't have to use 2 different ways of finding the item depending on whether it was selected using the keyboard or the mouse and makes it unnecessary to keep track of how the selection was done completely, i.e. reverts r64498 which is not needed any more. Closes #14635.

2012-09-09 02:44 VZ, revision 72443

Document wxDropTarget::GetDataObject(). Closes #14631.

2012-09-09 02:43 VZ, revision 72442

Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext. Using this string format results in very condensed strings when using small fonts. The results of GDI+ font rendering are still pretty bad even without it but they are at least slightly better. Closes #14537.

2012-09-09 02:43 VZ, revision 72441

Use a single global StringFormat in all wxMSW wxGraphicsContext code. Instead of creating StringFormat in DrawText() and Get[Partial]TextExtent[s], create it once and simply use it from both functions. This might be slightly more efficient as we don't waste time recreating it but the main advantage is that it ensures that these functions use the same string format and no discrepancies between them are possible. See #14537.

2012-09-09 02:42 VZ, revision 72440

Output the values of all USE_XXX options to build.cfg file in MSW builds. USE_RTTI, USE_AUI, USE_PROPGRID, USE_RIBBON, USE_RICHTEXT, USE_STC and USE_XRC options were not output to the build configuration file, unlike the rest of them. Do output those ones as well now for consistency. Also sort the options corresponding to different wx libraries alphabetically. Closes #14608.

2012-09-09 02:42 VZ, revision 72439

Document wxWindow InheritsBackgroundColour() and UseBgCol() methods. These functions were present in the interface header but didn't have their own documentation and somehow inherited the documentation of the first function in the same section which didn't make any sense for them. Do document them now. Closes #14607.

2012-09-09 02:42 VZ, revision 72438

Link MSW-specific event loop files in wxUniv/MSW. This fixes wxUniv build after the changes of r72008. Closes #14606.

2012-09-08 23:51 VZ, revision 72437

Undid accidental modification of wxTaskBarIcon in the last commit.

2012-09-08 23:48 VZ, revision 72436

Fix narrow/wide string concatenation in recently added wxSizerFlags assert. This fixes MSVC build after r72434.

2012-09-08 18:03 VZ, revision 72435

Fix some typos in the comments in wxOSX code. Closes #14636.

2012-09-08 17:46 VZ, revision 72434

Check validity of wxSizerFlags::Border() direction parameter. Catch the misguided attempts to pass the size of the border as the first parameter of the Border(direction, size) overload.

2012-09-08 17:46 VZ, revision 72433

Enable GL_CULL_FACE in OpenGL samples. Without it, the hidden faces are shown resulting in wrong display of both the cube and the penguin, at least with Mesa (but it also seems to be the correct thing to do according to OpenGL documentation).

2012-09-08 12:53 VS, revision 72432

Fix VC6 compilation after r72430. VC6 doesn't handle for loop scope correctly.

2012-09-08 12:53 VS, revision 72431

Add MUI_LANGUAGE_NAME to wx/msw/missing.h. Fixes VC6 compilation after r72430.

2012-09-08 10:58 VS, revision 72430

Add wxTranslations::GetBestTranslation(). Implement preferred language selection on modern systems (OS X, Windows Vista+). User settings for locale (aka "regional settings") and UI language are independent there and the UI language shouldn't be determined from the locale. Moreover, the OS provides a list of preferred languages, not a single value (as with locale), so we should use the best language given user's preferences and available translations. A Czech user may prefer Slovak UI over English, for example, and we should use Slovak translation in absence of Czech one in that case instead of falling back to English. On Unix, locale is language and so things remain as before. Notice that calling wxLocale::Init(wxLANGUAGE_DEFAULT) does the right thing now: it sets the locale to whatever the user has configured in regional settings and loads translations corresponding to default wxTranslations language, which is determined as described above. Previously, UI would be translated using a language corresponding to the regional settings.

2012-09-07 22:15 DS, revision 72429

Regenerated Xcode projects. Updated the Xcode projects for Scintilla 3.21 and removal of src/osx/spinctrl_osx.cpp.

2012-09-07 22:11 DS, revision 72428

Updated instructions for XML Tools. A newer version of XML Tools has been released (2.9.4) which supports OS X 10.6 and later. As such a link to the beta version of 2.9.4 is not needed anymore.

2012-09-07 11:51 VS, revision 72427

wxMSW: Fix incorrect subitem rect calculation in wxListCtrl. HandleSubItemPrepaint() calls wxGetListCtrlSubItemRect() (a thin replacement of ListView_GetSubItemRect) with subitem argument corresponding to MSDN documentation: it should be 0 for the whole item and 1-based for subitems. Unfortunately, as pointed out in an explanatory comment for wxGetListCtrlSubItemRect(), MSDN lies and the index actually is 0-based. The bug causes wxListCtrl's content to be shifted by one column and rendered with additional artifacts as soon as custom drawing is used, e.g. when a custom font is used. This bug was introduced in r55378; the code correctly accounted for this before that. This change partially reverts that commit.

2012-09-06 16:24 SC, revision 72425

restrict change from r71719 because otherwise apps like docview sample in ddi mode are not allowing their different child frames to be z-reordered

2012-09-06 13:48 JS, revision 72424

Added wxVListBox::GetItemRect

2012-09-06 10:39 SJL, revision 72423

Disable wxWebView::Find and associated functions under MinGW and VC6 to fix compilation

2012-09-02 00:38 VZ, revision 72421

Fix wxVLogStatus definition. This macro can be used with 2 arguments (format and argptr) or 3 (the frame pointer as an additional first argument), so don't define it as taking 2 arguments but as a macro without arguments, as we already do for wxVLogSysErrorfor the same reasons.

2012-08-31 14:31 VZ, revision 72420

Fix example of using GetUnicodeKey() in the documentation. A Unicode key is not always printable, it can be a control character as well. Closes #14622.

2012-08-31 12:45 VS, revision 72419

Fix compilation after r72375 - LC_CTYPE requires locale.h.

2012-08-30 22:26 VZ, revision 72418

Correct wxAuiManager library in documentation. It's wxAUI, not wxBase.

2012-08-30 22:25 VZ, revision 72417

Fix opening URLs in new window with recent Firefox under Windows. Don't fail if we can't replace "-1" in the WWW_OpenURL topic value stored in the registry with "0", it can be already "0" for the recent Firefox versions.

2012-08-30 22:25 VZ, revision 72416

Explicitly reject the use of wxTE_PASSWORD in generic wxSpinCtrl. wxTE_PASSWORD has the same value as wxALIGN_CENTRE_VERTICAL which could be implicitly specified as part of wxALIGN_CENTRE, but should never be used with wxSpinCtrl, so explicitly filter it out when creating the associated wxTextCtrl. Closes #14452.

2012-08-30 22:25 VZ, revision 72415

Generate wxEVT_COMMAND_TEXT_ENTER events for generic wxSpinCtrl. Pass wxTE_PROCESS_ENTER to wxSpinCtrlTextGeneric if it's specified for wxSpinCtrl itself and also forward wxEVT_COMMAND_TEXT_ENTER events from it to wxSpinCtrl itself. This fixes lack of these events for wxSpinCtrlDouble under MSW and also lack of them for any kind of wxSpinCtrl in the ports using generic version (notably wxOSX). Closes #14604.

2012-08-30 22:24 VZ, revision 72414

Add wxSpinCtrl::SetBase() to allow entering hexadecimal numbers. Add a generic SetBase() API even though right now only bases 10 and 16 are supported as we might support other ones (e.g. 8?) in the future. Implement it for MSW, GTK and generic versions. Add controls allowing to test this feature to the widgets sample. Add "base" property support to the XRC handler for wxSpinCtrl, document it and test it in the xrc sample.

2012-08-30 22:24 VZ, revision 72413

Remove wxOSX implementation of wxSpinCtrl and use the generic one. wxOSX doesn't provide a native spinner+text control so it used a generic implementation of wxSpinCtrl but a different one to the version found in src/generic/spinctlg.cpp. Just use the real generic version instead, it doesn't make sense to have two different versions of the same generic control.

2012-08-30 22:23 VZ, revision 72412

Refactor text to/from double conversion in wxSpinCtrlGenericBase. The code always used ToDouble() and Format("%g") which was a bit strange for integer-valued wxSpinCtrl. Move the conversions to their own virtual functions for clarity, perhaps correctness and, especially, flexibility as they will be overridden in wxSpinCtrl soon. Also move wxSpinCtrlGenericBase::m_format to wxSpinCtrlDouble as the base class really doesn't need it at all.

2012-08-30 22:23 VZ, revision 72411

Remove wxRTTI macros from wxSpinCtrlGTKBase. This is not a public class and it doesn't need to be appear in wxRTTI.

2012-08-30 22:23 VZ, revision 72410

Fix position carried in wxSpin{Button,Ctrl} events for 32 bit values in wxMSW. Don't use WM_VSCROLL message parameter as the position because it's a 16 bit value and is not enough for the spin controls using 32 bit range. Just use the current value available from the control itself instead. This fixes assert failures in the spin page of the widgets sample when changing the value of a control when it is > SHRT_MAX.

2012-08-30 22:22 VZ, revision 72409

Use wxSOCKET_WAITALL in wxHTTP to ensure that all data is sent. POST-ing sufficiently big amounts of data in wxHTTP didn't work because it couldn't be sent all at once to the server. Use wxSOCKET_WAITALL to ensure that we do send all of the data. Closes #14598.

2012-08-30 22:22 VZ, revision 72408

Fix bugs in parsing wxLongLong values starting with zeroes. wxCRT_StrtoullBase(), used by wxString::To[U]LongLong(), didn't handle leading zeroes nor leading 0x correctly: it never auto-detected base 8; didn't ignore the leading 0 even if base 8 was specified explicitly; didn't recognize "0X" prefix at all (only "0x"). Fix all these bugs and add test cases for parsing numbers in other bases to the unit tests. Closes #14596.

2012-08-30 22:21 VZ, revision 72407

Added wxSimplebook class: a wxBookCtrl without controller. This new control allows the program to show one of the several pages without allowing the user to change them (or even see that there are several of them) himself. This class is fully inline, so it doesn't add anything to the library and hence doesn't need neither wxUSE_SIMPLEBOOK nor the corresponding configure option.

2012-08-30 22:21 VZ, revision 72406

Virtualize showing/hiding the pages in wxBookCtrlBase. No real changes, just make it possible to change how the pages are hidden and shown in the derived classes. This is not used by any of them yet, but will be used by wxSimplebook soon.

2012-08-30 22:21 VZ, revision 72405

Remove unnecessary TranslateBookFlag() from the notebook sample. It probably was needed before, when the flags had different values for different controls, but is simply unused now.

2012-08-30 22:20 VZ, revision 72404

Document that menu item bitmaps must be set before appending them. At least in MSW we need to know in advance whether we're going to use normal items or owner-drawn ones currently. Closes #3641.

2012-08-30 22:20 VZ, revision 72403

Don't lay out the window being destroyed unnecessarily. This is just a small optimization: it's useless to waste time on redoing the layout of a window that is going to be destroyed soon anyhow.

2012-08-30 22:19 VZ, revision 72402

Use wmain() if supported by the compiler/CRT instead of main(). This avoids a needless conversion from (originally Unicode) command line to ANSI by the CRT and conversion back by wxWidgets and, especially, ensures that there is no data loss if the Unicode command line arguments can't be converted into the current charset. See #14580.

2012-08-30 12:18 VZ, revision 72401

Dutch translations update from Thomas De Rocker.

2012-08-30 11:59 VS, revision 72400

Include gettext MO files in distribution archives. It's the usual thing to do. Ideally, we'd also compile them as part of build process, at least on Unix, but this is better than nothing.

2012-08-29 14:17 SC, revision 72398

avoid duplication in native dialog

2012-08-29 14:16 SC, revision 72397

use global NSLayoutManager

2012-08-29 14:15 SC, revision 72396

add global NSLayoutManager instance

2012-08-29 14:01 SC, revision 72395

fixes #13557

2012-08-29 13:20 SC, revision 72394

temporary workaround

2012-08-29 11:00 SC, revision 72393

propagating font to the individual columns, changing row heights according to font size, fixes #14578

2012-08-29 09:11 SC, revision 72392

remove duplicate code

2012-08-28 21:00 SC, revision 72391

fixing usage of load states, set controller visible correctly

2012-08-28 19:13 SJL, revision 72390

Add support for searching and highlighting a wxWebView. Currently supports WebView on GTK and IE. Closes #14045.

2012-08-28 08:27 JJ, revision 72387

Update of OpenVMS compile support

2012-08-28 07:57 JJ, revision 72386

compilation fix for case that wxHAS_RAW_BITMAP is NOT defined

2012-08-27 11:53 VZ, revision 72382

Refreshed all source message catalogs. Ran "make allpo" to update the catalogs with the new strings.

2012-08-27 11:53 VZ, revision 72381

Chinese translations update from Jiawei Huang.

2012-08-27 08:36 SC, revision 72380

reverting for the moment, original problem #12227, this leads eg in the mediaplayer sample to a non-show of the noteobook page

2012-08-26 18:35 VZ, revision 72379

Avoid crashes when creating initially hidden MDI child under Unity. Ignore "hide" signals for the menus without associated shown window. Ubuntu Unity sends them and we crashed because of a recursive assert in the corresponding signal handler before. Now the code doesn't crash any more but the menus still don't behave correctly when the last MDI child is destroyed. Closes #13593.

2012-08-25 20:04 JS, revision 72378

Fixed a problem with text effects flag always being set on dialog exit

2012-08-25 20:04 JS, revision 72377

Fixed typo in dialog project file

2012-08-25 20:03 JS, revision 72376

Fixed a problem with text effects flag always being set on dialog exit

2012-08-25 13:14 VS, revision 72375

Make sure wchar_t CRT functions work on OS X. In OS X and iOS, wchar_t CRT functions convert to char* and fail under some locales. The safest fix is to set LC_CTYPE to UTF-8 to ensure that they can handle any input. Note that this must be done for any app, Cocoa or console, whether or not it uses wxLocale. See http://stackoverflow.com/questions/11713745/why-does-the-printf-family-of-functions-care-about-locale

2012-08-25 13:14 VS, revision 72374

Test if wxString::Format() works with non-ASCII format string.

2012-08-25 11:38 SC, revision 72373

simpler implementation that also works over remote connections by Kevin O.

2012-08-25 00:08 VZ, revision 72371

Ukrainian translations update from Yuri Chornoivan.

2012-08-25 00:08 VZ, revision 72370

No changes, just a typo fix in wxRichTextCtrl UI code. s/minmum/minimum/g

2012-08-23 16:44 JJ, revision 72369

updated setup.h for OpenVMS

2012-08-23 15:43 JJ, revision 72368

updated setup.h for OpenVMS

2012-08-22 23:22 VZ, revision 72365

Added Nepali translation. Thanks to Him Prasad Gautam and Mesar Hameed.

2012-08-22 23:22 VZ, revision 72364

Finnish translations update from Jani Kinnunen.

2012-08-17 11:09 JS, revision 72360

Latvian translation improvements

2012-08-17 11:08 JS, revision 72359

Further translation improvements.

2012-08-16 19:00 JS, revision 72358

Additional Latvian translations by Janis Eisaks

2012-08-16 02:42 RD, revision 72350

Correct a missing apostrophe in a doc string.

2012-08-16 02:42 RD, revision 72349

Use the popup's background as a border on wxGTK too.

2012-08-16 01:34 VZ, revision 72348

Fix bug in ribbon bar label size calculation. Due to an off by 1 error in wxString::Mid() call, the size computed was too small and hence the label could have been not displayed at all. Fix this and also replace Mid(0, n) with a more clear Left(n) call. Closes #14566.

2012-08-16 01:34 VZ, revision 72347

Add page highlighting to wxRibbonBar. Allow visually highlighting a page to make it more noticeable to the user. Closes #14527.

2012-08-16 01:34 VZ, revision 72346

Fix AUI appearance when a maximized pane becomes floating. The other panes were not previously restored, resulting in bad appearance and behaviour. Do restore them now before making the previous maximized pane floating. Closes #14460.

2012-08-16 01:34 VZ, revision 72345

Respect item max sizes in wxBoxSizer. Don't give more space than the max size, if set, to wxBoxSizer elements. Closes #11497.

2012-08-16 01:34 VZ, revision 72344

No real changes, just add wxSizerItem::AddBorderToSize() helper. Factor out this function from GetMinSizeWithBorder() as it will be used for max size too in a next commit. See #11497.

2012-08-16 01:34 VZ, revision 72343

Honour window min and max sizes in wxWindow::GetBestSize(). The best size of the window should be at least as large as its min size and less than its max size. This allows to override the windows own best size determination with an explicit SetMinSize() or SetMaxSize() call. See #11497.

2012-08-16 01:34 VZ, revision 72342

Add wxSize::DecToIfSpecified() helper. This is similar to DecTo() but can be used even if the wxSize argument has some components set to -1. Notice that we don't need IncToIfSpecified() because IncTo() already works correctly anyhow in this case.

2012-08-16 01:34 VZ, revision 72341

Don't generate events from wxSpinCtrl::SetRange() in wxMSW. Other ports don't send wxEVT_COMMAND_SPINCTRL_UPDATED from SetRange() even if the value changed because it was adjusted to fit into the new range and this makes sense as this change is not due to a user action, so don't send this event under wxMSW neither. Also add a unit test checking for this behaviour. Closes #14583.

2012-08-15 13:34 VZ, revision 72340

Restore the use of wxListCtrl in report view in wxListbook. This reverts r71965 for wxMSW as the list mode there doesn't work correctly if there are sufficiently many items: the native control insists on laying them out in multiple columns which is inappropriate for wxListbook, so use report mode for horizontal wxListbooks. Do use the list mode in the vertical case as we do want to have multiple columns -- and not rows -- then.

2012-08-15 13:34 VZ, revision 72339

Fixes for forwarding events to parent in wxGenericListCtrl. Set the event object and the event ID correctly, i.e. to the values corresponding to the main wxListCtrl itself, when forwarding mouse and keyboard events from wxListMainWindow to wxListCtrl.

2012-08-14 09:13 RD, revision 72338

fix some compile warnings

2012-08-14 07:55 RD, revision 72337

Update the wxVersionInfo, and don't forget to initialize the new attributes of the event class.

2012-08-14 07:55 RD, revision 72336

Update stc interface docs

2012-08-14 07:55 RD, revision 72335

Update new names to conform, add new event types and event attributes, etc.

2012-08-14 07:14 RD, revision 72334

Minimal tweaks and additions to get wxSTC compiling successfully again, with Scintilla 3.21

2012-08-14 07:14 RD, revision 72333

fix a couple typos

2012-08-14 07:14 RD, revision 72332

rebake make/project files for new scintilla

2012-08-14 07:14 RD, revision 72331

Initial copy of Scintilla 3.21 code

2012-08-14 07:11 RD, revision 72330

Interface fixes for Phoenix

2012-08-12 14:58 SC, revision 72327

forwarding style changes to documentViews, see #14578

2012-08-12 01:09 VZ, revision 72326

Fix typo in an example of Bind()-ing a function in the event overview. Functors must be passed by const reference, not pointer. Closes #14572.

2012-08-12 01:09 VZ, revision 72325

Update the icon of a parent item without children in wxDataViewCtrl. Ensure that a parent item that doesn't have any children any more isn't left with a "-" expander icon, it can't be collapsed any more but only expanded again (possibly adding children under it dynamically). This results in better behaviour in e.g. the last page of the dataview sample where the container item remained with a "+" icon even after its both children were deleted.

2012-08-12 01:09 VZ, revision 72324

Really delete the item in wxDataViewTreeStore::DeleteItem(). For some incomprehensible reason only child branches were ever deleted from the list of parents children in DeleteItem(), not simple tree items. This meant that reexpanding a node after deleting all its children showed the previously "deleted" children again. Closes #14574.

2012-08-11 15:16 SC, revision 72323

adding SetLabel -> SetTitle redirects, solves missing title updates using wxDocument/wxView

2012-08-10 06:57 RD, revision 72321

Remove wxT from prototype

2012-08-09 18:54 RD, revision 72312

Allow --mac_universal_binary to use a "default" value.

2012-08-09 18:47 RD, revision 72310

Add documentation for wxPrintAbortDialog since it is now documented as a return value type.

2012-08-09 18:16 VS, revision 72309

Compilation fix for r72307.

2012-08-09 17:52 VS, revision 72308

Show progress of printing in wxMSW. Add the number of the page being printed as well as the total to the wxMSW printing progress window. Improved the layout and fixed some i18n issues in the process.

2012-08-09 17:52 VS, revision 72307

Fix crash when canceling printing in wxMSW.

2012-08-09 17:52 VS, revision 72306

Return wxPrintAbortDialog from CreateAbortWindow(). Instead of returning a generic wxWindow*, return the type actually used. It was part of the public header already, but not used in any publicly visible way.

2012-08-09 17:52 VS, revision 72305

Create wxPrintAbortDialog more sensibly. Instead of having an empty constructor and filling the dialog with controls from outside, do the work in the constructor. This changes the meaning of ctor's 'title' argument, but this class' terrible API made it unusable for direct use anyway, so it doesn't seem to be harmful.

2012-08-07 18:43 PC, revision 72303

silence GCC warning suggesting parentheses

2012-08-07 18:24 JS, revision 72302

Backported support for multiple paragraphs per list item by 'deleting' bullet which adds a 'continuation' bullet flag

2012-08-07 12:12 VS, revision 72301

Make the modal print preview window behave like a modal dialog. It's unexpected for a modal dialog window to show up in the taskbar as app's another window. It also shouldn't be possible to minimize a modal window, because it's very confusing when a window is unresponsive without a clear reason, because the modal child is hidden in the taskbar. Set wxFRAME_NO_TASKBAR and remove wxMINIMIZE_BOX to fix this. Do it only for wxPreviewFrame_AppModal.

2012-08-06 14:28 VS, revision 72298

Don't crash in wxBitmap::AllocExclusive(). Just use the usual pattern, instead of abusing existing m_refData. In addition to being cleaner and easier to follow, it also has the benefit of not crashing when cloning ref data into an UnRef()ed bitmap from AllocExclusive().

2012-08-06 13:06 VZ, revision 72297

A better fix for wxHash{Map,Set} with g++ 4.7. This reverts r70556, i.e. removes the scope operators added by it to all WX_DECLARE_HASH_{MAP,SET} macros, and implements a workaround for the problem due to the use of empty base class optimization in g++ 4.7 standard library implementations inside the macros themselves by prepending the hasher and comparator classes with explicit "struct".

2012-08-06 00:44 VZ, revision 72296

Fix wxAutomationObject compilation in PCH-less build. Don't use LCID in a public header, windows.h might not be included. Use WXLCID stand-in instead.

2012-08-06 00:44 VZ, revision 72295

Fix uniconizing hidden top level windows in wxMSW. wxTLW wasn't properly restored if Iconize(false) was called while the window was hidden. Fix this by adding yet another special case to wxTopLevelWindowMSW::Show(). This makes it even less comprehensible than before but there doesn't seem to be any obvious way to simplify this code without totally changing it. Closes #14539.

2012-08-06 00:44 VZ, revision 72294

Fix the checkbox cell size in generic wxDataViewToggleRenderer. r62940 fixed an appearance problem with the checkboxes in wxDataViewCtrl but introduced another one: as the checkbox was now always drawn in the entire cell rectangle, the cell alignment was not taken into account any more. Fix this by only increasing the checkbox rectangle up to the required minimal size but not any more. Closes #14504.

2012-08-06 00:44 VZ, revision 72293

Add webview library in MSVC-specific setup.h. wxNO_WEBVIEW_LIB was documented but not implemented: webview library was never linked in implicitly at all. Fix this by adding the missing #pragma to msvc/wx/setup.h.

2012-08-03 17:36 VZ, revision 72292

Optimization: skip 0-sized cells in wxGrid::CalcCellsExposed(). There is no need to compute intersections with 0-sized cells, skip them to speed up refresh of big grids.

2012-08-03 17:36 VZ, revision 72291

Remove unnecessary statement from the grid sample. No real changes.

2012-08-03 15:05 VZ, revision 72290

Make wxGraphicsContext::GetSize() const. Closes #14556.

2012-08-03 14:50 VZ, revision 72289

Make wxRect2D::Get{Position,Size}() const. Accessors should be const. Closes #14555.

2012-08-03 05:57 RD, revision 72285

Revert change that installs the wx/gtk/dc.h header file, since we no longer need wxDCImpl classes to be public.

2012-08-03 05:56 RD, revision 72284

Add the ability to trigger a print from JavaScript for the OSX backend of the wxWebView control. Closes #14241

2012-08-03 05:56 RD, revision 72283

Add the ability to trigger a print from JavaScript for the old wxWebKitCtrl.

2012-08-02 22:25 RD, revision 72282

Enable the wxMediaCtrl backend for wxOSX-cocoa in the build and fix some bugs that were causing it to not send the EVT_MEDIA_LOADED events and to not have a valid best size set. Closes #13065

2012-08-02 22:25 RD, revision 72281

Have wxDCImpl::GetHandle return NULL by default instead of being pure virtual.

2012-08-02 18:37 PC, revision 72280

remove unused OSX includes

2012-08-02 18:25 PC, revision 72279

Fix wxGCDC::Clear() for Cairo, and possibly MSW. Maximum positive coordinate Cairo can handle is 2^23 - 1. Also convert coordinates to logical so it works right with modified origin or scale. See #14529

2012-08-02 07:38 RD, revision 72271

Add ctors for wxFileSystemWatcherEvent

2012-08-02 00:05 VZ, revision 72270

No changes, just fix typos in comments in wxOSX files. Closes #14549, #14552.

2012-07-31 18:49 VZ, revision 72269

Uncomment and improve wxFileName::CreateTempFileName() documentation. Most of CreateTempFileName() documentation was commented out in r57994 for some reason, uncomment it back and also improve it. Closes #14545.

2012-07-31 18:49 VZ, revision 72268

Fix comparisons of char and wchar_t with wxUniChar[Ref]. Comparisons didn't work correctly in the other direction as they were not reversed as needed. Fix this by adding wxDEFINE_COMPARISON_REV() macro which defines comparisons in terms of the reverse operations and use it for both wxUniChar and wxUniCharRef. Closes #14547.

2012-07-31 13:29 VZ, revision 72267

Fix wxKeyEvent::m_uniChar for EVT_CHAR for native controls in wxGTK. It was mistakenly set to the same value as in EVT_KEY_DOWN event but, just as m_keyCode, it may be different for EVT_CHAR. Use gdk_keyval_to_unicode() to set it correctly instead of inheriting EVT_KEY_DOWN value.

2012-07-31 13:09 VZ, revision 72266

Add an option to use wxTextCtrl as input window in keyboard sample. Keyboard handling is subtly different in wxGTK for native controls and generic wxWindows so add a way to test both of them in the sample.

2012-07-31 12:31 VZ, revision 72265

Allow setting LCID used by wxAutomationObject. Default user-locale-dependent LCID may be inappropriate for some situations, notably Microsoft Excel uses localized formula names for non-English LCIDs. So add a way to change the LCID to use at wxAutomationObject level while preserving the old behaviour by default. Closes #14540.

2012-07-31 12:31 VZ, revision 72264

Use compatibility_iterator instead of "Node*" in wxWinCE toolbar code. This allows the code to compile in all build configurations. Closes #14541.

2012-07-31 12:31 VZ, revision 72263

No changes, just fix some typos in wxDFB comments. Closes #14538.

2012-07-30 21:16 VZ, revision 72262

Use (newly) added wxStaticCastVariantData() to fix wxNO_RTTI build. Don't define wxDynamicCastVariantData if RTTI is disabled and don't use it in wxConvertVariantToOle() code as we don't really need it there anyhow.

2012-07-30 19:53 VZ, revision 72261

Add expand/collapse button to wxRibbonBar. This allows the user to toggle the ribbon bar visibility. Closes #14530.

2012-07-30 13:39 VZ, revision 72260

Fix the size of the buffer passed to wxTmemcpy() in wxTextDataObject. This corrects fatal bug introduced in r72259: we must not multiply the string length by sizeof(wxChar) as wxTmemcpy() does this internally. See #14444.

2012-07-30 00:08 VZ, revision 72259

Translate wxTextDataObject to/from native EOL format. The text data should use CR LF EOLs under Windows but the data inside the program typically has only LF EOLs, so translate between them automatically in wxTextDataObject. Closes #14444.

2012-07-30 00:08 VZ, revision 72258

No real changes, just use accessors in wxTextDataObject. Use {Set,Get}Text() instead of using m_text directly in wxTextDataObject as these virtual methods overridable and should be called in case the class doesn't actually use m_text for its storage at all.

2012-07-30 00:08 VZ, revision 72257

Support wxID_HELP_{INDEX,SEARCH} and wxID_MDI_WINDOW_XXX in XRC. Add missing wxStandardID enum elements to AddStdXRCID_Records(). Also add blank lines to make the code in this function align with the enum declaration to make side-by-side comparison easier.

2012-07-30 00:08 VZ, revision 72256

Fix bug in wxNumberFormatter::ToString() for negative numbers. Don't include the possible leading sign in the span of digits to be grouped as this gave nonsensical strings such as "-,123" when adding thousands separators to "123". Closes #14526.

2012-07-30 00:08 VZ, revision 72255

Remove workaround for slow scrolling in wxStyledTextCtrl. We don't need to drop mouse wheel events coming too fast after the previous commit as now scrolling in wxStyledTextCtrl works quickly enough. Closes #9057.

2012-07-30 00:08 VZ, revision 72254

Remove unnecessary Update() in wxStyledTextCtrl scrolling code. Calling Update() every time ScrollText() dramatically slowed down scrolling and doesn't seem to be necessary, so remove it. See #9057.

2012-07-30 00:08 VZ, revision 72253

Make keyboard sample output less confusing. Warn if key presses occur when the input window doesn't have focus as the usual key events are not generated then which could be understood as a bug in the sample instead of the correct result.

2012-07-30 00:08 VZ, revision 72252

Generate clipboard events for wxComboBox in wxGTK too. These events were only generated for wxTextCtrl but should be sent for non-readonly wxComboBox too, so refactor the code to allow its reuse from wxComboBox. Also add EVT_TEXT_PASTE handlers for both controls to the widgets sample for testing. Closes #14520.

2012-07-30 00:08 VZ, revision 72251

Revert HasModifiers() change in behaviour, add HasAnyModifiers(). In 2.8 wxKeyEvent::HasModifiers() returned false if (only) Shift was pressed as it tested for Control and Alt only but when it was moved to wxKeyboardState in r55745 it started checking for all modifiers as this made more sense now that it was used by wxMouseEvent. However it broke existing code using it, including in wxWidgets itself (in wxTreeCtrl), so revert it now and add HasAnyModifiers() that does check for all modifiers, including Shift.

2012-07-30 00:07 VZ, revision 72250

Add a wxGTK-specific function to set wxNotificationMessage icon name. It's trivial to use a stock icon with the given name in wxGTK with libnotify, so provide a way to do it. However this is not as simple as that in other implementations (notably Windows), so make it private to this port for now. In the future we should try to support arbitrary wxIcons as well as extend wxIconLocation to support FreeDesktop stock icon names.

2012-07-29 10:52 VS, revision 72249

Fix installed wx-config broken by r72205. In an attempt to fix DESTDIR support on platforms without symbolic links, this commit completely broke the wx-config symlink created by "make install" everywhere (unless you were insane enough to use "--prefix=/", that is): $(libdir) is absolute path and so using ../$(libdir) has no chance of working. Fixed by using `basename $(libdir)`. This is still unsatisfactory, because it assumes that $(libdir) and $(bindir) are at the same level in the filesystem -- which, while usually true, is by no means guaranteed. But at least this works most of the time. See #14517.

2012-07-28 23:52 RD, revision 72246

Add GetHandle for wxGnomePrinterDCImpl

2012-07-28 21:31 RD, revision 72226

wxDC::GetHandle support for wxGTK

2012-07-28 21:31 RD, revision 72225

wxDC::GetHandle support for wxMSW

2012-07-28 21:31 RD, revision 72224

Adding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon

2012-07-27 21:36 VZ, revision 72220

Move new wxGTK wxNotificationMessage files to adv from core. The new files were erroneously added to the wrong place, move them where they belong.

2012-07-27 18:03 VZ, revision 72219

Fix compilation of new wxNotificationMessage for wxGTK without libnotify. Add the wxUSE_LIBNOTIFY check forgotten by the previous commit.

2012-07-27 17:36 VZ, revision 72218

Implement wxNotificationMessage using libnotify in wxGTK. Use libnotify -- if detected by configure -- to provide native notifications in wxGTK. Our API maps to libnotify one in rather straightforward way, we might consider extending it to cover more of libnotify functionality (categories, user-defined icons and, especially, actions) later. Also update the dialogs sample to show another kind of notification and the documentation to clarify the behaviour of various methods.

2012-07-27 17:36 VZ, revision 72217

Add a private wrapper for GError to wxGTK. This class simply calls g_error_free() automatically.

2012-07-27 17:36 VZ, revision 72216

Add all extra GTK libraries to GUI_TK_LIBRARY in configure. Some libraries (e.g. Pango) were added to GUI_TK_LIBRARY already while others (e.g. Hildon) had their own EXTRALIBS_HILDON variables that were then added to EXTRALIBS_GUI separately. Finally, some others were simply broken because neither EXTRALIBS_GNOMEVFS nor EXTRALIBS_GTKPRINT were set anywhere. Standardize on using GUI_TK_LIBRARY for everything.

2012-07-26 17:58 BP, revision 72214

Updated VCS checkout build instructions.

2012-07-26 00:21 VZ, revision 72213

wxOSX/Carbon compilation fix after the changes of r72207. Don't use position for keyboard events in Carbon code neither.

2012-07-25 18:31 VS, revision 72212

wxMSW: Use TBSTYLE_AUTOSIZE for toolbar buttons with horizontal text. Without this style, all buttons share the same width and look ugly when their labels differ even a little in their lengths. With TBSTYLE_AUTOSIZE, toolbar buttons use the size of their image plus label's width and look better, even though their sizes differ.

2012-07-25 01:13 VZ, revision 72211

Another wxOSX compilation fix after the changes of r72207. Don't use position for keyboard events in wxWebKitCtrl code neither.

2012-07-24 23:59 VZ, revision 72210

Add wxWebView::GetNativeBackend() method. This allows to use platform-specific methods in user code.

2012-07-24 23:44 VZ, revision 72209

Build fix for wxOSX after removing position in MacCreateKeyEvent(). This fixes compilation after the changes of r72207.

2012-07-24 23:43 SC, revision 72208

I don't think this is still necessary, see #13625

2012-07-24 22:45 VZ, revision 72207

Don't eagerly set wxKeyEvent position fields. This results in a noticeable delay when using wxGTK via a remote X11 connection for every key event as a round trip to server is needed to get the mouse pointer position every time a key is pressed or released. Only provide the position on demand. And explain that it's actually not very useful as it's simply the same as the current mouse position. Closes #14361.

2012-07-24 22:45 VZ, revision 72206

Extract OS X non-GUI event loop in a separate header. This will allow its reuse from non-wxOSX ports, e.g. wxGTK under OS X. Closes #14519.

2012-07-24 22:45 VZ, revision 72205

Use relative path for wx-config symlink in "make install". This fixes "make DESTDIR=..." Broken by r71050 but still allows "make DESTDIR=... install" to work even under MinGW where "ln -s" is mapped to "cp" and so doesn't work with non-existing first argument. Closes #14517.

2012-07-24 22:45 VZ, revision 72204

Add wxDir::Close(). This is trivial to have and can sometimes be useful and also is symmetric to Open(). Closes #14493.

2012-07-24 22:45 VZ, revision 72203

Set up scrollbars correctly for wxWebView in wxGTK. This allows Scroll{Lines,Pages}() methods inherited from wxWindow to work with it. Add a test of using them to the sample.

2012-07-24 22:45 VZ, revision 72202

Refactor: extract GtkScrolledWindow creation from wxWindow::Create(). No real changes, just make it possible to reuse the scrolled window and scrollbars creation code from derived classes.

2012-07-24 22:45 VZ, revision 72201

Allow passing the URL to open to webview sample on command line. This makes it simpler to test the sample with other pages and especially local HTML files.

2012-07-24 22:45 VZ, revision 72200

No real changes, just avoid overloaded virtual wxWebView::SetPage(). Instead, have two public non-virtual SetPage() methods forwarding to a private DoSetPage(), as usual. This avoids the need for "using wxWebView::SetPage" which is needed to avoid warnings about hiding the other base class virtual when implementing one of them and which was forgotten in wxMSW version resulting in warnings when using g++ to compile it.

2012-07-24 21:12 RD, revision 72198

Install the wx/gtk/dc.h header file.

2012-07-24 11:14 SC, revision 72195

avoid deprecated API, fixes #13727

2012-07-24 07:58 SC, revision 72194

guard against not-yet-existing font, fixes #14516

2012-07-23 17:04 VZ, revision 72185

Don't constantly reload comctl32.dll in wxTreeCtrl::MSWOnNotify(). The "loaded" flag was never set to true, so we kept reloading the DLL on every callback. Do set the flag after loading it successfully. Closes #14512.

2012-07-23 17:04 VZ, revision 72184

Fix wxMSW wxStaticBox compilation when wxUSE_UXTHEME==0. Don't compile the theme-using code in PaintForeground(). Closes #14511.

2012-07-23 17:03 VZ, revision 72183

Fix wxMSW wxTextEntry compilation in wxUSE_DYNLIB_CLASS==0 case. Simply don't define DoAutoCompleteFileNames() as it needs wxDynamicLibrary to compile and work. Closes #14510.

2012-07-23 17:03 VZ, revision 72182

Fix wxUSE_IFILEDIALOG definition in wxUSE_DYNLIB_CLASS==0 case. wxUSE_XXX symbols such as this one need to be defined as 0 and not as nothing at all. Closes #14509.

2012-07-23 17:03 VZ, revision 72181

Fix wxWindow::MSWShowWithEffect() compilation with wxUSE_DYNLIB_CLASS==0. Fall back to just plain Show() if wxDynamicLibrary, which we use to get function not existing in all Windows versions, is not available. Closes #14509.

2012-07-23 17:03 VZ, revision 72180

Use __DARWIN__ instead of __WXOSX__ in non-GUI code. This fixes compilation of non-wxOSX ports (e.g. wxGTK) under OS X. Also make the difference between the two symbols more clear in the documentation. Closes #14503.

2012-07-23 17:03 VZ, revision 72179

Fix --enable-webview_xxx options names in configure. Dashes can't be used in the option names, they're filtered out by configure. Closes #14507.

2012-07-23 17:03 VZ, revision 72178

Define wxGUIAppTraits for wxGTK/Windows port. Closes #14505.

2012-07-23 17:03 VZ, revision 72177

Fix compilation of wxOSX event loop without wxUSE_EVENTLOOP_SOURCE. Closes #14502.

2012-07-23 17:03 VZ, revision 72176

Handle accelerators earlier in keyboard processing code in wxGTK. Translate key presses to accelerators before sending wxEVT_KEY_DOWN. Also check for accelerators even for the key combinations handled by IM, normally IM should take precedence but IM seems to intercept common keys such as Shift+anything which it makes sense to use as accelerators.

2012-07-23 17:03 VZ, revision 72175

Use wxGTK platform-specific files in wxAdv under OS X. Closes #14501.

2012-07-23 17:03 VZ, revision 72174

Fix assert in webview sample when viewing pages without a title. Trying to append a menu item with empty label resulted in an assert (at least under wxGTK but probably elsewhere too), and in any case wasn't very useful, so use "(untitled)" instead in this case.

2012-07-23 17:03 VZ, revision 72173

Fix crash on wxWebViewWebKit window destruction. We were getting crashes due to using methods of already half-destroyed object when wxWebView window was destroyed in wxGTK, with the following abbreviated stack: #0 wxgtk_webview_webkit_load_status (widget=0x12eb380, webKitCtrl=0x13ee040) at src/gtk/webview_webkit.cpp:38 ... #8 0x00007ffff05ca281 in dispatchDidFailLoad (error=..., this=0x7fffe32db900) at ../Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1054 #9 WebKit::FrameLoaderClient::dispatchDidFailLoad (this=0x7fffe32db900, error=...) at ../Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1049 #10 0x00007ffff0b0de54 in WebCore::FrameLoader::checkLoadCompleteForThisFrame (this=0x7fffe3221b70) at ../Source/WebCore/loader/FrameLoader.cpp:2128 #11 0x00007ffff0b0cfde in WebCore::FrameLoader::checkLoadComplete (this=<optimized out>) at ../Source/WebCore/loader/FrameLoader.cpp:2370 #12 0x00007ffff0b0a3b2 in WebCore::FrameLoader::receivedMainResourceError (this=0x7fffe3221b70, error=..., isComplete=true) at ../Source/WebCore/loader/FrameLoader.cpp:2640 #13 0x00007ffff0b423b7 in cancel (error=..., this=0x7fffe3279680) at ../Source/WebCore/loader/ResourceLoader.cpp:399 #14 WebCore::ResourceLoader::cancel (this=0x7fffe3279680, error=...) at ../Source/WebCore/loader/ResourceLoader.cpp:353 #15 0x00007ffff0b420c0 in WebCore::ResourceLoader::cancel (this=<optimized out>) at ../Source/WebCore/loader/ResourceLoader.cpp:350 #16 0x00007ffff0afda9e in WebCore::DocumentLoader::stopLoading (this=0x7fffa081d800) at ../Source/WebCore/loader/DocumentLoader.cpp:258 #17 0x00007ffff0b09561 in stopAllLoaders (clearProvisionalItemPolicy=WebCore::ShouldClearProvisionalItem, this=0x7fffe3221b70) at ../Source/WebCore/loader/FrameLoader.cpp:1523 #18 WebCore::FrameLoader::stopAllLoaders (this=0x7fffe3221b70, clearProvisionalItemPolicy=WebCore::ShouldClearProvisionalItem) at ../Source/WebCore/loader/FrameLoader.cpp:1501 #19 0x00007ffff0b0d17a in WebCore::FrameLoader::stopForUserCancel (this=0x7fffe3221b70, deferCheckLoadComplete=false) at ../Source/WebCore/loader/FrameLoader.cpp:1541 #20 0x00007ffff05f3a36 in webkit_web_view_dispose (object=0x12eb380) at ../Source/WebKit/gtk/webkit/webkitwebview.cpp:1327 #21 0x00007ffff27ff7a0 in g_object_run_dispose (object=0x12eb380) at /tmp/buildd/glib2.0-2.32.3/./gobject/gobject.c:1061 #22 0x00007ffff4476c1e in gtk_scrolled_window_forall (container=0x7fff9c007d10, include_internals=0, callback=0x7ffff452cd20 <IA__gtk_widget_destroy>, callback_data=0x0) at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkscrolledwindow.c:1085 #23 0x00007ffff439872f in gtk_container_destroy (object=0x7fff9c007d10) at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkcontainer.c:1073 ... #28 0x00007ffff443cd60 in gtk_object_dispose (gobject=0x7fff9c007d10) at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkobject.c:421 #29 0x00007ffff27ff7a0 in g_object_run_dispose (object=0x7fff9c007d10) at /tmp/buildd/glib2.0-2.32.3/./gobject/gobject.c:1061 #30 0x00007ffff6cb65ac in wxWindow::~wxWindow (this=0x13ee040, __in_chrg=<optimized out>) at src/gtk/window.cpp:2367 #31 0x00007ffff6d71241 in wxControlBase::~wxControlBase (this=0x13ee040, __in_chrg=<optimized out>) at src/common/ctrlcmn.cpp:49 #32 0x00000000005cf761 in wxControl::~wxControl (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/control.h:27 #33 0x00007ffff7bd1eae in wxWebView::~wxWebView (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/webview.h:96 #34 0x00007ffff7bd3443 in wxWebViewWebKit::~wxWebViewWebKit (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/webview_webkit.h:26 #35 0x00007ffff7bd34ae in wxWebViewWebKit::~wxWebViewWebKit (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/webview_webkit.h:26 Fix this by setting m_isBeingDeleted flag for wxWebViewWebKit early and checking it in the callback.

2012-07-23 17:03 VZ, revision 72172

Add missing wxSTDCALL to fix wxWebView compilation with Borland. This patch from Guru Kathiresan fixes compilation with Borland C++ Builder 2007 and XE2.

2012-07-23 17:02 VZ, revision 72171

Document wxGTK limitation for accelerators involving Shift. Using Shift with non-alphabetic characters doesn't work due to GTK+ bug, see https://bugzilla.gnome.org/show_bug.cgi?id=614146

2012-07-23 17:02 VZ, revision 72170

Don't change client size of TLW when centering it in wxGTK. Setting the frame client size and then calling Centre() on it resulted in the frame coming up with a wrong client size in wxGTK because the call to Centre() resulted in calling wxTopLevelWindow::DoSetSize() which unconditionally reset m_deferShowAllowed to true, undoing setting it to false in DoSetClientSize(). Only reset m_deferShowAllowed if the size was really changed but not if the window was only moved, as happens when centering it.

2012-07-23 15:18 SC, revision 72169

fixing capture problem for mouse moved events, fixes #14486

2012-07-22 12:07 VS, revision 72168

Fix typo introduced in r72167.

2012-07-22 11:21 VS, revision 72167

Document wxWindow::Close() return value.

2012-07-21 07:14 SC, revision 72166

turning off undo for setter, otherwise memory gets used up for the undo stack, fixes #14500

2012-07-20 22:23 VS, revision 72164

Call Realize() later in XRC toolbar handler (patch #13888). This is a workaround for a deeper compatibility problem in Cocoa implementation (see the bug for detailed discussion), but for now, this simple workaround is much better than not doing nothing. See #13888.

2012-07-20 13:55 VZ, revision 72163

No changes, just fix some typos in comments. Closes #14494.

2012-07-20 13:55 VZ, revision 72162

Remove unnecessary configure options from wxOSX install.txt. There is no need to specify --enable-unicode nor --disable-shared. The latter is mentioned below anyhow.

2012-07-20 13:55 VZ, revision 72161

Use both URL-specific and plain text formats in wxGTK wxURLDataObject. Just as in wxMSW, it makes sense to put URLs on clipboard (or drag them) in both URL-specific and plain text formats to facilitate pasting (or dropping) them into other applications. So make wxURLDataObject in wxGTK a composite data object containing both its old data object and wxTextDataObject.

2012-07-20 13:55 VZ, revision 72160

Use proper format in wxGTK clipboard selection handler. For some incomprehensible reason, GDK_SELECTION_TYPE_STRING was hard coded for all non-text formats even though it was clearly never the right format to use. Use the correct value specified by the format instead.

2012-07-20 13:55 VZ, revision 72159

Use text/uri-list instead of x-moz-url in wxGTK wxURLDataObject. The standard exchange format for URLs is text/uri-list and not the deprecated and Firefox-specific x-moz-url, support for which was moreover implemented incorrectly anyhow. Also add an example of copying URLs to the dnd sample. See https://developer.mozilla.org/En/DragDrop/Recommended_Drag_Types for more information.

2012-07-20 13:54 VZ, revision 72158

Don't use delayed destruction for sockets in other threads. The delayed destruction mechanism is not MT-safe, so using it for wxSocket objects destroyed from threads other than main resulted in crashes. Luckily, it is not necessary to use it for such sockets anyhow as they don't risk receiving any events -- which are only dispatched in the main thread -- and so can be destroyed immediately. So do destroy them directly instead of just scheduling for later destruction when wxSocket::Destroy() is called.

2012-07-20 06:59 PC, revision 72157

simplify mouse button handling code

2012-07-20 02:53 RD, revision 72148

I think the "specific to PostScript" methods have been gone since 2.6, so let's stop saying that they are there but undocumented.

2012-07-19 17:39 PC, revision 72146

improve appearance of themed borders

2012-07-19 08:46 RD, revision 72143

Interface fixes for Phoenix

2012-07-18 17:00 JS, revision 72137

Reverted format changes since 2.9 works differently

2012-07-18 16:04 JS, revision 72136

String formatting fixes

2012-07-18 16:01 JS, revision 72135

String formatting fix

2012-07-16 21:12 SC, revision 72115

adapting order to preference

2012-07-16 21:09 SC, revision 72114

correct handling of order of preference of formats

2012-07-15 20:05 SC, revision 72108

removing workaround for listbox, finishing drop target support, fixes #14484, see #14281

2012-07-15 12:26 JS, revision 72098

A better panel label font size on Mac

2012-07-15 08:42 JS, revision 72096

Added continuation bullet style for supporting multiple paragraphs in a list item The user can 'delete' the bullet to create a continuation paragraph

2012-07-15 03:40 PC, revision 72095

simplify ifdefs, deferred show and _NET_FRAME_EXTENTS are X11-only

2012-07-14 23:36 RD, revision 72087

Add wxSHOW_EFFECT_MAX

2012-07-14 23:36 RD, revision 72086

Add missing Calc[Un]ScrolledPosition overloads taking a wxPoint.

2012-07-14 23:36 RD, revision 72085

Add missing wxEVT_COMMAND_TEXT_ENTER

2012-07-14 23:36 RD, revision 72084

Add missing styles

2012-07-14 23:35 VZ, revision 72083

Add documentation for CURRENCY and SCODE wxVariant classes. This should have been part of r72081. See #14225.

2012-07-14 22:11 VZ, revision 72082

Refactor wxMSW helper functions to allow reuse in wxGTK. Extract wxMSW-specific part of src/msw/utilsgui.cpp into a new src/msw/utilswin.cpp file to allow reuse the rest of the former file in wxGTK. Closes #14424.

2012-07-14 22:10 VZ, revision 72081

Add support for CURRENCY and SCODE to MSW OLE helpers. This allows to call OLE Automation methods taking parameters or returning values of these types. Closes #14225.

2012-07-14 22:10 VZ, revision 72080

Disable the recently added wxFileSystemWatcher unit case under Windows. It currently fails there, so don't run it until this is fixed to let the tests pass globally. See #14480.

2012-07-14 22:10 VZ, revision 72079

Minor fixes to wxGTK3 with Broadway backend build. Reuse some functions for both Broadway and X11 backends. Fix invalid casts from Broadway screen/display types to X11 ones. Closes #14469.

2012-07-14 07:26 PC, revision 72076

fix creation of wxBitmapComboBox with GTK3

2012-07-13 20:22 VZ, revision 72075

Allow building wxGTK3 with Broadway backend. Use GDK_WINDOWING_BROADWAY to fix compilation with it. Closes #14469.

2012-07-13 20:11 JS, revision 72074

Fix for caret positioning bug when selecting content

2012-07-13 18:58 PC, revision 72073

avoid creating and immediately destroying a wxGraphicsContext when creating a wxDC with wxGTK3

2012-07-13 18:38 JS, revision 72072

Fixed wxRichTextCtrl caret test case

2012-07-13 14:00 VZ, revision 72071

Rename wxFileSystemWatcherBase::DoAdd() to AddAny() and make it public. Make this method public to fix compilation after the recent changes as traverser classes can't call it otherwise (no idea why did it compile with g++). And give it a better name just in case people decide to call it even though it's not documented and described as private in comment (but perhaps we could make it really public later).

2012-07-13 13:46 VZ, revision 72070

Add possibility to hide and show again wxRibbonBar pages. Added wxRibbonBar::ShowPage(), HidePage() and IsPageShown() methods and show them in the sample. Also add GetPageNumber() helper. Closes #14471.

2012-07-13 13:46 VZ, revision 72069

Generate tags for ribbon headers and sources too. Add the files in {include/wx,src}/ribbon to the list of ctags inputs.

2012-07-13 13:22 VZ, revision 72068

Test calling wxFileSystemWatcher::{Add,Remove}Tree(). Add a test for tree monitoring functions to the unit test. See #14480.

2012-07-13 13:22 VZ, revision 72067

Properly use RemoveTree() in fswatcher sample. We need to use RemoveTree() to remove watches for the paths added with AddTree(). See #14480.

2012-07-13 13:22 VZ, revision 72066

Add the root and all the files in wxFileSystemWatcherBase::AddTree(). When watching a tree recursively, add the files and not only the directories. Also, add -- and remove in RemoveTree() -- the root directory itself and not only its children. Closes #14480.

2012-07-13 08:51 SC, revision 72065

always use calibrated colors, fixes #14482

2012-07-12 22:50 RD, revision 72055

Interface fix for Phoenix.

2012-07-12 21:30 SC, revision 72050

removing 2.9 backport

2012-07-12 20:34 VZ, revision 72049

Fix bogus asserts in Unix wxFileSystemWatcher for removed files. Store the recently removed file descriptors and don't assert if we get an event for one of them, this can happen and is normal unlike unexpected events for completely unknown descriptors for which we still keep an assert. Closes #14465.

2012-07-12 20:34 VZ, revision 72048

Fix item data access in wxDataViewListCtrl. Map items to rows correctly, just using wxPtrToUInt()-1 is not the right thing to do if any items were deleted or changed. Closes #14479.

2012-07-12 15:18 VZ, revision 72047

Added more items to the release check list. Mention that the change log should be uploaded too (it would be perhaps more useful to have a change log for just this release but for now upload the entire file) and that the llatest available version must be update on the web site.

2012-07-12 08:56 SC, revision 72041

backport support for horizontal scrollwheel support

2012-07-11 21:28 VZ, revision 72040

No changes, just remove TABs from configure.in.

2012-07-11 21:16 RD, revision 72039

Just like dependency tracking don't disable precompiled headers if there is only one architecture being built.

2012-07-11 19:08 PC, revision 72033

fix some more improper widget casts

2012-07-11 18:49 PC, revision 72032

Use GTK_IS_ENTRY() to determine if widget is a GtkEntry. If widget is not a GtkEntry, using GTK_ENTRY() will result in assertion or crash

2012-07-11 14:16 VZ, revision 72031

Revert "Temporarily disable the failing wxRichTextCtrl case." Revert r71945 which disabled failing wxRichTextCtrl unit test. It fails again now and hopefully will be fixed before 2.9.5.

2012-07-11 13:42 VZ, revision 72030

Allow saving images under a different name in the image sample. Also allow saving in XPM format. See #13905.

2012-07-11 13:42 VZ, revision 72029

Ensure that names of saved XPMs are valid C identifiers. The name of the XPM should be based on the file name but can't always be exactly equal to it as it's possible (and relatively common, e.g. "foo-24.xpm") to have characters forbidden in identifiers to appear in the file names. Ensure that we use a valid C identifier here. Closes #13905.

2012-07-11 13:42 VZ, revision 72028

Fix bug with using invalid date in wxMSW wxCalendarCtrl. Fall back to the start date of the native control if our own date was not set yet. Closes #14476.

2012-07-11 13:42 VZ, revision 72027

Activate OLE ActiveX controls before requesting their window. Change the order of IOkeInPlaceActiveObject::GetWindow() and DoVerb(OLEIVERB_INPLACEACTIVATE) calls and do the latter first now as otherwise GetWindow() returned NULL for standard ActiveX controls created by MFC. Closes #14209.

2012-07-11 13:42 VZ, revision 72026

Change the format of the documentation archives for the release. Call them wxWidgets-x.y.z-docs-nnn instead of wxWidgets-docs-nnn.x.y.z.

2012-07-11 13:42 VZ, revision 72025

Fix compilation of newly added msw/evtloopconsole.cpp without PCH. Include <windows.h> and "wx/log.h" explicitly when not using PCH. Closes #14475.

2012-07-11 09:32 PC, revision 72021

fake paint events don't work with wxGTK3 either

2012-07-11 09:05 PC, revision 72020

remove code in SetFont which modifies font for no apparent purpose

2012-07-11 08:36 PC, revision 72019

Avoid creating and immediately destroying a wxGraphicsContext for most uses of wxGCDC. This also causes the dummy "measuring context" to be properly initialized with a default font

2012-07-11 06:23 RD, revision 72013

Interface fixes for Phoenix.

2012-07-11 06:23 RD, revision 72012

Add missing wxFRAME_SHAPED

2012-07-11 01:52 VZ, revision 72011

Fix wxNativeContainerWindowId definition for wxGTK/Windows port. It's a gpointer and not unsigned long as under Unix in this case. Closes #14447.

2012-07-11 01:52 VZ, revision 72010

Forbid setting hints for multi-line text controls. This doesn't work anyhow, so make it explicit by asserting if an attempt to do it is made. And document this. Also add a test of SetHint() to the text sample to verify it still works. Closes #14456.

2012-07-11 01:52 VZ, revision 72009

Fix German translation for "Shift+" keyboard accelerator prefix. Closes #14457.

2012-07-11 01:52 VZ, revision 72008

Use the same console event loop in wxBase and wxCore in wxMSW. Refactor the console event loop code into separate files to untangle it from the GUI version and ensure that it doesn't depend on the GUI at all. It can now be defined in the base library and simply reused by the core one. This also makes the console event loop usable for other ports under Windows, e.g. wxGTK. Closes #14426.

2012-07-11 01:51 VZ, revision 72007

Increase version to 2.9.5. Rebake all the project/make files.

2012-07-11 01:50 VZ, revision 72006

Fix unit tests compilation in STL build. Add missing c_str() calls forgotten by r70687. Closes #14472.

2012-07-10 19:27 PC, revision 72004

remove DoSetSize override, unneeded after r72001

2012-07-10 19:26 PC, revision 72003

remove STOCKITEM_26 macro, unneeded after r72001

2012-07-10 19:17 PC, revision 72002

no real changes, just remove unnecessary indentation and scoping after r72001

2012-07-10 18:39 PC, revision 72001

update minimum GTK2 version requirement to 2.6

2012-07-10 12:54 VZ, revision 72000

Give the newly added wxGTK trunk STL builder a unique name. It conflicted with the (unused) builder on StellarWerx slave.

2012-07-10 12:50 VZ, revision 71999

Add a wxGTK STL buildbot build on brandt32 slave. Also use --disable-compat28 as we don't have any builds testing this option.

2012-07-10 08:42 RD, revision 71998

Make a couple virtuals protected so they can be overridden.

2012-07-10 07:12 RD, revision 71989

Interface fixes for Phoenix.

2012-07-09 22:35 VZ, revision 71988

Added a release notes file for binaries. Also create wxWidgets-x.y.z_Headers.7z file when making the release, it is used with the binaries.

2012-07-09 16:15 VZ, revision 71986

Create tag WX_2_9_4

2012-07-09 16:15 VZ, revision 71985

Updated READMEs &c for 2.9.4 release. Updated the text of the announcement posted to wx-announce too and mention it in the release check list.

2012-07-09 14:41 VZ, revision 71984
  • D /wxWidgets/tags/WX_2_9_4

Remove prematurely created 2.9.4 tag.

2012-07-09 14:39 VZ, revision 71983

Create tag WX_2_9_4

2012-07-08 12:28 JS, revision 71982

Fix for scroll position being changed when partial layout is done

2012-07-08 05:48 RD, revision 71981

Revert r71595 for now, as the bug it fixed is the lesser of two evils with the potential bugs it causes. See #14453.

2012-07-07 18:34 SC, revision 71980

fixing double focus ring under 10.7, emulating only for 'NO_' and 'SIMPLE_' border

2012-07-07 17:36 VZ, revision 71979

Replace "_amd64" with "_x64" in a few more places. Fix bakefile presets and MSVC-specific setup.h. Also document TARGET_CPU=X64 instead of AMD64.

2012-07-07 15:27 VZ, revision 71978

Use "_x64" instead of "amd64" for x64 MSW makefile builds. Still accept "amd64" as a valid TARGET_CPU value but also accept, and encourage people to use, "x64". Add a new section about the build system changes to the change log and added a mini-TOC to it to make navigating it a bit easier and show what changes are there at a glance.

2012-07-07 15:27 VZ, revision 71977

Don't call HitTest() unnecessarily in MSW wxTreeCtrl code. We already called TreeView_HitTest() above, there is no need to call wxTreeCtrl::HitTest() again to retrieve exactly the same information. This also incidentally fixes a warning about unused variable, see #14459.

2012-07-07 15:27 VZ, revision 71976

Fix uninitialized variable warning in wxMSW wxFileSystemWatcher code. This warning was harmless as the variable was in fact always initialized if the code where it was used was reached but g++ 4.6.1 is not smart enough to see it, just as MSVC for which we already had a workaround. So initialize it explicitly just to suppress the warning. See #14459.

2012-07-07 15:27 VZ, revision 71975

Avoid warnings about uninitialized variables in TGA loading code. Initialize the variables containing the colour components: even though they should normally be always filled by Palette_GetRGB() call below, this presumably might not happen for a corrupted image with invalid palette table entries and g++ correctly complains about it. See #14459.

2012-07-07 15:27 VZ, revision 71974

Avoid warning about unused variable in wxGetUTCTimeMillis() in wxMSW. Put the declaration of the variable only used under Unix inside the corresponding "#if" branch. See #14459.

2012-07-07 15:27 VZ, revision 71973

Avoid unused variable warning in wxPropertyGrid code in non-wxGTK. Put the variable only used in wxGTK inside "#ifdef __WXGTK__". This fixes the warning but the real fix would be to get rid of this variable completely and just fix whatever problem in wxWindow::Navigate() this was supposed to work around. See #14459.

2012-07-07 15:27 VZ, revision 71972

Explicitly call base class ctor in wxRichTextFieldType copy ctor. Failure to do this provokes g++ warnings with -Wextra and is, generally speaking, wrong, even if it probably doesn't matter in this particular case. See #14459.

2012-07-07 15:27 VZ, revision 71971

Return correct index from wxGenericListCtrl::InsertColumn(). It used to always return 0 in the generic version, return the correct index of the newly inserted column now. Closes #13677.

2012-07-07 15:24 SC, revision 71970

adding support for enabled property, avoiding missing return values

2012-07-07 15:07 SC, revision 71969

added missing return value

2012-07-07 15:06 SC, revision 71968

new file added

2012-07-06 18:39 PC, revision 71967

guard against empty name field in inotify_event, see #14466

2012-07-05 20:56 VZ, revision 71966

Rename WX_2_9_4 tag to WX_2_9_4-rc1 as it doesn't correspond to final 2.9.4.

2012-07-04 19:09 VZ, revision 71965

Use list mode in wxListbook list control instead of report. Use wxLC_LIST instead of wxLC_REPORT when we don't have any icons. This makes the code simpler as wxLC_LIST is more similar to wxLC_ICON which we used, and continue to use, when we do have icons, because we don't need to add and remove any columns on the fly. And it fixes the appearance of wxListbook without images with wxBK_TOP or wxBK_BOTTOM styles as it now lays out its items horizontally and not vertically as before. It also fixes the best size calculation of wxListbook control since the changes to wxListCtrl best size calculations in r71733 as a nice side effect. Closes #14451.

2012-07-04 18:42 SC, revision 71964

supporting alignment in single line controls, see #14452

2012-07-04 18:30 SC, revision 71962

using correct constant

2012-07-04 18:17 SC, revision 71961

fixing another reference to wrong center flag

2012-07-04 18:15 SC, revision 71960

correcting text alignment flag

2012-07-04 13:45 VZ, revision 71959

Fix problem with most of wxGTK headers not being installed. GTK2_HDR should also include all the version-independent wxGTK headers. Closes #14455.

2012-07-04 13:45 VZ, revision 71958

Rename all setup0.h files to setup.h in git-based release script. We also need to rename wx/univ/setup0.h and wx/gtk/setup0.h and it probably doesn't hurt to rename all the other ones even if though they're unused anyhow.

2012-07-04 13:45 VZ, revision 71957

Put the README file used for SourceForge files page under version control. And this is another thing to do for the release.

2012-07-04 13:45 VZ, revision 71956

Remove duplicate item about Trac changes from release tech note. Part of the additions of r71951 was already present in this file, just in another place.

2012-07-04 13:45 VZ, revision 71955

Run unix2dos in quiet mode in git-oriented release script. Don't flood the screen with the messages about converting the files, we know that we convert them, this is what we run the bloody thing for.

2012-07-03 22:02 VZ, revision 71954

Create tag WX_2_9_4

2012-07-03 22:01 VZ, revision 71953

Also update the minimal GTK+ version in the introduction manual page. And mention GTK+ 3 there too.

2012-07-03 21:59 VZ, revision 71952

Update the date in the manual before 2.9.4 release. And mention the need to do it in the tech note for the next time.

2012-07-03 21:58 VZ, revision 71951

Updated readme and changelog for 2.9.4 release. Also add more things to do before the release to the tech note.

2012-07-03 21:41 VZ, revision 71950

Remove unnecessary checks for OS X 10.4 and gcc 4.0 in configure. As 10.4 is not supported any more, don't check for it. Also don't impose the use of gcc 4.0 for compiling wxOSX/Carbon as this compiler doesn't exist any more under OS X 10.7 but wxOSX/Carbon can be compiled using gcc 4.2 if 10.6 SDK is selected, so this change allows to build wxOSX/Carbon under 10.7.

2012-07-03 07:37 PC, revision 71948

synchronize GTK2 minimum version in docs

2012-07-03 00:59 VZ, revision 71947

Fix wxGTK compilation with MSVC after GTK+ 3 changes. Don't use preprocessor conditions inside a macro invocation, MSVC doesn't support this. Closes #14448.

2012-07-02 17:56 PC, revision 71946

add some mention of GTK3 support

2012-07-02 17:08 VZ, revision 71945

Temporarily disable the failing wxRichTextCtrl case. Disable CaretPosition() unit test as it is broken now. This is only temporary to allow tests to pass in 2.9.4, will be reenabled (and hopefully fixed) later.

2012-07-02 17:05 VZ, revision 71944

Clear larger area in wxGCDC::Clear(). Clearing a rectangle of size 32000 was not always enough to clear the entire DC, so use INT_MAX instead -- this is the best we can do with the current approach. Closes #13445.

2012-07-02 17:03 VZ, revision 71943

Keep client data in sync when deleting items from wxOSX wxComboBox. Correspondence between item indices and their client data was broken if any items were deleted or the combobox was cleared entirely. Fix this by updating the client data array whenever this happens. Closes #14147.

2012-07-02 17:03 VZ, revision 71942

Preserve client data in wxComboBox::SetString() in wxOSX/Cocoa. Don't reset the client data to NULL when we're just changing the item text. Closes #14146.

2012-07-02 17:03 VZ, revision 71941

Set string in wxEVT_COMMAND_COMBOBOX_SELECTED event in wxOSX/Cocoa. Pass the selected string and not only its index in the event generated when combobox selection changes in wxOSX/Cocoa. Closes #14383.

2012-07-02 17:02 VZ, revision 71940

Add extra border below the buttons in the generic log dialog. This fixes the problem with the dialog appearance in wxOSX/Cocoa where the bottom of the buttons was truncated otherwise and arguably makes the dialog look slightly better in the other ports too. Closes #14398.

2012-07-02 16:36 VZ, revision 71939

Fix wxDataViewChoiceRenderer behaviour in wxOSX/Cocoa. Changing the value of a "choice" cell in wxDataViewCtrl didn't work correctly in wxOSX/Cocoa because wxDataViewChoiceRenderer used the base class version of OSXOnCellChanged() which passed the integer index we received from NSOutlineView to the model instead of the expected string. Fix this by overriding OSXOnCellChanged() in wxDataViewChoiceRenderer itself and using its argument as an integer index of the selection because this is what it is, at least under OS X 10.7. Closes #14373.

2012-07-02 14:46 VZ, revision 71938

No changes, just suppress an unused parameter warning in wxOSX build. This one was especially annoying as it occurred in a header included by a couple of dozens of files.

2012-07-02 14:36 SC, revision 71937

adapting new osx modifier handling, fixes #14377

2012-07-02 13:54 SC, revision 71936

handling illegal fsrefs by returning an empty string, fixes #14384

2012-07-02 13:50 SC, revision 71935

guarding against invalid files passed to 'pdoc' apple event, see #14384

2012-07-02 13:47 SC, revision 71934

guarding against invalid files passed to 'odoc' apple event, see #14384

2012-07-02 12:28 VZ, revision 71933

Allow using wxGridCellEnumEditor with the mouse. Previously the combobox was immediately dismissed when the mouse was used. Fix this by copying the code from wxGridCellChoiceEditor to this class. This is obviously not ideal and both classes should be refactored to avoid this in the future but for now this at least fixes the user-visible problem. Closes #13943.

2012-07-02 04:58 RD, revision 71929

Add COMPILER_VERSION to nmake command line

2012-07-02 02:16 VZ, revision 71928

Show gstreamer errors in wxGStreamerMediaBackend to the user. If the media file fails to play, we really need to show to the user the corresponding gstreamer error, otherwise there is no way to understand what the problem is. Collect the errors in gst_error_callback() and show them from the main thread if we get a gstreamer error.

2012-07-02 02:16 VZ, revision 71927

Use wxFileSystem::FileNameToURL() in wxGStreamerMediaBackend. Converting files to URIs is not as simple as just prepending "file://" to them, notably we need to escape characters that are special in URIs such as "#" and "%", so use FileNameToURL() which already does do it correctly. Closes #13663.

2012-07-02 02:16 VZ, revision 71926

Fix command line parsing in media player sample. It was broken since the addition of the call to wxApp::OnInit() to wxMediaPlayerApp::OnInit() -- as the base class parses the command line itself, we need to use OnInitCmdLine() and OnCmdLineParsed() instead of doing it manually if we call it. Also don't load the play list saved in wxConfig if any command line parameters were given as otherwise the saved files would be used first (this seems to have been always broken...).

2012-07-02 00:39 VZ, revision 71925

Fix wxMSW compilation without PCH. Include wx/bitmap.h as we need its GetHBITMAP() method in wx/msw/dib.h.

2012-07-01 23:35 VZ, revision 71924

Use COMPILER_VERSION and ARCH_SUFFIX in libraries names in Windows makefiles. For the official builds (only), include the compiler version and the architecture suffix, unless it's the default x86, into the DLL names, to allow their concurrent installations for multiple compiler versions and architectures. Closes #13857.

2012-07-01 23:35 VZ, revision 71923

No real changes, just rename DIR_SUFFIX_CPU to ARCH_SUFFIX in bakefiles. This will be soon used in the libraries names and not only in the directory paths so rename the variable to make things more clear (or at least less confusing).

2012-07-01 23:10 VZ, revision 71922

Forward WM_{CUT,COPY,PASTE} from edit control to wxComboBox in wxMSW too. This allows us to receive wxClipboardTextEvents from wxComboBox as well. Update the documentation to mention this.

2012-07-01 21:10 PC, revision 71921

remove some unused files from GTK3 build

2012-07-01 19:44 PC, revision 71920

eliminate possibility of configure enabling gnomeprint with GTK3

2012-07-01 19:13 SC, revision 71919

using common code

2012-07-01 19:03 SC, revision 71918

common code for normalization

2012-07-01 18:43 PC, revision 71917

override DoSetValue() to avoid unnecessary clipboard operations, fixes #14369

2012-07-01 17:46 SC, revision 71916

native drop target method for cocoa

2012-07-01 17:46 SC, revision 71915

native hook for supported datatypes

2012-07-01 17:45 SC, revision 71914

adding native hook for drop target

2012-07-01 15:20 SC, revision 71913

make sure the pasteboard paste location is only set once

2012-07-01 13:35 VZ, revision 71912

Implement wxDisplay::GetFromWindow() for wxGTK/Windows. As wxWindow doesn't have an associated HWND when using wxGTK, use MonitorFromPoint() instead of MonitorFromWindow() for this port. Closes #14408.

2012-07-01 13:35 VZ, revision 71911

Fix the use of AutoHBITMAP in recently added LoadImageFromResource(). Assignment operator of AutoHBITMAP doesn't work as expected (and probably should be removed/fixed), avoid its use by explicitly calling Init(). Closes #14425.

2012-07-01 01:41 VZ, revision 71910

No changes, just suppress an unused variable warning. Omit the name of the exception object that we never use.

2012-07-01 01:41 VZ, revision 71909

VC6 compilation fix for the grid sample. Use Connect() instead of Bind() which is not available for VC6.

2012-07-01 01:41 VZ, revision 71908

Make wxBookCtrlBase::GetPage() virtual to fix it for wxAuiNotebook. wxAuiNotebook doesn't store its page in the base class m_pages array, so calling GetPage() on it via a wxBookCtrl pointer resulted in a crash. Make GetPage() virtual to allow overriding it at wxAuiNotebook level. Closes #13768.

2012-07-01 01:41 VZ, revision 71907

Add skeleton documentation for wxAuiNotebook-related classes. Closes #14386.

2012-07-01 01:41 VZ, revision 71906

Implement hatched/stippled pens/brushes in wxGraphicsContext for Cairo. Refactor the pen/brushes classes to introduce a common base class for them containing their colour and hatch pattern and stipple bitmap, if any. And actually create the hatched pattern and use it. Closes #11981.

2012-07-01 01:41 VZ, revision 71905

Added internal wxHatchStyle enum. It's annoying that the same code for hatched pens and brushes can't be reused without relying on deprecated wxXXX_HATCH constants, so add new, non-deprecated, wxHatchStyle enum that can be used in such code.

2012-06-30 22:59 RD, revision 71897

Only disable generation of dependencies if more than one architecture is being built.

2012-06-30 22:59 RD, revision 71896

Move a couple standard virtuals to protected sections so they can be overridden in derived classes

2012-06-30 22:59 RD, revision 71895

Interface fix for Phoenix

2012-06-30 22:39 PC, revision 71894

support for GTK3

2012-06-30 18:33 VZ, revision 71893

Force wide char environment version initialization in wxGetEnvMap(). When using MSVC CRT, the wide character version of the environment is not always initialized when using main() (and not _wmain()) as entry point, so force initializing it before using _tenviron. Closes #14231.

2012-06-30 18:33 VZ, revision 71892

Add a unit test verifying that wxSpinCtrl ctor doesn't generate any events. This shouldn't happen but did (and apparently still does, sometimes) under MSW so add a test verifying that no events are generated by the ctor. See #14428.

2012-06-30 18:33 VZ, revision 71891

Use wxString::t_str(), not fn_str(), with Windows API functions. fn_str() is supposed to be used with the CRT functions taking file names only, not Windows API functions that always take LPCTSTR with all compilers/CRT versions. Closes #14433.

2012-06-30 18:33 VZ, revision 71890

Define wxEntry() with WinMain-compatible signature for all Windows ports. Make wxEntry(HINSTANCE, ...) available in wxGTK under Windows too. Refactor the headers to allow this and extract Windows-specific wxEntry() declarations in wx/msw/init.h from wx/msw/app.h for consistency with the normal wxEntry(int, char**) declared in wx/init.h. Closes #14423.

2012-06-30 18:33 VZ, revision 71889

Use bitmaps from resources by default in wxGTK under Windows. Use wxBITMAP_TYPE_{BMP,CUR,ICON}_RESOURCE by default under Windows, even for non-wxMSW ports. Also allow loading wxImage from resources in all ports under MSW as a side effect of this change. Closes #14425.

2012-06-30 18:33 VZ, revision 71888

Add wxRibbonBar::DeletePage() and ClearPages() methods. Also add a trivial GetPageCount() helper. Closes #14437.

2012-06-30 18:33 VZ, revision 71887

Update debugging macros overview in the docs. Describe how the debugging macros really work since 2.9.1, i.e. explain wxDEBUG_LEVEL and NDEBUG instead of __WXDEBUG__. Closes #14435.

2012-06-30 18:33 VZ, revision 71886

Create wxStaticBoxSizer elements as children of wxStaticBox in XRC. As we now recommend creating the controls shown inside wxStaticBox as its children, and not siblings, follow our own recommendation by doing just this in XRC handler of wxStaticBoxSizer. Also add a test of using a tooltip with a wxStaticBoxSizer element to the XRC demo showing that tooltips do work now for them, unlike before. Closes #14431.

2012-06-30 18:33 VZ, revision 71885

Don't hard code horizontal border for wxStaticBox in wxGTK. Compute the border width from the average character width instead of hard coding it to 5 pixels. Probably doesn't make much difference in practice, but seems to make more sense.

2012-06-30 18:33 VZ, revision 71884

Fix vertical offset for wxGTK wxStaticBox without label. Don't use different size for the vertical border in wxStaticBox just because it doesn't have any label, this just doesn't seem necessary and results in different appearance for the static box with and without label. Closes #14430.

2012-06-30 01:55 VZ, revision 71883

Fix generation of wxEVT_CHAR in wxMSW wxComboBox. wxEVT_CHAR shouldn't be generated at all if wxEVT_KEY_DOWN was handled but it still was for wxComboBox because the code in its MSW implementation directly called HandleKeyDown() and HandleChar() methods, bypassing the logic dealing with m_lastKeyDownProcessed at wxWindow level. Fix this by calling MSWHandleMessage() instead to ensure that WM_CHAR after a handled WM_KEYDOWN are ignored as they ought to.

2012-06-29 08:44 JJ, revision 71881

Add wxUSE_COMPILER_TLS to OpenVMS setup file

2012-06-28 14:11 SC, revision 71879

unconditionally include coretext-replacement function when having a deployment target of 10.5

2012-06-28 13:58 VZ, revision 71878

Fix off by 1 error in wxHTML font size from points calculation. m_FontSize is in 1..7 range, not 0..6, so add 1 to it when setting it from the index into m_FontsSizes array. Also update the comment explaining the valid range of m_FontsSize. Closes #14442.

2012-06-28 08:55 RD, revision 71876

Interface fix for Phoenix

2012-06-26 20:25 RD, revision 71866

Don't hide the m_mm_to_pix_x and m_mm_to_pix_y in the base class by redefining them in a derived class. Fixes #14399.

2012-06-26 04:01 RD, revision 71862

Add missing parent classes

2012-06-25 17:23 SC, revision 71859

adding new API needed for screenshots as old method stopped working in 10.7

2012-06-25 10:02 JS, revision 71857

Fix for page break problem: fixes #14429

2012-06-24 18:18 PC, revision 71856

update size hints when decoration size becomes known, and preserve size hint increments

2012-06-24 08:33 PC, revision 71855

implement wxCairoContext::GetPartialTextExtents for wxGTK

2012-06-23 14:27 VZ, revision 71844

Clarify wxFileOffset description a bit. It wasn't clear how wxFileOffset was defined under Windows without wxHAS_HUGE_FILES.

2012-06-23 05:33 PC, revision 71843

properly handle stupidly small maximum size hints

2012-06-23 02:44 RD, revision 71835

Add simple document for wxGUIEventLoop

2012-06-22 08:41 PC, revision 71831

fix SetSizeHints when wxDefaultSize is given for min or max size GTK does unexpected things if both min and max size are not explicitly set

2012-06-21 22:12 JS, revision 71830

Fixed #14429: Printing a large table in wxRichTextCtrl fails

2012-06-21 21:12 JS, revision 71828

Prevent index access error

2012-06-21 20:39 JS, revision 71827

Compilation fix

2012-06-21 15:19 VZ, revision 71825

Don't call gtk_window_set_geometry_hints() if there are no hints to set. Calling gtk_window_set_geometry_hints() with the hints mask of 0 doesn't work correctly and sets the window size to the smallest possible. Avoid this by simply not calling this function at all if there is nothing to do.

2012-06-20 20:24 VZ, revision 71824

Add MSVS autoexp.dat fragment for some common wxWidgets types. As we have gdb pretty printers under the version control, it makes sense to also put MSVS visualizers there as well.

2012-06-20 19:54 VZ, revision 71823

Use wx/msw/winundef.h for wxGTK under Windows too. Avoid clashes due to <windows.h> definitions in wxGTK too. Closes #14427.

2012-06-20 19:54 VZ, revision 71822

No real changes, just simplify wxGDIPlusContext::GetTextExtent() a bit. Don't call Font::GetSize() and FontFamily::GetEmHeight() thrice, just do it once and store the results. This makes the code both simpler and shorter and marginally more efficient.

2012-06-20 19:54 VZ, revision 71821

Fix text extent computation in wxMSW wxGraphicsContext. The results were incorrect for italic or bold fonts as we hardcoded FontStyleRegular instead of using the real font style. Closes #14421.

2012-06-20 19:54 VZ, revision 71820

Add missing c_str() and similar calls to samples in STL build. Don't rely on implicit conversion of wxString to char*/wxChar*, it doesn't exist in STL build. Add explicit c_str(), wc_str() or t_str() calls. Closes #14420.

2012-06-20 19:54 VZ, revision 71819

Use C, not C++, comments in wx/gtk/chkconf.h. Remove C++ comments added in r71796. See #14412.

2012-06-20 19:10 RD, revision 71811

Interface tweaks for Phoenix

2012-06-20 12:34 SC, revision 71810

make sure native font exists, before asking about fixed width

2012-06-20 09:16 SC, revision 71809

using UTType constants wherever possible to avoid typos, checking for failed conversions, leveraging native conversion of types, fixes #13442

2012-06-18 22:27 SC, revision 71808

supporting promised file urls for transfer, see #14281

2012-06-18 20:45 JS, revision 71806

Fixed #14417: wxRichTextCtrl crashes on LoadFile

2012-06-18 18:11 PC, revision 71805

build fix for wxUSE_STL==1

2012-06-18 17:13 SC, revision 71804

supporting promised file urls for transfer, see #14281

2012-06-18 04:14 RD, revision 71800

Interface fixes for Phoenix

2012-06-17 23:35 VZ, revision 71799

Fixes for building wxGTK under Cygwin. Test for __WXMSW__ instead of __CYGWIN__ to not affect building non-MSW ports such as wxGTK under Cygwin. See #14382.

2012-06-17 23:35 VZ, revision 71798

Disable creation of wxDIB from wxBitmap in non-wxMSW ports. wxDIB can now be used with wxGTK under Windows, i.e. when not using wxMSW version of wxBitmap but it can't be created from wxBitmap then as it doesn't have a corresponding HBITMAP. Simply disable this functionality when not using wxMSW. Closes #14414.

2012-06-17 23:35 VZ, revision 71797

Move wxBell() from base to core library. This allows to get rid of ugly preprocessor checks due to the fact that this function could be defined in one or the other library depending on the port used and also fix a problem with it being defined differently in the base library depending on which GUI port (Carbon or Cocoa) was used under OS X. It also fixes the problem with wxBell() in wxGTK under Windows. Closes #14406.

2012-06-17 23:35 VZ, revision 71796

Disable options that don't work with wxGTK in wx/chkconf.h. When building wxGTK under Windows, some MSW-specific options can be defined but can't be implemented when using GTK, forcefully disable them. Also a few others that could be implemented but that don't work currently. Finally, forcefully enable Cairo support as wxGTK always needs it. Closes #14412.

2012-06-17 23:34 VZ, revision 71795

Define wxGTK GTK version symbols in GTK-specific setup.h. When not using configure __WXGTKxxx__ symbols should still be defined, assume we use a recent GTK 2.x version and define all of them. Closes #14411.

2012-06-17 23:34 VZ, revision 71794

Don't use Unix-specific wxGTK utility functions under non-Unix. Unix-specific functions shouldn't be used under Windows, add "#ifdef __UNIX__" guards around them. Closes #14410.

2012-06-17 23:34 VZ, revision 71793

Provide wxGetKeyState() studfor wxGTK under Windows. Under Unix this function is implemented in X11-specific code, so provide a stub under Windows to at least avoid link errors. Closes #14409.

2012-06-17 23:34 VZ, revision 71792

Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support. Compiler TLS support is broken under Win32/MSVC when used for a code which is part of a dynamically loaded DLL, so allow disabling it.

2012-06-17 19:08 PC, revision 71791

update version check for glib 2.32

2012-06-16 01:23 VZ, revision 71789

No real changes, just use wxSize::Get{Width,Height} and not Get{X,Y}. Use more readable accessors in wxGrid code to avoid confusion between wxGrid (x, y) coordinates and wxSize (x, y) fields. Closes #14347.

2012-06-16 01:23 VZ, revision 71788

Remove unnecessary base class OnPaint() call from wxGenericColourDialog. Events should be skipped instead of calling the base class event handler directly, but in this case even this is not needed as wxGenericColourDialog takes care of processing the event completely. Closes #14405.

2012-06-16 01:23 VZ, revision 71787

Remove left over conflict markers from documentation. Closes #14404.

2012-06-16 01:23 VZ, revision 71786

Fix compilation of MSW wxFSVolume with non-wxMSW ports. There is no way to construct wxIcon from HICON when not using wxMSW, just leave it unimplemented for non-wxMSW ports. Closes #14402.

2012-06-16 01:23 VZ, revision 71785

Fix harmless MSVC warning about converting pointer to bool. Compare the pointer with NULL explicitly to avoid "forcing value to bool" warning C4800 from MSVC in richtext code.

2012-06-16 01:23 VZ, revision 71784

Only use Unix sockets API under Unix in wxGTK. wxGTK can now be used under Windows where Unix sockets are not available, add a __UNIX__ preprocessor check. Closes #14407.

2012-06-15 19:48 SC, revision 71783

trying to improve appearance of gridcelltexteditor under OSX, see #14042

2012-06-15 18:57 SC, revision 71782

avoid idling in native file dialogs

2012-06-15 18:24 SC, revision 71781

better naming wxCFEventLoopPauseIdleEvents

2012-06-15 02:04 SC, revision 71779

using suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

2012-06-15 02:03 SC, revision 71778

offer suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

2012-06-15 01:21 SC, revision 71777

setting debug level explicitly

2012-06-15 00:29 SC, revision 71771

cleanup for 10.5 minimum

2012-06-15 00:02 SC, revision 71770

clang analyzer support specific for OSX

2012-06-14 23:55 SC, revision 71769

FixedWith support through CoreText

2012-06-14 23:53 SC, revision 71768

using CoreText under iOS

2012-06-14 23:51 SC, revision 71767

guarding agains NULL

2012-06-14 23:47 SC, revision 71766

guard XTI

2012-06-14 23:46 SC, revision 71765

CoreText font enumeration support for iOS

2012-06-14 23:43 SC, revision 71764

CoreText support for iOS

2012-06-14 23:40 SC, revision 71763

fixing analyzer warning

2012-06-14 23:37 SC, revision 71762

removing superfluous 10.5 checks

2012-06-14 21:11 SC, revision 71761

as we always have CoreText available under 10.5+, we can properly determine fixed widths fonts, also use latest CoreText API if available

2012-06-14 17:07 SC, revision 71760

removing attribute, as assert is not guaranteed not to return, but may just go on

2012-06-14 01:33 SC, revision 71756

using WX_ATTRIBUTE_NORETURN for asserts

2012-06-14 01:33 SC, revision 71755

adding WX_ATTRIBUTE_NORETURN support (for functions like assert, exit etc. that may not return)

2012-06-14 01:20 RD, revision 71751

minor doc tweak

2012-06-14 01:20 RD, revision 71750

Fix for compilo on non-PCH builds

2012-06-14 01:20 RD, revision 71749

Allow the doxygen command to be used to be specified in the environment

2012-06-14 01:20 RD, revision 71748

update comment about SDKs

2012-06-14 00:53 SC, revision 71747

using native cocoa method for determining main window, fixes #14287

2012-06-14 00:32 SC, revision 71746

exposing mainWindow for C++

2012-06-13 20:43 SC, revision 71743

indicating the memory ownership of our c-method for the clang analyzer

2012-06-13 20:42 SC, revision 71742

supporting clang memory management annotations

2012-06-13 19:55 SC, revision 71741

adding explanation for osx and fixing typo

2012-06-13 19:38 SC, revision 71740

proper init

2012-06-13 19:13 SC, revision 71739

having ONE set of raster-ops starting from 10.5

2012-06-13 18:43 SC, revision 71738

fixing mem leak

2012-06-13 18:42 SC, revision 71737

proper braces avoiding potential dangling else resulting from expansion

2012-06-13 01:32 SC, revision 71735

avoiding dangerous redraw events for windows that are on their way out…

2012-06-13 00:15 VZ, revision 71733

Slightly improve best size calculation for wxListCtrl with wxLC_NO_HEADER. Use some arbitrary but relatively large width and height instead of falling back to wxControlBase best size computation which, at least in wxGTK, simply returns (1, 1) resulting in list control of unusably small size. This is, of course, still far from ideal and we should really use the items to calculate the best width but it at least allow the list control in the generic log dialog to be shown correctly in wxGTK.

2012-06-12 23:57 VZ, revision 71731

No real changes, just add a wxCHECK to GetDlgUnitBase(). Verify that we do have a valid TLW parent: even though this normally should be always the case, it might not be when the window is being created or destroyed, see #14355.

2012-06-12 23:56 VZ, revision 71730

Fix crash in wxStaticBox::HandleEraseBkgnd() in wxMSW on closing. Don't process WM_ERASEBKGND if we're being destroyed. This is at best useful and at worst harmful as we currently crash in wxStaticBox::GetClientSize() if there is no valid TLW parent. Closes #14355.

2012-06-12 23:42 VZ, revision 71728

Only use Unix/X11-specific files under Unix in wxGTK. No real changes for now, this is another commit in preparation for wxGTK under MSW support. Closes #14394.

2012-06-12 23:42 VZ, revision 71727

Remove another unneeded TOOLKIT test from the bakefiles. Don't check the toolkit unnecessarily, this doesn't really change anything right now but will not break wxGTK build under MSW when support for it is added. Closes #14379.

2012-06-12 23:41 VZ, revision 71726

Add wx/setup.h header for wxGTK build under MSW. This is identical to wx/msw/setup0.h but will be used by wxGTK builds using MSVC when this is supported. Closes #14395.

2012-06-12 23:41 VZ, revision 71725

Compilation fix in non-PCH build of wxMSW wxStaticBox. Include wx/sizer.h now that we use sizers in static box DoGetBestSize(). Closes #14397.

2012-06-12 23:41 VZ, revision 71724

Don't use generic wxListCtrl style for wxListMainWindow. This resulted in double border around wxListCtrl contents in wxOSX and almost certainly other ports except wxGTK for which we already had an explicit preprocessor check in the generic list control code. Remove it and simply don't use any wxListCtrl-specific styles, including borders, for its main window as it doesn't make any sense. Closes #3701.

2012-06-12 23:41 VZ, revision 71723

Make wxMSW tree item unlocking reentrant. Handle creating nested TreeItemUnlocker objects correctly. This fixes the problem when a wxTreeCtrl method unlocking some item is called with another item is already unlocked, e.g. from a selection changed event handler. Closes #14400.

2012-06-12 20:44 SC, revision 71719

support for native tlw parents, see #14252

2012-06-12 02:23 SC, revision 71717

using callback for menu enabling, allows to benefit from system menu disabling eg for modal dialogs, see #14177

2012-06-12 02:21 SC, revision 71716

setting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus'

2012-06-10 19:09 RD, revision 71713

Fix compilation error

2012-06-10 13:57 VZ, revision 71712

Fix wxHTMLDataObject compilation and memory leaks. Use wxString::FromUTF8() and utf8_str() instead of directly using wxConvUTF8 as this is simpler and also works correctly in non-Unicode build (and more efficiently in UTF-8 build as no conversion is done there). Do not allocate -- and leak -- buffer in wxHTMLDataObject::GetDataHere(), we're supposed to be putting data into the caller-provided buffer instead of using our own. Closes #14391.

2012-06-08 21:26 RD, revision 71704

Keep track of the area intended to be buffered, and use that in UnMask instead of defaulting to the buffer size. Only clip to the DC size if wxBUFFER_VIRTUAL_AREA is not set. This fixes the issue where buffering the full virtual area in a wxScrolledWindow would only draw an area the physical size of the window. Fixes #11612.

2012-06-08 21:26 RD, revision 71703

Add doc for SendAutoScrollEvents

2012-06-08 20:44 VZ, revision 71702

Fix wxWindow::IsDescendant() to work with argument equal to this window. Passing the window itself as IsDescendant() argument for a top level window resulted in a NULL pointer dereference. Fix this and also simplify the function code by not using the parent window before checking it's !NULL. Closes #14387.

2012-06-08 20:44 VZ, revision 71701

Use wxString::Clone() instead of c_str() in wxThreadEvent copy ctor. Creating a new wxString from c_str() of the old one resulted in dropping all string data after the first embedded NUL. Fix this by using Clone() method that exists specifically for this purpose. It also makes the code more clear. Closes #14380.

2012-06-08 20:44 VZ, revision 71700

Use PLATFORM checks in bakefiles instead of TOOLKIT checks. No real changes as the output is currently the same for all supported PLATFORM/TOOLKIT combinations anyhow but prefer checking for PLATFORM to prepare for the support of GTK toolkit under MSW platform. Closes #14379.

2012-06-08 07:11 RD, revision 71693

Interface fixes for Phoenix

2012-06-07 07:18 PC, revision 71685

fix warnings about conversion to bool, closes #14381

2012-06-07 07:13 PC, revision 71684

fix warnings about unreachable return statements

2012-06-07 06:43 RD, revision 71683

Add export macro for wxTreeListEvent so the non-inline class info and things can be found where they're exepcted

2012-06-07 06:43 RD, revision 71682

Interface fixes for Phoenix

2012-06-07 06:43 RD, revision 71681

Add missing wxRichToolTip::SetTitleFont implementation.

2012-06-07 06:42 RD, revision 71680

Interface fixes for Phoenix

2012-06-06 19:18 VS, revision 71665

wxHtmlHelpWindow: Fix contents panel syncing with view. Simply opened page notification code. Fix it to really highlight the page currently visible, instead of the previous one. Fixes #14320.

2012-06-06 04:06 RD, revision 71664

add missing public keyword for base class

2012-06-05 23:26 RD, revision 71653

If there is a sizer then use it's calculated minimum in wxStaticBox::DoGetBestSize

2012-06-05 23:26 RD, revision 71652

Interface fixes for Phoenix

2012-06-05 23:26 RD, revision 71651

Interface fixes for Phoenix

2012-06-05 18:49 PC, revision 71648

Workaround for Ubuntu 12.04 run time warning "LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent." Avoid calling gtk_widget_destroy() on a wxMenuBar attached to a frame Fixes #14292

2012-06-05 14:21 VZ, revision 71647

Don't give incorrect example in wxTextEntry::GetInsertionPoint() docs. Using the text control position as index in GetValue() is wrong in general, show the correct way of doing this. Closes #14372.

2012-06-05 14:12 VZ, revision 71646

Fix ribbon sample compilation after r71642. Add a missing header with declaration of wxMessageBox() for PCH-less compilation. Closes #14376.

2012-06-04 19:36 PC, revision 71644

Fix layout of wxStaticText, and possibly other controls. GtkLabel perversely does not use its actual size to do layout, but will use its size request. So restore calling gtk_widget_set_size_request() for all widgets, which was removed in r71465. See #14374

2012-06-04 11:13 JS, revision 71643

Corrected collection of common attributes, for clashing font size units.

2012-06-03 21:17 VZ, revision 71642

Implement support for wxRIBBON_PANEL_EXT_BUTTON wxRibbonPanel style. Show the "extension button" in the ribbon panel if this style is specified. Also generate a specific event if this button is clicked. Closes #14283.

2012-06-03 21:17 VZ, revision 71641

Add wxRibbonControl::GetAncestorRibbonBar() helper. New method allowing to find the ribbon bar containing the given window. See #14283.

2012-06-03 21:16 VZ, revision 71640

Use wxString::t_str() in calls to Windows API functions in wxMSW. Use t_str() instead of wx_str() to make the code work correctly in UTF-8 build in which wx_str() returns a pointer to UTF-8 buffer while we need a wchar_t pointer for Windows. Closes #14371.

2012-06-03 19:41 SJL, revision 71639

Use wxCOMPtr throughout wxWebViewIE to simplify the code and reduce the chance of memory leaks. Also mark PPV_ARGS_CHECK as inline so it can be used from multiple libraries.

2012-06-02 00:34 VZ, revision 71638

Add support for MSVC 11 (a.k.a. MSVS 2012) to MSVC-specific setup.h. Use vc110 prefix for VC11. Closes #14366.

2012-06-02 00:34 VZ, revision 71637

Clear old selection when wxListBox becomes empty. When UpdateOldSelections() is called from wxListBox::DoClear(), it must clear the old selections array even for single selection list boxes, but it didn't do this under non-MSW platforms. Specifically check for the case of an empty listbox now and just forget the old selections then. This fixes the problem of keeping stale old selections and is also more efficient as we avoid the unnecessary GetSelections() call. Really closes #14359.

2012-06-02 00:34 VZ, revision 71636

Add wxMSW_CONV_LPCTSTR() and related macros and use them in wxBase. Add macros hiding the ugly casts needed to pass wxStrings to Windows API functions and use them in a couple of places in wxBase to simplify the code. Closes #14338.

2012-06-01 18:21 VZ, revision 71635

Disable wxUIActionSimulator wxGrid tests using mouse under wxGTK. Something is seriously wrong with simulated mouse events and wxGrid under wxGTK, they seem to simply disappear sometimes. This results in unit tests suite failure, so disable these tests for the next release as I just don't understand how to fix them.

2012-06-01 18:21 VZ, revision 71634

Add IsAutomaticTest() function to the unit tests. This allows to easily test if we're running on a buildbot slave and disable some difficult to debug test failures there.

2012-06-01 18:21 VZ, revision 71633

Use printf() instead of wxPrintf() in cppunit details listener. Wide char output from wxPrintf() didn't appear at all under Linux because stdout was switched into narrow stream mode by GNU libc due to initial use of cout in the test. Use printf() instead of wxPrintf() as we are only printing ASCII strings anyhow. Of course, this is not a real fix but at least we can see the tests results like this.

2012-06-01 17:25 VZ, revision 71632

Compilation fix to wxWebView under wxOSX/Carbon after r71620. wxWindow::m_peer is private, use GetPeer() to access it. See #14352.

2012-06-01 17:25 VZ, revision 71631

Fix wxWebKitCtrl::RunScript() return value. Replace comparisons of the type name of the returned value with isKindOfClass: checks which are more reliable. Closes #14358.

2012-06-01 13:01 VZ, revision 71630

Add support for CP1258 (Vietnamese) and CP1361 (Korean Johab) encodings. Recognize these encodings names and translate them to/from the corresponding charset constants in wxMSW.

2012-06-01 13:01 VZ, revision 71629

Use "GBK" as alternative name for CP936 encoding. This is the official name of this encoding, so recognize it as synonym. See #14360.

2012-06-01 13:01 VZ, revision 71628

Use float instead of double division in wxHashMap code. We don't need double precision for determining the hash table fill rate and using double constant also results in float-to-double promotion warnings from gcc 4.7. See #14362.

2012-06-01 13:01 VZ, revision 71627

Keep user-set wxFrame background color even if MSW system background changes. Don't override wxFrame background colour when the system background colour changes if it was explicitly set by the user. Closes #14364.

2012-06-01 13:01 VZ, revision 71626

Update old selections after clearing wxListBox in wxGTK. Don't keep stale selected item indices in m_oldSelections after clearing the listbox, call UpdateOldSelections() from DoClear() in wxGTK just as we do in the other ports. Closes #14359.

2012-06-01 13:01 VZ, revision 71625

Use wxCLASSINFO() instead of deprecated CLASSINFO(). No real changes, just use the version of the macro with a "wx" prefix. Closes #14356.

2012-06-01 13:01 VZ, revision 71624

Use wxDynamicCast() instead of IsKindOf() checks. wxDynamicCast() is less verbose (due to the absence of "CLASSINFO") and more compatible with the standard dynamic_cast<>, so prefer to use it when possible. See #14356.

2012-06-01 13:01 VZ, revision 71623

Remove unneeded dynamic cast in wxPropertyGrid. It's completely useless to check that an object is of its own statically declared type as this is always true, simply don't do it.

2012-06-01 13:01 VZ, revision 71622

Remove unnecessary dynamic cast in wxComboPopupWindow. Objects of this type are either always of wxPopupTransientWindow type, in which case just a static_cast<> is enough and we don't need a dynamic one, or is never of its type in which case this code shouldn't be compiled and if it is, then static_cast<> will correctly fail preventing it from compiling.

2012-06-01 13:01 VZ, revision 71621

Don't reset previous window event handler in PopEventHandler(). This is harmless but also useless as the previous event handler of a wxWindow is always NULL anyhow, so simply don't do this. This is consistent with PushEventHandler() which doesn't call SetPreviousHandler() for the window itself neither. Closes #14353.

2012-06-01 13:01 VZ, revision 71620

Fix wxMac preprocessor check in wxWebView code. Fix typo in "__WXMAC__" in wxWebView under wxOSX/Carbon and also in wxWebKitCtrl from where this code was copied. Closes #14352.

2012-06-01 13:00 VZ, revision 71619

No changes, just refactor wxGrid::Render() to simplify it. Introduce a couple of new helpers to make the main Render() function smaller and more clear. Closes #14347.

2012-05-31 18:29 PC, revision 71616

silence warning about converting NULL to wxUIntPtr

2012-05-31 18:28 PC, revision 71615

silence warning about __WXMSW__ not defined

2012-05-30 21:21 RD, revision 71610

A patch adding wxHTMLDataObject which can be used for handling the standard platform formats for transfering HTML formatted text.

2012-05-30 06:20 SC, revision 71604

fixing build with wxUSE_PROTOCOL = 1 and wxUSE_SOCKETS = 0

2012-05-30 05:13 RD, revision 71595

Adjust the client area origin and the client size of the MSW wxStaticBox according to the guidelines on http://msdn.microsoft.com/en-us/library/aa511279.aspx. This is so widgets that are children of the static box will not overlap the label or box borders.

2012-05-30 05:13 RD, revision 71594

Interface fixes for Phoenix

2012-05-29 17:26 SC, revision 71588

adapting char event handling to msw / gtk, see #13415, see #14197

2012-05-29 17:24 SC, revision 71587

clang compat.

2012-05-29 17:18 SC, revision 71586

clang compat.

2012-05-28 21:38 VZ, revision 71579

Improve wxDatePickerCtrlGeneric best size calculation. Make the control just wide enough to fully show the contents of its text part. This is still not ideal as we don't take into account wxComboCtrl internal complications but better than before. Closes #14342.

2012-05-28 14:52 VZ, revision 71578

Fix bug in wxAutomationObject introduced by r71574. Check that we have any arguments, expression oleArgs[0] is invalid otherwise. Closes #14343.

2012-05-27 15:00 VZ, revision 71577

Add wxGrid::Render() for drawing the grid to any wxDC. In particular, this allows to print the grid contents easily. Closes #14294.

2012-05-27 15:00 VZ, revision 71576

Add wxGrid::DrawRangeGridLines(). This method draws only the grid lines for the cells in the specified range and not for all of them. It is not used yet but will be by the upcoming wxGrid::Render(), see #14294.

2012-05-27 15:00 VZ, revision 71575

No changes, just refactor wxGrid::DrawAllGridLines(). Extract the actual drawing of the lines into a new DoDrawGridLines() method. This will be used by the upcoming commits for drawing grid lines for a part of the grid only, see #14294.

2012-05-27 15:00 VZ, revision 71574

Fix memory leaks in wxAutomationObject::Invoke(). Use wxVector<>, wxBasicString and wxOleVariantArg instead of raw arrays, BSTR and VARIANT to ensure that different objects allocated by this function are always freed when it exits. Closes #14293.

2012-05-26 16:17 JS, revision 71572

Added full scaling to wxRTC

2012-05-26 14:29 VZ, revision 71571

Fix bug with unloading wxPluginLibrary objects in "wrong" order. wxPluginLibrary objects had to be unloaded in exactly the reverse order to which they were loaded in. This was not documented and was a serious limitation for any realistic use of plugins anyhow, so fix it and allow unloading them in any order now. Instead of keeping a pointer to the last wxClassInfo not created by this plugin, now keep a pointer to the first wxClassInfo that was created by it. This makes the code slightly more complex but this pointer, unlike the old one, remains valid even if another plugin was unloaded. Closes #14261.

2012-05-26 14:29 VZ, revision 71570

Refactor SAFEARRAY creation code in wxConvertStringFromOle(). No changes, just make the code simpler and more obviously correct by using a helper class to create and fill the SAFEARRAY that we create. Closes #14296.

2012-05-26 14:29 VZ, revision 71569

Fix DrawChoice() behaviour in wxRendererXP. The implementation of wxRendererXP::DrawChoice() inadvertently used wxRendererMSW::DrawComboBoxDropButton() and so drew the button in the classic and not themed style. Fix this by defining DrawChoice() in the base wxRendererMSWBase class and reusing it in wxRendererXP via inheritance and not composition. Closes #14337.

2012-05-26 14:29 VZ, revision 71568

Remove private headers from files.bkl. Private headers are not supposed to be installed because they are only use when building wxWidgets itself, so don't list them in files.bkl.

2012-05-26 14:29 VZ, revision 71567

Move include/wx/osx/private/objcid.h to include/wx/osx/core. This header is used by public headers and hence is not really private, move it to a better place and add it to the list of OSX headers in the bakefile. Closes #14339.

2012-05-25 19:02 VZ, revision 71563

Add wxDataViewListCtrl::GetItemCount(). This method is convenient and (almost, except for the return value) compatible with wxListCtrl. See #11088.

2012-05-25 19:02 VZ, revision 71562

Add wxDataViewListCtrl::{Set,Get}ItemData() methods. These methods are convenient when migrating the code that previously used wxListCtrl to wxDataViewCtrl. Closes #11088.

2012-05-25 19:02 VZ, revision 71561

Use wxUIntPtr instead of wxClientData in wxDataViewListCtrl. Do not delete the client data in wxDataViewListCtrl, this class mainly exists for compatibility with wxListCtrl and as the latter doesn't delete its client data, neither should the former. See #11088.

2012-05-25 11:48 VZ, revision 71560

Remove redundant wxAuiNotebook methods already present in wxBookCtrlBase. wxAuiNotebook already inherits perfectly workable AdvanceSelection() and GetCurrentPage() methods from wxBookCtrlBase, no need to reimplement them in it. See #14309.

2012-05-25 11:48 VZ, revision 71559

Don't send a huge number of unneeded wxChildFocusEvents. wxControlContainer::SetLastFocus() propagated wxChildFocusEvent explicitly to its parent but this is not needed because wxChildFocusEvents propagate by default, being derived from wxCommandEvent. And doing it again resulted in the total number of events increasing exponentially with the depth of the window hierarchy and real performance problems due to processing all of them. Closes #14310.

2012-05-25 11:48 VZ, revision 71558

Suppress warnings about gnome_print_dialog_get_range() return type. This function seems to be declared incorrectly and while it actually does return the values we compare its return value with, it's prototyped with a wrong enum as return type, so explicitly cast it to int to avoid warnings from recent g++ versions. See http://thread.gmane.org/gmane.comp.lib.wxwidgets.devel/115782/focus=115955

2012-05-25 11:48 VZ, revision 71557

Fully implement wxStyledTextCtrl::PositionToXY(). Fill in the column parameter too now. Closes #14332.

2012-05-25 11:48 VZ, revision 71556

Fix calculation of wxStyledTextCtrl selection size in GetSelectedText(). Do the same changes as were done in r71540 to GetSelectedTextRaw() in GetSelectedText() itself by modifying the code in gen_iface.py that generates it. Closes #14331.

2012-05-25 11:48 VZ, revision 71555

Several fixes for wxAffineMatrix2D transformations. Correct errors in TransformPoint() and TransformDistance(). Change Rotate() to interpret positive angles as rotating clockwise, for consistency with wxGraphicsContext::Rotate(). Improve the unit test to verify that all the transformations work correctly. Closes #14334.

2012-05-25 01:26 RD, revision 71549

Changes to allow these build scripts to use python3

2012-05-25 01:26 RD, revision 71548

Interface fixes for Phoenix

2012-05-25 01:21 VZ, revision 71547

Document that SetFocus() can't be called from EVT_KILL_FOCUS handler. Also explain how to use wxIdleEvent for "delated action". See #14335.

2012-05-23 23:16 VZ, revision 71546

Fix wxBase compilation with UTF-8-based wxString under MSW. Use wxString::t_str() instead of wx_str() in Windows API function calls. Closes #14325.

2012-05-23 23:16 VZ, revision 71545

Don't use wxCHECK_W32API_VERSION() in #if when it can be undefined. wxCHECK_W32API_VERSION() is only defined when using MinGW, don't use it an #if test which is always parsed but only in a separate test inside #ifdef __GNUG__ test which is parsed only when we do use MinGW. This fixes harmless but annoying warning from MSVC 10.

2012-05-23 23:16 VZ, revision 71544

No real changes, just slightly simplify HasAppKit_10_6() function. Remove redundant check for version == -1. See #13831.

2012-05-23 23:16 VZ, revision 71543

Compilation fix for wxUSE_STL && !wxUSE_STL_BASED_WXSTRING build. Don't rely on implicit wxString to "const char*" conversion in Replace(). Closes #14327.

2012-05-23 23:16 VZ, revision 71542

Document that wxClipboard::Flush() is not implemented in wxGTK. See #10515.

2012-05-23 23:16 VZ, revision 71541

Document "raw control" use with accelerators. Mention it in the places where the other accelerator prefixes are documented. See #13496.

2012-05-23 23:16 VZ, revision 71540

Fix calculation of the wxStyledTextCtrl selection size. Use SCI_GETSELTEXT to compute the size of the buffer instead of doing it ourselves, especially as we do it incorrectly in case of rectangular selection. Closes #14331.

2012-05-23 23:16 VZ, revision 71539

No real changes, just backwards propagate the changes to stc.cpp. Apply the changes done directly to stc.cpp in r71428 and r71429 to the script generating this code.

2012-05-23 22:36 VZ, revision 71538

Fix removing event handler filters in wxEvtHandler. Removal from the simply linked list of event filters wasn't done correctly as the pointer to the previous node was never updated.

2012-05-22 09:37 JJ, revision 71535

Fix compilation when wxUSE_DRAG_AND_DROP=0

2012-05-22 02:17 RD, revision 71525

Interface fixes for Phoenix

2012-05-21 10:39 JJ, revision 71521

Allow for compilation with wxUSE_TOOLTIPS=0

2012-05-21 10:31 JJ, revision 71520

Add aui-capability top wxMOTIF for OpenVMS

2012-05-20 23:58 RD, revision 71519

Interface fixes for Phoenix

2012-05-20 22:29 VZ, revision 71518

Fix 62 harmless but annoying Clang warnings in wxOSX build. Clang warns about using letters and digits in a switch on wxKeyCode enum which doesn't include them as elements. This is generally useful but really annoying in this case, especially due to the sheer number of warnings, so disable it using Clang-specific pragma.

2012-05-20 22:29 VZ, revision 71517

Use wxObjCID instead of "struct objc_object*" to fix clang build. Clang doesn't accept "struct objc_object*" as synonym for "id" in Objective-C code, so use the real "id" for it while still using the struct pointer for C++ code where "id" is not defined. Closes #13565.

2012-05-20 22:29 VZ, revision 71516

Add support for task bar icon tooltips to wxOSX version. Set the tooltip used for the icon in wxOSX/Cocoa version of wxTaskBarIcon. Closes #14298.

2012-05-20 22:29 VZ, revision 71515

Improve check for OS X version in Cocoa wxFileDialog implementation. A library using wxWidgets linked with 10.6 SDK might be loaded into an application loading 10.5 version of AppKit in which case 10.6-specific functions shouldn't be used. Check for the AppKit version effectively in use instead of just checking for the system version. Closes #13831.

2012-05-20 22:29 VZ, revision 71514

Reset wxDialog::m_modality sooner in wxOSX. Change the internal flag to wxDIALOG_MODALITY_NONE before sending wxEVT_WINDOW_MODAL_DIALOG_CLOSED event. This ensures that if the dialog is shown again from this event handler it works correctly. Closes #13951.

2012-05-20 22:29 VZ, revision 71513

Implement wxStackWalker for wxOSX. Use atos(1) to map address to their symbolic names. Closes #10067.

2012-05-20 22:29 VZ, revision 71512

Fix menu sample compilation under wxOSX. Include copy.xpm under all platforms as all of them support (even though without necessarily implementing it) wxMenuItem::SetBitmap() now.

2012-05-20 22:29 VZ, revision 71511

Fix crash on destruction of wxDataViewCtrl in wxOSX. The control remained associated to the model so a dangling pointer could be used if the model was destroyed after the control. Fix this by removing the control from the model list of notifiers when it is destroyed. Closes #14124.

2012-05-20 21:47 VZ, revision 71510

Really fix compilation in !wxUSE_LOG_DEBUG && !HAVE_VARIADIC_MACROS case. Fix the fix of r71502, we need the variable declaration when not using HAVE_VARIADIC_MACROS.

2012-05-20 15:08 VZ, revision 71509

Remove non-existent section from Unicode overview TOC. This section is now just a subsection, don't list it in the table of contents.

2012-05-20 15:06 JS, revision 71508

Don't use deprecated font family style

2012-05-20 15:04 VZ, revision 71507

Compilation fix for wxRichTextCtrl. Don't use wxDEFAULT, there is no match for wxFont ctor taking wxSize and it, use wxFONTFAMILY_DEFAULT instead. Also remove the unnecessary .c_str() from the same wxFont ctor call, there is really no reason at all to have it there.

2012-05-20 14:30 VZ, revision 71506

Fix harmless warning from g++ 4.8 in C11 mode. g++ 4.8 recognizes "cpu" in WX_CC_MANIFEST expansion as a user-defined literal suffix, add spaces around it to prevent this from happening.

2012-05-20 14:25 JS, revision 71505

Added pixel size capability to wxTextAttr and wxRichTextCtrl. Fixed composite object positioning in centred and right-aligned paragraphs. Added field example to sample, and enabled pixel font size selection. Added custom text and dimension scaling.

2012-05-19 18:49 VZ, revision 71502

Fix compilation in !wxUSE_LOG_DEBUG && !HAVE_VARIADIC_MACROS case. Define the "unused" variable unless wxLogDebug() calls are variadic macros (not evaluating their arguments at all) and not functions. Fixes compilation broken since r71466.

2012-05-19 18:49 VZ, revision 71501

Fix compilation in wxUSE_STL=1 build after r71467. Restore explicit conversion of wxString to char*, there is no implicit conversion in wxUSE_STL build. Use utf8_str() instead of c_str() removed by r71467 however as this is what we need for wxGTK.

2012-05-19 16:24 SC, revision 71500

removing unnecessary - and incorrect - override, fixes #14319

2012-05-19 15:17 SC, revision 71499

adjusting min requirements

2012-05-19 08:33 SC, revision 71498

fixes #14318

2012-05-19 08:21 RD, revision 71493

Add interface and simple docs doe wxOverlay and wxDCOverlay.

2012-05-19 08:21 RD, revision 71492

Add some missing setters for wxRect.

2012-05-19 08:21 RD, revision 71491

Interface fixes for Phoenix

2012-05-18 21:54 RD, revision 71483

10.5 is the minimum SDK for both OSX ports now

2012-05-18 21:54 RD, revision 71482

Interface fixes for Phoenix

2012-05-18 13:09 SC, revision 71481

fixing c++11 build

2012-05-18 12:35 SC, revision 71480

fixing c++11 build

2012-05-18 12:34 SC, revision 71479

fixing c++11 build

2012-05-18 11:56 SC, revision 71478

fixing c++11 build

2012-05-18 11:56 SC, revision 71477

fixing c++11 build

2012-05-17 18:10 VZ, revision 71470

Improve wxDir::Traverse() documentation. It didn't describe wxDIR_FILES correctly and didn't mention OnOpenError().

2012-05-17 18:10 VZ, revision 71469

Fix wrong format specifiers in the samples. Use "%ld" instead of "%d" to format long values, using "%d" results in an assert failure under LP64 systems as int and long have different sizes there. Closes #14311.

2012-05-17 17:46 PC, revision 71468

mark virtual overrides as virtual

2012-05-17 17:46 PC, revision 71467

remove some unnecessary c_str() calls

2012-05-17 17:45 PC, revision 71466

eliminate unused variable warning with wxUSE_LOG_DEBUG==0

2012-05-17 17:29 PC, revision 71465

Remove use of "size-request" signal for wxWindow sizing. This signal has been removed from GTK3. Instead have wxPizza keep track of child size, and use gtk_widget_set_size_request() for wxWindows in native containers.

2012-05-17 04:47 RD, revision 71459

Interface fixes for Phoenix

2012-05-16 17:10 VZ, revision 71443

Make variable containing port number an ushort in the sockets sample. A port number is an unsigned short, not long, so don't make it long just because wxCmdLineParser doesn't provide a convenient way to get the value of an unsigned short option (it would be nice if it did...). This fixes the problem with using "%d" format specifier with a long variable as this resulted in an assert under LP64 systems. See #14311.

2012-05-16 17:10 VZ, revision 71442

Fix wxWakeUpIdle() in Unix console application broken by r71089. Initialize m_pipeIsEmpty to true as we don't have anything in the pipe initially and if this variable was false, nothing was ever written to the wake up pipe and it was never set to true as nothing was read from it neither. Closes #14166.

2012-05-16 15:24 VZ, revision 71441

Don't use printf() with non-literal string as format. Replace calls to printf() with puts() in the typetest sample. See #14311.

2012-05-16 12:59 JS, revision 71440

The object size page now has full position attribute editing.

2012-05-15 12:04 VZ, revision 71439

Fix pasting large amounts of text in wxGTK. We need to process GDK_PROPERTY_NOTIFY events when yielding for wxEVT_CATEGORY_CLIPBOARD, otherwise we never receive large selections. As GDK_PROPERTY_NOTIFY can be also used for non-clipboard stuff, exceptionally assign 2 categories to it and process it in either case. Closes #14284.

2012-05-15 12:04 VZ, revision 71438

Correct the documentation of wxSpinCtrl initial and value arguments. It does make sense to specify "initial" if "value" is empty. See #13589.

2012-05-15 12:04 VZ, revision 71437

Add support for wxArrayString to wxVariant-to-OLE conversion. This allows to call COM methods taking arrays of strings easily. Also remove support for the old and non-existent any more "stringlist" variant type. And add more error checking. Closes #14296.

2012-05-15 12:04 VZ, revision 71436

Enable variadic macros for VC9 and later. VC9 and 10 support variadic macros so define HAVE_VARIADIC_MACROS for them too. This currently only affects wxLog{Debug,Trace} definitions in wx/log.h.

2012-05-15 12:03 VZ, revision 71435

Fix keyboard navigation in wx{List,Choice,Tree,Tool}book controls. Inherit from wxNavigationEnabled<wxBookCtrlBase> instead of just wxBookCtrlBase to ensure that the keyboard navigation works correctly for these controls. The toolbar in wxToolbook still doesn't accept focus from keyboard but at least the pages can be TAB-bed too and from. And the rest of the controls are now fully accessible using only the keyboard. Closes #14303.

2012-05-15 12:03 VZ, revision 71434

Use iterators instead of indices in wxStripMenuCodes(). Make the function more efficient when using UTF-8 wxStrings by using iterators instead of indices in the loop searching for "&". Closes #14307.

2012-05-14 19:23 JS, revision 71433

Clear styles popup if there is no style sheet

2012-05-14 00:13 VZ, revision 71432

Simplify wxEventLoopManual pending events processing logic. Don't try to process any remaining pending events in ProcessEvents() itself as this was inconsistent: we only processed low-level toolkit pending events in the main event loop itself if the loop was exited from a normal event handler but only processed the wxApp-level pending events if it was exited from a pending event handler. It also required more code than the new version that simply processes all the remaining pending events, of both kinds, after the main event loop termination. This corrects changes of r71304 and replaces those of r71329. Closes #14250.

2012-05-14 00:05 VZ, revision 71431

Fix wxDateTime unit test after the changes of r71430. Don't test the return value of ParseFormat(wxCStrData) any more as this function is void now.

2012-05-13 23:37 VZ, revision 71430

Don't return a dangling pointer from wxDateTime::ParseXXX(wxCStrData). We don't have any sufficiently long-lived pointer to return from this overload, so don't return anything from it -- it's better to break the compilation of the existing code rather than make it crash during run-time. Closes #14214.

2012-05-13 23:37 VZ, revision 71429

No changes, just simplify the code using wx2stc() a little. Assign wx2stc() return value to a suitably const variable instead of using ugly casts to get rid of constness. Also use wxCharBuffer/char* explicitly inside explicit wxUSE_UNICODE checks, using wxWX2MBbuf here doesn't gain us anything and just confuses the reader of this code.

2012-05-13 23:37 VZ, revision 71428

Fix wxStyledTextCtrl compilation in non-Unicode build. The value returned by wx2stc() in non-Unicode build is a simple "char*" and we can't call length() method on it, add a helper wx2stclen() function to get the length from the original wxString itself in this case. Closes #14013.

2012-05-13 23:37 VZ, revision 71427

Don't assert if no icon is specified for a wxDataViewCtrl item. An item in a column using wxDataViewIconTextRenderer might not have any valid icon associated with it, don't assert in case it doesn't in the native GTK version. Notice that the generic wxDataViewCtrl implementation already supports this but not perfectly: no space is reserved for the icon in the images without one, so giving the image to only some of them looks ugly. The GTK version aligns both the items with and without icon properly and simply leaves the image part blank and it would be better to modify the generic version to do the same thing in the future.

2012-05-13 23:37 VZ, revision 71426

Minor change to wxString pretty-printer for gdb. Calling string() explicitly isn't necessary, at least not with gdb 7.2, and is actually harmful when using Python 2.5 (which doesn't support UTF-32) with wide strings.

2012-05-13 23:37 VZ, revision 71425

Don't handle branches specially when sorting items in wxDataViewCtrl. The generic version of wxDataViewCtrl tried to put all branches before the leaves when sorting. This had a couple of problems: first, it didn't do it correctly and actually placed the branches after the leaves which didn't make any sense. Second, this was only done in the generic version and not the native GTK one making the behaviour inconsistent between platforms. Finally, this behaviour just doesn't make sense in general (i.e. when items don't necessarily represent anything in the file system and maybe even sometimes when they do) and there doesn't seem any good reason to do it by default. So stop doing it, partially reverting the changes of r47562. Closes #14100.

2012-05-13 15:17 VZ, revision 71424

Disable the use of UTF-8 by default in Unix builds. Add up-to-date description of UTF-8 support to the Unicode overview.

2012-05-13 15:17 VZ, revision 71423

Remove wxDECLARE_APP() from wxIMPLEMENT_APP_NO_MAIN(). There is no need for a separate declaration inside wxIMPLEMENT_APP() as wxGetApp() is defined by it and redeclaring it immediately after definition results in a warning with some compilers/environments (Eclipse CDT). The move of wxGetApp() to the beginning of the macro is only to ensure that a semicolon is still required after wxIMPLEMENT_APP_NO_MAIN() and the other macros terminating with it, such as wxIMPLEMENT_APP() itself.

2012-05-12 00:15 JS, revision 71419

Fixed layout and hit-testing problem particularly with centred lines

2012-05-12 00:10 VZ, revision 71418

Document that wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED is OSX-specific. This even is not generated by neither generic nor GTK version right now. See #14297.

2012-05-12 00:10 VZ, revision 71417

Fix extra event sent by wxTextEntry::ChangeValue() since r71308. The changes of r71308 sent the event unconditionally in case the text didn't really change but no events should be sent if the flags don't include SetValue_SendEvent, add a check for it. Re-closes #13936.

2012-05-12 00:06 RD, revision 71416

Enable access to the native bitmap object wrapped by wxGraphicsBitmap

2012-05-12 00:06 RD, revision 71415

Ensure a 32-bit cairo surface is created if it is needed

2012-05-11 08:28 SC, revision 71414

fixes SetFirstItem, Thanks to David Wright

2012-05-11 00:38 RD, revision 71402

More interface fixes for Phoenix

2012-05-11 00:34 RD, revision 71401

Add wxFormatInvalid, and tweak the docs for wxDataObject::GetDataHere and SetData

2012-05-11 00:34 RD, revision 71400

Add doc for wxCliboard::Get

2012-05-10 13:59 JS, revision 71399

Added wxRichTextXMLHandler::RegisterNodeName so custom content classes can be added without breaking XML loading

2012-05-10 13:53 VZ, revision 71398

Set LF EOL style for setup.h.in file. This file is only used under Unix so should have Unix EOLs, e.g. to allow building Unix ports from the sources checked out under Windows. Closes #14266.

2012-05-09 19:16 VZ, revision 71397

Add missing wx/scopeguard.h include to fix the build. Closes #14285.

2012-05-09 16:24 VZ, revision 71396

Fix wxGenericListCtrl best size calculation in report view. Just let the base class do it instead of using hard coded default value in wxGenericListCtrl::DoGetBestClientSize().

2012-05-09 16:24 VZ, revision 71395

Unconditionally define IID_IShellItem in wxMSW sources. This GUID may not be defined in uuid.lib even when __IShellItem_INTERFACE_DEFINED__ is defined in the headers, so just define it always to avoid any problems. Closes #14244.

2012-05-09 16:24 VZ, revision 71394

Implement constrained best size calculation in wxMSW wxListCtrl. This fixes wxListbook controller size to avoid spurious scrollbars. Closes #13898.

2012-05-09 16:24 VZ, revision 71393

Improve wxBookCtrlBase controller size calculations. Use GetBest{Height,Width}() in wxBookCtrlBase to compute the controller control size height/width from its known (from wxBookCtrlBase size itself) width/height. This will allow to correctly compute the size of wxListCtrl used by wxListbook once it provides the necessary support for width-from-height and height-from-width calculations. See #13898.

2012-05-09 16:24 VZ, revision 71392

Add wxWindow::GetBest{Height,Width}(). These functions will be used when it is necessary to determine the best size of the control if one of its size components is fixed. Currently none of the classes implements DoGetBestClient{Height,Width}() yet but wxListCtrl will do it soon, see #13898.

2012-05-09 16:24 VZ, revision 71391

Improve wxWindow best size documentation, mention DoGetBestClientSize(). Custom classes should typically override DoGetBestClientSize() instead of DoGetBestSize() to avoid having to deal with the borders. Also don't reference the deprecated SetInitialBestSize() unnecessarily and document its non-deprecated replacement.

2012-05-09 16:24 VZ, revision 71390

Mention wxFoobookEvent change from classes to #defines in the change log. These classes can't be forward-declared any more as they're not really classes any longer but just compatibility #defines and can't be made classes again as this would break the existing code using wxBookCtrlEvent in 2.9. See #14242.

2012-05-09 16:24 VZ, revision 71389

Allow entering more digits in wxSpinCtrl in wxMSW than fits into it. Scroll the control automatically if there is not enough space. This is consistent with (single line) wxTextCtrl and wxSpinCtrl under the other platforms. Closes #14211.

2012-05-09 16:24 VZ, revision 71388

Attach MDI "Window" menu to the parent frame menu bar in wxMSW. This makes sense and fixes the regression with "Window" menu commands not being processed any more after the changes of r71114. Closes #14207.

2012-05-09 16:24 VZ, revision 71387

Correct the initial value setting in wxMSW wxSpinCtrl. Always use value argument for the text control contents and also override the initial numeric value with it if it's numeric. This seems to be the only consistent thing to do, so document this behaviour and add a unit test checking for it. Closes #13589.

2012-05-09 16:24 VZ, revision 71386

Remove assert checking bitmap size in wxMenuItem drawing code in wxMSW. This assert was fatal, as usual when asserting from a WM_PAINT handler, as the function was reentered resulting in nested asserts and program abort, so remove it to at least let the program continue to run even if there is not enough space for the bitmap in the menu. There is, of course, still something wrong with the menu geometry calculations if this happens but I can't even reproduce this any more so not sure what exactly. See #11657.

2012-05-09 16:24 VZ, revision 71385

Fix creation of wxBitmap from wxIcon in wxMSW: premultiply the pixels. wxBitmap in wxMSW is supposed to store its data in alpha-premultiplied format but didn't do it when it was created from an icon (or a cursor), resulting in wrong display of wxIcons with alpha channel when they were used for e.g. menu items. Fix this by ensuring that the data is always premultiplied. This is not the best solution as in some cases (e.g. if this wxBitmap is added to wxImageList later) we could need to undo this premultiplication later which is quite inefficient but at least it's simple and straightforward. Closes #11414.

2012-05-09 16:24 VZ, revision 71384

Fix wxString unit test when not using UTF-8. Restrict the tests added in r70987 to run when using UTF-8 strings only, they test for something that is simply not true (and for a bug that can't happen) with non-multibyte encodings.

2012-05-09 16:24 VZ, revision 71383

Fix compilation of wxVariant code with VC6. This was broken by the changes in r71196 as the original VC6 SDK doesn't define VARIANT::llVal. See #14210.

2012-05-09 16:24 VZ, revision 71382

Use better face names first in wxGTK wxNativeFontInfo::SetFamily(). Try better matches and not the most widespread ones first when building a list of face names to try for the given family. This gives better results when these better fonts are indeed available and doesn't change anything if they are not. See #14126.

2012-05-09 16:24 VZ, revision 71381

Check that item ID is initialized when inserting it in wxListCtrl. Using uninitialized ID happened to work by accident with 2.8 but it doesn't work any more, try to detect this as early as possible and give a clear explanation of why it doesn't to help fixing the broken code that used to accidentally work.

2012-05-09 16:23 VZ, revision 71380

Fix wxStaticBitmap best size calculation in wxMSW. Take the control borders into account by overriding DoGetBestClientSize() instead of DoGetBestSize(). Also invalidate the default best size computed before we have any valid image when setting the initial image in Create(). Closes #4099.

2012-05-09 13:06 JS, revision 71379

Added field implementation

2012-05-08 19:31 JS, revision 71378

Moved default margins to buffer class Init; reduced chance of accidental selection when clicking

2012-05-07 17:47 JS, revision 71377

Corrected top-level object layout in paragraphs

2012-05-07 15:13 JS, revision 71376

Fixed inconsistent calculation of line height in paragraph layout

2012-05-07 15:12 VZ, revision 71375

No real changes, just fix some typos in comments. Closes #14276.

2012-05-07 15:12 JS, revision 71374

Added non-breaking space to whitespace check

2012-05-07 15:12 VZ, revision 71373

Use XkbKeycodeToKeysym() instead of deprecated XKeycodeToKeysym(). XKeycodeToKeysym() is deprecated in new X11 headers because it doesn't work correctly with all symbols (https://bugs.freedesktop.org/show_bug.cgi?id=5349). Use XkbKeycodeToKeysym() instead, this should help with some keys and also avoids deprecation warnings during compilation.

2012-05-07 15:12 VZ, revision 71372

Create a wrapper file for X11/XKBlib.h header. We need some hacks for the older systems before including this header, extract them from src/x11/utilsx.cpp into a new private header to be able to reuse it from wxGTK in the next commit.

2012-05-07 14:23 VS, revision 71371

Make wxDocTemplate::CreateDocument() exceptions-safe. Don't create the document object if InitDocument() throws.

2012-05-07 13:15 VS, revision 71370

Fix performance of wxHtmlParser::SkipCommentTag() in UTF-8 build. Avoid computing the difference between two potentially distant iterators, which is O(1) in wchar_t build, but O(n) in UTF-8 one. See #13445.

2012-05-06 18:56 VS, revision 71368

Fix r71367: don't set bgCol twice needlessly.

2012-05-06 15:10 VS, revision 71367

Fix wxOwnerDrawnComboBox background on with classic theme. In wxMSW, if the classic theme was used, read-only wxOwnerDrawnComboBox had gray background, but native look should be the same for both editable and read-only combo boxes: white text entry-like rectangle. Apparently, a similar problem existed with non-classic themes too before, as there was a workaround in place. Fixed by moving the workaround into code used by both themed and classic rendering.

2012-05-05 16:09 VZ, revision 71366

No changes, just spelling corrections in the comments. Closes #14275.

2012-05-05 13:22 VZ, revision 71365

Update the field widths on demand in wxStatusBarGeneric. This ensures that the value returned from GetFieldRect() is always up to date, even when this method is called from the user-defined wxEVT_SIZE handler, i.e. before our own OnSize() could run. Also remove the now unneeded hack with calling the base class OnSize() from the statbar sample. Closes #14268.

2012-05-05 07:32 SC, revision 71364

fixes crashes with embedded controls in toolbars after toolbar destruction, code was moved in r62988, but apparently Destroy doesn't have to be called, so do a last check, fixes #14258

2012-05-05 00:20 VZ, revision 71363

Don't return NULL widget from wxFileCtrl page of widgets sample. This makes all the common operations such as setting tooltip, colours &c on this page simply crash.

2012-05-05 00:20 VZ, revision 71362

Derive wxGenericFileCtrl from wxControl. wxFileCtrl -- which can be #define'd as wxGenericFileCtrl -- is documented to inherit from wxControl and does derive from it in the native GTK version, so do it for the generic version too.

2012-05-04 22:35 VZ, revision 71361

Improve documentation of wxDataViewCtrl mouse event handling. Explain that catching mouse events directly doesn't work. Also make it clear that double clicking an item can be caught by processing wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED. See #14111.

2012-05-04 22:35 VZ, revision 71360

Fix precompiled headers use with MSVC in wxGTK sources. Don't use PCH for C sources, do include wx/wxprec.h from all wxGTK C++ sources. Closes #14224.

2012-05-04 22:35 VZ, revision 71359

Declare variables before doing anything else in C code. Don't put statements before variable declaration in C source file. This fixes compilation with non C99-compliant C compilers such as MSVC. See #14224.

2012-05-04 22:35 VZ, revision 71358

Allow using non-MSW toolkit in MSVC-specific auto-linking header. This makes it possible to auto-link wxGTK library when using MSVC too. Closes #14272.

2012-05-04 22:35 VZ, revision 71357

Define wxCONCATn() macro up to n=9 from n=5 previously. We'll need it for n=6 for the next commit, so increase the max value of n a bit more. See #14272.

2012-05-04 22:35 VZ, revision 71356

Use GTK-based wxWebView when using GTK+, not under Unix. Test for the GTK+ toolkit, not Unix platform to determine whether GTK+ wxWebView version should be used. Closes #14273.

2012-05-04 22:35 VZ, revision 71355

Add wxDir::GetNameWithSep() and use it to avoid consecutive slashes. It is wrong to use dir.GetName()+"/" to obtain a slash-terminated directory name as this results in (usually harmless but at best ugly) double slashes at at the beginning of the string for the root directory. Add GetNameWithSep() to obtain the correct result in all cases.

2012-05-04 22:35 VZ, revision 71354

Document wxTP_DEFAULT as a standalone constant. Make sure the declarations in the documentation header can be really parsed. Closes #14270.

2012-05-04 20:31 VZ, revision 71353

Don't remove the last slash from "/" directory name under Unix. This was totally wrong as it returned empty string as (invalid) directory name.

2012-05-04 01:30 RD, revision 71349

Add wxDropSource::SetIcon for wxGTK to mimic SetCursor on the other ports.

2012-05-04 01:30 RD, revision 71348

* Change "def" to defResult as def is a reserved word in Python * Correct some methods that were marked pure virtual but which aren't. * etc.

2012-05-04 01:30 RD, revision 71347

fix incorrect default values

2012-05-03 12:17 VZ, revision 71346

Document wxDataViewChoiceByIndexRenderer. At least briefly document this class too and not only its parent wxDataViewChoiceRenderer one. Closes #14265.

2012-05-03 12:17 VZ, revision 71345

No changes, just remove duplicate flags checks in wxUniv wxTLW. For some reason (rename of the old wxTHICK_FRAME to wxRESIZE_BORDER?) we tested for wxRESIZE_BORDER twice in a couple of places. Don't do it for clarity. Closes #14264.

2012-05-02 21:38 SC, revision 71344

use explicit WakeUp variant, too many errors using heuristics, fixes #14176

2012-05-02 21:30 SC, revision 71343

make WakeUp variant explicit, too many errors using heuristics, like #14176

2012-05-02 20:44 SC, revision 71342

fixes #14178

2012-05-02 16:44 DS, revision 71341

Fixed parts of toolbar background not being drawn with older comctl32.dll. When using comctl32.dll versions older than 6.0 toolbar icons would not have their background drawn. Fix this in a rough way by always completely erasing the background like was done before. Regression since r62971. Closes #13512.

2012-05-02 12:37 VZ, revision 71340

German translations update from Thomas Krebs. Closes #14262.

2012-04-30 16:51 VS, revision 71336

Fix destruction of wxDataViewCtrl's editor control. Don't pop event handler from the control more than once. See r70002 and r70005 (which this reverts) for reference. Fixes #14215.

2012-04-30 11:33 VS, revision 71335

wxDataViewCtrl: always update the header when col best width changes. Have an explicit per-column dirty flag and use that to determine whether we need to call wxHeaderCtrl::UpdateColumn(). Previously, the lack of computed best width was used as an indicator, but this didn't work correctly if some code called GetWidth() after invalidation but before wxDataViewCtrl::UpdateColWidths() was called at idle time. This resulted in header's column widths getting out of sync with the control itself. Fixes #14167.

2012-04-30 11:33 VS, revision 71334

Invalidate wxDataViewCtrl bests widths on expand/collapse. The best column widths are computed from "realized" items that are available as rows in wxDataViewCtrl. This information changes when a previously collapsed node is expanded and new items become available for column width calculation. Fixes #14167.

2012-04-30 11:33 VS, revision 71333

Respect minimal width in wxDataViewCtrl::GetBestColumnWidth(). See #14167.

2012-04-30 01:48 VZ, revision 71329

Work around the problem with not exiting event loop under MSW. Changes of r71304 broke the event loop termination under MSW, limit them to only the case in which they were really needed, i.e. when loop is really exited by a pending event handler. This is only a temporary solution, we need something better in longer term. See #14250.

2012-04-30 01:22 VZ, revision 71327

No changes, just refactor common IsSorted() tests in wxGTK wxDataViewCtrl. Add wxDataViewCtrlInternal::ShouldBeSorted() helper instead of testing for both IsSorted() and wxDataViewModel::HasDefaultCompare() in several places.

2012-04-30 01:22 VZ, revision 71326

No real changes, just make wxDataViewCtrlInternal::IsSorted() const. This is a simple accessor, should have been const since the beginning.

2012-04-30 01:22 VZ, revision 71325

Use PCH in the tests in all Windows ports and not only when using wxMSW. This change doesn't actually change anything for the "normal" ports as it only affects wxGTK/MSW which is not officially supported yet, so the make/project files are unchanged by it. Closes #14249.

2012-04-30 01:22 VZ, revision 71324

Added wxDataViewEvent::SetDragFlags() and GetDropEffect() methods. Allow specifying the drag operation flags and retrieving the drop effect when it's over for wxDataViewCtrl drag-and-drop. Currently this is only implemented in the generic version. Closes #12583.

2012-04-30 01:22 VZ, revision 71323

Set the data size in wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE in wxGTK. Allow wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE handler to examine the data being dragged by setting not only the pointer to it but also its size, as otherwise it's impossible to do anything with it. See #12583.

2012-04-30 01:22 VZ, revision 71322

Explicitly document wxDrag_XXX flags. They were mentioned in DoDragDrop() documentation but not documented on their own. Do it now to be able to refer to them from elsewhere.

2012-04-30 01:22 VZ, revision 71321

Remove internal only methods from wxDataViewEvent documentation. SetDataXXX() methods are only meant to be used by wxDataViewCtrl itself, so don't document them as part of public API. Their documentation was pretty useless anyhow as it didn't say anything not already contained in the method name.

2012-04-30 01:22 VZ, revision 71320

Restore 2.8 stock labels for wxID_PREVIEW inadvertently changed in 2.9. The wxID_PREVIEW labels were accidentally removed in r68641 and added back with a wrong/different label later. Restore the same one (or almost, just add an ellipsis at the end) that was used in 2.8. Closes #13906.

2012-04-30 01:22 VZ, revision 71319

Add a hack to prevent the test suite from aborting after Grid test case. There is a problem with the native header control still having the mouse capture when the grid is destroyed in wxGTK and this resulted in asserts when destroying the grid, nested asserts due to an exception being thrown from a dtor and finally abort that prevented the rest of the tests from running. As I failed to find the real reason for this problem, just forcefully ensure that we don't have the mouse capture when destroying the grid. This at least allows the complete test suite to run.

2012-04-30 01:22 VZ, revision 71318

Improve error reporting for nested asserts failures in the test suite. If an assert occurred while handling an exception generated by a previous assert handler, the information about the original assert was lost even if though it was more important than the secondary assert. Do preserve and show the original assert message in this case now.

2012-04-30 01:22 VZ, revision 71317

Work around wxDateTime::ParseFormat() problem in generic wxDateTimePickerCtrl. Due to a bug in wxDateTime::ParseFormat(), calling it with wxString::c_str() currently just crashes, so don't do this in generic wxDateTimePickerCtrl code. The real fix is, of course, to correct the bug in wxDateTime itself but for now this at least prevents the crash when executing the test suite. And using c_str() here is unnecessary anyhow. See #14214.

2012-04-30 01:22 VZ, revision 71316

Preserve wxComboBox selection when modifying the selected item in wxGTK too. This does the same thing as r70018 did for wxMSW but for wxGTK, i.e. it keeps the combo box item selected when its text is modified. This fixes [Bitmap]ComboBox unit tests under wxGTK. See #13769.

2012-04-30 01:21 VZ, revision 71315

Enable wxComboBox::SetString() test in the widgets sample. It was disabled because it wasn't implemented for wxGTK at some time in the past -- but it is implemented now, so there is no reason to not allow testing it.

2012-04-29 11:36 VS, revision 71314

Don't use ancient -no-cpp-precomp flag on OS X. See http://trac.wxwidgets.org/ticket/14029 for a discussion of the problems it causes when using non-Apple compiler. Even for Apple's GCC, it does nothing these days and we no longer support OS X 10.3, so there's no point in continuing to use it. Fixes #14029.

2012-04-29 00:25 VZ, revision 71313

Make wxGTK code returning correct focus in popup menu presence more robust. Replace the changes of r69938 with an alternative and simpler solution: instead of playing games with gs_pendingFocus, which could break down if its old value became invalid while the menu was shown as happened if one of the menu commands resulted in this window being destroyed, just take the currently shown popup menu into account in DoFindFocus() itself. This should be safer as there is no danger of any dangling pointers here and is also simpler and more obviously correct. Closes #14103.

2012-04-29 00:25 VZ, revision 71312

Add missing "flags" argument to wxNotificationMessage ctor in wxMSW. It was impossible to specify the flags when creating wxNotificationMessage in wxMSW, cotrary to the other ports and the documentation. Fix this by adding the missing argument to the ctor and simply passing it to the base class one, we don't have to do anything else as the existing code already calls GetFlags() later so it should respect these flags without any more changes. Closes #14245.

2012-04-29 00:25 VZ, revision 71311

Fix crash in wxFileConfig when deleting last entry of the root group. This resulted in keeping a dangling pointer to the group line in wxFileConfigGroup and any attempt to use it after this resulted in a crash. Fix this by explicitly resetting the last line in this case. Also add a unit test for this scenario. Closes #14243.

2012-04-29 00:25 VZ, revision 71310

Make it possible to forward declare wx{Choice,Tool,Tree}bookEvent again. Don't use typedef for these classes as it makes it impossible to forward-declare them, just use #define instead as we already do for wxListbookEvent and wxNotebookEvent. This allows forward declaration and is also more consistent. Closes #12242.

2012-04-29 00:25 VZ, revision 71309

Use generic wxAboutBox() in wxUniv/GTK. The native GTK implementation is not used in wxUniv/GTK, so don't exclude the generic one as well. Notice that the same should be done for wxMSW and wxOSX too but we currently seem to use the native version even in wxUniv there. It would be better to consistently use the generic version in all wxUniv ports. Closes #14236.

2012-04-29 00:25 VZ, revision 71308

Don't change wxTextEntry value if it didn't really change. This is not only unnecessary but also can result in a kind of infinite loop when wxTextEntry::SetValue() is called from wxEVT_IDLE handler as really modifying the text results in another wxEVT_IDLE being generated and another call to SetValue() and so on while not doing it in the first place completely works around the problem and is also more efficient. Closes #13936.

2012-04-29 00:25 VZ, revision 71307

Run some wxTextCtrl unit test cases for single and multi-line controls. Some of the tests that were previously ran for single or multi-line controls only actually apply to both of them, so run them for both kinds of control to test that both of them work correctly.

2012-04-29 00:24 VZ, revision 71306

No changes, just refactor wxTextCtrl unit test case. Allow running the same tests for both single and multi-line controls easily. No real changes yet though, the tests are still ran for the controls with the same styles as before for now.

2012-04-29 00:24 VZ, revision 71305

Recognize wxDefaultDateTime in gdb wxDateTime pretty-printer. Trying to print an uninitialized/invalid wxDateTime in gdb resulted in an error (Python exception from datetime module), recognize it specially now.

2012-04-29 00:24 VZ, revision 71304

Don't block in wxEventLoopManual::Dispatch() if loop was exited. If Exit() was called from a handler for one of the pending events we could reenter Dispatch() and block there indefinitely if no other events were coming and this was exactly what happened in wxFileSystemWatcher unit test, preventing it from ever running to completion under Unix. Fix this by checking m_shouldExit after executing the pending handlers and before calling Dispatch().

2012-04-29 00:24 VZ, revision 71303

Add a gdb pretty-printer for wxFileName objects. This pretty-printer works by calling the C++ wxFileName::GetFullPath() directly instead of interpreting the object data from gdb because this is much simpler to do, so it can only be used when debugging live programs. If this is a serious restriction, it would need to be changed to use gdb data access only later.

2012-04-29 00:24 VZ, revision 71302

Fix harmless warnings about hiding base class virtual in dialogs sample. GetTitle() added in r71213 resulted in virtual function warnings from g++, fix them by renaming it to GetBoxTitle().

2012-04-29 00:24 VZ, revision 71301

Don't use too big width for wxHtmlHelpWindow navigation panel. The width of the navigation panel in wxHtmlHelpWindow could become arbitrarily high if long items used. Avoid this by using a reasonably large but not too big minimal width instead of determining it automatically from the items width. Closes #13754.

2012-04-29 00:24 VZ, revision 71300

Fix erasing wxHtmlWindow background in wxUniv. Prevent the default wxWindow-level wxEVT_ERASE_BACKGROUND handler from being used in wxUniv for wxHtmlWindow. This is unnecessary as it has its own handler anyhow and also doesn't work for some reason as erasing wxMemoryDC by drawing a solid rectangle over it seems to be broken in at least wxX11. Work around this problem by erasing the background in wxHtmlWindow itself if no user-defined (as opposed to any, including one defined in wxWindow itself) handler for this event exists. Closes #13880.

2012-04-29 00:24 VZ, revision 71299

Handle kCGImageAlphaNoneSkipFirst correctly in wxOSX wxBitmap code. The code tested twice for kCGImageAlphaNoneSkipLast which was clearly wrong. The original intention was probably to check for both it and kCGImageAlphaNoneSkipFirst, so fix it to this now. Closes #14019.

2012-04-29 00:24 VZ, revision 71298

Fix wxBitmapButton best size calculation in wxOSX/Carbon. wxAnyButton refactoring broke the best size computation for Carbon, fix it to work as it did before. Closes #13830.

2012-04-29 00:24 VZ, revision 71297

Document the change in wxEVT_SIZE generation for wxDialogs in wxMSW. These events are now generated earlier and can result in crashes if the controls they use are not initialized yet.

2012-04-29 00:24 VZ, revision 71296

Document that wxDCClipper currently resets clipping region. Unlike other similar classes, this one doesn't restore the previous clipping region but just resets it because there is no way to get the current clipping region from wxDC now. At least document this limitation until it can be fixed. See #13834.

2012-04-29 00:12 VZ, revision 71295

German translations update from Mechtilde. Closes #14246.

2012-04-28 00:35 VZ, revision 71289

Added note about WXWIN_COMPATIBILITY_2_6 being off in 2.9 by default. Also list some concrete symbols which are not available any more and their replacements.

2012-04-27 13:39 JS, revision 71287

Restored the exact-fit-button horizontal margin calculation from 2.8 since it was too cramped.

2012-04-26 03:29 RD, revision 71280

Typo fix, and add some missing methods.

2012-04-25 13:42 JS, revision 71277

Fixed floating image layout when typing in subsequent paragraph Now makes use of max size for images and keeps the image size reasonable Added original image size so can usually avoid reloading image when recomputing cached bitmap size Takes into account bottom of the last floating image so scrollbars are set correctly Original image size is shown in disabled size controls

2012-04-24 13:22 JS, revision 71276

Added custom properties to style definitions and style sheets

2012-04-24 07:38 PC, revision 71275

Remove code to find topmost X window in SetTransparent(). The purpose of this code is unknown, but it may be intended to make WM decorations transparent. But it causes a crash when docking an AUI panel. And in my testing the decorations are transparent even without this code. Fixes #4841

2012-04-23 18:54 JS, revision 71268

Added flags to SetStyle with specific object

2012-04-21 02:07 RD, revision 71247

Fix missing and broken interface items for Phoenix

2012-04-20 18:05 PC, revision 71246

defer queue-resize until after size-allocate processing, to keep it from being ignored by GTK3

2012-04-20 17:34 PC, revision 71245

silence warning about wxOSX_USE_COCOA not being defined

2012-04-20 10:10 JS, revision 71244

Always Resume logging

2012-04-20 07:41 RD, revision 71242

Make wxTaskBarIcon's ctor have the same API on all platforms even though setting the icon type can only be done on wxOSX-cocoa

2012-04-20 07:41 RD, revision 71241

Document SetDoubleBuffered

2012-04-19 19:15 PC, revision 71240

move widget resize handling from DoSetSize to DoMoveWindow

2012-04-19 18:51 PC, revision 71237

simplify default border code in DoSetSize

2012-04-19 18:44 PC, revision 71236

rearrange some code in DoSetSize to facilitate upcoming changes

2012-04-19 18:14 VZ, revision 71235

Fix for wxUniv/GTK compilation. wxWindowBase needs to be explicitly cast to wxWindow in wxUniv/GTK build but this wasn't done in the changes of r70597. Cloes #14235.

2012-04-19 18:14 VZ, revision 71234

Correct wxPaintDC base class in the documentation. wxPaintDC derives from wxClientDC, not wxWindowDC.

2012-04-18 18:30 PC, revision 71228

Adjust x,y parameters by pizza scroll offset in DoSetSize This should cause no change in behavior, and is merely preparation for further changes

2012-04-18 11:23 VZ, revision 71227

Don't set focus to hidden window in wxSetFocusToChild(). The window that had focus previously could be hidden now, but its parent could be hidden as well so it's not enough to set focus to it but we need to loop until we find a visible ancestor. Closes #14230.

2012-04-17 19:00 RD, revision 71215

Fix missing and broken interface items for Phoenix

2012-04-17 18:57 SC, revision 71214

avoiding potential mismatch between true and expected state of wxGraphicsContext because it might have been changed through its direct API meanwhile, fixes #14226

2012-04-17 15:57 VZ, revision 71213

Add possibility to change the test message box title in dialog sample. All the other message box elements were configurable, so why not this one.

2012-04-17 08:13 SC, revision 71212

building on 10.5

2012-04-16 17:45 PC, revision 71211

remove AdjustForParentClientOrigin call, it does nothing in wxGTK

2012-04-16 16:33 VZ, revision 71210

Reset hover item when mouse leaves wxAuiToolBar. The hover item was not reset properly in some circumstances, do it now. Also check for the item being disabled in SetHoverItem() itself instead of doing it several times before calling it. Closes #14189.

2012-04-16 16:30 VZ, revision 71209

Fix wxCairoContext creation from wxWindow under MSW. cairo_win32_surface_create() must be passed the window HDC and not HWND itself, the old code calling it was broken. Add WindowHDC object and pass its HDC to this function now to make it work. Closes #14194.

2012-04-16 16:29 VZ, revision 71208

Add default ctor to wxMSW private WindowHDC helper class. Allow to use objects of this class without any valid HWND, this is useful for the derived classes which may, or may not, need the corresponding HDC. See #14194.

2012-04-16 16:19 VZ, revision 71207

Fix type mismatch in wxLogTrace() call in wxSocket. Cast socket handle to a 32 bit value as we use it with "%d" (or "%u" now as it makes more sense) format specifier to avoid problems with type mismatches under Win64. Closes #14204.

2012-04-16 15:53 VZ, revision 71206

Add wxFSInputStream providing stream interface to wxFileSystem. This class allows using virtual wxFSFiles with any wx functions taking streams. E.g. it makes it possible to load images and animations from wxFileSystem. Closes #14185.

2012-04-16 15:53 VZ, revision 71205

Added wxWrapperInputStream class. This stream allows to wrap another stream. This is a useful base class for adapter classes providing stream interface on top of something else, like the upcoming wxFSInputStream. See #14185.

2012-04-16 14:12 VZ, revision 71204

Added support for page tooltips to wxAuiNotebook. Allow setting tooltips for the tabs of the individual pages of wxAuiNotebook. Closes #14216.

2012-04-16 14:12 VZ, revision 71203

Added wxAcceleratorEntry::ToRawString(). This function can be used to obtain language/locale-independent representation of an accelerator. This is particularly useful for storing it in configuration files. Closes #14228.

2012-04-16 14:12 VZ, revision 71202

No real changes, just some typo fixes for previous commits. Fix wxCOMPtr comment and don't use "s_" for non-static variable. Closes #14227.

2012-04-16 01:18 VZ, revision 71201

Use new style directory selection dialog under Vista and later. Use IFileDialog in wxDirDialog implementation if possible, it shows a much more user-friendly dialog than the one used by SHBrowseForFolder(). Closes #11401.

2012-04-16 01:18 VZ, revision 71200

Added wxCOMPtr<> helper class. This allows to avoid error-prone manual AddRef() and Release() calls when writing COM code in wxMSW. See #11401.

2012-04-16 01:18 VZ, revision 71199

Fix WXK_MENU handling in wxStyledTextCtrl. Map it to SCK_MENU instead of treating it as a modifier and simply swallowing it. Closes #14205.

2012-04-16 01:18 VZ, revision 71198

No real changes, just fix misspellings in comments in wxGTK code. Also remove a couple of wrong $Id$ expansions. Closes #14203.

2012-04-15 00:37 VZ, revision 71197

Call wxThread::OnExit() from wxThread::Exit() in wxMSW too. Exit() is documented to call OnExit() and the pthreads version of wxThread did behave as documented, so make wxMSW follow it as well and explicitly call OnExit() before exiting the thread. Closes #14212.

2012-04-15 00:31 VZ, revision 71196

Add support for VT_I8 (long long) values to wxAutomationObject. Just map VT_I8 to wxLongLong. Closes #14210.

2012-04-15 00:27 VZ, revision 71195

Add support for horizontal mouse wheel events to wxGTK too. Handle GDK_SCROLL_{RIGHT,LEFT} directions in scroll-event handler in wxGTK. Closes #14221.

2012-04-15 00:27 VZ, revision 71194

Fix the check for wxUSE_DATETIME in wxGenericValidator code. The #endif was somehow added at a wrong place and too much wxDateTime-unrelated code was disabled when wxUSE_DATETIME was off. Closes #14222.

2012-04-14 09:33 SC, revision 71193

make sure status item rect in bar is highlighted when clicked, fixes #13630

2012-04-12 23:15 SJL, revision 71192

Always check that we get a valid IDispatch* from get_Document as sometimes the call can succeed but return NULL. Fixes #14182

2012-04-12 07:33 RD, revision 71190

Add missing interface items for Phoenix

2012-04-10 05:27 RD, revision 71172

Add missing interface items for Phoenix

2012-04-10 05:27 RD, revision 71171

Fix missing and broken interface items for Phoenix

2012-04-10 05:27 RD, revision 71170

Remove the wxPython-only doc snippets from the C++ docs

2012-04-10 05:27 RD, revision 71169

Minor tweak to improve understandability

2012-04-10 05:27 RD, revision 71168

Add CreateTextSizer

2012-04-08 20:10 VZ, revision 71154

Always use UTF-8 for file names passed to GTK+ functions under MSW. When building wxGTK under MSW, always use UTF-8 as file name encoding because GTK+ doesn't use G_FILENAME_ENCODING there. Add a helper wxGTK_CONV_FN() macro to hide the difference between the platforms. Closes #14035.

2012-04-08 20:10 VZ, revision 71153

No real changes, just add extra brackets to wxGTK_CONV() macro. These brackets are probably not really necessary but add them just in case they can help with parsing some strange expressions and for consistency with the other wxGTK_CONV_XXX() macros. See #14035.

2012-04-08 20:10 VZ, revision 71152

Compilation fixes for Cairo-based wxGraphicsContext code under MSW. Include MSW-specific headers under MSW to fix various compilation problems under MinGW. Closes #14194.

2012-04-08 15:25 VZ, revision 71151

Fix typo in wxKeyEvent::GetKeyCode() documentation example. Use GetKeyCode() instead of (undefined) "keycode" variable.

2012-04-08 12:10 VZ, revision 71148

Fix PCH-less compilation of graphicc.cpp under MSW too. We need to include wx/window.h in all ports, not just wxGTK. See #14194.

2012-04-08 02:54 RD, revision 71147

Add the client and art IDs

2012-04-07 06:18 RD, revision 71134

Mark which methods are pure virtual

2012-04-07 06:18 RD, revision 71133

Document wxHelpControllerBase so the type can be used in Phoenix

2012-04-07 06:18 RD, revision 71132

wxHtmlHelpController derives from wxHelpControllerBase

2012-04-07 06:18 RD, revision 71131

Add a ctor that is compatible with the documented wxHelpController API

2012-04-06 21:51 VZ, revision 71123

Handle Ctrl-O and Ctrl-L MSW wxWebView accelerators too. Do the same thing for them as for Ctrl-N, Ctrl-F and Ctrl-P, they are also used by the control. Closes #14192.

2012-04-06 21:51 VZ, revision 71122

Remove special setup_gccxml.h for GCCXML. This file doesn't seem to be needed and the open() declaration in it actually results in errors when using the latest gccxml from cvs under Windows, so just get rid of it entirely.

2012-04-06 20:07 SC, revision 71120

fixes #14193

2012-04-06 00:27 VZ, revision 71115

Set the menu itself as event object for EVT_MENU_{OPEN,CLOSED} in wxMSW. Make wxMSW consistent with the other ports and set the menu itself, not the window it is attached to, as the event object for the menu open/close events. See #1595.

2012-04-06 00:27 VZ, revision 71114

Reuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand(). Not only this avoids code duplication but it also fixes wrong code in wxFrameBase version as it set the event object incorrectly to the frame itself instead of setting it to the menu. Added event object check to the menu events unit test. Closes #1595.

2012-04-06 00:27 VZ, revision 71113

Add a very simple unit test checking for menu events. Just verify that an event with the expected id was generated. The test will be extended later to test for other event fields such as its source object, see #1595.

2012-04-06 00:27 VZ, revision 71112

Use wxFrame::FindItemInMenuBar() in ProcessCommand(). Don't duplicate FindItemInMenuBar() code in ProcessCommand() and, more importantly, use the overridden version of FindItemInMenuBar() in MDI parent frame in wxMSW to allow using ids corresponding to the active child frame menu items.

2012-04-05 20:40 VZ, revision 71105

Don't change the icon when editing wxDataViewIconText cells in generic version. wxDataViewIconTextRenderer changed the icon to that of the last item drawn by it when editing a cell. Fix this by getting the original icon directly from the model instead of from the last item. Closes #14187.

2012-04-05 20:40 VZ, revision 71104

Hide combobox popup when it is hidden itself in wxMSW. It was possible to hide the main part of a combobox control but keep its popup shown and this notably happened in wxGrid when TAB was pressed while a wxChoice cell editor was dropped down. Avoid this Cheshire combobox syndrome by explicitly dismissing the popup when a combobox is hidden. Closes #3113.

2012-04-05 20:40 VZ, revision 71103

Refactor: move wxComboBox::MSWDoPopupOrDismiss() down to wxChoice. No real changes, just make this method available in wxChoice for the next commit needs. See #3113.

2012-04-05 20:40 VZ, revision 71102

Remove support for MetroWerks CodeWarrior compiler. This compiler doesn't exist any more and was probably unsupported even in 2.8, let alone 2.9, so remove all the __MWERKS__ tests to simplify things.

2012-04-05 20:40 VZ, revision 71101

Remove wrong const from wxMenu::GetMenuItems() documentation. Only one of the overloads is const. Closes #14169.

2012-04-05 20:39 VZ, revision 71100

No real changes, just remove wxIsDebuggerRunning() stub from wxOSX. There is no need to have a stub here when we already have in wx/debug.h, just remove it.

2012-04-05 15:55 VZ, revision 71097

Fix handling of the main window of composite controls in wxMSW wxToolTip. The main window itself should be added using DoAddHWND() and not AddOtherWindow() as it is not, precisely, "other". This fixes removing and updating it twice unnecessarily. Closes #14184.

2012-04-05 15:55 VZ, revision 71096

No real changes, just use clearer names for wxMSW wxToolTip methods. Rename wxToolTip::DoAddOtherWindow() to DoAddHWND() as it should be used for adding any window associated with the tooltip, either the main or an auxiliary one. And rename wxToolTip::Add() to AddOtherWindow() because it shouldn't be used for the main window. See #14184.

2012-04-05 15:55 VZ, revision 71095

Really fix source coordinates handling in wxDC::Blit() in wxMSW. It turns out that the changes r71028 were unnecessary (and actually harmful) in most cases, they're only needed when a DIB is used as a source DC. So move the manual coordinates adjustments to the branch of code using StretchDIBits() and don't do it anywhere else. Also don't list this as an incompatible change as wxMSW actually already worked as the other ports in the majority of cases and list it as a simple bug fix instead. Closes #14188.

2012-04-05 01:22 RD, revision 71092

Add wxAffineMatrix2DBase class. If a class is used somewhere as parameter or return value types then it needs to be documented, at least for Phoenix.

2012-04-05 00:30 VZ, revision 71091

Fix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK. If two radio buttons are created consecutively, they should be part of the same radio group, even if wxRB_GROUP hadn't been explicitly used for the first of them. Do this is for consistency with wxMSW and also because the alternative behaviour doesn't make much sense. Also stop iterating too far backwards when searching for the group to be used for a new radio button and add comments explaining what's going on here.

2012-04-05 00:16 VZ, revision 71090
  • D /wxWidgets/trunk/include/wx/wxshlba_cw.h
  • D /wxWidgets/trunk/include/wx/wxshlba_cwc.h
  • D /wxWidgets/trunk/include/wx/wxshlba_cwc_d.h
  • D /wxWidgets/trunk/include/wx/wxshlba_cw_d.h
  • D /wxWidgets/trunk/include/wx/wxshlb_cw.h
  • D /wxWidgets/trunk/include/wx/wxshlb_cwc.h
  • D /wxWidgets/trunk/include/wx/wxshlb_cwc_d.h
  • D /wxWidgets/trunk/include/wx/wxshlb_cw_d.h
  • D /wxWidgets/trunk/include/wx/wx_cw.h
  • D /wxWidgets/trunk/include/wx/wx_cwc.h
  • D /wxWidgets/trunk/include/wx/wx_cwcocoa.h
  • D /wxWidgets/trunk/include/wx/wx_cwcocoa_cm.h
  • D /wxWidgets/trunk/include/wx/wx_cwcocoa_d.h
  • D /wxWidgets/trunk/include/wx/wx_cwc_d.h
  • D /wxWidgets/trunk/include/wx/wx_cwu_d.h
  • D /wxWidgets/trunk/include/wx/wx_cw_cm.h
  • D /wxWidgets/trunk/include/wx/wx_cw_d.h

Remove obsolete header used only with CodeWarrior MetroWerks compiler. This compiler doesn't exist for modern OS X systems, no need to have the headers used only with it as they just clatter the include directory and confuse various tools parsing wx headers.

2012-04-04 16:36 VZ, revision 71089

Avoid overflowing the wake up when handling events in Unix console apps. Generating many wake ups from the worker threads could result in overflowing the buffer of the pipe used to communicate with the main thread which, in turn, resulted in other serious problems (deadlocks...). Avoid this by only writing to the pipe if it is empty. Closes #14166.

2012-04-04 16:36 VZ, revision 71088

No changes, just categorize change log entry correctly. wxThread::SetConcurrency() should be in the non-GUI part, not wxUniv one.

2012-04-03 13:50 VZ, revision 71086

Don't link with QuickTime framework in 64 bit wxOSX builds. This framework doesn't exist in 64 bits and so using it results in a warning when building 64 bit libraries. Avoid this by omitting it if we are sure that we target 64 bits only. Closes #14144.

2012-04-03 13:50 VZ, revision 71085

Added wxGraphicsContext::CreateMatrix(wxAffineMatrix2D) overload. Make it easy to convert generic wxAffineMatrix2D to native wxGraphicsMatrix. Closes #13188.

2012-04-03 08:25 JJ, revision 71084

Update Makefile for OpenVMS

2012-04-02 20:26 VZ, revision 71081

Override DoThaw() in wxAuiNotebook correctly. Don't "override" Thaw() in wxAuiNotebook as it's not virtual any more. Override DoThaw() instead. Also use wxBookCtrlBase instead of wxControl as the base class. Closes #14179.

2012-04-02 18:07 VZ, revision 71080

Document wxStreamBuffer::BufMode enum and fix dtor. Document the enum as it's used as parameter type by other methods and so needs to be declared to make the header parsable. Also fix wxStreamBuffer dtor documentation which was missing a tilde. Closes #14174.

2012-04-02 18:07 VZ, revision 71079

Fix wxArrayString::Item() and Last() documentation. Document both const and non-const versions of the methods. Closes #14173.

2012-04-02 18:07 VZ, revision 71078

Fix wxURI::HasUserInfo() name in the documentation. Use the correct name of an existing method instead of HasUser(). Closes #14172.

2012-04-02 18:07 VZ, revision 71077

Fix wxTextFile::GetLine() documentation. Document both const and non-const overloads of this method instead of having some strange (and non-existent) chimera of the two. Closes #14171.

2012-04-02 18:07 VZ, revision 71076

Remove wrong consts from wxTextFile::Open() documentation. Open() is a non-const method. See #14171.

2012-04-02 18:07 VZ, revision 71075

Correct the return type of wxPersistenceManager methods in the documentation. DisableSaving() and DisableRestoring() don't return anything. Closes #14170.

2012-04-02 18:07 VZ, revision 71074

Document pure virtual wxDropTarget methods correctly. GetData(), OnData() and OnDrop() were not documented as being pure virtual. Closes #14165.

2012-04-01 19:27 VZ, revision 71070

Vietnamese translations update from Trần Ngọc Quân.

2012-04-01 15:37 SC, revision 71069

correct text drawing with background brush, fixes #14161

2012-04-01 12:26 VZ, revision 71068

Document wx{Single,Multi}ChoiceDialog styles in class documentation. The styles should be documented in the class documentation, not the documentation of individual constructors. Closes #14162.

2012-03-31 06:39 RD, revision 71061

Interface fixes for Phoenix

2012-03-31 06:39 RD, revision 71060

Add NUM_CUSTOM

2012-03-31 06:39 RD, revision 71059

Add wxGenericProgressDialog

2012-03-30 20:29 RD, revision 71057

Add missing dirctrl interface items for Phoenix

2012-03-30 14:16 VZ, revision 71056

Return run-time zlib version from wxGetZlibVersionInfo(). Return the version really used instead of the version the code was compiled against. Incidentally, this avoids the use of ZLIB_VERNUM not available in old (1.1) versions of zlib, thus fixing compilation under Solaris 10. Closes #14158.

2012-03-30 01:43 VZ, revision 71055

Remove nonsensical custom comparison code from wxDataViewIndexListModel. This model was comparing its items by their positions in the list instead of their values for some reason. This broke sorting in wxDataViewListCtrl using this model and simply didn't make any sense. Just remove the comparison code from wxDataViewIndexListModel entirely, the base class version works just fine for it. Closes #14116.

2012-03-30 01:43 VZ, revision 71054

Restore the correct brush in wxGCDC::GradientFill() methods. Both GradientFillLinear() and GradientFillConcentric() changed the brush on the underlying wxGraphicsContext but didn't restore the default brush back. Closes #14131.

2012-03-30 01:17 VZ, revision 71053

Remove setup0.h files from the list of headers in bakefile. These headers don't exist in official distributions as they're renamed to setup.h in them. Moreover, they don't need to be installed anyhow when using configure as the real setup.h is installed specially, so there is no real need to have them in the list of headers.

2012-03-29 22:05 SC, revision 71052

adding tabart.cpp file

2012-03-29 21:59 SC, revision 71051

adding tabart.cpp file

2012-03-29 21:19 VZ, revision 71050

Added missing DESTDIR to wx-config installation make rule. All paths should be prefixed by $(DESTDIR) but it was forgotten in "ln -s" command.

2012-03-29 19:14 RD, revision 71049

wxTreeCtrl interface fixes for Phoenix

2012-03-29 14:08 VZ, revision 71040

Allow closing wxAuiTabCtrl pages without switching to them. Clicking on the page "x" close button switched to the page before doing anything else which was unusual as other tabbed controls don't behave like this. Handle clicks on the close button specially and avoid switching to the page which is about to be closed anyhow. Closes #14150.

2012-03-29 02:10 VZ, revision 71039

Fix focus handling logic in generic wxListCtrl. Don't override SetFocus() to set the focus to the main window, this isn't enough as we can be given the focus by the underlying toolkit itself, without our SetFocus() being called -- this happened in wxGTK when focus was changed from the keyboard using TAB and in this case it didn't get to the main window but remaining on the wxListCtrl itself meaning that keyboard input wasn't processed at all. Use wxNavigationEnabled<> now to ensure that OnSetFocus() and related methods do the right thing instead now. Also get rid of OnSetFocus() in wxListHeaderWindow, it's better to override AcceptsFocus() to return false to avoid getting focus in the first place.

2012-03-28 20:00 SJL, revision 71034

Minor changes, just trim trailing spaces in webview code.

2012-03-28 13:29 VZ, revision 71033

Document that wxDateTime::UNow() returns UTC time. This wasn't clear and was probably surprising as this is different from Now() behaviour. See #14149.

2012-03-28 11:13 SC, revision 71032

adding correct behavior for move events as the are issued under OSX

2012-03-27 21:33 SJL, revision 71030

Correctly use QueryInterface in GetDocument to ensure that we only return an IHTMLDocument2 pointer if one is available. Check GetDocument being NULL when used. This fixes the displaying of non-html documents such as pdfs. Fixes #14060

2012-03-27 19:28 RD, revision 71029

Add missing interface items for listctrl.

2012-03-27 14:28 VZ, revision 71028

Honour source wxDC coordinate system in wxDC::Blit() in wxMSW. wxGTK and wxOSX already did this so do it in wxMSW as well. Update the documentation to make this explicit.

2012-03-27 14:28 VZ, revision 71027

Make wxDC::Blit() and StretchBlit() documentation more useful. Enumerating the list of parameters in the method description is not especially helpful, don't do it. Explain the functions relationship instead. Also don't say that StretchBlit() is not implemented in wxGTK because it does work there (using the generic implementation using wxDC scale).

2012-03-27 13:58 VZ, revision 71026

Set wxTextAreaBase::m_filename in the methods of this class itself. m_filename member was declared in wxTextAreaBase but set only in the overridden wxTextCtrlBase methods. This meant that it wasn't updated correctly in wxStyledTextCtrl which also derives from wxTextAreaBase and so saving SaveFile() with empty file name didn't work there even when the control had been originally loaded from a file. Move the code updating m_filename to wxTextAreaBase itself to fix this. This also simplifies the code as it's now not necessary to override Do{Load,Save}File() in wxTextCtrlBase at all.

2012-03-27 13:58 VZ, revision 71025

Use IsDescendant() in wxTopLevelWindow::IsActive() implementation. Avoid wxGetTopLevelParent() which doesn't work for the strange TLWs which override IsTopLevel() to return false, as wxMDIChildFrame does in wxMSW. Using IsDescendant() works in any case and also is arguably more clear. Closes #3063.

2012-03-27 13:58 VZ, revision 71024

Added wxWindow::IsDescendant() helper. This function checks if another window is a direct or indirect child of this one, which can be needed in a number of situations. See #3063.

2012-03-26 18:57 JS, revision 71015

Corrected scale factor for the use of DC PPI instead of printer PPI in wxRTC code

2012-03-26 18:57 JS, revision 71014

Corrected scale factor for the use of DC PPI instead of printer PPI in wxRTC code

2012-03-26 17:44 PC, revision 71013

non-pch build fix, closes #14140

2012-03-26 13:52 VZ, revision 71012

Arabic translations update from Fatma Mehanna. Also backport the translations to 2.8 branch.

2012-03-26 13:24 VZ, revision 71011

No changes, just small cleanup in AUI GTK tab art drawing code. Use more clear variable names; remove commented out assignments to inexistent variables. Closes #14139.

2012-03-26 13:23 VZ, revision 71010

Fix gap box coordinates in GTK AUI tab art code. Closes #14138.

2012-03-26 13:23 VZ, revision 71009

Minor fix to wxGraphicsContext::SetInterpolationQuality() in wxMSW. Only update the internal variable if we really succeeded in changing the interpolation mode. See #14134.

2012-03-26 01:34 PC, revision 71008

remove unneeded includes and forward declaration

2012-03-26 01:33 PC, revision 71007

remove unused variable

2012-03-26 01:33 PC, revision 71006

replace wxBitmap::SetPixbuf() with wxBitmap ctor taking pixbuf

2012-03-26 01:17 VZ, revision 71005

Fix generic wxTimePickerCtrl on DST change dates. Do not use the date when DST changes as the date part of wxDateTime object used by wxTimePickerGeneric internally as this introduces problems with times that can't be represented at all -- and so can't be entered into the control. Use arbitrary date on which DST does not change to avoid this. Closes #14137.

2012-03-26 01:17 VZ, revision 71004

Added wxTimePickerCtrl::GetTime() and SetTime(). These methods, taking broken down time representation, avoid the problems arising due to DST complications when using wxDateTime to represent the time as special care needs to be taken in this case to avoid using the date part corresponding to a DST change date at which time is discontinuous. Document the problem with the old functions and use the new ones in the sample. See #14137.

2012-03-25 21:15 PC, revision 71003

build fixes

2012-03-25 19:56 VZ, revision 71002

Implement native tab art for wxAUI in wxGTK. Use native wxAuiTabArt implementation in wxGTK, it better conforms to the system style. Closes #14098.

2012-03-25 19:55 VZ, revision 71001

Refactor wxAUI: extract wxAuiTabArt in a separate file. No real changes, just extract wxAuiTabArt into its own file. Also rename wxAuiDefaultTabArt to wxAuiSimpleTabArt in preparation for having other tab art classes as the default one. See #14098.

2012-03-25 19:55 VZ, revision 71000

Explicitly include wx/aui/dockart.h from the file needing it. src/aui/tabmdi.cpp needs wxAuiDockArt declaration as it uses it, don't rely on wx/aui/dockart.h being included from other wxAUI headers and include it from here explicitly. See #14098.

2012-03-25 19:55 VZ, revision 70999

Add a private GetNotebookWidget() accessor to wxGTK. This is similar to the other existing functions and allows to access GtkNotebook-specific style. See #14098.

2012-03-25 19:55 VZ, revision 70998

Export wxGTK private widget creation functions from core library. This is necessary to allow using them from other libraries, e.g. wxAUI that will do it in the upcoming commits. See #14098.

2012-03-25 19:55 VZ, revision 70997

Include <wx/textctrl.h> from <wx/combobox.h> for compatibility. The wxComboBox header itself doesn't need <wx/textctrl.h> but there exists code using wxComboBox with wxTextCtrl styles and events that doesn't include <wx/textctrl.h> explicitly because it wasn't necessary in 2.8. So include it from wx/combobox.h to avoid breaking this code after an upgrade to 2.9. Closes #14132.

2012-03-25 18:45 VZ, revision 70996

Return valid pointers from wxDateTime::ParseXXX() with non-wxString strings. The pointer returned by wxDateTime::ParseXXX() methods could point into a buffer of a temporary wxString created to wrap a char* or wchar_t* argument so dereferencing it was illegal. Fix this by defining separate overloads for char*/wchar_t* arguments returning pointers into the original string.

2012-03-25 18:45 VZ, revision 70995

Add helper wxString::IterOffsetInMBStr() method. This method can be used to recover the pointer in char* buffer containing multi-byte string representation corresponding to the given iterator which is useful for implementing backwards-compatible functions that must be able to return such pointers.

2012-03-25 14:14 VZ, revision 70994

Correct Eric Jensen name in the change log. See #14134.

2012-03-25 01:31 VZ, revision 70993

Fix bug with parsing time formats during DST periods. wxDateTime::ParseFormat() used todays date as fall back when parsing all formats, including those involving times, which meant that its results depended on whether DST was active at the time of the parsing which was clearly wrong. Fix this by using a fixed date on which DST is known not to be active as fall back date. This fixes unit test failures in DateTimeTestCase::TestTimeFormat() when it was ran on a DST transition date.

2012-03-25 01:31 VZ, revision 70992

Add a gdb pretty printer for wxDateTime. Format it using Python datetime module in the standard ISO notation.

2012-03-24 19:24 VZ, revision 70991

Allow hiding rows in wxGrid with HideRow(). HideRow() was simply ignored as SetRowSize(row, 0) didn't do anything. Check for the special value of 0 and allow it, just as it was done for the columns since r57336. See #14133.

2012-03-24 19:24 VZ, revision 70990

Implement wxGraphicsContext::SetInterpolationQuality() for wxMSW. Provide implementation of the previously stubbed out method. Closes #14134.

2012-03-23 17:50 PC, revision 70989

avoid reported problem with RHEL 5 GTK+ 2.10 where selection is reset by a clipboard callback, closes #13277

2012-03-23 16:13 VZ, revision 70988

Don't cache incorrect length in wxString::DoUngetWriteBuf(). The length here is the size of the buffer in bytes and is not necessarily the string length in code points (notably not for non-ASCII strings in UTF-8 build). Closes #14130.

2012-03-23 16:13 VZ, revision 70987

Don't cache incorrect length in wxString::assign(char*, size_t). The length of the string here is specified in bytes and is not the same as the string length for non-ASCII UTF-8 strings, so don't cache it as the string length. Just invalidate the cached length instead as we simply don't know what the real length of the string is going to be. See #14130.

2012-03-23 16:13 VZ, revision 70986

Fix caching wrong length in wxString(str, len) ctor in UTF-8 build. A length greater than that of the source string could be passed to this ctor. This worked correctly, i.e. created a string which was a copy of the source one but cached a wrong length for it. Avoid this by explicitly checking the length before caching it in wxString::assign(str, len). See #14130.

2012-03-23 10:30 JJ, revision 70985

update setup for OpenVMS

2012-03-22 19:09 PC, revision 70969

fix building with GTK+ < 2.8

2012-03-22 01:27 VZ, revision 70962

Implement horizontal mouse wheel events support for wxMSW. Handle WM_MOUSEHWHEEL messages and translate them to the corresponding wxMouseEvents. Closes #14105.

2012-03-22 01:26 VZ, revision 70961

Use enum for wxMouseEvent::m_wheelAxis instead of int. This variable can take only 2 values, use symbolic names for them instead of difficult to understand 0 and 1. See ##14105.

2012-03-22 01:12 VZ, revision 70960

Use pthread_setconcurrency() in wxThread::SetConcurrency(). Use POSIX function if available instead of only using Solaris-specific thr_setconcurrency() which is not found in modern Linux systems any more. Closes #2115.

2012-03-21 17:42 RD, revision 70955

Avoid assert when deleting columns if there is more columns than there are column labels

2012-03-21 01:11 VZ, revision 70954

Fix display of "const" methods in wxGTK assert dialog. Don't separate the function name and its arguments types in 2 different columns in the assert dialog, this doesn't really work with const methods as "const" can't be separated from the function like this. The old code just didn't take "const" into account at all and mangled all the const methods by showing ") cons" (no typo) at the end. Just show everything in one column to avoid the problem and also simplify the code. Closes #14104.

2012-03-21 00:31 VZ, revision 70953

Remove empty and unnecessary wxFontDialogBase destructor. This fixes build with wxUSE_FONTMAP==0 as this dtor was only defined inside "#if wxUSE_FONTMAP" section. Instead of fixing this, just get rid of this dtor entirely as it was unnecessary anyhow.

2012-03-21 00:26 VZ, revision 70952

Fix wxMSW compilation when wxUSE_FONTMAP==0. Don't use wxFontMapper::GetEncodingName() in wxFontEnumerator if wxFontMapper is not available.

2012-03-21 00:07 PC, revision 70951

make wxMask pixmap member private

2012-03-20 21:53 RD, revision 70948

Document steps needed to update to newer Scintilla. (From memory, will need to be reviewed while actually doing an update to find other things that should be done.)

2012-03-20 04:34 PC, revision 70945

Fix keyboard navigation broken in r70324, see #14084 Also fixes some other keyboard navigation problems, closes #2849

2012-03-19 14:41 JJ, revision 70944

Updates for OpenVMS

2012-03-19 13:53 VZ, revision 70943

Define wxUSE_TASKBARICON_BALLOONS as 1 for wxMSW builds using configure. Defining it as 1 is better than not allowing to set it at all and this setting is not important enough to warrant its own command-line configure option. Closes #14106.

2012-03-19 13:53 VZ, revision 70942

Fix wrong wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK name in the docs. It was spelt with an extra "ED" at the end. Closes #14109.

2012-03-19 13:53 VZ, revision 70941

Fix appearance of items without icons in wxDataViewCtrl in wxOSX/Cocoa. We need to set the cell image to none explicitly if the item doesn't have any, otherwise the image for the previous cell would be reused. Closes #14112.

2012-03-19 13:53 VZ, revision 70940

Explicitly cast size_t to int to suppress MSVC warnings. Implicit size_t-to-int conversions provoke warnings when building 64 bit version (in which sizeof(size_t) > sizeof(int)) with MSVC, so make them explicit as the size_t values used here will always fit in int range. Closes #14113.

2012-03-19 00:25 JS, revision 70939

Added a parameter to PrintBuffer and PrintFile to allow silent or prompted printing.

2012-03-18 22:17 VZ, revision 70938

Brazilian Portuguese translations update from Felipe.

2012-03-18 21:35 JS, revision 70937

Added wxPropertyGridManager::SetPageSplitterLeft

2012-03-18 19:06 SC, revision 70936

fixes #14110

2012-03-18 02:35 VZ, revision 70935

Avoid crashes in wxMSW when using buttons without valid parent. Child controls such as buttons are supposed to always have a valid parent but if, somehow, they don't, still don't crash in wxMSW button code but just trigger an assert failure instead of unavailable button top level parent instead.

2012-03-17 21:42 RD, revision 70932

fix compile error

2012-03-17 11:52 SC, revision 70926

avoid shortcut ampersands in button text

2012-03-17 03:55 RD, revision 70920

Remove --mac_arch and enable --mac_universal_binary to accept one or more architectures instead.

2012-03-17 03:55 RD, revision 70919

Make Dismiss() virtual.

2012-03-16 13:37 VZ, revision 70911

Hungarian translations update from Ócsvári Áron.

2012-03-16 00:24 VZ, revision 70910

Improve wxListCtrl::SetItemState() documentation. Better explain the meaning of its parameters.

2012-03-15 14:49 VZ, revision 70909

Enable/disable "Window" menu items in AUI MDI correctly. Add EVT_UPDATE_UI handlers for "Close", "Close All" as well as "Next" and "Previous" menu commands. Closes #14102.

2012-03-15 14:49 VZ, revision 70908

Pass the original format to wxDataObjectSimple in wxDataObjectComposite. Some "simple" data objects, such as wxTextDataObject, are actually not simple and support multiple formats so pass the real format to them so that they could do the right thing. Closes #14101.

2012-03-15 14:14 VZ, revision 70907

Italian translations update from Roberto Boriotti.

2012-03-15 14:14 VZ, revision 70906

Basque translations update from Xabier Aramendi.

2012-03-14 13:32 VZ, revision 70898

Implement wxDirDialog:: and wxFileDialog::Create() in wxGTK. Simply move the code from non-default constructor to Create(). This allows to create the dialogs using 2-step creation if necessary. Closes #14069.

2012-03-13 18:43 JS, revision 70894

Better border style for HTML window

2012-03-13 18:23 JS, revision 70893

Don't scale 16x15 to 16x16 - fixes corruption of bookmark icons in help window

2012-03-13 18:22 JS, revision 70892

Ensure IDs don't clash with wxRichTextCtrl.

2012-03-13 09:42 JS, revision 70891

Fixed size calculation

2012-03-12 20:30 JS, revision 70885

Added wxRIBBON_PANEL_FLEXIBLE flag to allow toolbars to wrap, taking up the optimum amount of space when used in a vertical palette.

2012-03-12 18:47 SC, revision 70884

remove 10.4 compatibility code

2012-03-12 15:57 SJL, revision 70882

Add new WX_ASSERT_EVENT_OCCURS macro to improve behaviour of testing asynchronous events. Use it in the wxWebView tests and re-enable previously failing tests.

2012-03-12 12:42 JS, revision 70881

Removed redundant DoEnable

2012-03-12 00:55 VZ, revision 70880

Update the text part of combobox when changing text of selected item in wxGTK. Add a call to SetValue() to wxComboBox::SetString() in wxGTK if the item being changed is the currently selected one. The new behaviour is consistent with wxMSW and also makes more sense. Document it too to remove any doubts about what is supposed to happen in this case.

2012-03-12 00:41 VZ, revision 70879

Add a test for wxComboBox::SetString() to the widgets sample. This allows to easily test this function interactively, notably check what happens when the currently selected string is changed under different ports.

2012-03-12 00:41 VZ, revision 70878

Remove duplicate wxSYS_DCLICK_MSEC in wxSystemMetric documentation. Closes #14093.

2012-03-12 00:41 VZ, revision 70877

Document wxGridCellCoords class. Closes #14092.

2012-03-12 00:41 VZ, revision 70876

Document wxBK_HITTEST_XXX values. They were previously implicitly documented in HitTest() itself but this was insufficient for wrappers generation as the constants themselves were never declared. Do define them now and also correct and update their descriptions. Closes #14091.

2012-03-12 00:41 VZ, revision 70875

Document wxHelpSearchMode enum and its values. Closes #14090.

2012-03-12 00:41 VZ, revision 70874

Fixes to function signatures in wxDataViewCtrl documentation. Change the return type of {Append,Insert,Prepend}Column() to bool and add missing "const" to Compare(). Closes #14089.

2012-03-11 16:27 SJL, revision 70872

Delete buttons when we are finished so they do not overlap later controls and cause test failures.

2012-03-11 15:32 SJL, revision 70871

Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events.

2012-03-11 06:31 JS, revision 70870

A fix for flicker when the top-level window is disabled or enabled (e.g. by modal dialogs). Achieved by using IsThisEnabled to determine the visual disabled state and thus requiring no refresh on top-level window enabling/disabling.

2012-03-10 17:58 PC, revision 70868

remove unused parameter

2012-03-10 15:26 VZ, revision 70867

Fix wxComboCtrl::SetHint() return type in the documentation. It is now bool, not void, as for wxTextEntry::SetHint(). Closes #14083.

2012-03-10 15:26 VZ, revision 70866

Explicitly document wxMessageOutputFlags. They were already mentioned in wxMessageOutputBest ctor documentation but now add the standalone enum too to make the documentation header semantically valid. Closes #14082.

2012-03-10 15:26 VZ, revision 70865

Document wxPrintQuality and wxPRINT_QUALITY_XXX constants. Closes #14081.