Changelogs

Overview

These changelogs reflect the history of all files in the Subversion repository. The changelog has been generated at 2015-03-04 11:15:02

Select Changelog:

FileZilla 3, FileZilla,
FileZilla Server, wxWidgets

Changes per page:

25 50 100 250 500 1000 2000

Changelog for wxWidgets (70435 changes):

2014-10-08 12:28 JS, revision 77980

Page up/down behaviour now takes into account margins and scale GetTextForRange takes composites into account properly HasCharacterAttributes correction

2014-10-06 23:50 VZ, revision 77965

Check that there are no uncommitted changes in the release script. Any such changes wouldn't be included in the release, which is probably unexpected.

2014-10-06 23:50 VZ, revision 77964

Check that there are no uncommitted changes in the release script. Any such changes wouldn't be included in the release, which is probably unexpected.

2014-10-06 23:48 VZ, revision 77963

Really fix the 3.0.2 archives SHA1 sums. This corresponds to the archives with the correct configure version in them, finally.

2014-10-06 19:33 VZ, revision 77962

Rebake and rerun autoconf after 3.0.3 version update. Don't forget to update configure, this time.

2014-10-06 19:32 VZ, revision 77961

Updated SHA1 sums for the final 3.0.2 release archives. The sums have changed after updating "configure" included in the release.

2014-10-06 14:35 VZ, revision 77960

Fix several rounding problems with float values in wxPropertyGrid. See also r85980 in the trunk. Closes #15625.

2014-10-06 14:35 VZ, revision 77959

Fix several problems with number formatting in wxNumberFormatter. We shouldn't add thousands separators nor remove trailing zeros for the numbers in scientific format. Also avoid "-0" as output. See #15625. [This is the backport of r75560 from trunk.]

2014-10-06 14:35 VZ, revision 77958

Update version to 3.0.3. Run misc/scripts/inc_release, update version.bkl and changes.txt manually.

2014-10-06 14:35 VZ, revision 77957

Updated the released files SHA1 sums for 3.0.2. Also update the version and remove the bit about binaries being provided for the first time -- this is not true any more.

2014-10-05 16:26 VZ, revision 77956

Tag 3.0.2 release.

2014-10-05 16:18 VZ, revision 77955

Update README and announcement for 3.0.2 release. Fill in the release date (2014-10-06) and update the changes list.

2014-10-03 16:38 DS, revision 77954

Fix crash with newer OS X builds running on older. Use built-in zlib sources instead of system zlib. Backport of trunk r76382, r76383, and r76385. Closes #16192.

2014-10-03 15:43 DS, revision 77953

Regenerate Xcode projects. Update the Xcode projects to include xh_simplebook.cpp, as well as wxWebView related sources in the iPhone project.

2014-10-03 03:52 VZ, revision 77952

Add stubs for wxDisplayImplX11 functions appearing in the ABI. Add the stubs after the real functions were moved into wxDisplayImplGTK in r76365. This is necessary because wxDisplayImplX11 is wrongly exported from the DLL and so its virtual methods are part of the ABI.

2014-10-03 03:52 VZ, revision 77951

Undo parameter renaming in DoDrawRotatedText(). This doesn't make any difference, of course, but results in a warning from the ABI compliance checker tool, so undo this part of the changes of r74584.

2014-10-03 03:52 VZ, revision 77950

Send events when toggling wxPropertyGrid nodes from keyboard. Closes #15899. [This is the backport of r75665 from trunk.]

2014-10-03 03:52 VZ, revision 77949

Fix wrong wxStatusBar height in wxMSW in some circumstances. Creating the status bar before the menu bar but associating it with the frame after creating the menu bar resulted in a status bar of completely wrong height. Fix this by enforcing the default height on the status bar when it's attached to the frame. Closes #10956. [This is the backport of r76417 from trunk.]

2014-10-03 03:52 VZ, revision 77948

Allow using ESC as accelerator in wxMSW again. This ended up being broken due to an interplay between different unrelated changes (at least r15120 and r41134) which were both correct, but didn't work well together and resulted in not only preventing IsDialogMessage() from handling ESC, but also our own accelerator tables. Fix this by doing the check for IsDialogMessage() brokenness in MSWProcessMessage() itself, just before calling it, instead of doing it in MSWShouldPreProcessMessage() which is (and must be) called before MSWTranslateMessage() which checks for accelerators using ESC. Closes #3813. [This is the backport of r77071 from trunk.]

2014-10-03 03:52 VZ, revision 77947

Fix handling of bitmaps with alpha channel in wxMSW wxImageList. Don't use mask and alpha together, this results in visual artefacts and masks are unnecessary with RGBA bitmaps anyhow. The only potentially problematic remaining case is mixing bitmaps with alpha and mask inside the same image list (as we need to indicate whether we use the mask or not when creating it), but this should probably be rare and in the meanwhile we can at least RGBA bitmaps with image lists, which includes doing this implicitly when they are used as button bitmaps. Also refactor wxBitmap code to extract part of CopyFromIconOrCursor() to allow reusing it in the newly added MSWUpdateAlpha(). See #11476. [This is the backport of r75567 from trunk.]

2014-10-03 03:52 VZ, revision 77946

Fix generic wxSearchCtrl size/layout code. Override DoGetBestClientSize() instead of DoGetBestSize(), as we're really computing just the size of our contents and like this we don't need to hard code platform-dependent border sizes in this control itself. Also use the client size in LayoutControls() for the same reason. This also makes it unnecessary to pass it the width and height as it can find them on its own. And x and y were never used in the first place, so remove them too. Finally, center the bitmaps vertically. Closes #16422. [This is the backport of r77083 from trunk.]

2014-10-03 03:51 VZ, revision 77945

Fix changing the label of a submenu in wxMSW. Use position, not the ID, to find the native menu items to allow the code in wxMenuItem::SetItemLabel() and DoSetBitmap() to also work with submenus and not just the normal items. Closes #16246. [This is the backport of r76676 from trunk.]

2014-10-03 01:49 VZ, revision 77944

Don't export private wxDisplayImplX11 class. This class is only used internally and doesn't need to be exported. In addition to being unnecessary, this also resulted in ABI compatibility check errors after changes to this class in 3.0 branch, so avoid such problems in the future.

2014-10-02 16:35 VZ, revision 77943

Fix wxMSW build in UTF-8 build. Need an explicit cast to convert the buffer returned by wxString::t_str() to a pointer in this case.

2014-10-02 16:35 VZ, revision 77942

Fix wxMSW build in UTF-8 build. Need an explicit cast to convert the buffer returned by wxString::t_str() to a pointer in this case.

2014-10-02 16:35 VZ, revision 77941

Avoid selecting all rows up to UINT_MAX in generic wxDataViewCtrl. Shift clicking in a control with multiple selections without a previous current row attempted to select all rows from the current one up to UINT_MAX which resulted in a program freezing (and probably running out of memory in 64 bit builds). Fix this by explicitly checking for the absence of the current item. Closes #16582.

2014-10-02 12:36 VS, revision 77940

Fix warning when compiling against OS X 10.10 SDK. Something broke NSApp compatibility object in 10.10 and its setDelegate: expects NSFileManagerDelegate, not NSApplicationDelegate, and the compiler warns about. Use the equivalent [NSApplication sharedApplication] object to fix this. Also cast appcontroller to the expected type, because passing untyped object to setDelegate: yields a warning as well.

2014-10-02 12:36 VS, revision 77939

Fix warning when compiling against OS X 10.10 SDK. Something broke NSApp compatibility object in 10.10 and its setDelegate: expects NSFileManagerDelegate, not NSApplicationDelegate, and the compiler warns about. Use the equivalent [NSApplication sharedApplication] object to fix this. Also cast appcontroller to the expected type, because passing untyped object to setDelegate: yields a warning as well.

2014-09-29 19:32 PC, revision 77938

avoid Gtk-WARNING about negative allocation size with GTK3, closes #16563

2014-09-29 06:26 MAR, revision 77937

Allow setting font and brush in DC when the qt painter is not active in wxQT, thanks @seandpagnier

2014-09-29 06:23 MAR, revision 77936

Fix listctrl base window pointer in wxQT, thanks @seandpagnier

2014-09-29 06:21 MAR, revision 77935

Improve specific listctrl wxQT, thanks @seandpagnier

2014-09-29 06:18 MAR, revision 77934

Remove redundant __WXQT__ define, thanks @seandpagnier

2014-09-29 06:16 MAR, revision 77933

Implement readonly dcscreen for wxQT, thanks @seandpagnier

2014-09-29 06:14 MAR, revision 77932

Copy pixmap to match others ctors in wxQT, thanks @seandpagnier This should fix a double free crash

2014-09-29 06:11 MAR, revision 77931

Correct window transparency calculation in wxQT, thanks @seandpagnier

2014-09-29 06:10 MAR, revision 77930

Add inverted flag support to slider in wxQT, thanks @seandpagnier

2014-09-29 06:08 MAR, revision 77929

Improve wx->qt filter mapping logic in wxQT, thanks @seandpagnier

2014-09-29 06:03 MAR, revision 77928

Improve slider implementation in wxQT, thanks @seandpagnier

2014-09-29 06:01 MAR, revision 77927

Block qt signals when manually setting value to avoid emitting an event in wxQT, thanks @seandpagnier

2014-09-29 05:58 MAR, revision 77926

Fix case where widgets may get hidden by qt, thanks @seandpagnier

2014-09-29 05:56 MAR, revision 77925

Enable mouse tracking in wxQT, thanks @seandepagnier This is needed so qt mouse events are triggered without a button pressed. Note that I modified this to prevent a crash if m_qtWindow was null (reproducible with controls sample and the original patch from Sean)

2014-09-29 05:50 MAR, revision 77924

Implement abstract class for wxuniversal in wxQT, thanks @seandepagnier

2014-09-29 05:49 MAR, revision 77923

Remove unused event table in wxQT, thanks @seandepagnier

2014-09-29 05:43 MAR, revision 77922

Support native font info in wxQT, thanks @seandepagnier

2014-09-29 05:20 MAR, revision 77921

Implement more statusbar routines in wxQT, thanks @seandepagnier

2014-09-29 05:18 MAR, revision 77920

Fix wxControl rtti info in wxQT, thanks @seandepagnier

2014-09-29 05:17 MAR, revision 77919

Fix elliptic arc drawing for complete circle in wxQT, thanks @seandepagnier

2014-09-29 05:16 MAR, revision 77918

Discard repeated keyup events in wxQT, thanks @seandepagnier

2014-09-29 05:12 MAR, revision 77917

Allow SetFont to be called before Create in wxQT, thanks @seandepagnier

2014-09-29 05:06 MAR, revision 77916

Correctly handle default position values of -1 in wxQT, thanks @seandepagnier

2014-09-29 05:04 MAR, revision 77915

Allow NULL width and/or height pointer parameters in wxQT, thanks @seandepagnier

2014-09-29 05:01 MAR, revision 77914

Fix frame client size in wxQT, thanks @seandepagnier Compute frame size subtracting statusbar, and handle NULL status bar

2014-09-29 04:59 MAR, revision 77913

Fix issues with dashes in wxQT, thanks @seandepagnier

2014-09-29 04:58 MAR, revision 77912

Handle drawing lines correctly in wxQT, thanks @seandepagnier

2014-09-29 04:55 MAR, revision 77911

Improve wxQT cursor implementation, thanks @seandepagnier

2014-09-28 17:14 VZ, revision 77910

Remove obsolete toolkits mentions from configure. Cocoa, MGL and PM are not supported any more.

2014-09-28 17:14 VZ, revision 77909

Regenerate configure after power sample addition to configure.in. This should have been part of 77511, see #16413.

2014-09-28 01:29 VZ, revision 77908

Don't define wxSelectionStore::NO_SELECTION inline. This results in link errors under Unix for some reason.

2014-09-27 22:51 VZ, revision 77907

Don't leak memory when receiving TaskbarButtonCreated messages. It is possible to receive more than one TaskbarButtonCreated message for the same window, so at the very least don't leak memory if this happens. We really ought to notify the application to allow it to reinitialize the taskbar button in this case though. See #16566.

2014-09-27 22:46 VZ, revision 77906

Centre columns contents vertically in dataview sample. If we specify the horizontal alignment, we also need to specify the vertical alignment as otherwise the right-aligned columns would be also top-aligned, looking out of kilter with the other columns which are centered by default. Closes #16559.

2014-09-27 22:46 VZ, revision 77905

Use wxSelectionStore in wxDataViewCtrl generic implementation. This makes the code (slightly) shorter and more clear and is more efficient as selecting all items in wxDataViewCtrl is now a O(1) operation instead of being O(N), where N is the number of items -- and the latter could take quite a long time (and consume non-negligible amount of memory) for large N. Increase the size of the virtual list control from 1000 to 10000000 in the sample to show this.

2014-09-27 22:46 VZ, revision 77904

Handle multiple item insertion and deletion in wxSelectionStore. Rename the existing but not implemented and never used OnItemAdd() method to OnItemsInserted() and add OnItemsDeleted(), which is more efficient than OnItemDelete() when many items are being removed from the control at once. This is not used yet, but will be used in wxDataViewCtrl soon and maybe in the other controls later.

2014-09-27 22:46 VZ, revision 77903

Add wxSelectionStore::IsEmpty() helper. Just a simple and potentially (although not right now) more efficient equivalent to GetSelectedCount() == 0.

2014-09-27 22:46 VZ, revision 77902

Add possibility to iterate over all selected items in wxSelectionStore. This is necessary for retrieving all the selected items at once: while doing this is not recommended for a control with a potentially very large number of items, it must be possible to allow using wxSelectionStore for wxDataViewCtrl implementation as wxDataViewCtrl must implement its GetSelections() method.

2014-09-27 22:46 VZ, revision 77901

Simplify row selection function in the generic wxDataViewCtrl. No real changes, just don't make SelectRows() more complicated than necessary: it is always called with its arguments in order, so it doesn't need to reorder them and it is never called to deselect the items.

2014-09-27 22:46 VZ, revision 77900

Avoid selecting all rows up to UINT_MAX in generic wxDataViewCtrl. Shift clicking in a control with multiple selections without a previous current row attempted to select all rows from the current one up to UINT_MAX which resulted in a program freezing (and probably running out of memory in 64 bit builds). Fix this by explicitly checking for the absence of the current item. Closes #16582.

2014-09-27 19:26 VZ, revision 77899

Don't add DST offset when converting to local time zone. Local time zone already logically includes DST, even if its offset doesn't account for it (because the offset depends on the date, so it can't be part of TZ itself), so don't add it again when converting to/from it. Closes #16585.

2014-09-27 19:25 VZ, revision 77898

Don't add DST offset when converting to local time zone. Local time zone already logically includes DST, even if its offset doesn't account for it (because the offset depends on the date, so it can't be part of TZ itself), so don't add it again when converting to/from it. Closes #16585.

2014-09-27 18:15 VZ, revision 77897

Revert "Skip mouse button release events in wxGenericListCtrl." This reverts r76825 as it is not necessary any longer, the fix in the previous commit takes care of this problem more generally. See #16365.

2014-09-27 18:15 VZ, revision 77896

Don't prevent the other button release handlers from running in wxGTK. There doesn't seem to be any advantage in doing this, but it can result in problems see #16055. So just always let the other handlers for this event execute as well, even if we did process it.

2014-09-27 18:14 VZ, revision 77895

Revert "Skip mouse button release events in wxGenericTreeCtrl." This reverts r76093 as it broke label editing in the control. See #16055, closes #16573.

2014-09-27 18:14 VZ, revision 77894

Recognize Intel compiler as MSVC one under Windows in the build options. The two compilers are binary compatible and by pretending that Intel compiler is the same as MSVC, we allow using ICC to build applications using DLLs built with MSVC. Closes #9437. (this is a backport of r76425 from trunk).

2014-09-27 18:12 VZ, revision 77893

Revert "Skip mouse button release events in wxGenericListCtrl." This reverts r76824 as it is not necessary any longer, the fix in the previous commit takes care of this problem more generally. See #16365.

2014-09-27 18:12 VZ, revision 77892

Don't prevent the other button release handlers from running in wxGTK. There doesn't seem to be any advantage in doing this, but it can result in problems see #16055. So just always let the other handlers for this event execute as well, even if we did process it.

2014-09-27 18:12 VZ, revision 77891

Revert "Skip mouse button release events in wxGenericTreeCtrl." This reverts r76094 as it broke label editing in the control. See #16055, closes #16573.

2014-09-27 18:12 VZ, revision 77890

Avoid calling SetSize() from wxCompositeWindow::Create() under wxGTK. This was unexpected and resulted in a crash in the case of wxDatePickerCtrl. And while this particular crash could be fixed just by checking for the pointers validity in the overridden wxDatePickerCtrl::SetSize(), it seems better to avoid such unexpected calls to SetSize(), especially as they only happen under wxGTK, which calls SetLayoutDirection(wxLayout_Default) from its wxWindow::Create(), and so wouldn't be found by any amount of testing under other platforms. Closes #16589.

2014-09-26 16:42 VS, revision 77889

Fix handling of MSWWindowProc return value for menu events

2014-09-25 19:29 AW, revision 77888

In wxPropertyGridPageState use Boolean member variables to store Boolean values.

2014-09-25 19:22 AW, revision 77887

Fix saving edited property value when wxPG property is in 'invalid value' state. When wxPGProperty is loosing focus in 'invalid value' state its pending value should be stored before resetting property to 'normal' state because this operation (wxPG::OnValidationFailureReset) also resets pending value. Closes #16587

2014-09-25 18:10 VS, revision 77886

Don't break other toolbars with wxToolBar::OSXSetSelectableTools() wxOSX's implementation used a shared global delegate for all toolbars, which is not only highly unusual, but broke with code that modified the delegate. Specifically, wxPreferencesEditor's window uses OSXSetSelectableTools() to make its toolbar selectable. Because the delegate was shared, all toolbars in the application would start behaving as selectable as soon as the user opened preferences (even after the preferences window was closed). Don't share the delegate. Create a unique copy and store it in wxNSToolbar instance. This isn't particularly elegant solution, but it has the advantage of being binary compatible and simple.

2014-09-25 18:10 VS, revision 77885

Don't break other toolbars with wxToolBar::OSXSetSelectableTools() wxOSX's implementation used a shared global delegate for all toolbars, which is not only highly unusual, but broke with code that modified the delegate. Specifically, wxPreferencesEditor's window uses OSXSetSelectableTools() to make its toolbar selectable. Because the delegate was shared, all toolbars in the application would start behaving as selectable as soon as the user opened preferences (even after the preferences window was closed). Don't share the delegate. Create a unique copy and store it in wxNSToolbar instance. This isn't particularly elegant solution, but it has the advantage of being binary compatible and simple.

2014-09-25 14:29 VS, revision 77884

Make toggle toolbar button emulation on OS X nicer Actually use gray background behind toggled icon. Remove the ugly black frame. Increase rounded rectangle's radius so that it is (barely) visible that the rectangle is rounded. Previously, the code used wxLIGHT_GREY by mistake, which is the same color as the toolbar already uses, so toggled items were rendered with the same background as untoggled, only with an ugly black rectangle around them.

2014-09-25 14:29 VS, revision 77883

Make toggle toolbar button emulation on OS X nicer Actually use gray background behind toggled icon. Remove the ugly black frame. Increase rounded rectangle's radius so that it is (barely) visible that the rectangle is rounded. Previously, the code used wxLIGHT_GREY by mistake, which is the same color as the toolbar already uses, so toggled items were rendered with the same background as untoggled, only with an ugly black rectangle around them.

2014-09-24 16:55 VZ, revision 77882

Fix compilation of generic renderer DrawGauge() in non-PCH build. Include "wx/msw/wrapwin.h" explicitly to get the declaration of MulDiv() needed since the changes of r77748. Closes #16577.

2014-09-24 14:59 JS, revision 77881

Fixes for visibility, GetVisibleLineForCaretPosition, and bitmap drawing slowness

2014-09-24 14:52 JS, revision 77880

Improved search text control height and position on Windows. Was previously much too tall (regression from 3.0).

2014-09-24 14:48 JS, revision 77879

Corrected border size for wxBORDER_THEME

2014-09-24 14:48 JS, revision 77878

Corrected border size for wxBORDER_THEME

2014-09-24 05:39 PC, revision 77877

avoid duplicate initialization and warnings about initialization order

2014-09-24 04:04 RD, revision 77876

Add cairo_image_surface_get_[width|height] to the wxCairo dynamic importer

2014-09-24 04:03 RD, revision 77875

Add cairo_image_surface_get_[width|height] to the wxCairo dynamic importer

2014-09-23 19:45 VZ, revision 77874

Detabify the new wxX11 clipboard sources. No changes, just whitespace cleanup.

2014-09-23 19:45 VZ, revision 77873

Avoid deprecated wxPen/wxBrush/wxFont API in wxX11 code. Also simplify the code by relying on implicit constructors of wxPen and wxBrush from wxColour.

2014-09-23 19:45 VZ, revision 77872

Avoid signed/unsigned comparison warnings. Also declare the variable only used inside the loop in the loop statement itself.

2014-09-23 19:44 VZ, revision 77871

Remove unused TRACE_CLIPBOARD variable from wxX11 wxClipboard code. wxLogTrace() calls using this apparently were removed, so remove the trace mask as well to avoid "unused variable" warnings about it.

2014-09-23 19:44 VZ, revision 77870

Remove trivial difference with master before merge. Somehow an empty line got removed in the AUI sample, restore it.

2014-09-23 19:44 VZ, revision 77869
  • D /wxWidgets/trunk/src/univ/.textctrl.cpp.swp

Remove accidentally committed swap file.

2014-09-23 19:44 VZ, revision 77868

Initialize the member at first, make sure it would not cause segementation fault on the platform that not define wxHAS_RAW_BITMAP, the true init and assign function called within it

2014-09-23 19:44 VZ, revision 77867

remove these codes. The code could not work correctly under x11. Redesigning

2014-09-23 19:44 VZ, revision 77866

no changes, add more specific description of these tests.

2014-09-23 19:44 VZ, revision 77865

store the raw data in bitmap to m_buffer that in wxCairoBitmapData

2014-09-23 19:44 VZ, revision 77864

merge to independent preprocessor to one check.

2014-09-23 19:44 VZ, revision 77863

let wxCairoContext could create cairo context correctly under x11 in this constructor

2014-09-23 19:44 VZ, revision 77862

This statement that will cause segmentation fault before. Now it ok and enable it

2014-09-23 19:44 VZ, revision 77861

remove unnecessary Clear() and wrong delete

2014-09-23 19:44 VZ, revision 77860

use wxCharTypeBuffer replace unsigned char pointer

2014-09-23 19:44 VZ, revision 77859

delete variable on stack is wrong, remove it

2014-09-23 19:44 VZ, revision 77858

remove unnessary internal variables, parameters; use wxVector replace c++ array; enable implemented function parameter

2014-09-23 19:44 VZ, revision 77857

adjust codes according to comments of Catalin

2014-09-23 19:44 VZ, revision 77856

add return to a case statment, make sure it is not fall through to other statment

2014-09-23 19:44 VZ, revision 77855

add WXX11 check. make sure only reposition scrollbar under x11

2014-09-23 19:44 VZ, revision 77854

use cairo implement rotated text

2014-09-23 19:44 VZ, revision 77853

make x11 dc could get cairo context, so the graphic module could use in x11. This use cairo xlib backend.

2014-09-23 19:44 VZ, revision 77852

fix complilation error: narrowing conversions in xbm files under wxX11. For discussion, please see ticket 12575

2014-09-23 19:43 VZ, revision 77851

update wxBrush and wxPen style in x11/dcclient.cpp

2014-09-23 19:43 VZ, revision 77850

wxSTC need to reposition the scrollbar when recive size change event.

2014-09-23 19:43 VZ, revision 77849

change the size of checkbox and radiobutton, the 14*14 is most common used size

2014-09-23 19:43 VZ, revision 77848

Rewrite the wxX11 cliboard

2014-09-23 19:43 VZ, revision 77847

x11 alrady support GetUnicodeKey() by last commit, remove these check

2014-09-23 19:43 VZ, revision 77846

make wxKeyEvent could get unicode key under x11, add a x11 keysym--unicode char map tab

2014-09-23 19:43 VZ, revision 77845

improve the commit according the comments of Catalin

2014-09-23 19:43 VZ, revision 77844

we must store the to be focused window before we kill focus on a window

2014-09-23 19:43 VZ, revision 77843

Remove the dead code that copied from gtk1 port. And initial implementation of x11 clipboard support. It only support text for now

2014-09-23 19:43 VZ, revision 77842

enable wxNEEDS_UTF8_FOR_TEXT_DATAOBJ flag for x11 TextDataObject, and add implementation of GetAllFormat function

2014-09-23 19:43 VZ, revision 77841

Should not send event again when mouse release.

2014-09-23 19:43 VZ, revision 77840

input handler should coreesponding the widget instance, wxListBox and wxCheckListBox has its own input handler, so create it differenctly

2014-09-23 19:43 VZ, revision 77839

refine the condition check and correct a check condition

2014-09-23 19:43 VZ, revision 77838

wxX11 could not get UnicodeKey yet, not wxUniversal. And use AND instead OR. otherwise the check not work.

2014-09-23 19:43 VZ, revision 77837

add wxYield to make sure all event was executed.

2014-09-23 19:43 VZ, revision 77836

Modifiers down should not generate wxEVT_CHAR event, and reset keyboardState when recieve modifiers up.

2014-09-23 19:43 VZ, revision 77835

refine the implementation of SetFocus, clean up unused static variables

2014-09-23 19:42 VZ, revision 77834

about focused window, replace static variables implementation by DoFindFocus

2014-09-23 19:42 VZ, revision 77833

wxX11 return keycode by GetKeyCode directly, not support GetUnicodeKey yet

2014-09-23 19:42 VZ, revision 77832

add wxYield() after SetFocus, make sure the all event will be executed.

2014-09-23 19:42 VZ, revision 77831

replace DoSetValue by ChangeValue, which do not send event too, and consistent with docs.

2014-09-23 19:42 VZ, revision 77830

completely disable the style in wxChoice constructor in wxUniv is wrong

2014-09-23 19:42 VZ, revision 77829

call DoSetValue directly will allow us not send event.

2014-09-23 19:42 VZ, revision 77828

wxComboCtrl::Clear() will call wxComboCtrl::SetValue(), but wxItemContainer::Clear() will call it too. So no need to call wxComboCtrl::Clear() here

2014-09-23 19:42 VZ, revision 77827

disable the unit test under wxUniv too. wxGrid implementation may has bug that work with simulator

2014-09-23 19:42 VZ, revision 77826

add GetLabel/SetLabel implementation to wxWindowX11, the function just store the label string, but do nothing with it

2014-09-23 19:42 VZ, revision 77825

reenable this tests under wxUniv/x11 port. EventPropagationTestCase::MenuEvent cause the problem, not these. MenuEvent will be fixed later

2014-09-23 19:42 VZ, revision 77824

check the return value of DoInsert and DoAppend, if failed, return NULL immediately

2014-09-23 19:42 VZ, revision 77823

refine the wxEVT_TEXT_MAXLEN event handle implementation

2014-09-23 19:42 VZ, revision 77822

add check, if insert item failed, then return null

2014-09-23 19:42 VZ, revision 77821

adjust the implementation about max length limitation according review comments

2014-09-23 19:42 VZ, revision 77820

modify the listbasetest.(10,5) is not a correct position in wxUniv/x11 listbase test. (10, 10) could work both on wxUniv/x11 and other ports(already tested)

2014-09-23 19:42 VZ, revision 77819

add maxline restriction in single line mode textCtrl. let textctrl will fire wxEVT_TEXT_MAXLEN and not recive the chars when the text length beyond the maxlength

2014-09-23 19:42 VZ, revision 77818

set enc to wxUnusedVar in unicode mode, remove the old ugly code

2014-09-23 19:42 VZ, revision 77817

in unicode, we did not need the font encoding parameter

2014-09-23 19:41 VZ, revision 77816

adjust code to apply the wx coding guidelines

2014-09-23 19:41 VZ, revision 77815

free the data in deconstructor that created in constructor

2014-09-23 19:41 VZ, revision 77814

the font data have to stroe in m_nativeFontInfo, otherwise the constructor that use wxNavtiveFontInfo as parameter could not retrive the data in it.

2014-09-23 19:41 VZ, revision 77813

Add get/set strikeline support to wxFont/x11.

2014-09-23 19:41 VZ, revision 77812

make wxPalette under x11 could store/get uchar RGB value in palette and also could get the color number in palette.

2014-09-23 19:41 VZ, revision 77811

Make sure the behaviour of slider in wxUniv is consistent with other ports, left to min, right to max

2014-09-23 19:41 VZ, revision 77810

Make the comment more accurate, and the SetFocus is comment before, this is just restore it

2014-09-23 19:41 VZ, revision 77809

treat -1 as the last position in wxTextCtrl::SetInsertionPoint

2014-09-23 19:41 VZ, revision 77808

Make slider thumb could moving when use mouse drag it, and also set the slider value according to the thumb position

2014-09-23 19:41 VZ, revision 77807

Mouse capture data should only release when mouse release. And also make sure the data will delete in desconstructor

2014-09-23 19:41 VZ, revision 77806

Add wxEVT_SLIDER support to wxSlider under wxUniv

2014-09-23 19:41 VZ, revision 77805

add wxYield() to make sure the former event will executed done

2014-09-23 19:41 VZ, revision 77804

In wxUniv x11 port. Should not set focus to popup control

2014-09-23 19:41 VZ, revision 77803

after analisys the behaviour of treectrl in GTK and Qt, right arrow should not move down. Expand the current item will be fine

2014-09-23 19:41 VZ, revision 77802

after reset the m_current(focused item) in ClearFocusedItem(), the test could pass under wxUniv. Due to wxGTK and wxOSX use it in same way. So remove the check in test

2014-09-23 19:41 VZ, revision 77801

ClearFocusedItem should reset the selected item

2014-09-23 19:41 VZ, revision 77800

add wxYield() after SetFocus(), set focus event needs to be processed before the control can accept input

2014-09-23 19:41 VZ, revision 77799

add a check, make sure some action key could generate wxEVT_TEXT event. That is needed in some control, such as wxSpinCtrl

2014-09-23 19:40 VZ, revision 77798

When append menu with titlt, the menu should set the title

2014-09-23 19:40 VZ, revision 77797

revised wxRadioButton draw function

2014-09-23 19:40 VZ, revision 77796

rewrite the radio button draw function under gtk theme

2014-09-23 19:40 VZ, revision 77795

Fix the position calculating of insert a radio menu item

2014-09-23 19:40 VZ, revision 77794

make sure the first item of a radio group is checked by default

2014-09-23 19:40 VZ, revision 77793

use DoGetValue() in parent class will be enough, and add readonly support to SetValue()

2014-09-23 19:40 VZ, revision 77792

wxListBox in wxUniv need to overwrite DoListHistTest function, otherwise Listbox::HitTest will call DoListHitTest in wx/listbox.h, which will always return wxNOT_FOUND

2014-09-23 19:40 VZ, revision 77791

if call SetSelection by wxNOT_FOUND in listbox of wxUniv, just deselect all

2014-09-23 19:40 VZ, revision 77790

When call EnsureVisible in wxUniv, make sure reset visible lines range correctly.

2014-09-23 19:40 VZ, revision 77789

Adjust code, to consistent with the coding style

2014-09-23 19:40 VZ, revision 77788

wxCheckListBox must clear the object that created in parent class

2014-09-23 19:40 VZ, revision 77787

Add GetBitmap support to wxButton in wxUniv

2014-09-23 19:40 VZ, revision 77786

If string are empty, DoGetTextExtent should not return descent by a random value

2014-09-23 19:40 VZ, revision 77785

These test will cause test_gui segmentation fault, disable for now.

2014-09-23 19:40 VZ, revision 77784

Enable these wxRegion constructor for x11 port

2014-09-23 19:40 VZ, revision 77783

The unit test will use WX_ASSERT_FAILS_WITH_ASSERT to check DoSetRegion(test/geometry/region.cpp:101) eventually, and the macro could handle exception, not true or false. Change it consistent with other port

2014-09-23 19:40 VZ, revision 77782

Adjust the bitmapButton size according the bitmap size when set bitmap to BitmapButton in wxUniv port

2014-09-23 19:39 VZ, revision 77781

wxColurRefData in x11 did not overwrite CreateRef function, so it should not use AllocExclusive(), use UnRef() instead, just like InitRGBA() function in wxGTK port did

2014-09-23 19:39 VZ, revision 77780

wxUniv not support unicode yet

2014-09-23 19:39 VZ, revision 77779

Add more evidential comments, adjust code to follow coding style

2014-09-23 19:39 VZ, revision 77778

Fix the prepocessor directive, from __WXOSX_COCOA__ to __WXOSX__

2014-09-23 19:39 VZ, revision 77777

Make wxSlider behaviours in wxUniv same as other ports, and generate proper wxScrollEvent

2014-09-23 19:39 VZ, revision 77776

Add wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS event to wxX11

2014-09-23 19:39 VZ, revision 77775

wxX11 use XColor directly, so wxX11 does not support alpha at all currently

2014-09-23 19:39 VZ, revision 77774

GetLabel should return the original label that with mnemonics, the original label stored in wxControlBase m_labelOrig, get it by wxControlBase::GetLabel()

2014-09-23 19:39 VZ, revision 77773

Fix `Error: Failed to initialize GUI: no built-in themes found` when run gui and load theme, by add WX_USE_THEME in the place that create them object

2014-09-23 19:39 VZ, revision 77772

Adjust comments

2014-09-23 19:39 VZ, revision 77771

Fix code input mistakes and type convertion

2014-09-23 19:39 VZ, revision 77770

Remove the conditional preprocessor directive around wx/stockitem.h, the head file not cause any problem, revert the mistake that I made in 2e2b1313d97ea1c79a396333f40872157fd629d4

2014-09-23 19:39 VZ, revision 77769

Solve textctrl handle char type event twice error, correct the insertion point calculation

2014-09-23 19:39 VZ, revision 77768

as convention, if a text range is (x, -1), it means from x to the end, so if `to` was -1, set it to the last position

2014-09-23 19:39 VZ, revision 77767

in wxUniv, non-editable textctrl must be set focus, so that could get input value

2014-09-23 19:39 VZ, revision 77766

in wxGTK, wxOSX/Cocoa, plus wxUniv, GetNumberOfLines() always returns the number of logical, not physical, lines. See #12366, maybe they did not test wxUniv at that time.

2014-09-23 19:39 VZ, revision 77765

wxUniv focus on wx11 port, so modified unv/theme.h, make GTK theme as the default theme

2014-09-23 19:39 VZ, revision 77764

add if preprocessor directive, if wxUniv build with MSW, include wx/stockitem.h, others are not. with x11 and this head file will cause error

2014-09-23 19:39 VZ, revision 77763

Add wx/stockitem.h to univ/button.cpp and univ/tglbtn.cpp, to fix wxUniv MSW complitaion error

2014-09-23 19:38 VZ, revision 77762

Click scrollbar will cause recapture mouse twice error, add check sentence before capture and release mouse in HandleMouse()

2014-09-23 19:38 VZ, revision 77761

Release the mouse and capture data at the end of the function. This was not always done before and it was wrong because other event such as mouse left up will not release mouse

2014-09-23 19:38 VZ, revision 77760

wxX11 wxFont miss the wxFont (const wxString &nativeInfoString) ctor, it will cause build tests failed. Added and fixed

2014-09-23 19:38 VZ, revision 77759

Refactor: create src/univ/anybutton.cpp. Extract and pull the common functions from wxButton and wxToggleButton to wxAnyButton in wxUniv too. Also make wxToggleButton inherit from wxToggleButtonBase correctly

2014-09-23 18:37 PC, revision 77758

cairo_image_surface_get_{width,height} have been available in cairo since version 1.0

2014-09-21 13:51 VZ, revision 77757

Fix wxCompositeWindow compilation after the latest change. SetSize() doesn't have any dependent parameters so call it via an explicit "this->" to make it work with standard conforming compilers (and not MSVC).

2014-09-21 03:41 VZ, revision 77756

Update layout of wxCompositeWindow on layout direction change. The children layout will almost always depend on the layout direction, so redo it when the latter changes. In particular, this fixes changing the layout of wxSpinCtrlDouble under MSW. See #11583.

2014-09-21 03:41 VZ, revision 77755

Fix setting layout direction for wxSpinCtrl in wxMSW. Position the spin control components (the button and the text) correctly for the current layout. Also update the layout of the text explicitly. See #11583.

2014-09-21 03:41 VZ, revision 77754

Fix setting layout direction for wxComboBox in wxMSW. The EDIT control used by the native combobox is different from normal EDIT controls and has to be handled specially. We also need to explicitly forward WS_EX_LAYOUTRTL to the dropdown window as it doesn't inherit it from the combobox itself automatically. See #11583.

2014-09-21 03:41 VZ, revision 77753

Don't leak global objects in Direct2D code. Ensure that all globals are freed on library shutdown by using a module just to perform this cleanup.

2014-09-21 03:41 VZ, revision 77752

Don't call CoInitializeEx() from Direct2D code. This is unnecessary, COM is already initialized on the application startup and Direct2D can't be used before that anyhow. This also fixes lack of matching CoUninitialize() call.

2014-09-21 00:12 VZ, revision 77751

Document wxWindow::HitTest(). This is not a very useful method, but by providing at least some documentation for it, we prevent it from inheriting the docs for the next method, which have nothing to do with it.

2014-09-21 00:07 VZ, revision 77750

Fix double release in wxGLCanvas code. The change in r77701 was partially wrong, we shouldn't release Objective-C object if initializing it failed. See #16555.

2014-09-21 00:07 VZ, revision 77749

Avoid integer overflow/wraparound in wxString::Mid(). Don't compare nLength with "nFirst + nCount" as this could wrap around. Compare nCount with maximal allowed count, after ensuring that nFirst itself is valid first, instead. Closes #16572.

2014-09-21 00:07 VZ, revision 77748

Use wxMulDivInt32() instead of multiplying and dividing ints with doubles. This is mostly done to avoid warnings about converting the result of multiplying and dividing an int by doubles back to int, but is also more correct as wxMulDivInt32() rounds the result correctly instead of truncating the fractional part, and is also a tiny bit more efficient under MSW where the native ::MulDiv() is available.

2014-09-21 00:07 VZ, revision 77747

Make wxTextCtrlOleCallback destructor virtual to avoid g++ warnings. This class doesn't really need a virtual dtor as it's never used polymorphically, but add it to avoid g++ warnings about it.

2014-09-21 00:07 VZ, revision 77746

Fix harmless g++ warning about "using NULL in arithmetic". ::SetThreadExecutionState() returns a DWORD, which is not a pointer, so compare its return value with 0, not NULL.

2014-09-21 00:07 VZ, revision 77745

Don't use wxMSW wxAppProgressIndicator if wxUSE_TASKBARBUTTON==0. This class requires wxTaskBarButton to be really implemented, so there is no need to even define the MSW-specific version of it if wxUSE_TASKBARBUTTON is 0 anyhow. This fixes a compilation problem with wxUSE_TASKBARBUTTON==0 but, more importantly, just makes more sense.

2014-09-21 00:07 VZ, revision 77744

Show the message of unexpected message boxes in wxTestingModalHook. This is more informative than showing just the title and we can do it for the message boxes and it's worth handling them specially just because they are so common.

2014-09-21 00:07 VZ, revision 77743

Allow customizing unexpected dialogs description in wxTestingModalHook. Extract creation of the message describing an unexpected dialog in a separate virtual method in order to allow customizing it, notably in order to add more useful description of custom application dialogs.

2014-09-21 00:07 VZ, revision 77742

Mention the title of the unexpected dialog in wxTestingModalHook. It's not very helpful to just say that an unexpected dialog was shown, using its title provides at least some hint as to what dialog it was.

2014-09-21 00:07 VZ, revision 77741

Return the caption from wxMessageDialog::GetTitle(). It was unexpected that wxMessageDialog::GetTitle() returned empty string even when non-empty caption, which is just another word for title, was specified. Implement GetTitle() as synonym for GetCaption() and also provide SetTitle() for consistency.

2014-09-21 00:06 VZ, revision 77740

Fix double release in wxGLCanvas code. The change in r77699 was partially wrong, we shouldn't release Objective-C object if initializing it failed. See #16555.

2014-09-20 21:57 AW, revision 77739

Use wxPropertyGrid::HasInternalFlag() function to check internal flags.

2014-09-20 21:46 AW, revision 77738

Fix manual selection of custom colour item for wxColourProperty and wxSystemColourProperty in wxPG. If keyword 'custom' is entered into the edit field of wxColourProperty or wxSystemColourProperty (with wxPGEditor_ComboBox) then dialog box to query for custom colour should be invoked. Afterwards, when control value is updated, its selection index should be also updated respectively.

2014-09-20 01:56 RD, revision 77737

Oops, a '{' got lost somewhere from the last commit...

2014-09-20 01:44 RD, revision 77736

Oops, a '{' got lost somewhere from the last commit...

2014-09-20 01:28 RD, revision 77735

I'm not totally sure when they were added, but the cairo_image_surface_get_[width|height] functions are not available in cairo 1.10.2.

2014-09-20 01:21 RD, revision 77734

I'm not totally sure when they were added, but the cairo_image_surface_get_[width|height] functions are not available in cairo 1.10.2.

2014-09-19 13:51 VZ, revision 77725

Avoid integer overflow/wraparound in wxString::Mid(). Don't compare nLength with "nFirst + nCount" as this could wrap around. Compare nCount with maximal allowed count, after ensuring that nFirst itself is valid first, instead. Closes #16572.

2014-09-18 16:52 JJ, revision 77724

Synchronizing setup.h_vms with setup.h.in

2014-09-18 16:40 JS, revision 77723

Implemented vertical image alignment.

2014-09-18 16:39 JS, revision 77722

Implemented vertical image alignment.

2014-09-18 02:03 VZ, revision 77721

Document wxGraphicsContext::CreateBitmapFromNativeBitmap() ownership rules. Mention that it takes ownership of the native bitmap passed to it.

2014-09-18 02:02 VZ, revision 77720

Fix crash when creating wxGraphicsBitmap from cairo_surface_t. Initialize m_buffer to avoid crashes when deleting it in Cairo-based wxGraphicsContext implementation for bitmaps created from the native ones. Don't leave the bitmap size uninitialized neither, this might not result in crashes, but is definitely wrong as well.

2014-09-18 02:01 VZ, revision 77719

Document wxGraphicsContext::CreateBitmapFromNativeBitmap() ownership rules. Mention that it takes ownership of the native bitmap passed to it.

2014-09-18 02:01 VZ, revision 77718

Fix crash when creating wxGraphicsBitmap from cairo_surface_t. Initialize m_buffer to avoid crashes when deleting it in Cairo-based wxGraphicsContext implementation for bitmaps created from the native ones. Don't leave the bitmap size uninitialized neither, this might not result in crashes, but is definitely wrong as well.

2014-09-17 12:15 VZ, revision 77717

Update information about wxOSX/Cocoa in the platform overview. Mention that OS X 10.7 is now required and that Cocoa is preferred to Carbon now.

2014-09-16 18:05 SC, revision 77716

backport, fixes #16564

2014-09-16 18:04 SC, revision 77715

fixing #16564, partly reverting r76426

2014-09-16 14:50 PMO, revision 77714

Re-added wxQtPointer smart pointer for easier memory management.

2014-09-15 19:27 VZ, revision 77711

Don't define wxUSE_GRAPHICS_GDIPLUS as 1 by default. Define it and wxUSE_GRAPHICS_DIRECT2D, when it's supposed to be enabled, as wxUSE_GRAPHICS_CONTEXT instead. This ensures they are set to 0 if the use of wxGraphicsContext is entirely disabled, as is the case when using MinGW under MSW by default for example. Closes #16558.

2014-09-15 19:27 VZ, revision 77710

Remove wrong freshness check from build/update-setup-h script. This didn't work correctly if a header was updated from its corresponding setup0.h first as it was then newer than include/wx/msw/setup_inc.h even though it had been older than it at the start of the script execution. Just keep things simple and get rid of the check.

2014-09-15 18:01 VZ, revision 77709

Get rid of IsOk() accessor in Cairo implementation code. This was quite useless as m_ok flag was public anyhow, just use it directly. Incidentally closes #16560.

2014-09-15 14:04 VZ, revision 77708

Portuguese translations update from @mansil. Closes PR #16.

2014-09-15 01:58 VZ, revision 77707

Always include wxGA_PROGRESS in wxGauge styles enumeration. It can still be used even if it's not available under the current platform.

2014-09-15 01:58 VZ, revision 77706

Make wxAppProgressIndicator actually usable. First of all, do define it under non-MSW platforms. Second, don't crash in it when running under XP where wxTaskBarButton is not available. Also add IsAvailable() method to check for its availability explicitly and add a demonstration of this class to the dialogs sample.

2014-09-15 01:58 VZ, revision 77705

Use factory function for wxTaskBarButton creation. This allows to encapsulate checking for errors, which should be handled when using this class as task bar buttons API is not available under Windows XP.

2014-09-15 01:58 VZ, revision 77704

Revert "Avoid generating wxEVT_MENU_OPEN and CLOSE for disabled menus in wxMSW." The check for top level menus being disabled added in r77657 is broken as it's used, with the expectedly bad consequences, for non top level menus as well, as can be seen by opening any submenu, so revert it. See #2168.

2014-09-15 01:58 VZ, revision 77703

Don't crash under XP in the taskbar button sample. Refuse to run if the taskbar button API is not available. This wouldn't make much sense anyhow and is the simplest thing to do.

2014-09-15 01:58 VZ, revision 77702

Update progress immediately in the taskbar button sample. Handle all scroll events instead of just wxEVT_SCROLL_CHANGED which was probably done accidentally.

2014-09-15 01:08 VZ, revision 77701

Request hardware accelerated GL under OS X only if it's available. Otherwise wxGLCanvas creation just fails completely when it isn't, e.g. when running inside a VM. Closes #16555.

2014-09-15 01:08 VZ, revision 77700

Blind fix to wxiOS build after strike-through fixes. This should correct build breakage caused by r77695.

2014-09-15 01:08 VZ, revision 77699

Request hardware accelerated GL under OS X only if it's available. Otherwise wxGLCanvas creation just fails completely when it isn't, e.g. when running inside a VM. Closes #16555.

2014-09-15 01:08 VZ, revision 77698

fixes 64 bit to 32 warnings, see #16329

2014-09-14 20:11 SC, revision 77697

fixing memory leak

2014-09-14 19:07 AW, revision 77696

Use special code to identify custom colour in wxPG. There is already defined a special code (wxPG_COLOUR_CUSTOM) to identify custom colour in wxColourProperty and wxSystemColourProperty but in practice item representing this colour is identified either by position (it is assumed it as always last item) or by fixed text label. This inconsistency makes the code unclear and can lead to problems (see workaround r76627). Now, only wxPG_COLOUR_CUSTOM code is used to identify custom colour and hence "custom colour" item doesn't need to be the last item in the collection and doesn't need to have a fixed text label (like "Custom").

2014-09-14 13:17 VZ, revision 77695

Fixes to wxFont strike-through support in wxOSX. Don't create strike-through fonts by default. Also add support for strike-through in wxCarbon.

2014-09-14 03:00 VZ, revision 77694

Return to using GDI+ by default in wxGraphicsContext under MSW. Unfortunately Direct2D-based wxGraphicsRenderer is not ready for use yet as it doesn't draw lines with width 0, which are commonly used. The code using it in GetDefaultRenderer() will need to be restored when this bug is fixed.

2014-09-14 03:00 VZ, revision 77693

Fix memory leak when creating new Direct2D-based wxGraphicsContext. ID2D1DCRenderTarget was leaked every time a wxD2DContext was created because a raw pointer was given to wxCOMPtr<> which didn't take its ownership. Use wxCOMPtr instead of the raw pointer to fix this and also fix more rare but still possible leak in case of error. This fixes out of memory errors and crashes in the drawing sample after a few seconds of constant window resizing/repainting.

2014-09-14 03:00 VZ, revision 77692

Allow selecting wxGraphicsRenderer to use in the drawing sample. In particular, allow switching between GDI+ and Direct2D under Windows, which is very convenient for comparing the rendering results. This can also be useful when using Cairo.

2014-09-14 03:00 VZ, revision 77691

Split screen selection in a separate menu in the drawing sample. No real changes, just make the "File" menu (which was also renamed to "Drawing" as it has nothing to do with files) less long by splitting off the screen selection in a separate menu.

2014-09-14 02:59 VZ, revision 77690

Avoid creating wxGraphicsContext in the drawing sample unnecessarily. This is not only wasteful, but creating a Direct2D surface associated with a wxDC makes it impossible to paint on the DC using GDI functions, so this completely broke the initial display in the sample.

2014-09-14 02:59 VZ, revision 77689

Fix wxCALL_FOR_EACH() to work with more than 2 arguments with MSVC. Due to a bug in MSVC handling of __VA_ARGS__ (see https://connect.microsoft.com/VisualStudio/feedback/details/380090/variadic-macro-replacement) wxCALL_FOR_EACH() didn't work correctly as long as more than two arguments were used with it. Work around the bug by protecting __VA_ARGS__ from being incorrectly passed as a single token to the macro being called on every step: this was already done for wxCALL_FOR_EACH itself with wxCALL_FOR_EACH_, but we need to do it for all the helper macros too. Also add a test checking that this does, actually, work.

2014-09-14 02:59 VZ, revision 77688

Fix crash in wxMDIParentFrame dtor after taskbar branch merge. wxFrame::m_taskBarButton needs to be initialized in its Init(), not Create(), which is not necessarily used by the derived classes such as wxMDIParentFrame, resulting in a guaranteed crash when deleting an uninitialized pointer later in wxFrame dtor.

2014-09-13 22:45 AW, revision 77687

Fix vertical positioning of text field in the combo box editor associated with wxPG property under wxMSW. Vertical position of text field in wxOwnerDrawnComboBox control (instantiated at property selection) doesn't need any special adjustment. Closes #16556.

2014-09-12 13:31 VZ, revision 77686

Accept "default" as font family value in XRC. Map it to wxFONTFAMILY_DEFAULT, just as we do for all other wxFontFamily enum elements. Closes #16549.

2014-09-12 13:31 VZ, revision 77685

Accept "default" as font family value in XRC. Map it to wxFONTFAMILY_DEFAULT, just as we do for all other wxFontFamily enum elements. Closes #16549.

2014-09-11 22:33 VZ, revision 77684

Simplify Direct2D DLLs loading code a little. Bail out earlier: if d2d1.dll is not there, it doesn't make sense to try to load dwrite.dll. Also use Load() return value directly instead of ignoring it and then checking for IsLoaded().

2014-09-11 22:33 VZ, revision 77683

Suppress error messages when checking for Direct2D availability. Use wxDL_QUIET flag when loading Direct2D DLLs as we're prepared to handle their absence and don't need to show error messages if they're not available.

2014-09-11 19:05 VZ, revision 77682

Implement strike-through support in wxFont in wxOSX. Implement support for this attribute in wxOSX too. Closes #16547.

2014-09-11 19:05 VZ, revision 77681

Fix error message about ChangeWindowMessageFilter() on startup under XP. Use wxDynamicLibrary::RawGetSymbol() (from inside wxDL_INIT_FUNC() macro) instead of GetSymbol() to avoid the error message which was given every time a new wxFrame was created after wxTaskBarButton changes under XP as ChangeWindowMessageFilter() function is not available in it. Also simplify the code a little and don't make pfnChangeWindowMessageFilter static, we don't need to keep it around.

2014-09-11 13:37 VZ, revision 77680

Fix Direct2D code compilation in non-Unicode build. DirectWrite GDI interop only works with Unicode LOGFONTW, so use it explicitly instead of LOGFONT which is LOGFONTA in non-Unicode build.

2014-09-10 18:52 VZ, revision 77669

Fix wxUSE_GRAPHICS_DIRECT2D definition in setup.h files. Define it in wx/msw/setup_inc.h and not in wx/msw/setup0.h itself to ensure that it survives the regeneration of this file using build/update-setup-h. Also only set wxUSE_GRAPHICS_DIRECT2D to 1 for VC10+ and not VC9 as the latter lacks Direct2D header in its default SDK version. Finally also update comments to explain the various settings more clearly and remove outdated information (wxGraphicsContext is not experimental any more).

2014-09-10 18:52 VZ, revision 77668

Convert Direct2D source file to Unix EOL format. No other changes.

2014-09-10 18:52 VZ, revision 77667

Use ID2D1Bitmap instead of ID2D1Image. ID2D1Image is not defined in v7.0A platform SDK used by VC10 and doesn't seem to be needed here as we are only working with ID2D1Bitmaps (deriving from ID2D1Image) anyhow.

2014-09-10 18:52 VZ, revision 77666

Don't use enum name for qualifying enum element. This is a non-standard MSVC extension and can't be done in standard C++.

2014-09-10 18:52 VZ, revision 77665

Remove PI definition from Direct2D wxGraphicsContext code. The line defining PI didn't compile with VC10 because atan(1) is ambiguous (argument could be float, double or long double). And it was not needed anyhow as PI was not used anywhere (and if it were, we should be just using M_PI from wx/math.h anyhow), so simply remove it.

2014-09-10 18:52 VZ, revision 77664

Fix build with g++ 3.4 with -pedantic[-errors] option. The use of variadic macros results in a warning/error if -pedantic[-errors] is used when compiling C++98 code as they are only formally part of C99 (or C++11). With g++ 4 and later, this can be avoided by using -Wno-variadic-macros option, but it doesn't exist in g++ 3, so a nasty workaround in the header itself is required: mark it as system header in order to fix compilation.

2014-09-10 18:52 VZ, revision 77663

Don't skip wxHtmlContainerCell layout, even when the width is 0. This ensures that wxHtmlContainerCell height is set to some reasonable value instead of 0 and fixes infinite loop which occurred in some circumstances in wxGTL when trying to allocate size for wxHtmlListBox as it oscillated between having a vertical scrollbar with bigger width and not having it with smaller width. The latter was wrong as decreasing the width to 0 didn't really obviate the need for the vertical scrollbar and was just an artefact due to not setting wxHtmlContainerCell height at all in this case.

2014-09-10 18:52 VZ, revision 77662

Add wxUIActionSimulator::Select(). Add a helper to select an item in a wxChoice, wxComboBox, wxListBox or similar.

2014-09-10 18:51 VZ, revision 77661

Fix crash in unit tests after TextEntryTestCase::Editable(). The class TextEventHandler added in r77057 (see #3901) setup an event handler which wasn't disconnected when the handler was destroyed, which resulted in a crash later as the window it was connected to continued to exist and generate wxEVT_TEXT events.

2014-09-10 18:51 VZ, revision 77660

Set layout direction for all wxCompositeWindow parts. Forward SetLayoutDirection() to both the base class and all the children, just as we already do for the other setters. See #11583.

2014-09-10 18:51 VZ, revision 77659

Simplify and make more flexible wxCompositeWindow::SetForAllParts(). Allow calling any function compatible with the argument type instead of requiring "bool" return type and the exact match of the parameter type, which forced us to define a separate DoSetForAllParts() helper. See #11583.

2014-09-10 18:51 VZ, revision 77658

Fix setting RTL direction for wxTextCtrl without wxTE_RICH in wxMSW. Plain EDIT text controls don't support WS_EX_LAYOUTRTL, use WS_EX_RTLREADING for them instead. See #11583.

2014-09-10 18:51 VZ, revision 77657

Avoid generating wxEVT_MENU_OPEN and CLOSE for disabled menus in wxMSW. Check if a top level menu is disabled and consume WM_[UN]INITMENUPOPUP that Windows still generates for it when it's clicked for some reason. Closes #2168.

2014-09-10 18:51 VZ, revision 77656

Add a generic wxExpectAny helper class for GUI testing. This is similar to the existing wxExpectModal<wxMessageDialog>, but can be used to dismiss any dialog for which it's just enough to press some button, not just wxMessageDialog. It's convenient to use it as wxTEST_DIALOG(wxYield(), wxExpectAny(wxID_OK)); if some custom dialog which can be safely dismissed is expected.

2014-09-10 18:51 VZ, revision 77655

Make skipping event in wxEVT_PAINT handler work correctly in wxMSW. This should result in the default handler still being called and painting the window, but the latter didn't happen because we called ::EndPaint(), and so validated the window and reset its update region, before passing WM_PAINT to DefWindowProc() in this case. Closes #16381.

2014-09-10 18:51 VZ, revision 77654

Work around buggy printer drivers not returning correct DEVMODE size. Apparently at least one printer driver doesn't report the memory needed by its own DEVMODE struct correctly, resulting in a crash due to a buffer overflow when printing using it. Work around this by allocating slightly more memory than what we really need. Closes #16274.

2014-09-10 18:51 VZ, revision 77653

Implement wxListBox::EnsureVisible() for wxMSW. Manually check whether the item is currently visible and scroll the listbox just enough if it isn't. Closes #3224.

2014-09-10 18:51 VZ, revision 77652

Delete pending objects before destroying wxConfig during cleanup. This allows these objects to save their state in wxConfig, as e.g. top level windows using wxPersistenceManager do. Closes #16397.

2014-09-10 18:51 VZ, revision 77651

No changes, just remove a left-over "#if 0". Remove OSX-specific #if which was not used any more.

2014-09-10 18:51 VZ, revision 77650

Allow recursive calls to wxEventLoop::Yield(). There doesn't seem to be any reason to forbid them and this change allows wxExecute() without wxEXEC_NOEVENTS to work without assertion failures when called from inside wxYield().

2014-09-10 18:51 VZ, revision 77649

Fix AssocQueryString() error reporting in wxMSW. Don't report ERROR_NO_ASSOCIATION as an (unexpected) error, it is perfectly normal to get it if a command is not defined for the given extension.

2014-09-10 18:50 VZ, revision 77648

No changes, just use wxEventLoop::IsYielding() accessor. Use IsYielding() instead of testing m_isInsideYield directly.

2014-09-10 17:59 BP, revision 77647

Add wxUSE_TASKBARBUTTON under MSW port. Taskbar button features are only available under MSW port. Author: Chaobin Zhang

2014-09-10 16:59 BP, revision 77646

Rebaked with new wxTaskBarButton and taskbarbutton sample.

2014-09-10 16:58 BP, revision 77645

Rename appprog.{h,cpp} to appprogress.{h.cpp}.

2014-09-10 16:58 BP, revision 77644

wxUSE_TASKBARBUTTON should be disabled on wince.

2014-09-10 16:58 BP, revision 77643

Update docs of taskbar button and wxAppProgressIndicator.

2014-09-10 16:58 BP, revision 77642

Update VS2010+ project files.

2014-09-10 16:58 BP, revision 77641

Move wxAppProgressIndicator into its own header.

2014-09-10 16:57 BP, revision 77640

Update docs of wxAppProgressIndicator. Also mention that MSWGetTaskBarButton is available since 3.1.0.

2014-09-10 16:57 BP, revision 77639

Use the usual WXHWND instead of wxWidget.

2014-09-10 16:57 BP, revision 77638

Fix too many friends of wxTaskBarButtonImpl.

2014-09-10 16:57 BP, revision 77637

Fix mingw warning of using anonymous type in wxTaskBarButtonImpl fields.

2014-09-10 16:57 BP, revision 77636

Fix coding nits. - enums shouldn't be DLL-exported, - Placement of "{" - Always have dtor of wxGuage and wxFrame.

2014-09-10 16:57 BP, revision 77635

Don't link shlwapi directly. For MSVC use #pragma comment to link shlwapi, and for MinGW use dynamic loading of this library.

2014-09-10 16:56 BP, revision 77634

Fix Wreorder of m_maxValue in the wxAppProgressIndicator. Author: Chaobin Zhang

2014-09-10 16:56 BP, revision 77633

[Docs] Update docs. Author: Chaobin Zhang

2014-09-10 16:56 BP, revision 77632

Use wxGA_PROGRESS style for wxGauage in the progress dialog. Author: Chaobin Zhang

2014-09-10 16:56 BP, revision 77631

Intergrate wxAppProgressIndicator into wxGuage. Update the progress bar of taskbar button if wxGuage has wxGA_PROGRESS style. Author: Chaobin Zhang

2014-09-10 16:56 BP, revision 77630

Suppress warning: type uses the anonymous namespace. Author: Chaobin Zhang

2014-09-10 16:56 BP, revision 77629

Fix mingw warning: passing NULL to non-pointer argument. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77628

Fix warning of reorder: m_appID. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77627

Update bakefiles and VS2010+ project file. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77626

Fix docs nits. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77625

Add docs of wxTaskBarJumpList. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77624

Add parent pointer of the classes: item -> category -> jump list. The parent of wxTaskBarJumpListItem is wxTaskBarJumpListCategory, the parent of wxTaskBarJumpListCategory is wxTaskBarJumpList. After this change, users do not need to call the update method of jump list manually. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77623

Update docs for wxTaskBarJumpListCategory, wxTaskbarJumpListItem. Author: Chaobin Zhang

2014-09-10 16:55 BP, revision 77622

Support setting AppUserModelID of wxTaskBarJumpList. Specifies a unique Application User Model ID (AppUserModelID) for the application whose taskbar button will hold the custom Jump List built through the methods of this class. This parameter is optional. Author: Chaobin Zhang

2014-09-10 16:54 BP, revision 77621

Rename access method of custom categories. Author: Chaobin Zhang

2014-09-10 16:54 BP, revision 77620

Rename wxJumpList to wxTaskBarJumpList etc. Class name wxJumpList is overly generic. Author: Chaobin Zhang

2014-09-10 16:54 BP, revision 77619

Move implementation of jump list to class wxJumpListImpl. Author: Chaobin Zhang

2014-09-10 16:54 BP, revision 77618

Fix rebase error. Author: Chaobin Zhang

2014-09-10 16:54 BP, revision 77617

Implement jump list feature: adding custom categories. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77616

Implement getting recent and frequent category. - New class wxJumpListCategory to represent a category in the jump list. - Api for accessing recent and frequent category. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77615

Reset progress state to no progress when destructing. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77614

Fix mingw build error. 1. Load "ChangeWindowMessageFilter" dynamically when wxUSE_DYNLIB_CLASS is true. 2. Redefine interface: IObjectArray, IObjectCollection, IPropertyStrore etc. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77613

Support adding a separator in the task list when setting jump list. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77612

Implement wxAppProgressIndicator. An helper class used for updating the progress of taskbar button. Author: Chaobin Zhang

2014-09-10 16:53 BP, revision 77611

Redeclare the interfaces and support setting tasks of jump list roughly. - Interfaces including: ITaskbarList3, IShellLink, ICustomDestinationList. - New API for setting tasks of jump list: wxJumpList::SetTasks. Author: Chaobin Zhang

2014-09-10 16:52 BP, revision 77610

Add new api for appending a separator to the thumbnail toolbar. Actually, when calling AppendSeparator we are appending a disable ThumbBarButton without background, which can simulate the behavior of appending a separator. Author: Chaobin Zhang

2014-09-10 16:52 BP, revision 77609

Add docs for several interfaces of wxThumbBarButton. Author: Chaobin Zhang

2014-09-10 16:52 BP, revision 77608

Expose APIs that can update the behavior of wxThumbBarButton. - void Enable(bool enable = true); void Disable(); - void EnableDismissOnClick(bool enable = true); void DisableDimissOnClick(); - void SetHasBackground(bool has = true); - void Show(bool shown = true); void Hide(); - void EnableInteractive(bool interactive = true); void DisableInteractive(); Author: Chaobin Zhang

2014-09-10 16:52 BP, revision 77607

Allow 2-phase creation of wxThumbBarButton. Author: Chaobin Zhang

2014-09-10 16:52 BP, revision 77606

Add doxygen docs of wxTaskBarButton. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77605

Coding style fix. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77604

Move wxTaskBarButton into core library. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77603

Fix mingw build error of ITaskbarList3. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77602

Work around the limitation of windows API when setting thumbnail toolbar buttons. - New API: InsertThumbBarButton, AppendThumbBarButton, RemoveThumbBarButton. - Though MSDN said that "Buttons cannot be added or deleted later, so this must be the full defined set. Buttons also cannot be reordered.", we can work around it by: when first time adding button, initialize all of the possible seven buttons and hide them, except the button adding. In the next time adding button, just show it, which can make it looks like it is added on the fly. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77601

Nit: fix code style. Author: Chaobin Zhang

2014-09-10 16:51 BP, revision 77600

Revise progress releted API to be more usual. - Add PulseProgress - Add SetProgressRange, instead of hard coding 100. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77599

Revise Show/Hide, for consistency with the other classes. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77598

API: SetThumbnailContents, for setting thumbnail contents with child window. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77597

Expose setting description of overlay icon for accessibility. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77596

Only register window message "TaskbarButtonCreated" when the first frame is created. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77595

Move taskbar button from wxTopLevelWindowMSW to wxFrame. Since there are two sub-classes of wxTopLevelWindowMSW: one is wxFrame, the other is wxDialog. However, wxDialog have no button shown in taskbar on windows, so the taskbar button feature should be only avaiable in wxFrame. Author: Chaobin Zhang

2014-09-10 16:50 BP, revision 77594

APIs for adding a thumbnail toolbar with a specified set of buttons. - AddThumbBarButton(wxThumbBarButton *button), ShowThumbnailToolbar(). - Add THBN_CLICKED message handler to top level window and generate a wxCommandEvent event. - Sample. Author: Chaobin Zhang

2014-09-10 16:49 BP, revision 77593

APIs to support setting overlay icon, tooltip, thumbnail clip, progress state. Author: Chaobin Zhang

2014-09-10 16:49 BP, revision 77592

API for change the visibility of button in the taskbar. - ShowInTaskbar and HideInTaskbar - Sample of usage. Author: Chaobin Zhang

2014-09-10 16:49 BP, revision 77591

Introduce skeleton of taskbar button feature. - Add classes: wxTaskBarButton and wxTaskBarButtonImpl. - New interface in wxTopLevelWindowMSW to get its wxTaskBarButton: MSWGetTaskBarButton. - A simple sample and build files under msvc. Author: Chaobin Zhang

2014-09-10 16:49 BP, revision 77590

Register message "TaskbarButtonCreated" when wxTopLevelWindowMSW is created. This message is used to make sure the taskbar button is in place, so wxTaskbarButton object can initialize correctly. Author: Chaobin Zhang

2014-09-10 13:57 CZ, revision 77589

Reverting failed mering of SOC2014_TASKBAR. Command: git svn dcommit is aborted, and the two branches is diverged.

2014-09-10 11:23 CZ, revision 77588

Allow 2-phase creation of wxThumbBarButton. Author: Chaobin Zhang

2014-09-10 11:19 CZ, revision 77587

Add doxygen docs of wxTaskBarButton. Author: Chaobin Zhang

2014-09-10 11:16 CZ, revision 77586

Coding style fix. Author: Chaobin Zhang

2014-09-10 11:15 CZ, revision 77585

Move wxTaskBarButton into core library. Author: Chaobin Zhang

2014-09-10 11:11 CZ, revision 77584

Fix mingw build error of ITaskbarList3. Author: Chaobin Zhang

2014-09-10 11:09 CZ, revision 77583

Work around the limitation of windows API when setting thumbnail toolbar buttons. - New API: InsertThumbBarButton, AppendThumbBarButton, RemoveThumbBarButton. - Though MSDN said that "Buttons cannot be added or deleted later, so this must be the full defined set. Buttons also cannot be reordered.", we can work around it by: when first time adding button, initialize all of the possible seven buttons and hide them, except the button adding. In the next time adding button, just show it, which can make it looks like it is added on the fly. Author: Chaobin Zhang

2014-09-10 11:06 CZ, revision 77582

Nit: fix code style. Author: Chaobin Zhang

2014-09-10 11:03 CZ, revision 77581

Revise progress releted API to be more usual. - Add PulseProgress - Add SetProgressRange, instead of hard coding 100. Author: Chaobin Zhang

2014-09-10 11:01 CZ, revision 77580

Revise Show/Hide, for consistency with the other classes. Author: Chaobin Zhang

2014-09-10 10:59 CZ, revision 77579

API: SetThumbnailContents, for setting thumbnail contents with child window. Author: Chaobin Zhang

2014-09-10 10:56 CZ, revision 77578

Expose setting description of overlay icon for accessibility. Author: Chaobin Zhang

2014-09-10 10:54 CZ, revision 77577

Only register window message "TaskbarButtonCreated" when the first frame is created. Author: Chaobin Zhang

2014-09-10 10:51 CZ, revision 77576

Move taskbar button from wxTopLevelWindowMSW to wxFrame. Since there are two sub-classes of wxTopLevelWindowMSW: one is wxFrame, the other is wxDialog. However, wxDialog have no button shown in taskbar on windows, so the taskbar button feature should be only avaiable in wxFrame. Author: Chaobin Zhang

2014-09-10 10:47 CZ, revision 77575

APIs for adding a thumbnail toolbar with a specified set of buttons. - AddThumbBarButton(wxThumbBarButton *button), ShowThumbnailToolbar(). - Add THBN_CLICKED message handler to top level window and generate a wxCommandEvent event. - Sample. Author: Chaobin Zhang

2014-09-10 10:43 CZ, revision 77574

APIs to support setting overlay icon, tooltip, thumbnail clip, progress state. Author: Chaobin Zhang

2014-09-10 10:40 CZ, revision 77573

API for change the visibility of button in the taskbar. - ShowInTaskbar and HideInTaskbar - Sample of usage. Author: Chaobin Zhang

2014-09-10 10:37 CZ, revision 77572

Introduce skeleton of taskbar button feature. - Add classes: wxTaskBarButton and wxTaskBarButtonImpl. - New interface in wxTopLevelWindowMSW to get its wxTaskBarButton: MSWGetTaskBarButton. - A simple sample and build files under msvc. Author: Chaobin Zhang

2014-09-10 10:34 CZ, revision 77571

Register message "TaskbarButtonCreated" when wxTopLevelWindowMSW is created. This message is used to make sure the taskbar button is in place, so wxTaskbarButton object can initialize correctly. Author: Chaobin Zhang

2014-09-10 10:30 CZ, revision 77570

Add wxUSE_TASKBARBUTTON under MSW port. Taskbar button features are only available under MSW port. Author: Chaobin Zhang

2014-09-10 09:17 SC, revision 77569

picking the selected font before closing the panel, fixes #16538

2014-09-10 07:54 BP, revision 77568

Rebaked D2D additions.

2014-09-09 15:53 SC, revision 77563

fixing initialization order, fixes #16542

2014-09-09 11:58 SC, revision 77562

fixing implicit narrowing conversions, silencing ICC warnings, fixes #16542

2014-09-09 09:42 SC, revision 77561

rebaked, d2d addition

2014-09-08 16:13 SC, revision 77560

added d2d

2014-09-08 16:12 SC, revision 77559

added d2d

2014-09-08 16:10 SC, revision 77558

added d2d

2014-09-08 16:10 SC, revision 77557

added d2d

2014-09-08 16:09 SC, revision 77556

added d2d

2014-09-08 09:51 JS, revision 77555

Removed commented out window variant lines

2014-09-07 20:26 JS, revision 77554

Use the small variant for help contents etc. since normal is a little outsized for this on Mac.

2014-09-07 19:33 JS, revision 77553

Make the selected item visible, to match behaviour on other platforms

2014-09-06 16:59 SC, revision 77550

direct2d GSOC2014 add addtional file

2014-09-05 23:55 VZ, revision 77549

Use bool constants instead of BOOL ones in wxBitmapComboBox code. Just s/TRUE/true/ See #14279.

2014-09-05 23:55 VZ, revision 77548

Fix empty wxBitmapComboBox height under wxMSW. Make (initially) empty wxBitmapComboBox as high as a normal wxComboBox instead of making it visibly shorter. Closes #14279.

2014-09-05 23:54 VZ, revision 77547

Use bool constants instead of BOOL ones in wxBitmapComboBox code. Just s/TRUE/true/ See #14279.

2014-09-05 23:54 VZ, revision 77546

Fix empty wxBitmapComboBox height under wxMSW. Make (initially) empty wxBitmapComboBox as high as a normal wxComboBox instead of making it visibly shorter. Closes #14279.

2014-09-05 14:46 VZ, revision 77545

Always disable "Back" wxWizard button for the starting page. Do it even if the start page has a previous page (e.g. because the wizard has been started in the middle for some reason). Closes #16535.

2014-09-05 14:42 VZ, revision 77544

Fix wxOSX build with < 10.9 SDK after r77511. We need to guard the use of 10.9+ symbols such as NSActivityOptions at compile-time too and not only at run-time. See #16413, closes #16529.

2014-09-05 02:37 VZ, revision 77543

Fix restoring locale in wxCmdLineParser::SetArguments(). We need to call setlocale(NULL) to query the current locale, setlocale("") returns the newly set locale and not the original one.

2014-09-05 02:36 VZ, revision 77542

Fix restoring locale in wxCmdLineParser::SetArguments(). We need to call setlocale(NULL) to query the current locale, setlocale("") returns the newly set locale and not the original one.

2014-09-04 22:06 VZ, revision 77541

wxGTK PCH-less compilation build fix after r77537. Add the required #include. See #15699.

2014-09-04 21:45 VZ, revision 77540

Add default values for wxRichMessageDialog ctor arguments. Both "caption" and "style" arguments were documented as having default values, but didn't really have them. Fix this by actually adding them. Closes #16524.

2014-09-04 21:45 VZ, revision 77539

Don't say that 15+ year old wxDateTime is relatively new. Update the description of wxUSE_DATETIME in various setup.h files for the 21st century. Closes #16523.

2014-09-04 21:44 VZ, revision 77538

Deprecate wxBitmap assignment operator from wxCursor in wxMSW. This assignment operator is not portable and a better alternative is available now with the addition of the wxBitmap ctor from wxCursor in the previous commit. See #15699.

2014-09-04 21:44 VZ, revision 77537

Add wxBitmap ctor from wxCursor to wxGTK and wxMSW. Allow converting wxCursor to wxBitmap in order to draw it, for example. Closes #15699.

2014-09-04 21:44 VZ, revision 77536

Test for __MINGW64_TOOLCHAIN__ and not __MINGW64__ in wx/filefn.h. MinGW-w64 headers are the same in 32 and 64 bit cases, so test for these headers presence with __MINGW64_TOOLCHAIN__ and not for 64 bit build with __MINGW64__, which should probably not be used anywhere at all. This fixes problems with wx{Rm,Mk}dir() definitions with MinGW-w64 in non-Unicode build. Closes #16362.

2014-09-04 21:44 VZ, revision 77535

Add default values for wxRichMessageDialog ctor arguments. Both "caption" and "style" arguments were documented as having default values, but didn't really have them. Fix this by actually adding them. Closes #16524.

2014-09-04 21:22 VZ, revision 77534

Test for __MINGW64_TOOLCHAIN__ and not __MINGW64__ in wx/filefn.h. MinGW-w64 headers are the same in 32 and 64 bit cases, so test for these headers presence with __MINGW64_TOOLCHAIN__ and not for 64 bit build with __MINGW64__, which should probably not be used anywhere at all. This fixes problems with wx{Rm,Mk}dir() definitions with MinGW-w64 in non-Unicode build. Closes #16362.

2014-09-04 21:22 VZ, revision 77533

Move __MINGW64_TOOLCHAIN__ definition to wx/msw/gccpriv.h. __MINGW64_VERSION_MAJOR is defined only in _mingw.h, so it was never defined in wx/compiler.h, included before any other headers and we can't include _mingw.h for the same reason we must define wxCHECK_MINGW32_VERSION() in wx/msw/gccpriv.h: this has to be done after defining UNICODE/_UNICODE, but wx/compiler.h is included before this.

2014-09-04 18:02 VZ, revision 77532

Move __MINGW64_TOOLCHAIN__ definition to wx/msw/gccpriv.h. __MINGW64_VERSION_MAJOR is defined only in _mingw.h, so it was never defined in wx/compiler.h, included before any other headers and we can't include _mingw.h for the same reason we must define wxCHECK_MINGW32_VERSION() in wx/msw/gccpriv.h: this has to be done after defining UNICODE/_UNICODE, but wx/compiler.h is included before this.

2014-09-04 14:36 VZ, revision 77531

Fix harmless unused parameter warnings. Wrap parameter in WXUNUSED() in the power resource stub functions.

2014-09-04 14:36 VZ, revision 77530

Add wxDIRCTRL_DEFAULT_STYLE for consistency with other classes. This is, by definition, the style used as default value for the style argument of wxDirCtrl::Create(). Closes #16525.

2014-09-03 16:23 VZ, revision 77529

Compilation fix for wxUSE_STD_STRING==0 build. Add missing check for wxUSE_STD_STRING to fix the build with it set to 0 after the changes of r77518.

2014-09-03 13:21 VZ, revision 77528

Mention that wxDialog::SetEscapeId() can't be used for native dialogs. Native dialogs handling of Esc can't be customized (definitely not easily, and possibly not at all). See #16521.

2014-09-03 13:21 VZ, revision 77527

Remove recursive "see also" link from GetAppDocumentsDir() docs. This was probably supposed to be "@see GetDocumentsDir()", but as this function is already mentioned, and auto-linked by Doxygen, just above, another link to it is unnecessary, so remove it. Closes #16520.

2014-09-03 13:21 VZ, revision 77526

Include wx/variant.h from wx/msw/ole/oleutils.h. This ensures that this header is self-contained and can be included without including wx/variant.h first. Closes #16522.

2014-09-03 13:21 VZ, revision 77525

Mention that wxDialog::SetEscapeId() can't be used for native dialogs. Native dialogs handling of Esc can't be customized (definitely not easily, and possibly not at all). See #16521.

2014-09-03 13:21 VZ, revision 77524

Remove recursive "see also" link from GetAppDocumentsDir() docs. This was probably supposed to be "@see GetDocumentsDir()", but as this function is already mentioned, and auto-linked by Doxygen, just above, another link to it is unnecessary, so remove it. Closes #16520.

2014-09-03 13:20 VZ, revision 77523

Include wx/variant.h from wx/msw/ole/oleutils.h. This ensures that this header is self-contained and can be included without including wx/variant.h first. Closes #16522.

2014-09-03 12:45 VZ, revision 77522

Work around buggy printer drivers not returning correct DEVMODE size. Apparently at least one printer driver doesn't report the memory needed by its own DEVMODE struct correctly, resulting in a crash due to a buffer overflow when printing using it. Work around this by allocating slightly more memory than what we really need. Closes #16274.

2014-09-03 08:56 VS, revision 77521

Don't prevent app exit when only preferences window exists. Don't prevent termination of the app if all windows are closed, except for the preferences one (which may very well be hidden at the moment). This only affects platforms where the preferences are modeless (GTK+, OS X) and where the preferences window, once created, continues to exist, but is hidden.

2014-09-03 08:55 VS, revision 77520

Don't prevent app exit when only preferences window exists. Don't prevent termination of the app if all windows are closed, except for the preferences one (which may very well be hidden at the moment). This only affects platforms where the preferences are modeless (GTK+, OS X) and where the preferences window, once created, continues to exist, but is hidden.

2014-09-03 08:54 VS, revision 77519

Tweak sizing for general SetWindowVariant() implementation. Previously, the generic implementation closely mirrored OS X's scaling factors, with the small size being 3/4 of the normal one and mini 2/3. This works well with OS X's UI font and font rendering, but less so on other platforms: wxWINDOW_VARIANT_SMALL is barely readable on Windows and wxWINDOW_VARIANT_MINI is illegible. In wxGTK, both sizes are readable, but don't match small text used in native GNOME interfaces. Change the sizing to use the same scaling factor of 1.2 between all variant steps. This is the same factor that CSS 1.2 defines for relative sizes and is also used by Pango's (and so GTK+) size scaling in markup. This makes wxWINDOW_VARIANT_SMALL identical in size to <small> markup used in GTK+. On Windows, this changes default UI font scaling to be less steep and while wxWINDOW_VARIANT_MINI is still tiny and hard to read (as it is on OS X), wxWINDOW_VARIANT_SMALL is now readable, thanks to being only 1pt smaller than the full size (for default GUI font).

2014-09-02 17:35 VZ, revision 77518

Specialize std::hash<> for wxString when using C++11. This allows to use wxString as key type of std::unordered_{map,hash} out of the box.

2014-08-30 17:14 VZ, revision 77517

Fix creation of wxBitmap from monochrome wxIcon or wxCursor in wxMSW. Don't suppose that we always have hbmColor because this is not true for monochrome icons/cursors. Create our own bitmap in this case. Closes #16512.

2014-08-30 17:13 VZ, revision 77516

Fix creation of wxBitmap from monochrome wxIcon or wxCursor in wxMSW. Don't suppose that we always have hbmColor because this is not true for monochrome icons/cursors. Create our own bitmap in this case. Closes #16512.

2014-08-30 01:22 VZ, revision 77515

Don't change a shortcut file name when changing its path. wxFileName::MakeRelativeTo() is only supposed to change the path of the file, not its name, but it was doing the latter for the shortcuts as it implicitly resolved them to the name of their target. Fix this by ensuring we do not use wxPATH_NORM_SHORTCUT in MakeRelativeTo(). Closes #16239.

2014-08-30 01:22 VZ, revision 77514

Ensure OLE is initialized in wxFileName::GetShortcutTarget(). If it isn't, the function doesn't risk to work. This is especially pernicious because OLE is initialized on startup in GUI applications, but not in the console ones only using wxBase, so this function can, completely unexpectedly, give different results in them.

2014-08-30 01:22 VZ, revision 77513

Add small wxOleInitializer RAII helper. Wrap wxOleInitialize()/wxOleUninitialize() in a helper class ensuring that we never forget to call the latter.

2014-08-30 01:22 VZ, revision 77512

Fix typo in the last changelog entry. s/reated/created/

2014-08-30 01:22 VZ, revision 77511

Add wxPowerResourceBlocker for power management. Add functions to acquire/release power resources, preventing/allowing back the system to go to sleep or turn off the screen and a class wrapping them in a safe way. This patch implements the functions for MSW and OSX, adds documentation and updates the sample to demonstrate the new functionality. Closes #16413.

2014-08-30 01:22 VZ, revision 77510

Use wxCOMPtr<> in wxFileName instead of manual Release() calls. Make the code shorter and safer.

2014-08-30 01:22 VZ, revision 77509

Don't change a shortcut file name when changing its path. wxFileName::MakeRelativeTo() is only supposed to change the path of the file, not its name, but it was doing the latter for the shortcuts as it implicitly resolved them to the name of their target. Fix this by ensuring we do not use wxPATH_NORM_SHORTCUT in MakeRelativeTo(). Closes #16239.

2014-08-30 01:22 VZ, revision 77508

Ensure OLE is initialized in wxFileName::GetShortcutTarget(). If it isn't, the function doesn't risk to work. This is especially pernicious because OLE is initialized on startup in GUI applications, but not in the console ones only using wxBase, so this function can, completely unexpectedly, give different results in them.

2014-08-30 01:21 VZ, revision 77507

Add small wxOleInitializer RAII helper. Wrap wxOleInitialize()/wxOleUninitialize() in a helper class ensuring that we never forget to call the latter.

2014-08-29 23:53 AW, revision 77506

Optimize allocating default cells in wxPGProperty::EnsureCells Use embedded 'resize' function to alloc new slots at once instead of doing this in an iterative way.

2014-08-29 23:17 AW, revision 77505

Fix drawing custom colours for wxEnumProperty choice items in wxPG. In order to draw choice items with custom colours there is necessary to merge custom cell object (wxPGCell) associated with individual item with default cell object (in wxPGProperty::GetDisplayInfo). wxPGProperty::GetDisplayInfo function should return customized cell object instead of returning pointer to the default cell object only. Closes #16509

2014-08-29 13:56 VZ, revision 77504

Don't leave wxHtmlWinParser with a dangling wxDC pointer. Call SetDC(NULL) to prevent wxHtmlWinParser from using a pointer to the already destroyed wxDC object. See #16501.

2014-08-29 13:56 VZ, revision 77503

No changes, just avoid unnecessary heap allocation in wxHtmlWindow. Create the temporary wxClientDC on the stack, not the heap, there is no need for the latter. See #16501.

2014-08-29 13:56 VZ, revision 77502

Allow wxCmdLineParser::Parse() to be called more than once. Clear the previously collected parameters in the beginning to avoid accumulating the results from several command lines. Closes #16503.

2014-08-29 13:55 VZ, revision 77501

Don't leave wxHtmlWinParser with a dangling wxDC pointer. Call SetDC(NULL) to prevent wxHtmlWinParser from using a pointer to the already destroyed wxDC object. See #16501.

2014-08-29 13:55 VZ, revision 77500

No changes, just avoid unnecessary heap allocation in wxHtmlWindow. Create the temporary wxClientDC on the stack, not the heap, there is no need for the latter. See #16501.

2014-08-29 13:42 VZ, revision 77499

Allow wxCmdLineParser::Parse() to be called more than once. Clear the previously collected parameters in the beginning to avoid accumulating the results from several command lines. Closes #16503.

2014-08-29 06:45 MAR, revision 77498

Add architecture doc for wxQT (moved from wiki)

2014-08-29 05:37 MAR, revision 77497

Update author's credits comments for wxQT Commit history was lost in the git to svn merge for trunk, so this reflect work done in two GSOC projects and/or by several authors. Lines changed by each user was the main metric used to ack major contributions.

2014-08-28 23:36 BP, revision 77496
  • D /wxWidgets/branches/SOC2014_X11

Clearing incorrectly created branch on git mirror.

2014-08-28 14:55 VZ, revision 77495

Fix wxFont construction from default wxFontInfo in wxMSW. Don't use -1 as the real point size. Also update the font sample to allow testing such font. Closes #16468.

2014-08-28 14:54 VZ, revision 77494

Fix wxFont construction from default wxFontInfo in wxMSW. Don't use -1 as the real point size. Also update the font sample to allow testing such font. Closes #16468.

2014-08-28 14:37 VZ, revision 77493

Fix harmless warning about unreachable statement when wxUSE_EXCEPTIONS==0. This statement only needed when we do use exceptions.

2014-08-28 14:29 TIK, revision 77492

Revision 59305 broke click count adjustment with the result that a right-click after a left-click is reported as double-click.

2014-08-28 14:29 TIK, revision 77491

Revision 59305 broke click count adjustment with the result that a right-click after a left-click is reported as double-click.

2014-08-28 13:35 VZ, revision 77490

Fix build with wxUSE_STD_STRIN == 0. Remove a leftover occurrence of wxDEFINE_TEMPLATE_BOOL_VALUE(), this should have been done in r76532.

2014-08-28 10:31 JS, revision 77489

Compensate for lack of bitmap inversion on Mac when selecting content.

2014-08-28 10:28 JS, revision 77488

The wxRTC formatting dialog now retains custom colours set within the colour dialog, and they can be accessed by the application.

2014-08-27 23:21 BP, revision 77487

Create SVN branch for GSoC 2014 wxTaskBarButton project.

2014-08-27 00:58 AW, revision 77486

Fix deleting (from within wxPG event handler) properties not belonging to the current PG page. Currently, it is not possible to remove properties from the page other then currently selected. The scope of iterator used in wxPropertyGridPageState::DoClear() to enumerate properties must be limited to the required page and not always to the selected one. Closes #16459

2014-08-27 00:54 AW, revision 77485

Fix deleting aggregate properties from within wxPG event handler. Do not explicitly remove sub-properties of aggregate property because they will be removed automatically in their parent property dtor. See #16459

2014-08-26 10:29 JJ, revision 77484

Update of OpenVMS build support

2014-08-25 20:29 VZ, revision 77483

Disable the use of std::exception_ptr for MSVC 2010. While <exception> does define this type in this version of the compiler, it's non-conforming and doesn't define conversion to bool, so we can't test whether it is valid or not. We could work around it but for now just disable the use of exception_ptr with VC10 and only use it for VC11+.

2014-08-25 19:50 VZ, revision 77482

Fix order of radial gradient stops in wxMSW. Ensure that the order of stops is consistent with the documentation and other platforms behaviour, i.e. they are counted from inside to outside of the circle and not vice versa, which happens to be the GDI+ convention. Closes #16443.

2014-08-25 19:47 VZ, revision 77481

Fix order of radial gradient stops in wxMSW. Ensure that the order of stops is consistent with the documentation and other platforms behaviour, i.e. they are counted from inside to outside of the circle and not vice versa, which happens to be the GDI+ convention. Closes #16443.

2014-08-25 19:47 VZ, revision 77480

Add missing wxUSE_EXCEPTIONS checks. Build fixes after StoreCurrentException and RethrowStoredException() introduction: don't use the latter if exceptions support is turned off.

2014-08-25 19:47 VZ, revision 77479

Rebake MSW makefiles properly after wxQt merge. Somehow the makefiles contained references to a non-existing src/common/textdlg.cpp, fix this by rebaking them.

2014-08-24 17:32 VZ, revision 77478

Get rid of unnecessary wxUsecClockAsString() helper function. We always build with wxUSE_LONGLONG now, so just use wxLongLong::ToString() directly. This avois a warning about unused local function in wxDEBUG_LEVEL==0 builds.

2014-08-24 17:32 VZ, revision 77477

Disable deprecation warnings for NS{Open,Save}Panel methods. They will need to be replaced with the newer equivalents, but for now getting dozens of warnings for each wxOSX build is just annoying, so get rid of them.

2014-08-24 17:32 VZ, revision 77476

Use #pragma diagnostic for clang too, not just g++ 4.6+. Clang seems to support this #pragma just fine and it's useful for disabling deprecation warnings in wxOSX code.

2014-08-24 17:32 VZ, revision 77475

Avoid unused variable warnings in !wxDEBUG_LEVEL builds. Don't define a constant which is only used inside wxASSERT() at all if debug checks are disabled.

2014-08-24 17:32 VZ, revision 77474

Suppress unused variable warning in wxRichTextObject code. Put the variable used only inside #if 0'd code inside #if 0 itself (it would be better to get rid of this entirely, of course...).

2014-08-24 17:32 VZ, revision 77473

Add tests of gradients with stops to the drawing sample. This shows inconsistency in handling of radial gradients with and without stops in current wxMSW GDI+-based wxGraphicsContext implementation. See #16443.

2014-08-24 17:31 VZ, revision 77472

Remove checks for QueryPerformanceCounter() success. According to http://msdn.microsoft.com/en-us/library/windows/desktop/dn553408.aspx this function will never fail under Windows XP or later, so simplify code by not checking whether it did.

2014-08-24 17:31 VZ, revision 77471

Update wxFileDialog filter index when setting its path. This ensures that GetFilename() and GetFilterIndex() always return consistent results, even if the path was set programmatically, e.g. during unattended tests using wxExpectModal<wxFileDialog>.

2014-08-24 17:31 VZ, revision 77470

Provide wxApp::StoreCurrentException() implementation for C++11. When using C++11 we can provide implementations of wxApp::StoreCurrentException() and RethrowStoredException() ourselves and thus make catching exceptions outside of the event loop work by default. Do this and update the documentation and the sample to reflect it.

2014-08-24 17:31 VZ, revision 77469

Remove the apparently unnecessary <locale> inclusion. This header doesn't seem to be needed anywhere.

2014-08-24 17:31 VZ, revision 77468

Add wxApp::StoreCurrentException() and RethrowStoredException(). These methods can be used to ensure that the exceptions thrown from event handlers are safely rethrown from the code dispatching the events once the control flow gets back there. This allows to work around the problem with not being able to propagate exceptions through non-C++ code and can be used, for example, to catch exceptions thrown by the handlers invoked from inside wxYield() by a try/catch block around wxYield() -- something that didn't work before, update the except sample to show that it does work now.

2014-08-24 17:31 VZ, revision 77467

No changes, just document exception-related methods in their own group. Extract wxApp::OnExceptionInMainLoop() and OnUnhandledException() in a separate Doxygen group as there will be more functions defined in it soon.

2014-08-24 17:31 VZ, revision 77466

No real changes, just simplify SafelyProcessEvent() slightly. Remove a long comment about initializing "loop" in 2 steps and just do it in 1 step instead.

2014-08-24 17:31 VZ, revision 77465

Add a test of throwing an exception from wxYield() to except sample. This demonstrates that under 64 bit Windows exceptions may not propagate through the kernel code and throwing from inside wxYield() results in either an immediate abort, even if the code calling wxYield() tries to handle the exception, or, even more surprisingly, is just completely ignored. See http://blog.paulbetts.org/index.php/2010/07/20/the-case-of-the-disappearing-onload-exception-user-mode-callback-exceptions-in-x64/ for more information. Moreover, independently of Windows weirdness, throwing from wxYield() also results in a difficult to debug crash when using wxGTK because C++ exceptions can't propagate through C GTK+ code in this case.

2014-08-24 17:31 VZ, revision 77464

Show new style Windows directory selector even for non-existent paths. Passing an invalid initial directory to wxDirDialog resulted in using the old style Windows directory selector dialog instead of the new style (file dialog like) one, which was unintentional, as incorrect initial directory shouldn't prevent the dialog from being shown. Fix this by handling ERROR_FILE_NOT_FOUND error specifically and still showing the new dialog, just without the (non existent) initial directory value, in this case. Closes #16430.

2014-08-24 17:31 VZ, revision 77463

Also ignore arch-specific build directories in wxMSW wxStandardPaths. In addition to ignoring debug/release subdirectories, also ignore their (possible) parent Win32/x64 directories, and for the same reason: this allows the code using wxStandardPaths to work even when the program is ran from the build directory.

2014-08-24 15:35 VZ, revision 77462

Avoid unnecessary assignment in wxOSX build. Don't assign to the variable only to overwrite it with a new value. Closes #16436.

2014-08-24 15:35 VZ, revision 77461

Avoid warning about unused variable in wxiOS build. Define variable only used if wxOSX_USE_COCOA_OR_CARBON inside the check for it. Closes #16435.

2014-08-24 15:35 VZ, revision 77460

Avoid unused variable warning in wxUSE_DATAOBJ==0 build. Declare variable only used when wxUSE_DATAOBJ==1 inside the check for it. Closes #16434.

2014-08-24 15:35 VZ, revision 77459

Remove unused variable in wxDCImpl::CalculateEllipticPoints(). Closes #16433.

2014-08-24 15:30 VZ, revision 77458

Avoid unnecessary assignment in wxOSX build. Don't assign to the variable only to overwrite it with a new value. Closes #16436.

2014-08-24 15:30 VZ, revision 77457

Avoid warning about unused variable in wxiOS build. Define variable only used if wxOSX_USE_COCOA_OR_CARBON inside the check for it. Closes #16435.

2014-08-24 15:29 VZ, revision 77456

Remove unused variable in wxDCImpl::CalculateEllipticPoints(). Closes #16433.

2014-08-24 03:50 VZ, revision 77455

Merge wxQT branch into the trunk. This merges in the latest sources from GSoC 2014 wxQt project with just a few minor corrections, mostly undoing wrong changes to common files in that branch (results of a previous bad merge?) and getting rid of whitespace-only changes. Also remove debug logging from wxGrid.

2014-08-23 14:32 VZ, revision 77454

Create svn branch for GSoC 2014 wxX11 project.

2014-08-23 14:32 VZ, revision 77453
  • D /wxWidgets/branches/SOC2014_X11

Remove the branch created once again at a wrong place.

2014-08-23 14:28 VZ, revision 77452

Create svn branch for GSoC 2014 wxX11 project.

2014-08-23 03:09 VZ, revision 77451

disable qt auto buffer swapping

2014-08-23 03:09 VZ, revision 77450

Fix special (unreal) window handling in wxQT See wxTabFrame (AUI book), that is a special case as it doesn't have a related QWidget counterpart

2014-08-23 03:09 VZ, revision 77449

Add MiniFrame TLW for wxQT Also enables support for frameless and no task bar styles. Note that tool window style seems to have no effect on Ubuntu (tested with the Qt official examples)

2014-08-23 03:09 VZ, revision 77448

Merge master trunk into GSoC2014 QT branch

2014-08-23 03:08 VZ, revision 77447

Complete build docs for Ubuntu/Android wxQT

2014-08-23 03:08 VZ, revision 77446

Initial documentation for wxQT

2014-08-23 03:08 VZ, revision 77445

Fix SIGSEGV if app was not initialized in wxQT

2014-08-23 03:08 VZ, revision 77444

Fix status bar initial field count in wxQT

2014-08-23 03:08 VZ, revision 77443

Fix status bar removal SIGSEGV in wxQT

2014-08-23 03:08 VZ, revision 77442

Fix text extent metrics with spaces in wxQT

2014-08-23 03:08 VZ, revision 77441

Implement missing default button size for wxQT (wxPython)