Changelogs

Overview

These changelogs reflect the history of all files in the Subversion repository. The changelog has been generated at 2016-05-09 08:38:04

Changes per page:

25 50 100 250 500 1000 2000

Changelog for wxWidgets (70435 changes):

2015-02-18 18:37 JS, revision 78522

Now uses the correct font and text effect when drawing bullet text.

2015-02-18 18:19 AW, revision 78521

Restore original grid size when finishing the tests in propgrid sample.

2015-02-18 18:17 AW, revision 78520

Fix "Multiple Columns" test in propgrid sample. Resize grid to make the results of test visible.

2015-02-18 18:13 AW, revision 78519

Suppress sending spurious wxEVT_PG_SELECTED events. Don't send wxEVT_PG_SELECTED event when wxPG is ordered to unselect current property but no property is actually selected.

2015-02-18 13:18 JS, revision 78518

Now allows space for a bullet even if no left subindent was specified; added a MeasureBullet function to support this.

2015-02-18 12:10 JS, revision 78517

Comment correction

2015-02-18 12:07 JS, revision 78516

Fix for GetVisibleLineForCaretPosition, and a weird boolean test.

2015-02-17 21:52 AW, revision 78515

Initialize wxPGChoices object properly in its copy ctor if source object has no data. Internal data must be always initialized whether the source object contains choices data or not. This is the backport of r78484. See #16855.

2015-02-17 21:42 AW, revision 78514

Refresh property grid when property is switched to read-only state. Property grid is refreshed to reflect the new state of the property. This is the backport of r76875. See #16306.

2015-02-17 18:36 AW, revision 78513

Implement more detailed validation of wxArrayDoubleProperty in propgrid sample. Added wxArrayDoubleProperty::ValidateValue() method checks if pending value is of proper type (wxArrayDouble). Pending value of improper type is used to signal that invalid numeric value was entered into the edit field.

2015-02-17 07:19 DS, revision 78512

Fix exception when creating a wxGauge. Platforms that don't make use of wxGaugeBase::Create when creating a wxGauge (such as GTK and MSW) access the uninitialised m_appProgressIndicator. Fix by initialising m_appProgressIndicator to NULL in the wxGaugeBase constructor. Regression since r78499.

2015-02-16 22:42 RD, revision 78511

Add some missing default ctors and Create methods.

2015-02-16 22:40 RD, revision 78510

Add some missing default ctors and Create methods.

2015-02-16 21:50 AW, revision 78509

When drawing wxPG items (with double buffering) use the same layout direction as the window uses. Memory DC used for double buffering purposes should inherit layout direction from the window DC to ensure that texts are rendered correctly. This is the backport of r76931. See #15797.

2015-02-16 21:38 AW, revision 78508

Fix saving edited property value when wxPG property is in the '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. This is the backport of r77887. See #16587.

2015-02-16 14:00 VZ, revision 78507

Correct wxLogSysError() calls after chdir() failure in wxGTK. Another fix for the changes of r78480: don't forget to pass the file/directory name to wxLogSysError(). Closes #16865.

2015-02-16 02:06 VZ, revision 78506

Increase the buffer size used for the host names in wxIPaddress. This avoids failing to set the host name if the system /etc/hosts file has any host names that wouldn't fit in our buffer: at least under Linux/glibc, gethostname_r() returns error if any such names exist even if we don't ask for them. Closes #16641.

2015-02-16 02:05 VZ, revision 78505

Increase the buffer size used for the host names in wxIPaddress. This avoids failing to set the host name if the system /etc/hosts file has any host names that wouldn't fit in our buffer: at least under Linux/glibc, gethostname_r() returns error if any such names exist even if we don't ask for them. Closes #16641.

2015-02-16 00:26 AW, revision 78504

Display additional information for EVT_PG_SELECTED event in propgrid sample.

2015-02-16 00:23 AW, revision 78503

wxEVT_PG_SELECTED event object generated when property is unselected should refer to the property being unselected. Currently, wxEVT_PG_SELECTED event object generated when property is unselected doesn't refer to the property being unselected (in fact it doesn't refer to any property; pointer to the property is NULL) and therefore it is not possible to determine unselected property or to check its state.

2015-02-15 23:54 VZ, revision 78502

Fix wxDV_ROW_LINES drawing when horizontally scrolled in generic version. Use the correct, i.e. logical, as wxDC does the translation to physical internally, coordinates for drawing the highlighted rows. Closes #16815.

2015-02-15 23:54 VZ, revision 78501

Fix wxDV_ROW_LINES drawing when horizontally scrolled in generic version. Use the correct, i.e. logical, as wxDC does the translation to physical internally, coordinates for drawing the highlighted rows. Closes #16815.

2015-02-15 23:21 AW, revision 78500

Prevent sending wxEVT_PG_LABEL_EDIT_ENDING events recursively. By preventing sending wxEVT_PG_LABEL_EDIT_ENDING events recursively (recursive generation can happen due to the calling wxPropertyGrid::RefreshProperty() directly or indirectly from within wxEVT_PG_LABEL_EDIT_ENDING event handler) spurious events are not sent to the application and wxPropertyGrid::DoEndLabelEdit() function is not reentered. Closes #16864.

2015-02-15 21:09 DS, revision 78499

Add OS X implementation of wxAppProgressIndicator. Closes #16638.

2015-02-15 19:35 VZ, revision 78498

Show how to handle files on command line in docview sample. This is not totally obvious, so show how to do it, including the Mac-specific MacNewFile() overriding part. Closes #16816.

2015-02-15 18:11 DS, revision 78497

No code changes, fix some typos. Change several occurrences of "it's" where "its" is meant, as well as a few other minor typos.

2015-02-15 14:52 AW, revision 78496

Fix using a value of enumerated type in propgrid sample. Referring to enumerated type name (wxNumericPropertyValidator::NumericType) in expression is incorrect however it is accepted by VC++. GCC is not so merciful.

2015-02-15 01:02 VZ, revision 78495

Make wxUIActionSimulator::Text() to work with punctuation characters. Currently this only really works when using the standard US keyboard layout as we don't have information about the mapping from the characters to the keyboard keys for the other layouts, which is not ideal but better than nothing as it allows e.g. Text("foo_bar") to really produce "foo_bar" in the currently focused text control instead of "foo-bar" as before.

2015-02-15 01:01 VZ, revision 78494

Remove code not doing anything from wxUIActionSimulator::Char(). The changes of r69762 and r69960 cancelled each other out, leaving a long switch statement which didn't do absolutely anything -- and doesn't seem to be needed at all, so drop it. See #13671.

2015-02-15 01:01 VZ, revision 78493

No real changes, just fix a typo in a comment. s/ommitted/omitted/

2015-02-15 01:01 VZ, revision 78492

Remove useless check for NULL in wxFindWindowRecursively(). This is an internal function which is only ever called with non-NULL window.

2015-02-14 20:09 VZ, revision 78491

Use non-static reentrancy guard in wxScrollHelper::AdjustScrollbars(). This prevented calls to AdjustScrollbars() of another window from doing anything if they were called due to a size change from AdjustScrollbars() of an outer window. Closes #16852.

2015-02-14 19:37 DS, revision 78490

Regenerate Xcode projects. Update the Xcode projects to include addremovectrl.cpp, dbgrptg.cpp, and debugrpt.cpp .

2015-02-14 16:05 VZ, revision 78489

Fix coordinates of wxSetCursorEvent in wxGTK. The event coordinates remained in the client coordinates of the window the initial event had been sent to, even when the event was propagated to its parent.

2015-02-14 16:04 VZ, revision 78488

Fix coordinates of wxSetCursorEvent in wxGTK. The event coordinates remained in the client coordinates of the window the initial event had been sent to, even when the event was propagated to its parent.

2015-02-14 15:46 VZ, revision 78487

Correct wxInfoBar::ShowMessage() flags argument documentation. The default value is wxICON_INFORMATION, not wxICON_NONE. Closes #16861.

2015-02-14 15:46 VZ, revision 78486

Correct wxInfoBar::ShowMessage() flags argument documentation. The default value is wxICON_INFORMATION, not wxICON_NONE. Closes #16861.

2015-02-13 22:49 DS, revision 78485

Update XML Tools URL.

2015-02-13 20:42 AW, revision 78484

Initialize wxPGChoices object properly in its copy ctor if source object has no data. Internal data must be always initialized whether the source object contains choices data or not. Closes #16855

2015-02-13 20:36 VZ, revision 78483

Use non-static reentrancy guard in wxScrollHelper::AdjustScrollbars(). This prevented calls to AdjustScrollbars() of another window from doing anything if they were called due to a size change from AdjustScrollbars() of an outer window. Closes #16852.

2015-02-12 23:48 VZ, revision 78482

PCH-less build fixes after r78480. Must include wx/log.h to use wxLogSysError() when not using PCH.

2015-02-12 22:56 VZ, revision 78481

Avoid warnings about not checking read() result in wxJoystick code. Explicitly ignore errors if we can't read from the associated FD. This is mostly done to avoid -Wunused-result warning about not checking read() return value under Ubuntu.

2015-02-12 22:56 VZ, revision 78480

Avoid warnings about not checking chdir() result in wxGTK. Give error if changing directory when wxFD_CHANGE_DIR or wxDIRP_CHANGE_DIR flags are used, this is a good idea generally speaking and it also avoids warnings about not checking chdir() return value that we got under Ubuntu.

2015-02-12 07:12 PC, revision 78479

More complete fix to avoid GDK assertion "impl_window->update_freeze_count > 0" on Ubuntu. Any frozen window in the whole TLW could be affected, not just a child of the enabled window. Also do a more complete search for scrollbars. Closes #16795

2015-02-11 22:16 VZ, revision 78478

Make wxStaticText alignment work with wxGTK2. Alignment was silently ignored in wxStaticText with GTK+ 2 since 2.12 or so, make it work even at the price of using a non-default ellipsize mode as this seems to be the only way to have it at all. Closes #12539.

2015-02-11 22:16 VZ, revision 78477

Add convenient wxST_ELLIPSIZE_MASK constant. This is simply a combination of all 3 different wxST_ELLIPSIZE_XXX styles and makes it simpler to test if any of them is specified. No real changes.

2015-02-11 22:16 VZ, revision 78476

Remove obsolete checks for wxOS_WINDOWS_NT from wxMSW wxStaticText. We don't support Windows 9x any more, so there is no need to check for NT damily at run-time.

2015-02-11 19:11 PC, revision 78475

build fix for __WXUNIVERSAL__

2015-02-11 19:05 PC, revision 78474

avoid GDK assertion "impl_window->update_freeze_count > 0" on Ubuntu when enabling frozen window closes #16795

2015-02-11 07:12 MAR, revision 78473

Re-introduce private mbstowcs/wcstombs for wxQt-Android These functions are needed due Android NDK lacking wide character support, as wchar_t == char according to Android NDK bionic libc/include/wchar.h WARNING: They are minimally functional (provided provisorily until proper workaround is found, specially maybe using Qt built-in functionality). "Basically they produce complete garbage with non-ASCII characters" For more info see discussion in wx-dev list: https://groups.google.com/d/msg/wx-dev/71qtIFcujgM/Q-lbwl59vOIJ Thanks @seandepagnier (modified a bit the comments, added #warning and restructured #if blocks to be only specific for __ANDROID__)

2015-02-11 05:36 MAR, revision 78472

For Android (wxQT), add private wcstol, wcstoul and wcstod These functions are needed by wxString::ToLong wxString::ToDouble etc.. They do exist in the android library, but do not work corretly. This change implements them using strtol strtoul and strtod For more info see discussion in wx-dev list: https://groups.google.com/d/msg/wx-dev/71qtIFcujgM/TRCfCjGHUhEJ Thanks @seandepagnier (modified a bit the comments)

2015-02-11 00:14 VZ, revision 78471

Fix spurious assert in wxGTK wxDataViewCtrl::EditItem(). The assert in wxGtkTreeSelectionLock ctor failed after the first time this object was created as it doesn't reset the selection function to NULL with wxGTK2, fix this by checking for different values depending on whether it's actually the first time we do it or not. In the future we should just reset the selection function to NULL as it does work in GTK+ 3, also update the comment explaining the problem to mention this.

2015-02-11 00:14 VZ, revision 78470

Fix handling of disabled cells in wxGTK wxDataViewCtrl. The original code (see r66404 and r66416) didn't work because it used wxDataViewRenderer::SetMode() to make the renderer inactive but then used its GetMode() to restore the previous state -- which was lost. The result of this was that if the overridden IsEnabled() in the model ever returned false for any row, all the cells in this column, in all the rows, became insensitive, as could be seen by the inability to edit any rating in the first page of the dataview sample (even though it was disabled for a single row only) and any checkboxes on its third page (even though only the last two of them were supposed to be disabled). Fix this simply by making the renderer insensitive at GTK level only, but do not change the mode at wx level. See #12686.

2015-02-11 00:14 VZ, revision 78469

Add check for wxUSE_ADDREMOVECTRL being defined. This should have been part of r78462.

2015-02-11 00:14 VZ, revision 78468

Fix typos in wxTreeEvent::GetOldItem() documentation. Use the correct EVT_TREE_SEL_CHANG{ING,ED} event names instead of the non-existent EVT_TREE_ITEM_CHANG{ING,ED} ones. Closes #16847.

2015-02-11 00:14 VZ, revision 78467

Don't validate and transfer data from hidden dialogs when closing. This is unexpected and resulted e.g. in calling the user-defined TransferDataFromWindow() multiple times for wxPreferencesPages used in wxPreferencesEditor under wxGTK (where it is modeless).

2015-02-09 19:19 PC, revision 78466

don't assume size-allocate implies a widget is realized

2015-02-09 13:10 VZ, revision 78465

Fix DLL declaration of wxAddRemoveCtrlNameStr. The control, and its name string, are in the "adv" library, not "core".

2015-02-09 13:10 VZ, revision 78464

Undo accidental change to the notebook sample. This debugging/testing change was accidentally committed as part of r78462.

2015-02-09 13:10 VZ, revision 78463

Really break into the debugger at the assertion line under wxGTK. This completes the changes of r78408: in addition to making wxTrap() a macro, we also need to call it directly from the assert macro expansion instead of doing it from deep inside wx assert dialog code. See #11184.

2015-02-09 01:26 VZ, revision 78462

Add wxAddRemoveCtrl class. This is a simple high level helper combining an arbitrary control showing multiple items with the buttons allowing to add items to and remove items from this control, but using the buttons and the layout appropriate for the current platform. Add the implementation itself, an example of using it to the dialogs sample and the documentation.

2015-02-09 01:25 VZ, revision 78461

Add an accessor for GtkToolbar widget of wxToolBar. This can be used to customize the toolbar beyond the capabilities of wx API.

2015-02-08 17:36 SC, revision 78460

correcting NSSmallSquareBezelStyle layout inset (top and bottom 1 pixel)

2015-02-08 13:51 AW, revision 78459

Use wxSwap() function to swap values of array elements in wxArrayDoubleEditorDialog::ArraySwap()

2015-02-08 13:48 AW, revision 78458

Use bool constants instead of BOOL ones in propgrid sample. s/FALSE/false/ and s/TRUE/true for the sake of consistency.

2015-02-08 13:45 AW, revision 78457

Implement validator for wxArrayDoubleProperty in propgrid sample. In wxArrayDoubleProperty::DoGetValidator() there is instantiated a wxTextValidator accepting numeric characters, token delimiter and spaces.

2015-02-08 12:17 BP, revision 78456

Turn off batchmode for PDF manual, and no longer update latex_header.

2015-02-08 03:53 BP, revision 78455

Shorten PDF manual ToC, and fix ToC indents. The table of contents is over 600 pages long with the default settings. Now it only lists down to section, and runs 45 pages. Section numbers were also colliding with names, so this fixes the margins in the table of contents.

2015-02-07 23:13 BP, revision 78454

Center the PDF manual logo.

2015-02-06 20:28 VZ, revision 78453

Allow documents without template nor views be deleted correctly again. The changes of r78282 didn't take into account the case of a document without any views nor template and, consequently, without the associated manager. Such documents were not deleted at all any longer. Fix this by ensuring that a document is always associated with a manager: if not with the one specified by its template, then with the global one.

2015-02-06 02:51 BP, revision 78452

Fix LaTeX docs for PDF manual. LaTeX fails to handle tables nested in @param sections, and we've only used them to expand on enums that should be documented on their own anyway, so the docs have been extracted here.

2015-02-06 02:51 BP, revision 78451

Minor adjustments to LaTeX manual header.

2015-02-06 02:51 BP, revision 78450

Sync with Doxygen LaTeX header. Using a custom header is an "experimental" feature since it bypasses several Doxygen configuration options, and skips configuration changes necessary for all automatically generated LaTeX. This continues to use the nicer looking custom header, but brings it up-to-date with the automatically generated one from 1.8.8.

2015-02-04 18:58 BP, revision 78449

Backport r78447: Updated logos in the reference manual.

2015-02-04 18:44 VZ, revision 78448

Fix the expected size of the header logo on www.wxwidgets.org. The image has been updated in the website repository and online, update its expected size to reflect it and fix the unit test suite.

2015-02-04 18:44 BP, revision 78447

Updated logos in the reference manual.

2015-02-04 18:05 AW, revision 78446

Fix small typo in propgrid sample.

2015-02-04 17:53 AW, revision 78445

Use wxPG_IMPLEMENT_PROPERTY_CLASS macro in the propgrid sample. Replace old WX_PG_IMPLEMENT_PROPERTY_CLASS macro with new and simplified wxPG_IMPLEMENT_PROPERTY_CLASS macro. See #15541

2015-02-04 17:46 AW, revision 78444

Replace WX_PG_IMPLEMENT_PROPERTY_CLASS macro with simplified wxPG_IMPLEMENT_PROPERTY_CLASS macro. New macro have no obsolete parameters and its name conforms to the naming standard (prefixed with wx). Closes #15541

2015-02-04 17:18 VZ, revision 78443

Make wxNativePrinterDC::IsOk() const in wxOSX. Closes #16837.

2015-02-04 17:17 VZ, revision 78442

Minor changes in wxChmTools: add const, remove semicolons. Also fix a typo in a comment. Closes #16836.

2015-02-04 14:19 VZ, revision 78441

Fix a couple of typos in comments in wxX11 code. Closes #16835.

2015-02-04 14:19 VZ, revision 78440

Remove unnecessary statement from wxX11 wxTextCtrl code. We don't care about size_x variable value and should probably get rid of it entirely, but for now at least don't update it unnecessarily. Closes #16834.

2015-02-04 14:19 VZ, revision 78439

Don't declare unnecessary variable in wxUSE_NANOX wxX11 build. Closes #16833.

2015-02-04 14:18 VZ, revision 78438

Don't check if an unsigned variable is less than 0. This doesn't risk ever being true. Closes #16831.

2015-02-04 14:18 VZ, revision 78437

De-TAB wxX11 code. Remove hard TABs.

2015-02-04 14:16 VZ, revision 78436

Fix harmless unused variable warning in some build configurations. Don't declare the variables if they are not going to be used. Closes #16830.

2015-02-04 14:16 VZ, revision 78435

Suppress harmless unused parameter warnings in release build. Use WXUNUSED_UNLESS_DEBUG() for the parameters used only inside debug checks. Closes #16829.

2015-02-03 19:28 VZ, revision 78434

Consistently refuse to create bitmaps with 0 width or height. Homogenize the behaviour of all ports when creating bitmaps with 0 width or height: just fail always as it doesn't seem to make sense to support this. Closes #16828.

2015-02-02 19:31 PC, revision 78433

set transient parent for 'about' dialog, closes #16823

2015-02-02 18:23 PC, revision 78432

use logical operator, rather than bitwise, on bools, closes #16824

2015-02-01 19:06 PC, revision 78431

avoid passing invalid rect to Refresh(), closes #16819

2015-02-01 12:33 VZ, revision 78430

Prettify configure output when checking for backtrace(). The output of "checking for backtrace()" was interspersed with the output of "checking for library containing backtrace", which was ugly and potentially confusing, so move AC_SEARCH_LIBS() out of AC_CACHE_CHECK() to fix it.

2015-02-01 12:14 AW, revision 78429

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. This is a backport of r77687. See #16556.

2015-01-31 22:49 AW, revision 78428

Encapsulate wxPGProperty::m_children member variable. Implement RemoveChild and SortChildren methods to perform operations on m_children member variable.

2015-01-31 22:45 AW, revision 78427

Use getter methods to get access to wxPGProperty member variables. Use GetValueImage() getter to get access to m_valueBitmap data member. Use GetMaxLength() getter to get access to m_maxLen data member. Use GetAttributes() getter to get access to m_attributes data member. Use GetChoices() to get access to m_choices data member. Use GetDepth() to get access to m_depth member variable. Use GetBaseName() method to get access to m_name data member Use GetLabel() method to get access to m_label member variable.

2015-01-31 22:42 AW, revision 78426

Use getter/setter methods to get access to wxPGProperty::m_flags. Use dedicated wxPGProperty::HasFlags, wxPGProperty::SetFlag methods to check or modify wxPGProperty::m_flags member variable.

2015-01-30 16:53 VS, revision 78425

Avoid unneeded use of wxLocale in wxDateTime::Format() On OS X, wxDateTime::Format() uses wxString::Replace() to unconditionally replace locale-specific %c, %x and %X specifiers in the format string if present. Doing so causes three wxLocale::GetInfo() calls that are often not necessary. Check for the presence of these specifiers before calling GetInfo().

2015-01-30 16:53 VS, revision 78424

Handle 5+ letter codes in TranslateFromUnicodeFormat() Unicode TR #35 v26 allows for five-letter (MMMMM) or even six-letter (EEEEEE) forms of some of the fields, but TranslateFromUnicodeFormat() asserts in these situations. Fix it to fall back to short forms for MMMMM and EEEEEE that are used in practice e.g. on OS X if the user has custom formatting settings. Consulting the table of sensible specifiers from http://userguide.icu-project.org/formatparse/datetime, it appears these two were the only omissions in this function.

2015-01-30 16:53 VS, revision 78423

Avoid unneeded use of wxLocale in wxDateTime::Format() On OS X, wxDateTime::Format() uses wxString::Replace() to unconditionally replace locale-specific %c, %x and %X specifiers in the format string if present. Doing so causes three wxLocale::GetInfo() calls that are often not necessary. Check for the presence of these specifiers before calling GetInfo().

2015-01-30 16:53 VS, revision 78422

Handle 5+ letter codes in TranslateFromUnicodeFormat() Unicode TR #35 v26 allows for five-letter (MMMMM) or even six-letter (EEEEEE) forms of some of the fields, but TranslateFromUnicodeFormat() asserts in these situations. Fix it to fall back to short forms for MMMMM and EEEEEE that are used in practice e.g. on OS X if the user has custom formatting settings. Consulting the table of sensible specifiers from http://userguide.icu-project.org/formatparse/datetime, it appears these two were the only omissions in this function.

2015-01-29 13:25 VZ, revision 78421

Reset wxUSE_LIBNOTIFY if libnotify not detected in configure. This avoids WARNING: libnotify not found, wxNotificationMessage will use generic implementation. followed by Which GUI toolkit should wxWidgets use? GTK+ 2 with support for libnotify at the end.

2015-01-27 12:51 VZ, revision 78420

Fix wxEVT_TREE_STATE_IMAGE_CLICK generation in wxMSW wxTreeCtrl. Use GET_{X,Y}_LPARAM() to extract them from the event position, which handle negative coordinates (and coordinates can perfectly well be negative when using multiple displays) correctly, unlike {LO,HI}WORD(). Closes #16812.

2015-01-27 12:49 VZ, revision 78419

Fix wxEVT_TREE_STATE_IMAGE_CLICK generation in wxMSW wxTreeCtrl. Use GET_{X,Y}_LPARAM() to extract them from the event position, which handle negative coordinates (and coordinates can perfectly well be negative when using multiple displays) correctly, unlike {LO,HI}WORD(). Closes #16812.

2015-01-27 12:03 VZ, revision 78418

Improve wxThread::SetPriority() comment and documentation. Don't claim that SetPriority() can only be called before the thread is created, this is just wrong. Do document that it must be done after creating the thread in wxMSW (this is a limitation of this port as POSIX implementation allows calling it at any moment and could be lifted in the future). Closes #16809.

2015-01-26 16:10 VZ, revision 78417

Don't leave too much blank space in wxDatePickerCtrl under XP. In our efforts to account for the longest possible string we made the control too wide by default which didn't look very good, so reduce the amount of space added to it, this still seems to be (just) enough for all the reasonable date formats (tested under Windows XP SP3 with default DPI).

2015-01-24 23:09 VZ, revision 78416

Clarify wxExpectModal<> use and implementation. The only change in this commit is the omission of the primary wxExpectModal<> template as it's not needed and it's enough to just forward declare it, otherwise the changes are to the comments only and try to better explain how this class should be used, i.e. that it's not required, although it may be convenient, to specialize it, and also how it is implemented, notably the need for the CRTP in wxExpectModalBase<>.

2015-01-24 23:09 VZ, revision 78415

Use C++ RTTI in dialog testing code if wxRTTI is not available. This allows to get the best possible description of the dialog: if its class uses wxRTTI macros, its user-readable name will be used, but otherwise we now fall back on possibly unreadable but still informative mangled C++ class name rather than showing just "wxDialog" which is not useful at all.

2015-01-24 23:08 VZ, revision 78414

Cosmetic change to wxTestingModalHook error message. Don't include the word "dialog" in it, by default the description is just the class name and so typically already includes "dialog" in it, e.g. we could have "Expected wxFileDialog dialog" which was redundant.

2015-01-24 23:08 VZ, revision 78413

Provide better description of the expected message boxes. While the example in the previous commit message, with two identical expectations, still requires a custom description to be have unambiguous failure messages, in other cases it's enough to show the expected message box buttons in the error to make it possible to immediately see which expectation failed, so include the information deduced from the expected button into the description.

2015-01-24 23:08 VZ, revision 78412

Allow providing descriptions for dialog tests expectations. This makes test failure errors much more intelligible, e.g. in the following case ... some code ... wxTEST_DIALOG(wxYield, wxExpectModal<wxMessageDialog>(wxID_OK)); ... some more code ... wxTEST_DIALOG(wxYield, wxExpectModal<wxMessageDialog>(wxID_OK)); it was previously impossible to distinguish the first test failure from the second one from just the failure description (it could be done by looking at the line numbers since the recent change however), but with ... wxTEST_DIALOG(wxYield, wxExpectModal<wxMessageDialog>(wxID_OK). Describe("first warning message box")); ... wxTEST_DIALOG(wxYield, wxExpectModal<wxMessageDialog>(wxID_OK). Describe("successful completion message box")); the failure becomes immediately clear.

2015-01-24 23:08 VZ, revision 78411

Allow predefining wxTEST_DIALOG_HOOK_CLASS before wx/testing.h inclusion. Although it already was (and remains) possible to #undef and re-#define wxTEST_DIALOG_HOOK_CLASS after including wx/testing.h, it should also be possible to just define it globally in the testing code before including anything else and not have to bother with the #undef part.

2015-01-24 23:08 VZ, revision 78410

Improve error reporting from wxTEST_DIALOG() macro. Give the location (i.e. file name, line number and the name of the function) at which this macro itself appears instead of the location of ReportFailure() method inside wxTestingModalHook which was quite useless as it was the same for all the tests.

2015-01-24 23:08 VZ, revision 78409

Add wxASSERT_MSG_AT() and wxFAIL_MSG_AT() macros. These macros are useful for functions called from other macros to allow pretending that an assert inside such function actually happens at the point in the sources where the macro itself appears.

2015-01-24 23:08 VZ, revision 78408

Define wxTrap() as a macro for gcc on Intel platforms too. It is more convenient to break into the debugger at the exact location of the assert instead of inside a nested wxTrap() function. This does the same thing for gcc/x86 as was done for MSVC in r73124. See #11184.

2015-01-24 23:08 VZ, revision 78407

Fix typo in a comment for NewCloseButton(). s/common/current/

2015-01-24 16:00 VS, revision 78406

Allow disabling SetProcessDPIAware() call Add Windows-specific wxMSWDisableSettingHighDPIAware() function then can be called before startup (i.e. wxEntry() call) to disable wxWidgets' handling of DPI awareness. This is useful for code embedded in non-wx applications as well as for purely wx application that are not HiDPI-ready (although the latter has the option of forcing dpiAware=false in the manifest). See also https://groups.google.com/d/msg/wx-dev/Z0VpgzCY34U/f1FfPqGDppMJ and #16116.

2015-01-22 18:32 AW, revision 78405

Use constant variables to store cached constants in wxPGGlobalVarsClass.

2015-01-22 17:24 VZ, revision 78404

Remove accidentally left over wxLogMessage() from wxGTK wxWebViewWebKit. This resulted in a message box being shown each time Find() was called and was clearly undesirable. Closes #16801.

2015-01-21 18:28 AW, revision 78403

Use polymorphism to differentiate behaviour of wxEnumProperty and wxEditEnumProperty. Override OnSetValue(), StringToValue(), ValidateValue() methods instead of using RTTI in conditional statements to check if wxEditEnumProperty object is actually handled.

2015-01-21 18:14 AW, revision 78402

Refactor propgrid sample (rounding numbers). Use wxRound function to round floating point numbers.

2015-01-21 18:11 AW, revision 78401

Refactor propgrid sample (attribute constants). Use attribute constants instead of strings when calling wxPGProperty::SetProperty and wxPGProperty::GetProperty in propgrid samples.

2015-01-21 18:06 AW, revision 78400

Refactor property attribute names in wxPGProperty::GetAttribute calls. Use attribute constants instead of strings in wxPGProperty and wxPGDefaultRenderer classes and in NumericValidation() function.

2015-01-21 17:59 AW, revision 78399

Refactor wxPGSpinCtrlEditor. Declare and use attribute constant instead of explicit string "MotionSpin".

2015-01-21 15:31 JS, revision 78398

Remove selection before container is deleted or it could cause a crash later.

2015-01-21 15:31 JS, revision 78397

Remove selection before container is deleted or it could cause a crash later.

2015-01-20 16:26 VS, revision 78396

Use wxNB_MULTILINE in wxPreferencesEditor The size of the dialog in wxPreferencesEditor's generic implementation is determined from notebook pages alone and doesn't account for label size, which may be significantly longer in some languages (German, Danish). If the labels don't fit into the window, some of the tabs are hidden behind scroll buttons that are easy to overlook. Improve usability by using wxNB_MULTILINE, which will use multiple rows of tabs in this situation. This is what e.g. Internet Explorer does in its preferences as well.

2015-01-20 16:26 VS, revision 78395

Use wxNB_MULTILINE in wxPreferencesEditor The size of the dialog in wxPreferencesEditor's generic implementation is determined from notebook pages alone and doesn't account for label size, which may be significantly longer in some languages (German, Danish). If the labels don't fit into the window, some of the tabs are hidden behind scroll buttons that are easy to overlook. Improve usability by using wxNB_MULTILINE, which will use multiple rows of tabs in this situation. This is what e.g. Internet Explorer does in its preferences as well.

2015-01-20 16:01 TIK, revision 78394

Fix memory leak introduced in r78183: wxMenuItemBase::SetAccel does not take ownership of the passed pointer nor keeps it for later use.

2015-01-20 16:00 TIK, revision 78393

Fix memory leak introduced in r78179: wxMenuItemBase::SetAccel does not take ownership of the passed pointer nor keeps it for later use.

2015-01-19 21:19 AW, revision 78392

Function wxPGProperty::HasFlag should return Boolean value.

2015-01-19 20:58 AW, revision 78391

Implement deprecated wxPGProperty::GetValueString function only in wxPG 1.4 compatibility mode. This function was marked as deprecated in 2008.

2015-01-19 18:22 AW, revision 78390

Fix a hack implemented in wxEnumProperty::ValueFromString_ and wxEnumProperty::ValueFromInt_ functions. wxEnumProperty code is refactored in order to fix a hack which purpose was (apparently) to bypass constness of these functions by caching determined indices in wxEnumProperty::ms_nextIndex static member variable for further processing. (Unclear concept of using this static member was referred in http://trac.wxwidgets.org/ticket/12779#comment:9) Now, determined index is returned to the caller and processed there if necessary and hence caching of this index is not necessary.

2015-01-19 13:18 VZ, revision 78389

Use logical operations instead of bit-wise ones for booleans. wxUniv "Windows" theme code wrongly used bitwise operations on boolean values, fix this. Closes #16796.

2015-01-19 04:05 MAR, revision 78388

remove wxMISSING_IMPLEMENTATION because wxQtDCImpl::DoBlit is implemented Thanks @seandepagnier

2015-01-19 04:03 MAR, revision 78387

Fix problem with scrollbar events in wxQT the local variable event shadowed the parameter which caused the incorrect value to be sent Thanks @seandepagnier

2015-01-19 04:02 MAR, revision 78386

Fix crash from possible NULL pointer in wxQT list ctrl Thanks @seandepagnier

2015-01-19 04:01 MAR, revision 78385

Fix problem with clipping region in wxqt. QPainter cannot set the clipping region when it is not active. Thanks @seandepagnier

2015-01-19 03:57 MAR, revision 78384

wxQT: move destroyed debug log into class method (remove global function to handle destroyed signal) This is needed for applications because the global function is not exported, yet it is used by the opengl library. An alternative is to add utils.cpp to the opengl library Thanks @seandepagnier

2015-01-19 03:44 MAR, revision 78383

wxQt: Fix compiler error for ambiguous call (when compiling without unicode support) Thanks @seandepagnier

2015-01-19 03:41 MAR, revision 78382

wxQT: Add guard to wxWindowQt for building without unicode support Thanks @seandepagnier

2015-01-19 03:39 MAR, revision 78381

wxQt: fix performance issue with font comparisons Thanks @seandepagnier

2015-01-19 03:38 MAR, revision 78380

Added wxUSE_XLOCALE ifdef guard to wxTimePickerGenericImp Allow to compile wxQT when configure with --disable-xlocal Thanks @seandepagnier

2015-01-19 03:31 MAR, revision 78379

Fix building for wxQT-android with sockets enabled The bionic library on android does not have gethostbyname_r even though it has gethostbyname_r. The configure script in wxwidgets assumes if it has one it has the other. This change does the right thing for android, but perhaps the script should instead test for both? Thanks @seandepagnier

2015-01-19 03:29 MAR, revision 78378

Fix Select on wxQT DC implementation Need to set the underlying qt painter up with the current pen, brush and font when a new object is selected Thanks @seandepagnier

2015-01-19 03:22 MAR, revision 78377

Specify needed header files more correctly (needed for wxqt-android) Thanks @seandepagnier

2015-01-19 03:18 MAR, revision 78376

Correct wxWindowQt::DoSetSize() for possible NULL member de-reference. Thanks David Register

2015-01-19 02:03 MAR, revision 78375

Remove duplicate declaration in wxRichTextCtrl buffer interface This is needed to compile wxPython Phoenix

2015-01-18 09:06 RD, revision 78374

another test commit, undoing the last one

2015-01-18 08:48 RD, revision 78373

This is just a test commit.

2015-01-16 03:39 VZ, revision 78372

Fix typo in wxSOCKET_NOWAIT_WRITE description in the manual. Don't contradict ourselves. Closes #16779.

2015-01-16 03:39 VZ, revision 78371

Fix checks for WXWIN_COMPATIBILITY_3_0: use #if, not #ifdef. The deprecated methods were always available as WXWIN_COMPATIBILITY_3_0 is always defined, we need to check its value and not its definedness. Closes #16782.

2015-01-13 18:05 JS, revision 78370

Bullet no longer gets the attributes from the first object in the list paragraph, so we can control it via paragraph attributes.

2015-01-13 17:41 AW, revision 78369

Fix using WXWIN_COMPATIBILITY_3_0 in conditional blocks in wxPG code. Check the value of WXWIN_COMPATIBILITY_3_0 instead of checking whether it is defined.

2015-01-12 21:37 AW, revision 78368

Preserve alpha channel flag when rescaling bitmap in wxPGProperty::SetValueImage (when wxUSE_IMAGE == 0). Rescaled bitmap must have the same alpha channel flag as the source bitmap flag in order to be properly displayed.

2015-01-12 21:32 AW, revision 78367

Let system decide about required depth of rescaled bitmap in wxPGProperty::SetValueImage. There is not necessary to fix the color depth - everything is determined internally when converting wxImage to wxBitmap.

2015-01-12 21:29 AW, revision 78366

Sanity check regarding DC in wxPropertyGrid::OnComboItemPaint Ensure that wxDC used by drawing functions in wxPropertyGrid::OnComboItemPaint is valid.

2015-01-12 21:23 AW, revision 78365

Don't attempt to draw element-specific bitmap when drawing wxPGChoices element inside the control field of wxEnumProperty with wxPGComboBox. The only bitmap which can be drawn in the control field is a "general" value bitmap (assigned to the property). Closes #16781

2015-01-11 23:49 VZ, revision 78364

Fix selection of items inserted in virtual generic wxDataViewCtrl. Call wxSelectionStore::OnItemsInserted() explicitly instead of just using our UpdateCount() to update the count of items managed by the selection. This needs to be done to ensure that the newly added items have the correction selection, i.e. are always unselected, as previously this wasn't the case: if wxSelectionStore was in the "selected by default" state as it happened e.g. after selecting all the items in the control, the new items also ended up being selected.

2015-01-11 23:49 VZ, revision 78363

Fix selection in virtual generic wxDataViewCtrl after deleting items. The number of items managed by selection was first decremented by our own UpdateCount() and then, again, by an explicit call to wxSelectionStore:: OnItemDelete(), which resulted in the selection ending up in an invalid state. Fix this by not calling UpdateCount(), and hence wxSelectionStore:: SetItemCount(), at all, just OnItemDelete() is enough.

2015-01-10 10:13 SC, revision 78362

removing overridden ProcessIdle, reverting that part of r75289

2015-01-09 04:30 VZ, revision 78361

Send deactivation events to MDI children frame in wxMSW too. For some reason, the code only forwarded activation events to the current MDI child, but not the deactivation ones. And even though this was literally always the case (the check for the event being the activation one is there since r9), it is clearly wrong as the focus restoring code in wxTopLevelWindow in wxMSW doesn't work if the focus hadn't been previously saved. This fix hopefully completes the changes started by r78340 and r78341 and ensures that the focus is always properly restored to the last focused window inside an MDI child.

2015-01-09 04:30 VZ, revision 78360

No changes, just fix a slightly misleading comment in wxMSW focus code. DefWindowProc() never preserves the focused window actually, whether we use WM_NEXTDLGCTL (which is only handled by DefDlgProc() anyhow) or not.

2015-01-09 04:30 VZ, revision 78359

Make specifying minimal size for "unknown" XRC controls work. At least since the changes of r44456 (see #8378), minimal size specified in the XRC for unknown controls didn't have any effect as it was set on wxUnknownControlContainer itself and was overridden by the subsequent call to SetSizerAndFit() which reset the minimal size to the best size of the control contained in it, meaning that it was impossible to make this contained control bigger by specifying min size greater than its best size in the XRC. Fix this by honouring both the min size of the container and of the control contained in it (and do the same thing for the max size for good measure). To avoid not totally obvious interaction of overriding GetMinSize() and DoGetBestClientSize() with sizer code, also position the child control manually instead of using a sizer for it, it's an overkill for such a simple case anyhow.

2015-01-09 04:30 VZ, revision 78358

Make generic wxDataViewCtrl initially usable from keyboard. This control doesn't react to the keyboard at all if it doesn't have a current row and as it doesn't have it initially, it means that there is no way to do anything with the control without clicking it with the mouse first. Fix this by giving it a current row, if possible, whenever it gains focus.

2015-01-09 04:29 VZ, revision 78357

Always invalidate wxStaticText best size after changing its label. wxST_NO_AUTORESIZE style only affects whether the control is actually resized when its text changes, but its best size should always change, so that if the window containing it is explicitly relaid out the size does change. Moreover, in wxMSW and wxOSX the best size was never invalidated at all when the label was ellipsized, so it was never updated for them, preventing, for example, comparing the best size with the current one to check if the text is effectively ellipsized (and so needs to be shown in a tooltip, for example). Fix this by calling InvalidateBestSize() unconditionally, this should make these ports behave in the same was as wxGTK already did.

2015-01-08 15:11 VZ, revision 78356

only flush a client dc if it was not inheriting the native CGContextRef from an outside paint context, fixes #16334

2015-01-06 21:20 VZ, revision 78355

Fix wxBitmap conversion to wxImage in 64-bit wxOSX builds. Don't assume that sizeof(long) == 4, this is just wrong. Closes #16770.

2015-01-06 21:08 VZ, revision 78354

Fix wxBitmap conversion to wxImage in 64-bit wxOSX builds. Don't assume that sizeof(long) == 4, this is just wrong. Closes #16770.

2015-01-06 08:12 MAR, revision 78353

Added new ctor for wxBitmap using wxCursor for wxQT (similar to wxGTK) This is the implementation that should had been included in r78348

2015-01-05 13:49 TIK, revision 78350

On wxMac, modal event loops avoid deleting pending objects. Hide the text control after editing a label in the generic tree control so it does not remain visible e.g. if the tree control is used in a dialog.

2015-01-05 13:48 TIK, revision 78349

On wxMac, modal event loops avoid deleting pending events. Hide the text control after editing a label in the generic tree control so it does not remain visible e.g. if the tree control is used in a dialog.

2015-01-04 04:51 MAR, revision 78348

Added new ctor for wxBitmap using wxCursor for wxQT (similar to wxGTK)

2015-01-04 03:49 MAR, revision 78347

Added missing ctor for wxBitmap using wxIcon for wxQT (taken from wxOSX)

2015-01-03 21:45 VZ, revision 78346

Fix wxFileDialog::GetFilterIndex() when opening files in wxOSX. Update m_filterIndex in the "opening" case, just as we already did in the "saving" one (see #13158 and r67550). Closes #16764.

2015-01-03 21:45 VZ, revision 78345

Fix wxFileDialog::GetFilterIndex() when opening files in wxOSX. Update m_filterIndex in the "opening" case, just as we already did in the "saving" one (see #13158 and r67550). Closes #16764.

2015-01-03 16:20 AW, revision 78344

Optimize wxPGChoices::Add methods. Remove unnecessary variables, limit the scope of variables and implement some sanity checks.

2015-01-03 16:10 AW, revision 78343

Optimize wxPGChoices::Set method. There is no need to check if referenced array with values is valid since "reference cannot be bound to dereferenced null pointer in well-defined C++ code". Moreover, conditional call of Add() methods(one with explicit parameter and one with default one) is not necessary.

2015-01-03 14:33 VZ, revision 78342

Fix the size of the "new" bitmap in the toolbar sample. It was broken by the changes of r78238 and was too small for the height in the header, resulting in an immediate crash on toolbar sample startup.

2015-01-03 02:07 VZ, revision 78341

Don't change MDI children order after showing a file dialog in wxMSW. Don't use the generic focus saving/restoring code for wxMDIParentFrame in wxMSW as it already saves and restores the active MDI child on its own and we should let it do it, as our code could change the active child when restoring focus if it hadn't been saved correctly previously. The fact that it is isn't saved is another bug, but even if it is fixed, we should let MSW MDI implementation handle activation as we can't do it any better -- but can do worse, as the bug described in #16635 shows. Closes #16635.

2015-01-03 02:07 VZ, revision 78340

Fix saving focus for MDI child frames in wxMSW. Use wxWindow::IsDescendant() instead of wxGetTopLevelParent() to determine whether the focused window is inside the TLW, as the former works correctly for any window, including wxMDIChildFrames, while the latter would return wxMDIParentFrame for them (as MDI children are not considered to be TLWs) and so saving the focus would always fail and the focus was always restored to the first child of wxMDIChildFrame after switching from it to another child frame and back, as could be seen by applying the simple patch: ---------------------------------- >8 -------------------------------------- diff --git a/samples/docview/view.cpp b/samples/docview/view.cpp index 9f20032..8386522 100644 --- a/samples/docview/view.cpp +++ b/samples/docview/view.cpp @@ -160,8 +160,9 @@ bool TextEditView::OnCreate(wxDocument *doc, long flags) wxFrame* frame = wxGetApp().CreateChildFrame(this, false); wxASSERT(frame == GetFrame()); m_text = new wxTextCtrl(frame, wxID_ANY, "", - wxDefaultPosition, wxDefaultSize, + wxPoint(5, 5), wxDefaultSize, wxTE_MULTILINE); + new wxButton(frame, wxID_ANY, "Button", wxPoint(5, 100)); frame->Show(); return true; ---------------------------------- >8 -------------------------------------- Notice that the bug usually stayed hidden because it didn't happen if wxMDIChildFrame contained a wxPanel (which also stores the last focus) inside it or if the focus switched away from the entire application instead of just going to another child and back, as in this case the last focus was stored in wxMDIParentFrame, for which the old code did work.

2015-01-03 02:07 VZ, revision 78339

Add include/wx/richtext/richtexttabspage.h to the MSBuild project. This seems like an occidental omission.

2015-01-03 02:07 VZ, revision 78338

Remove files not being compiled from richtext MSBuild project. Several sources in this project are actually not compiled at all, but are included from other files, so they don't appear in the master sources list. Update the project accordingly, for consistency with the earlier versions of MSVC. If these files should appear in it, they need to be added to RICHTEXT_HDR variable.

2015-01-03 02:07 VZ, revision 78337

Add appprogress.{h,cpp} to the files list. The wxMSW header was absent from both the bakefile and master file list, and the latter also lacked the other wxAppProgressIndicator-related files. Also regenerate the project file to contain the MSW header.

2015-01-03 02:07 VZ, revision 78336

No changes, just sort files alphabetically in the bakefiles files list. Keep MSW_SRC files list sorted, appprogress.cpp was added in a wrong place.

2015-01-03 00:49 VZ, revision 78334

German translations update from Wolfgang Stöggl .

2015-01-02 17:15 AW, revision 78333

Delete wxDC object when exiting from wxPropertyGrid::OnPaint

2015-01-02 15:26 VZ, revision 78332

Improve widgets sample UI consistency. Ensure that the various attributes (colours, font, border, ...) are preserved when a widget is recreated or the current page is changed. This is more convenient and also avoids discrepancies between the state of the menu items and the actual state of the widget. Closes #16576.

2015-01-01 00:36 RD, revision 78331

a commit to test Trac/SVN integration. Closes #16754

2014-12-31 23:25 RD, revision 78330

just another test commit

2014-12-31 23:20 RD, revision 78329

just a test commit

2014-12-28 21:06 AW, revision 78328

Pass outside wxPG a modified clone of wxEVT_TEXT event instead of hacking current event object. Using a clone of event (with PG id) instead of replacing id in the currently processed event coming from wxPGTextCtrlEditor seems to be less intrusive and safer action.

2014-12-27 15:24 VZ, revision 78327

Fix reading of not NUL-terminated strings using wxRegKey. Even though this is typically the case, some strings in Windows registry are not NUL-terminated, deal with them correctly by using the explicit length. Closes #16719.

2014-12-27 15:24 VZ, revision 78326

Revert "Add support for reading multi string values to wxRegKey." Reverts r78136 (see #15727) because the multi-string values in Windows registry are actually not "name=value" pairs at all but just NUL-separated strings and the API provided for reading them was inappropriate. Also see #16719.

2014-12-27 15:24 VZ, revision 78325

Fix flickering when resizing a frame with status bar in wxMSW. The flicker was only visible under Windows XP or when using a class theme and was due to mis-positioning the status bar initially in PositionStatusBar(). Fix this by adjusting its position by the toolbar offset before calling its SetSize(). Closes #16705.

2014-12-27 15:24 VZ, revision 78324

Make disabling submenus work in wxMSW. As submenu items don't have a valid ID, we need to address them by their position when calling EnableMenuItem() -- and for simplicity do it for all the items. Closes #16747.

2014-12-27 15:17 VZ, revision 78323

Make disabling submenus work in wxMSW. As submenu items don't have a valid ID, we need to address them by their position when calling EnableMenuItem() -- and for simplicity do it for all the items. Closes #16747.

2014-12-27 15:17 VZ, revision 78322

Fix handling of fast clicks in wxRibbonBar under MSW. Second click can result in a double click event instead of the usual simple click if it happens quickly enough after the first one, so handle double clicks in the same way as simple clicks instead of ignoring them. Closes #16551.

2014-12-27 12:30 AW, revision 78321

Do not actually reconnect PG event handlers when attempting to reconnect them to the same window. When in wxPropertyGridManager::ReconnectEventHandlers() new window ID is the same as old window ID then there is no need to do anything with handlers. An assertion warning is displayed in this case to notify about this unusual (and maybe unintended) situation.

2014-12-25 02:32 VZ, revision 78320

Fix removing tools from wxToolBar in wxOSX. Release the tool instead of retaining it (typo?) and also remove it from the toolbar view. See #16663.

2014-12-25 02:32 VZ, revision 78319

Don't overflow the message queue in wxEventLoop::WakeUp() in wxOSX. First, don't add any events at all to it unless it's empty. Second, post new events with low priority instead of high one, we really don't care about them getting processed, other, real, events should take priority. Closes #14256.

2014-12-25 02:32 VZ, revision 78318

Blind fix for wxTextDataObject trailing NUL under OS X. Use the length provided to SetData() instead of assuming it is NUL-terminated. Closes #9522.

2014-12-25 02:32 VZ, revision 78317

Generate wxEVT_DATAVIEW_ITEM_ACTIVATED on Enter in wxOSX wxDVC. Allow activating wxDataViewCtrl items from keyboard under OS X. Closes #16272.

2014-12-25 02:32 VZ, revision 78316

Allow setting hints for multi-line wxTextCtrl when supported. Don't prevent people from using hints in wxMSW and wxGTK2, where they work with multiline text controls too, even though they do not work with wxGTK3 nor wxOSX. Closes #14456.

2014-12-25 02:31 VZ, revision 78315

Add support for strikeout fonts to wxMSW wxTextCtrl. Map them to CFE_STRIKEOUT in the native rich text control. See #16591.

2014-12-25 02:31 VZ, revision 78314

Fix handling of fast clicks in wxRibbonBar under MSW. Second click can result in a double click event instead of the usual simple click if it happens quickly enough after the first one, so handle double clicks in the same way as simple clicks instead of ignoring them. Closes #16551.

2014-12-24 21:02 MAR, revision 78313

Match the wxQT wxColour with public interface Now the type of the value returned by Red, Green, Blue and Alpha methods are consistent with wxGTK and wxMSW. This could fix ticket #16713 (symbols exported)

2014-12-24 20:19 MAR, revision 78312

Fix SIGSEGV due bad pointer in wxMessageDialog (wxQT) m_qtWindow should be used instead of m_qtMessageBox (removed). If not, PostCreation() cannot call wxMessageDialog::GetHandle() as it is virtual (and it is called from the ctor), so it fails to set the base window pointer, raising a SIGSEGV in wxWindow::DoSetSize (for more info, see architecture in docs)

2014-12-24 14:57 VZ, revision 78311

Fix some typos in the comments and messages in the samples. Closes #16738.

2014-12-24 14:57 VZ, revision 78310

Update dialog editors list in the manual. Remove wxDesigner which is not offered any more and add wxCrafter. Also use more neutral "form designer" term to avoid giving the impression that these tools can only be used for the dialogs. Closes #16744.

2014-12-24 14:57 VZ, revision 78309

Add brief documentation for wxLog::Flush(). See #16744.

2014-12-24 14:57 VZ, revision 78308

Escape space after "e.g." or "i.e." in the manual. This fixes formatting of the Doxygen-generated docs (maybe we should just switch to the civilized spelling of "eg" and "ie" instead?). See #16744.

2014-12-24 14:56 VZ, revision 78307

Correct minor typo in wxMimeTypesManager documentation. See #16744.

2014-12-24 14:56 VZ, revision 78306

Correct typo in wxStopWatch example in the documentation. See #16744.

2014-12-24 14:56 VZ, revision 78305

Czech translations update from Zbyněk Schwarz.

2014-12-23 10:50 VZ, revision 78303

Use Cmd-click, not Apply-click, to select items in wxVListBox. Using Apple key here under Mac was unexpected, we should use Cmd which corresponds to Ctrl used under the other platforms and which is already mapped to it by wxKeyboardState::ControlDown().

2014-12-22 02:31 VZ, revision 78297

Don't try setting width before column is added to wxOSX wxDVC. This is not going to work anyhow and the width will be really set later, when InsertColumn() is called.

2014-12-22 02:31 VZ, revision 78296

Don't warn if model cell value is empty in wxOSX wxDVC. This follows similar change to wxGTK a few commits ago and makes wxOSX consistent with the generic version.

2014-12-22 02:31 VZ, revision 78295

Refactor type checks in wxOSX wxDVC implementation. Check the type in one place only, before calling MacRender() instead of doing it in each and every implementation of it. Also replace wxFAIL_MSG() with wxLogDebug() as the former resulted in a crash due to assert reentrancy, as usual when asserting inside a wxEVT_PAINT handler which is constantly called all the time, and so wasn't particularly useful.

2014-12-22 02:31 VZ, revision 78294

Remove unnecessary methods of wxCocoaOutlineDataSource. {append,remove}Child() were never used, remove them to make it easier to remove the use of "children" array itself later (see #16740).

2014-12-22 02:31 VZ, revision 78293

Don't warn if model cell value is empty in wxGTK wxDVC. Make wxGTK consistent with the generic version and, generally speaking, more reasonable by allowing to leave any cell empty by just not filling in the wxVariant in the model GetValue() for it.

2014-12-22 02:31 VZ, revision 78292

Replace wxLogError() with wxLogDebug() in wxGTK wxDVC code. The type mismatch between the value returned from the model and the one returned by the control cannot be due to any user action, so it is quite useless to show it to the user, it is only relevant for the developers. Use wxLogDebug() and not wxASSERT() because asserting in a wxEVT_PAINT callback would result in a crash due assert reentrancies.

2014-12-22 02:31 VZ, revision 78291

Fix arguments of type mismatch error message in wxGTK wxDVC. The "required" and "actual" arguments were exchanged, making the message pretty confusing.

2014-12-20 22:52 VZ, revision 78290

Centre text vertically in wxDataViewCtrl by default in generic version. This was already the case in the native GTK (possibly unintentionally) and OS X (because vertical alignment is not supported at all there) versions, but in the generic version using the default wxALIGN_NOT alignment when calling wxDataViewCtrl::AppendXXXColumn() methods resulted in top-aligned text which looked ugly (this could be seen on the second page of the dataview sample for example). Fix this by handling wxALIGN_NOT as wxDVR_DEFAULT_ALIGNMENT in these functions to do the right thing by default.

2014-12-20 22:51 VZ, revision 78289

Use helper functions for {app,prep}ending wxDataViewCtrl columns. Make the code more maintainable by using helper functions instead of duplicating the same logic a dozen times for each of appending and prepending. This is just a refactoring, no changes in behaviour.

2014-12-20 22:51 VZ, revision 78288

Add GetDefaultType() to all standard wxDataViewRenderer-derived classes. This makes it possible to refer to the associated wxVariant types without hard coding the string constants, i.e. instead of writing "string" (error prone as typos are not detected) it is now possible to write wxDataViewTextRenderer:: GetDefaultType(). This will also make it simpler to write generic (in C++ templates sense) code using renderers.

2014-12-20 22:51 VZ, revision 78287

Undo the change of the number of items in dataview sample. Increasing it to 10000000 in r77905 brought both the native GTK (see #16741) and OSX (see #16740) wxDataViewCtrl implementation to their knees, so don't do this. This is, of course, just hiding the real bug, but still better than not allowing people to run the sample at all.

2014-12-20 22:51 VZ, revision 78286

Suppress unused parameter warning in wxRichTextCtrl code. The entire event handler should arguably be removed entirely if it's unused, but for now just avoid the warning.

2014-12-20 11:15 TIK, revision 78285

Add Windows 10 support to wxGetOsDescription(). Map Windows 10 to wxWinVersion_8 in wxGetWinVersion() to not change ABI.

2014-12-20 11:13 TIK, revision 78284

Add Windows 10 support to wxGetWinVersion() and wxGetOsDescription().

2014-12-19 16:56 VZ, revision 78283

Remove assert about unsupported wxMOD_ALTGR in wxUIActionSimulator. wxMOD_ALTGR is wxMOD_ALT + wxMOD_CONTROL and so is, actually, supported as simulating it involves only simulating both Alt and Control being pressed, at least under MSW.

2014-12-19 16:56 VZ, revision 78282

Destroy all views associated to wxDocument being forcefully closed. Forcefully closing a modified document misbehaved in several ways: first, the question about whether the document should be saved was asked twice if the first message box was cancelled. Second, DeleteAllViews() didn't actually delete the views if the second message box was cancelled as well -- so the views could be left alive while their associated document was destroyed, resulting in more or less guaranteed crash (e.g. during the next event handling as wxDocChildFrameAnyBase::TryProcessEvent() assumes that m_childDocument is still alive if m_childView is). Fix both problems by really forcing the document to close by pretending that it is not modified. We still ask the user once though, as it could be useful to be able to save the document even when it will be closed. Ideally, the message box shown in this case shouldn't have a "Cancel" button at all, but this is left for the future.

2014-12-17 18:44 PC, revision 78281

guard functions with wxCHECK_* macros rather than wxASSERT_*

2014-12-17 17:04 JS, revision 78280

Added shadows to box attributes, and relevant controls in the Background page.

2014-12-16 21:16 VZ, revision 78279

Fix inserting tools removed from wxToolBar back into it in wxMSW. Make sure to reset the "to be deleted" flag we set on the tool when removing it from the toolbar to avoid layout problems if the tool is added back later. Closes #16735.

2014-12-16 21:16 VZ, revision 78278

Move wxRendererMSW::DrawTextCtrl() implementation to wxRendererGeneric. This ensures that wxRendererGeneric::DrawGauge() is actually usable as otherwise calling it always resulted in an assertion failure because it used DrawTextCtrl() which was not implemented in wxRendererGeneric. So this fixes using DrawGauge() in non-MSW ports which was added by r77023 (see #16406) but apparently never worked. Also remove wxRendererMSW::DrawGauge() as it's exactly the same as the version inherited from wxRendererGeneric. Closes #16725.

2014-12-16 21:16 VZ, revision 78277

Remove unnecessary wxUSE_MFC option. This didn't do (almost) anything, so just remove it, using MFC and wxWidgets together works just fine without it.

2014-12-16 21:15 VZ, revision 78276

No real changes, just fix some typos in comments in the samples. Closes #16734 (for 3.0).

2014-12-16 21:15 VZ, revision 78275

Fix inserting tools removed from wxToolBar back into it in wxMSW. Make sure to reset the "to be deleted" flag we set on the tool when removing it from the toolbar to avoid layout problems if the tool is added back later. Closes #16735 (for 3.0).

2014-12-16 14:59 VZ, revision 78274

Add wxEVT_MAGNIFY mouse event. Currently this is implemented for wxOSX only. Closes #14322.

2014-12-16 14:51 VZ, revision 78273

No real changes, just fix some typos in comments in the samples. Closes #16734.

2014-12-16 14:49 VZ, revision 78272

Fix building with -std=gnu++11 -stdlib=libstdc++ under OS X. Take into account the possibility of using C++11 compiler with non-C++11 standard library as this may happen when targeting OS X < 10.7, in which case C++11 libc++ can't be used. Closes #16730.

2014-12-14 12:12 SN, revision 78271

No real changes, just fixed a couple of typos in comments, fixes #16726.

2014-12-13 18:40 PC, revision 78270

Allow setting icon before m_widget is valid. There is no need to require a valid m_widget, the "realize" handler will take care of things later. Closes #16731

2014-12-12 23:58 AW, revision 78269

Remove unused member variable from wxSimpleCheckBox (used in wxPGCheckBoxEditor).

2014-12-12 23:56 AW, revision 78268

Fix typo in a comment

2014-12-12 23:40 AW, revision 78267

Create wxPropertyGridManager with default size in the propgrid sample Since r78150 wxPropertyGridManager can be created with default size with no issues.

2014-12-12 23:36 AW, revision 78266

Use wxBufferedPaintDC to implement double buffering in wxPG. This also fixes drawing the PG when buffer is not available and there is necessary do draw directly on window DC. wxPropertyGrid::DrawItems method is simplified and wxPropertyGrid::DoDrawItems method is reimplemented since its 3-rd argument (isBuffered) is unneeded anymore.

2014-12-11 21:31 TIK, revision 78265

In wxMBConvStrictUTF8::ToWChar the length of a multibyte UTF-8 sequence is obtained from a table, with the leading byte as offset. Later in that function, the prefix of the leading byte is compared against the expected prefix for the given length. Unless the table is faulty, this comparison can never fail. It is thus redundant and not needed. As optimizing compilers aren't smart enough yet to detect this, this commit removes the redundant check.

2014-12-11 21:31 TIK, revision 78264

In wxMBConvStrictUTF8::ToWChar the length of a multibyte UTF-8 sequence is obtained from a table, with the leading byte as offset. Later in that function, the prefix of the leading byte is compared against the expected prefix for the given length. Unless the table is faulty, this comparison can never fail. It is thus redundant and not needed. As optimizing compilers aren't smart enough yet to detect this, this commit removes the redundant check.

2014-12-11 19:34 PC, revision 78263

avoid generating wxEVT_CHAR when WriteText() is called from wxEVT_CHAR handler, closes #16717

2014-12-10 02:04 VZ, revision 78262

Restore Kolya Kosenko copyrights on parts of wxQt code. The original code was originally submitted of #12042. Closes #16721.

2014-12-10 01:14 VZ, revision 78261

Cast size_t value when using it with printf() in a test. Use %lu with a cast to avoid warnings in both 32 and 64 bit builds. Closes #16720.

2014-12-09 18:11 AW, revision 78260

Refactor: mark wxPropertyGridManager::SetId() as overridden virtual method.

2014-12-09 18:07 AW, revision 78259

Reconnect wxPropertyGridManager event handlers when wxPG id is changing. Because some event handlers are bound to the particular id's they need to be reconnected when wxPG id is the subject of change.

2014-12-09 13:51 VZ, revision 78258

Update wxGetTranslation() documentation. Document "i18n" trace mask. Correct warning about [not] using wxT(). See #16714.

2014-12-09 13:51 VZ, revision 78257

Update i18n overview in the manual. Remove obsolete warning about gettext 0.10, add a link to Poedit instead. Also fix Doxygen markup: @see can't be used inside a list item. See #16714.

2014-12-07 17:40 VS, revision 78256

Don't crash on OS X on exit if -NS* argument used When converting argv[] from char* to wchar_t* in ConvertArgsToUnicode(), keep an extra (shallow) copy of argc and the argv[] array so that it can be safely freed in FreeConvertedArgs(). The reason is that other functions such as wxApp::Initialize() may modify argv[] and remove some arguments from it; this is indeed exactly what wxOSX does. After such changes, gs_initData.argv would no longer be in the original state and could contain e.g. duplicate pointers or be missing some of the pointers that we should free.

2014-12-07 17:40 VS, revision 78255

Use int& type for argc in wxInitialize and wxInitializer Other functions that take (argc,argv) arguments (wxEntry, wxEntryStart) take argc by reference, because they may manipulate the arguments list. wxInitialize() used passing by value, so any modifications would be silently lost. Make all the functions consistent in their handling of argc by using int& everywhere.

2014-12-07 17:40 VS, revision 78254

Don't crash on OS X on exit if -NS* argument used When converting argv[] from char* to wchar_t* in ConvertArgsToUnicode(), keep an extra (shallow) copy of argc and the argv[] array so that it can be safely freed in FreeConvertedArgs(). The reason is that other functions such as wxApp::Initialize() may modify argv[] and remove some arguments from it; this is indeed exactly what wxOSX does. After such changes, gs_initData.argv would no longer be in the original state and could contain e.g. duplicate pointers or be missing some of the pointers that we should free.

2014-12-07 14:47 VZ, revision 78253
  • D /wxWidgets/trunk/src/expat/.cvsignore
  • D /wxWidgets/trunk/src/expat/conftools/.cvsignore
  • D /wxWidgets/trunk/src/expat/examples/.cvsignore
  • D /wxWidgets/trunk/src/expat/gennmtab/.cvsignore
  • D /wxWidgets/trunk/src/expat/lib/.cvsignore
  • D /wxWidgets/trunk/src/expat/tests/.cvsignore
  • D /wxWidgets/trunk/src/expat/win32/.cvsignore
  • D /wxWidgets/trunk/src/expat/xmlwf/.cvsignore

Remove .cvsignore files from expat sources. These files shouldn't be included in the distribution and it's simpler to just remove them, as it is pretty unlikely that a new Expat release is going to be made, and even less likely that it would still use CVS if it does happen, than to filter them out from the distribution creation scripts. Closes #16711.

2014-12-07 14:46 VZ, revision 78252
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/conftools/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/examples/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/gennmtab/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/lib/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/tests/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/win32/.cvsignore
  • D /wxWidgets/branches/WX_3_0_BRANCH/src/expat/xmlwf/.cvsignore

Remove .cvsignore files from expat sources. These files shouldn't be included in the distribution and it's simpler to just remove them, as it is pretty unlikely that a new Expat release is going to be made, and even less likely that it would still use CVS if it does happen, than to filter them out from the distribution creation scripts. Closes #16711.

2014-12-07 02:52 VZ, revision 78251

Fix appearance of wxMSW wxToggleButtons with bitmaps in pressed state. Correct the "pushed" state determination in our own drawn code, it didn't work for wxToggleButton which doesn't return BST_PUSHED from BM_GETSTATE. But it does have BM_GETCHECK returning its state directly, so add a new virtual MSWIsPushed() method and implement it differently for it. Closes #13755.

2014-12-06 14:07 VZ, revision 78250

Move MSWGetDefaultLayout() outside of #if wxUSE_EXCEPTIONS block. Build fix for wxUSE_EXCEPTIONS==0 after r78236.

2014-12-06 00:09 VZ, revision 78249

Build fix for wxOSX after the changes of r78230. Fix wrong signature of DoHandleMenuEvent() by getting rid of this function entirely, it's not just a trivial wrapper for ProcessMenuEvent() anyhow, so just use the latter directly.

2014-12-05 23:19 VZ, revision 78248

Fix checked disabled wxToolBar tools with custom images in wxMSW. Windows doesn't use the correct image for checked disabled tools, at least up to and including Windows 7, so don't put such tools in the "checked" state at all: this doesn't matter as they are disabled anyhow, but shows the correct image for them. Closes #12989.

2014-12-05 23:19 VZ, revision 78247

Don't generate wxEVT_MENU_{OPEN,CLOSE} for disabled top menus in wxMSW. Windows still sends these messages even if a top level menu is disabled, for some reason, so filter them out manually. Closes #2168.

2014-12-05 23:19 VZ, revision 78246

No real changes, just make wxMenuBar::MSWGetMenu() const. There is no reason not to.

2014-12-05 23:19 VZ, revision 78245

Handle updating tooltip text in wxCompositeWindow correctly. While calling SetToolTip(wxToolTip*) overload already worked correctly for wxCompositeWindow, using SetToolTip(wxString) did not if a tooltip already existed, as it didn't use the virtual DoSetToolTip() in this case, resulting in e.g. impossibility to update wxSpinCtrlDouble tooltip using this method. Fix this by introducing DoSetToolTipText() virtual which is used by that overload now and overriding it in wxCompositeWindow. Also don't override DoSetToolTip() in wxSpinCtrlGenericBase any more, it is not necessary as it's already done by its base class wxCompositeWindow. Closes #16595.

2014-12-05 23:19 VZ, revision 78244

Don't keep out of date column widths in generic wxDataViewCtrl. The cached widths need to be invalidated whenever an item is expanded or collapsed, whether it's done programmatically (which was already handled) or interactively by the user (which wasn't). Closes #16678.

2014-12-05 23:18 VZ, revision 78243

Use another bool constant instead of BOOL one in wxBitmapComboBox. Just s/FALSE/false/ See #16690.

2014-12-05 23:18 VZ, revision 78242

Measure wxBitmapComboBox height correctly if it has images. This fixes a regression introduced in r77548 (see #14279): wxBitmapComboBox must be higher than a normal wxComboBox if it has big enough bitmaps. Closes #16690.

2014-12-05 23:18 VZ, revision 78241

Prefer file types with a defined open command in Unix wxMimeTypesManager. It can happen that more than one file type maps to the given extension, in this case prefer the one which has an open command defined for it as it is typically more useful. See #16703.

2014-12-05 23:18 VZ, revision 78240

Load *.desktop files recursively in wxMimeTypesManager under Unix. Not all .desktop files are directly under /usr/share/applications, some or, in some cases, most of them, may be under its subdirectories, so look for them there as well. See #16703.

2014-12-05 23:18 VZ, revision 78239

No changes, just fixes for typos in comments in wxMSW headers. Closes #16706.

2014-12-05 23:18 VZ, revision 78238

Make all bitmaps of the same size in the toolbar sample. This is a requirement under MSW and resulted in problems when a secondary toolbar was created. Closes #16707.

2014-12-05 23:18 VZ, revision 78237

Don't use right-to-left markers in wxMSW wxMessageDialog code. This mechanism is provided as an alternative to specifying MB_RTLREADING style, e.g. if the source code can't be modified but the [string] resource from which the message box message is loaded can be. We don't need to do this if we do add MB_RTLREADING however.

2014-12-05 23:18 VZ, revision 78236

Fall back to default process layout direction in wxMSW. Add helper wxApp::MSWGetDefaultLayout() static method and use it instead of wxTheApp->GetLayoutDirection() in wxMSW code. This serves two purposes: first, wxMessageDialog doesn't crash when it's shown before wxTheApp is created (or after it's destroyed) any more. And second, we use the correct layout direction if the main application has enabled it by calling SetProcessDefaultLayout() or using two U+200E characters in the beginning of its "FileDescription" resource field by default now.

2014-12-05 23:18 VZ, revision 78235

Use the layout direction of wxTextCtrl itself, not the app, in wxMSW. A wxTextCtrl inside an RTL window in an otherwise LTR application should still be considered RTL, it's not clear at all why do we need to ask the application for the layout here, so change this for consistency.

2014-12-05 23:18 VZ, revision 78234

Don't dereference wxTheApp unconditionally when showing wxMessageDialog. The application might not yet (or already) exist, don't crash in this case.

2014-12-05 23:18 VZ, revision 78233

Fix crash when using wxMessageBox before creating wxTheApp. CheckIfCanBeUsedAsParent() used by wxMessageBox ctor shouldn't dereference wxTheApp unconditionally, otherwise it's impossible to show a message box before creating the application object or after destroying it without crashing.

2014-12-05 23:18 VZ, revision 78232

Don't put wxMenu::MSWGetMenu() inside wxUSE_OWNER_DRAWN check. This doesn't make any sense, this function is not related to the owner drawing code at all and should always be available. This corrects the changes of r70316, see #13851.

2014-12-05 23:18 VZ, revision 78231

Remove unnecessary assert from wxMenuBar::MSWGetMenu(). This assert was triggered after the changes of the previous commit as we can get WM_MENUSELECT with menu bar handle as parameter from Windows and still search for the menu with this handle -- and there is nothing wrong with this, so just return NULL but without asserting in this case. This corrects the changes of r67355, see #13080.

2014-12-05 23:17 VZ, revision 78230

Harmonize wxMenuEvent handling between all major ports. Send these events to the menu itself first, then to the menu bar containing it or the window invoking it if it's a popup menu and, finally, to the top level window in all of wxGTK, wxMSW and wxOSX. In particular, this ensures that help strings are now shown in the parent MDI frame status bar by default, even when the menus are attached to the client MDI frame or shown as popup menus. At the implementation level, this logic is now encapsulated in a new static wxMenu::ProcessMenuEvent() method which can be easily modified and reused in other ports.

2014-12-05 23:17 VZ, revision 78229

Fix fields initialization in wxCommandEvent copy ctor. Neither m_isCommandEvent nor, worse, m_propagationLevel was set correctly for wxCommandEvent objects constructed using copy ctor -- and hence Clone(). This means that such events were not propagated upwards the window hierarchy, quite possibly resulting in mysterious bugs. Fix this now by initializing these fields in both the normal and copy ctors.

2014-12-05 23:17 VZ, revision 78228

Refactor: extract menu event handling logic from wxMenu::SendEvent(). Make this logic available for reuse with the events of different kind, e.g. wxMenuEvent in the upcoming commit.

2014-12-05 23:17 VZ, revision 78227

Remove "isPopup" parameter from DoSendMenuOpenCloseEvent() in wxMSW. This parameter is redundant, we can find out whether a menu is a popup one or not from the menu itself, assuming that we always have a valid wxMenu pointer for popup menus events, which really should be the case (we may not have one for the events from system menus). This allows to handle popup menu events case in the base class version of MSWFindMenuFromHMENU() which will allow to reuse it from places other than DoSendMenuOpenCloseEvent() without code duplication now. There should be no changes to the behaviour, this is just a simplification.

2014-12-05 23:17 VZ, revision 78226

Add a popup menu to the MDI sample. This is just to test how wxEVT_MENU_HIGHLIGHT events from popup menu items are handled under the different platforms. Also log menu events to the canvas window too as it now gets some.

2014-12-05 23:17 VZ, revision 78225

Add logging of wxEVT_MENU_HIGHLIGHT events to the MDI sample too. This allows to easily compare which events are generated and sent to which objects under different platforms.

2014-12-05 23:17 VZ, revision 78224

No real changes, just shorten log messages in the MDI sample. There is not enough space for the relatively long messages logged when menus are opened or closed (added in r78130), shorten them as much as possible while leaving them still readable.

2014-12-05 23:17 VZ, revision 78223

Document the long existing wxFrame::DoGiveHelp(). This function was added way back in 2002 (r15339) but was never documented. Do it now as it's a useful method to override for customizing the help strings display.

2014-12-05 23:17 VZ, revision 78222

Send idle events from inside wxYield() in all ports, including wxMSW. This means it can be now done in wxEventLoopBase itself and calls to ProcessIdle() in the port-specific code are not needed any more, so remove them. This introduces a change in behaviour for wxMSW, where idle event handlers were not invoked from inside wxYield() at all previously, and for wxOSX, where only a single idle event is now generated from wxYield() instead of a stream of them until no idle handler needs any more of them as before. But on the bright side, the new behaviour seems to make most sense and is now the same in all ports.

2014-12-05 23:17 VZ, revision 78221

Use DTM_GETIDEALSIZE to implement wxDateTimePickerCtrl::DoGetBestSize(). If possible, i.e. when running under Vista or later, just ask the control for its best size instead of trying to approximate it ourselves. Notice that we still use our own height, to ensure that it's the same as for the text controls, but it's the width that really counts.

2014-12-05 23:17 VZ, revision 78220

Add wxLocale::GetOSInfo() and use it in MSW wxDateTimePickerCtrl. This fixes the size of wxDateTimePickerCtrl in programs that don't set any specific locale: previously, the standard "%m/%d/%y" format was used for computing the best size of the control in this case, but this could have been significantly shorter than the format actually used (compare with the default "%d %b, %Y"), resulting in the control contents being truncated by default. GetOSInfo() is currently different from GetInfo() only under MSW, but we might need to make the same distinction under OS X too, so do make this function public instead of keeping it MSW-specific.

2014-12-05 23:17 VZ, revision 78219

Remove unneeded CacheBestSize() from wxMSW wxDateTimePickerCtrl. The best size is already cached by the base class GetBestSize(), no need to do it here as well.

2014-12-05 23:15 VZ, revision 78218

Don't keep out of date column widths in generic wxDataViewCtrl. The cached widths need to be invalidated whenever an item is expanded or collapsed, whether it's done programmatically (which was already handled) or interactively by the user (which wasn't). Closes #16678.

2014-12-05 16:56 VS, revision 78217

Xcode project: src/regex must be in non-user search path Otherwise it wouldn't be included as <regex.h> and the system copy would be used. We need to always use the builtin, wxChar-aware copy.

2014-12-05 16:55 VS, revision 78216

Xcode project: src/regex must be in non-user search path Otherwise it wouldn't be included as <regex.h> and the system copy would be used. We need to always use the builtin, wxChar-aware copy.

2014-12-03 18:18 VZ, revision 78215

No real changes, just fix some typos in comments. Closes #16699.

2014-12-03 18:01 AW, revision 78214

Define wxPG toolbar event handler only if library is compiled with toolbar classes. Include wxPropertyGridManager::OnToolbarClick() code only if wxUSE_TOOLBAR is set to 1.

2014-12-03 17:59 AW, revision 78213

Restore wxPG toolbar buttons state if selecting wxPG page was unsuccessful. Toolbar button corresponding to the unsuccessfully selected page should be released and button corresponding to the old page should be pressed again.

2014-12-01 23:47 AW, revision 78212

Use wxCONTROL_FOCUSED control state flag when drawing native wxPG check box in the "modified state" under wxOSX. Generally, wxCONTROL_PRESSED control flag is used when drawing native check box (wxPGEditor_CheckBox) in "modified state" but under wxOSX this flag is equivalent to wxCONTROL_CHECKED flag and hence it is necessary to indicate this state in an alternative way. Closes #16696

2014-11-29 21:18 AW, revision 78211

Add member function to retrieve wxBoolProperty attribute. Added wxBoolProperty::DoGetAttribute virtual function.

2014-11-29 17:45 AW, revision 78210

Check if new index is in range before selecting new value in wxPGProperty::SetChoiceSelection. Closes #16697

2014-11-28 21:45 AW, revision 78209

Refresh wxPGProperty after changing its attribute. Closes #16696

2014-11-27 23:23 RD, revision 78202

Allow explicitly selecting the carbon build since it is not the default anymore.

2014-11-27 23:23 RD, revision 78201

Add gtk3 build support

2014-11-27 01:45 VZ, revision 78188

Turkish translations update from Kaya Zeren.

2014-11-26 20:16 VZ, revision 78187

German translations update from Wolfgang Stöggl. Many minor fixes and also replacements of "..." with the ellipsis Unicode character (U+2026).

2014-11-25 20:05 VS, revision 78186

Refresh PO files after accelerators changes

2014-11-25 20:05 VS, revision 78185

Improve wxAcceleratorEntry::ToString() formatting This method used the wxKeyNames[] array originally intended for parsing accelerator specification and not for human-friendly formatting. In particular, non-alphanumeric keys such as WXK_DOWN and many others were formatted using all-uppercase name, which was highly unusual and not native on any platforms (the only unaffected one was OS X). Improve the formatting by doing the following: a) use Title case for the entries; because parsing is case-insensitive, this has no effect on it; b) add display_name field for keys where the symbolic name wasn't appropriate for display and set it for some of the keys that are likely to show up in menus; c) add explanatory comments for translators

2014-11-25 20:05 VS, revision 78184

Extract translator comments into wxstd.pot Extract the commonly used TRANSLATORS: prefix into translation files, to provide some additional context where needed.

2014-11-25 20:05 VS, revision 78183

Translate menu accelerators from XRC The content of <accel> property was taken verbatim and appended to the (translated) label; this bypassed wx's internal accelerators translation mechanism, because wxMenuItem code quite reasonably assumes that the string passed to it is translated. Explicitly use SetAccel() instead, to force translation. This matters for languages such as German where e.g. Ctrl+ is translated as Strg+.

2014-11-25 20:04 VS, revision 78182

Refresh PO files after accelerators changes

2014-11-25 20:04 VS, revision 78181

Improve wxAcceleratorEntry::ToString() formatting This method used the wxKeyNames[] array originally intended for parsing accelerator specification and not for human-friendly formatting. In particular, non-alphanumeric keys such as WXK_DOWN and many others were formatted using all-uppercase name, which was highly unusual and not native on any platforms (the only unaffected one was OS X). Improve the formatting by doing the following: a) use Title case for the entries; because parsing is case-insensitive, this has no effect on it; b) add display_name field for keys where the symbolic name wasn't appropriate for display and set it for some of the keys that are likely to show up in menus; c) add explanatory comments for translators

2014-11-25 20:04 VS, revision 78180

Extract translator comments into wxstd.pot Extract the commonly used TRANSLATORS: prefix into translation files, to provide some additional context where needed.

2014-11-25 20:04 VS, revision 78179

Translate menu accelerators from XRC The content of <accel> property was taken verbatim and appended to the (translated) label; this bypassed wx's internal accelerators translation mechanism, because wxMenuItem code quite reasonably assumes that the string passed to it is translated. Explicitly use SetAccel() instead, to force translation. This matters for languages such as German where e.g. Ctrl+ is translated as Strg+.

2014-11-25 19:23 VS, revision 78178

Close NSWindows properly Don't just release the window, call the close method. This is usually the same, but in some situations, the difference (close sends NSWindowWillCloseNotification, which wx doesn't use) is significant. In particular, if the window is shown as fullscreen, OS X won't dispose of its space correctly when the window is released, but not closed first. See https://github.com/vslavik/poedit/issues/119

2014-11-25 19:23 VS, revision 78177

Close NSWindows properly Don't just release the window, call the close method. This is usually the same, but in some situations, the difference (close sends NSWindowWillCloseNotification, which wx doesn't use) is significant. In particular, if the window is shown as fullscreen, OS X won't dispose of its space correctly when the window is released, but not closed first. See https://github.com/vslavik/poedit/issues/119

2014-11-24 17:11 AW, revision 78176

Remove unused wxPG member variable.

2014-11-24 17:09 AW, revision 78175

Use Boolean variable to store Boolean values in wxPG.

2014-11-24 17:06 AW, revision 78174

Fix using compatibility flag in propgridpagestate.h header file.

2014-11-24 17:04 AW, revision 78173

Use a hash set instead of vector to hold dedicated keys in wxPG.

2014-11-24 14:45 VS, revision 78172

Skip Cocoa's options in wxCmdLineParser on OS X Skip Cocoa-specific flags used by Xcode (such as -AppleLanguages) on OS X when parsing the command line. They all take a single argument, so skip both the flag and the following value in the argv list. Also fix handling of -ApplePersistenceIgnoreState, which didn't skip the value as it should.

2014-11-24 14:45 VS, revision 78171

Skip Cocoa's options in wxCmdLineParser on OS X Skip Cocoa-specific flags used by Xcode (such as -AppleLanguages) on OS X when parsing the command line. They all take a single argument, so skip both the flag and the following value in the argv list. Also fix handling of -ApplePersistenceIgnoreState, which didn't skip the value as it should.

2014-11-22 20:12 PC, revision 78170

Remove gtk_tree_view_set_fixed_height_mode() call from AssociateModel() The check for wxDV_VARIABLE_LINE_HEIGHT is already done in Create(), and the IsVirtualListModel() check was probably an attempt to get around a performance problem (#16680), but it's not a valid criteria for changing the height mode. closes #16683

2014-11-21 18:20 PC, revision 78169

fix assert in dataview sample, closes #16679

2014-11-21 18:00 PC, revision 78168

fix "wrong type" error when using wxDataViewChoiceByIndexRenderer, closes #15955

2014-11-20 18:04 PC, revision 78167

fix crashes in wxGTK3 when running with non-X11 backend, see #16688

2014-11-20 00:25 BP, revision 78166

Backported Doxygen 1.8.8 upgrade to 3.0 branch.

2014-11-19 23:38 BP, revision 78165

Upgrade Doxygen to 1.8.8.

2014-11-19 20:00 PC, revision 78164

clarify comment

2014-11-19 19:59 PC, revision 78163

fix build when GDK_WINDOWING_X11 is not defined

2014-11-19 14:29 VZ, revision 78162

Credit Marco Trevisan for wxGTK3/Mir patches. Closes #16688.

2014-11-19 14:29 VZ, revision 78161

Don't use X11-only functions when not using X11 in wxGTK. See #16688.

2014-11-19 14:29 VZ, revision 78160

Don't crash when switching to full screen in non X11-based wxGTK. Only use internal X11 display if we're running in a such environment. See #16688.

2014-11-19 14:29 VZ, revision 78159

Don't use frame extents when not using X11 in wxGTK. See #16688.

2014-11-19 14:29 VZ, revision 78158

Don't defer wxTLW initialization in wxGTK when not using X11. See #16688.

2014-11-19 14:29 VZ, revision 78157

Provide trivial GDK_IS_X11_DISPLAY() definition for GTK+2. This will be useful for upcoming patches using it to fix problems with GTK+ 3 without breaking GTK+ 2 compilation. See #16688.

2014-11-18 23:34 AW, revision 78156

Allow using the letter 'E' (capital) as a symbol of exponent when entering floating point numbers. Currently, only the letter 'e' is accepted when editing wxPG numeric properties.

2014-11-18 17:34 AW, revision 78154

Fix adjustment of columns width in response to splitter position change in wPG. In wxPropertyGridPageState::PropagateColSizeDec recursion is replaced with iteration and there is handled PG with more then 2 columns.

2014-11-16 22:20 VZ, revision 78153

Fix wxConfig enumeration example in the documentation. Don't use undefined GetConfig() function.

2014-11-15 18:48 AW, revision 78152

Reactivate 'SetSplitterPosition' test in wxPG sample. After fixing issues with wxPG manager sizing this test is now passed.

2014-11-15 18:39 AW, revision 78151

Make more realistic estimation of the best size of wxPropertyGridManager. Current best size (especially width) of wxPropertyGrid Manager is too small. wxPG manager should be wide enough to hold wxPG with two columns and scroll bar.

2014-11-15 18:27 AW, revision 78150

Fix setting initial size of wxPropertyGridManager. wxPG manager is now created with proper size (based on its best size) even if default size is requested. (r78149 is a prerequisite for this patch.)

2014-11-15 18:14 AW, revision 78149

Fix adding/removing categorized/alphabetic mode buttons in wxPropertyGridManager. Modify wxPropertyGridManager::RecreateControls() to allow adding/removing categorized/alphabetic mode buttons to/from wxPG manager tool bar at any time (not only when creating the tool bar). Modify wxPropertyGridManager::SetExtraStyle() to fully support manipulating these buttons via wxPG_EX_MODE_BUTTONS flag.

2014-11-15 18:02 PC, revision 78148

notify all windows in capture stack about capture lost, and empty the stack

2014-11-14 19:56 PC, revision 78147

fix releasing mouse capture before showing modal dialog, see #16647

2014-11-13 02:52 VZ, revision 78146

Remove assert checking for non zero page size in wxDataViewCtrl. This assert seems to be quite useless and can be triggered if a key is (perhaps accidentally) sent to a small (e.g. not yet fully laid out) wxDataViewCtrl window.

2014-11-12 16:11 VS, revision 78145

Fix disabling wxStaticText repeatedly in wxOSX. Changes in r78108 would reset control's color to gray if it was disabled more than once in a row. Guard against this and only remember the color of an enabled control.

2014-11-12 16:10 VS, revision 78144

Fix disabling wxStaticText repeatedly in wxOSX. Changes in r78107 would reset control's color to gray if it was disabled more than once in a row. Guard against this and only remember the color of an enabled control.

2014-11-12 13:37 VZ, revision 78143

Use wxFILTER_EXCLUDE_CHAR_LIST in the sample. It makes more sense than wxFILTER_EXCLUDE_LIST with SetCharExcludes().

2014-11-12 13:37 VZ, revision 78142

Use wxFILTER_EXCLUDE_CHAR_LIST in the sample. It makes more sense than wxFILTER_EXCLUDE_LIST with SetCharExcludes().

2014-11-12 08:43 PC, revision 78141

fix creating wxFont with non-ascii name, closes #16671

2014-11-11 19:31 PC, revision 78140

fix build with old pango versions which don't define PANGO_VERSION_CHECK(), closes #16660

2014-11-11 08:59 JJ, revision 78139

Correction on commit #78110 as suggested by VZ

2014-11-11 08:50 PC, revision 78138

non-pch build fix after r78134

2014-11-11 08:46 JJ, revision 78137

Correction on commit #78099

2014-11-11 02:03 VZ, revision 78136

Add support for reading multi string values to wxRegKey. Add a wxRegKey::QueryValue() overload working with REG_MULTI_SZ values. Closes #16653.

2014-11-11 02:02 VZ, revision 78135

Free converted command lines arguments automatically in wxMSW. This makes the code slightly simpler (no more need for the scope guard) and avoids memory leaks when not using wxEntry() (but calling wxEntryStart() instead). Closes #16664.

2014-11-11 02:02 VZ, revision 78134

Add wxCursor::GetHotSpot() and implement it for wxMSW and wxGTK. Allow retrieving the coordinates of the cursor hot spot, at least for the ports for which we know how to do it. Closes #16539.

2014-11-11 02:02 VZ, revision 78133

Introduce wxCursorBase class defining common wxCursor API. This is done in preparation for adding a new wxCursor method and will allow us to define it in a single place by default instead of having to provide stubs for all ports. See #16539.

2014-11-11 02:02 VZ, revision 78132

Add RAII AutoIconInfo class wrapping ICONINFO Windows struct. This ensures that we never forget to delete the handles returned by GetIconInfo() and also centralizes the error message given if it fails in a single place.

2014-11-11 02:02 VZ, revision 78131

Do use wxUSE_STD_CONTAINERS_COMPATIBLY around code using std::vector. This was supposed to be done in r78066, but after introducing this new wxUSE_XXX symbol I forgot to actually use it in the place it was intended to be used. Fixes compilation with wxUSE_STD_DEFAULT==0 and closes #16673.

2014-11-11 02:02 VZ, revision 78130

Return correct menu pointer for wxEVT_MENU_{OPEN,CLOSE} in MDI frames. These events are supposed to carry a pointer to the menu which was opened or closed, but wxMenuEvent::GetMenu() always returned NULL for the menus opened when a child MDI frame was active, as its menu bar, containing the menu, was not searched for it. Fix this by overriding MSWFindMenuFromHMENU() at wxMDIParentFrame level, just as we already do for FindItemInMenuBar().

2014-11-11 02:02 VZ, revision 78129

Log wxMenuEvent::GetMenu() in the menu sample for wxEVT_MENU_{OPEN,CLOSE}. Show the menu associated with the event, if any, directly in the sample to make comparing the behaviour of the different ports easier.

2014-11-11 02:02 VZ, revision 78128

Update the out of date link to DebugView in logging overview. The readable link that existed before is unfortunately not available any more.

2014-11-11 02:02 VZ, revision 78127

Fix best size calculation for buttons with bitmaps in wxMSW. Add the bitmap margins to the bitmap size, not the total button size. This fixes the buttons becoming unnecessarily tall as soon as they were assigned even a tiny bitmap. Closes #16536.

2014-11-11 02:02 VZ, revision 78126

Remove outdated comment from ShowAssertDialog(). The comment didn't correspond to the code since the changes of r62842, the asserts don't result in an immediate trap now even if they happen in non-main thread.

2014-11-11 02:02 VZ, revision 78125

Make results of wxDC::DrawEllipticArc() consistent across all platforms. And also consistent with wxGraphicsContext method with the same name. Document the rules determining what is drawn. Closes #4437.

2014-11-11 02:02 VZ, revision 78124

Set the initial text value of wxSpinCtrlGeneric correctly. The text control was left empty if the string value was not specified, but it should use the numeric initial value instead in this case. This notably affected wxSpinCtrlDouble under non-GTK platforms. Closes #16621.

2014-11-11 02:02 VZ, revision 78123

Improve drawing of monochrome bitmaps with masks in wxMSW. This is a compromise solution between r78040, which handled monochrome bitmaps correctly, but broke drawing bitmaps without using their mask, and r78054 which simply reverted it: this version preserves the old behaviour when not using the mask, but draws at least the shape (if not the colour) correctly for the monochrome bitmaps. Notice that this also reverts r78039 which is not needed any more without r78040. Closes #16512.

2014-11-11 01:59 VZ, revision 78122

Fix size of the icon returned from wxFSVolume::GetIcon(). Calling SetHICON() is not enough, the icon size already needs to be set or, even better, CreateFromHICON(), which does both atomically, should be used. Closes #16672.

2014-11-11 01:59 VZ, revision 78121

Re-add wxFD_OVERWRITE_PROMPT and wxFD_FILE_MUST_EXIST to wxGenericFileDialog. Support for these styles was accidentally removed in r48733, re-add them back. Closes #16652.

2014-11-11 01:59 VZ, revision 78120

German translation fixes from Sebastian Walderich.

2014-11-11 01:59 VZ, revision 78119

Update the out of date link to DebugView in logging overview. The readable link that existed before is unfortunately not available any more.

2014-11-11 01:58 VZ, revision 78118

Fix best size calculation for buttons with bitmaps in wxMSW. Add the bitmap margins to the bitmap size, not the total button size. This fixes the buttons becoming unnecessarily tall as soon as they were assigned even a tiny bitmap. Closes #16536.

2014-11-11 01:58 VZ, revision 78117

Set the initial text value of wxSpinCtrlGeneric correctly. The text control was left empty if the string value was not specified, but it should use the numeric initial value instead in this case. This notably affected wxSpinCtrlDouble under non-GTK platforms. Closes #16621.

2014-11-11 00:48 VZ, revision 78116

Fix size of the icon returned from wxFSVolume::GetIcon(). Calling SetHICON() is not enough, the icon size already needs to be set or, even better, CreateFromHICON(), which does both atomically, should be used. Closes #16672.

2014-11-10 18:40 PC, revision 78115

avoid reconfiguring scrollbar when settings are not changing

2014-11-10 18:10 PC, revision 78114

avoid multiple emissions of the GtkAdjustment "changed" signal when configuring scrollbar

2014-11-10 17:51 PC, revision 78113

invalidate cached client size when scrollbar visibility changes

2014-11-10 17:46 AW, revision 78112

Reset current category marker if deleted wxPG property is a category property. If deleted category or its sub-category is a current category then reset current category marker. See #16617.

2014-11-10 17:41 AW, revision 78111

Invalidate wxPG property and its sub-properties names prior deferred deletion. If deleted property is a category property then all its sub-properties have to be renamed prior deleting. See #16617.

2014-11-10 10:34 JJ, revision 78110

Some implementation of find (i.e. OpenVMS(AXP)) need the != operator

2014-11-10 07:59 JJ, revision 78109

Correction for non-precomp compilation

2014-11-10 07:58 VS, revision 78108

Fix wxStaticText::Disable() to respect text color on OS X wxStaticText emulates disabled state on OS X by changing text color to light grey. When re-enabling the control, though, it always set the color to the standard text color, which broke static texts with a custom color. Fix this by keeping track of the original color and restoring it back when setEnabled:YES is called.

2014-11-10 07:57 VS, revision 78107

Fix wxStaticText::Disable() to respect text color on OS X wxStaticText emulates disabled state on OS X by changing text color to light grey. When re-enabling the control, though, it always set the color to the standard text color, which broke static texts with a custom color. Fix this by keeping track of the original color and restoring it back when setEnabled:YES is called.

2014-11-10 05:13 PC, revision 78106

fix infinite sizing loop with GTK3 when using a non-default target window, closes #16668

2014-11-08 19:17 AW, revision 78105

Remove unused wxPG member variable.

2014-11-08 19:12 AW, revision 78104

Use Boolean variable to store Boolean values.

2014-11-07 18:32 JS, revision 78103

Don't take right indent into account twice when aligning lines

2014-11-07 18:32 JS, revision 78102

Don't take right indent into account twice when aligning lines

2014-11-07 18:13 JS, revision 78101

Fix a rounding error

2014-11-07 18:12 JS, revision 78100

Fix a rounding error

2014-11-07 16:14 JJ, revision 78099

Implement wxNativeFontInfo::GetStrikethrough() for wxX11 without pango

2014-11-07 15:59 VZ, revision 78098

Use wxTB_DEFAULT_STYLE as default value for wxToolBar style. No real changes, but this is more consistent with the other controls. It also highlights the ports which use non-default style, e.g. wxQt where wxNO_BORDER should probably not be used as part of default toolbar style but rather added in the ctor implementation. Closes #16667.

2014-11-07 15:59 VZ, revision 78097

Remove wxTB_FLAT from wxTB_DEFAULT_STYLE. The actual default styles for the toolbars don't include wxTB_FLAT anywhere, so don't include it in the (currently almost unused) wxTB_DEFAULT_STYLE neither. See #16667.

2014-11-07 14:22 JJ, revision 78096

Fix for compilation of wxX11 without UTF

2014-11-07 14:17 JJ, revision 78095

Update compile support for wxX11 on OpenVMS

2014-11-07 14:08 JJ, revision 78094

Fix compilation for wxGTK1

2014-11-05 10:33 JJ, revision 78093

Update setup.h for OpenVMS

2014-11-04 23:56 AW, revision 78092

In 3.0 compatibility mode member variable holding pending delete editor objects is emulated by hash map item.

2014-11-04 20:23 AW, revision 78091

Do not mark selected wxPG property as 'being deleted'. Only unselected wxPG property can be marked as 'being deleted'. If this is done for selected wxGP property then in some circumstances it cannot be unselected and hence cannot be safely deleted. See #16617.

2014-11-04 17:21 VS, revision 78090

Fix simulated toggle in OS X wxToolBar wiht HiDPI bitmaps Use scaled size and scale factor when creating wxMemoryDC so that the modified output bitmap has same physical dimensions as the source one.

2014-11-04 17:21 VS, revision 78089

Fix simulated toggle in OS X wxToolBar wiht HiDPI bitmaps Use scaled size and scale factor when creating wxMemoryDC so that the modified output bitmap has same physical dimensions as the source one.

2014-11-02 17:28 VS, revision 78088

Fix wxToolBarBase::AdjustToolBitmapSize() for HiDPI on OS X wxOSX's wxToolBar code uses toolbar size computed by AdjustToolBitmapSize() to determine which of the builtin toolbar sizes to use. Because AdjustToolBitmapSize() returned 2x the "logical" size, it would always pick NSToolbarSizeModeRegular regardless of icon size, resulting in differently-sized toolbar on HiDPI and low-DPI screens. Use scaled size instead.

2014-11-02 17:28 VS, revision 78087

Fix wxToolBarBase::AdjustToolBitmapSize() for HiDPI on OS X wxOSX's wxToolBar code uses toolbar size computed by AdjustToolBitmapSize() to determine which of the builtin toolbar sizes to use. Because AdjustToolBitmapSize() returned 2x the "logical" size, it would always pick NSToolbarSizeModeRegular regardless of icon size, resulting in differently-sized toolbar on HiDPI and low-DPI screens. Use scaled size instead.

2014-11-01 15:00 VZ, revision 78086

Restore code for closing inherited file descriptors under non-OS X. The code for doing this was accidentally disabled in r74957, which intended to disable it for Darwin, but ended up disabling it for everything but Darwin. Reenable it for all platforms now, clearly it didn't hurt to have it enabled under Darwin, and we do need to do it, e.g. see #12636.

2014-11-01 14:56 VZ, revision 78085

Fix clearing wxCB_READONLY wxComboBox in wxGTK. wxComboBox::Clear() must call wxTextEntry::SetValue() explicitly instead of calling its Clear() which just forwards back to wxComboBox own SetValue(), which (correctly) doesn't work for read-only comboboxes when passed an empty string. Closes #16654.

2014-11-01 14:56 VZ, revision 78084

No changes, just move wxComboBox::Clear() out of line in wxGTK. Make this function non-inline to facilitate further modifications.

2014-10-31 17:04 AW, revision 78083

Fix deleting wxPG properties with sub-properties. If property contains sub-properties they should be deselected prior deleting the property. See #16617.

2014-10-31 14:19 VZ, revision 78082

Make Clear() virtual in wxItemContainer base class. This ensures that overridden wxComboBox::Clear() is called even when it's invoked via a pointer or a reference to wxItemContainer (and not just one to wxComboBox itself or its other base wxTextEntry). Closes #16654.

2014-10-30 13:56 VZ, revision 78081

Fixes to wxGA_TEXT and wxGA_PROGRESS documentation. Correct the HTML output format for wxGA_PROGRESS, it was indented incorrectly because Doxygen appears to need a blank line (i.e. end of paragraph) after a "@since". Also improve the wording of the styles descriptions a little.

2014-10-28 19:57 VZ, revision 78080

Re-add wxFD_OVERWRITE_PROMPT and wxFD_FILE_MUST_EXIST to wxGenericFileDialog. Support for these styles was accidentally removed in r48733, re-add them back. Closes #16652.

2014-10-28 09:06 JS, revision 78079

Backported wxFontDialog NSView fix r78070, fixing bug #16643

2014-10-27 21:09 VZ, revision 78078

Don't use "@overload" to document methods without parameters. Documentation generated by @overload is misleading in this case as it refers to the "different argument [the function] accepts", but there are none, the methods can be overloaded only by const modifier as well. Use \copydetails instead to reuse the original documentation, this is less confusing and arguably more useful as well.

2014-10-27 18:36 VZ, revision 78077

German translation fixes from Sebastian Walderich.

2014-10-27 18:31 VZ, revision 78076

Update mouse capture stack when showing modal dialog in wxGTK. GTKReleaseMouseAndNotify(), which is called before showing a modal dialog in wxGTK to ensure that the mouse does not remain captured by the window which will be disabled by the modal dialog soon, should update the mouse capture stack and so must call ReleaseMouse() to do it, not just DoReleaseMouse(). See #16647, #8657.

2014-10-26 12:44 VS, revision 78075

Use subtler grey for emulated toolbar toggle on OS X Use a lighter shade of gray to avoid problems with user icons and to match the look of OS X 10.10's rendering of selected toolbar items. Fixes #16645.

2014-10-26 12:44 VS, revision 78074

Use subtler grey for emulated toolbar toggle on OS X Use a lighter shade of gray to avoid problems with user icons and to match the look of OS X 10.10's rendering of selected toolbar items. Fixes #16645.

2014-10-25 20:06 PC, revision 78073

use wxOVERRIDE

2014-10-25 20:05 PC, revision 78072

backport r77741: Return the caption from wxMessageDialog::GetTitle()

2014-10-25 14:49 VS, revision 78071

Fix wxFontDialog exceptions on OS X Yosemite Opening the font dialog would result in an exception in RunMixedFontDialog: -[NSView resetFlags]: unrecognized selector sent to instance 0x6080001285c0 The code in question assumed that NSFontPanel's accessory view either didn't exist or was created by wx, and casted it to wxMacFontPanelAccView* without checking. But this assumption is no longer true on OS X 10.10, the view is apparently pre-set to some default NSView instance. Fix the code to check accessoryView's class before treating it as wxMacFontPanelAccView.

2014-10-25 14:49 VS, revision 78070

Fix wxFontDialog exceptions on OS X Yosemite Opening the font dialog would result in an exception in RunMixedFontDialog: -[NSView resetFlags]: unrecognized selector sent to instance 0x6080001285c0 The code in question assumed that NSFontPanel's accessory view either didn't exist or was created by wx, and casted it to wxMacFontPanelAccView* without checking. But this assumption is no longer true on OS X 10.10, the view is apparently pre-set to some default NSView instance. Fix the code to check accessoryView's class before treating it as wxMacFontPanelAccView.

2014-10-25 14:35 AW, revision 78069

Get wxPGProperty items to be deleted with deferral directly from the corresponding internal list of items. Don't use iterator to collect wxPGProperty items in wxPropertyGridPageState::DoClear().

2014-10-25 01:23 VZ, revision 78068

More fixes for PCH-less build after r78063. Add missing headers/forward declarations now.

2014-10-25 00:55 VZ, revision 78067

Fix typo which broke PCH-less builds in r78063.

2014-10-24 23:54 VZ, revision 78066

Add a new wxUSE_STD_CONTAINERS_COMPATIBLY option. This option, which is on by default unless the use of STL is disabled, provides better interoperability with the standard library when it can be done without breaking backwards compatibility. The first example of its use is to allow passing std::vector<> of any string compatible type to wxItemContainer::Append(), Insert() and Set(), allowing to directly initialize various wxControls deriving from it such as wxChoice, wxComboBox, wxListBox from a std::vector<> of strings.

2014-10-24 23:54 VZ, revision 78065

Work around bad wxStaticText best size calculation under wxOSX. Expand wxStaticText controls in wxBusyInfo and centre them to avoid the problem with their contents being truncated when using markup under wxOSX. This should, of course, be fixed in wxStaticText itself, and when it is, this change should be reverted. But for now this at least allows wxBusyInfo to appear correctly under OS X.

2014-10-24 23:54 VZ, revision 78064

Clip the last word of wxStaticText if it doesn't fit in wxOSX/Cocoa. Until this change the entire last word disappeared, presumably because it was wrapped to the next line, which was not shown at all. Now as much of it as fits into the available space is shown, which is not ideal, but better than before, especially if we're only a pixel or two short.

2014-10-24 23:54 VZ, revision 78063

Allow customizing wxBusyInfo appearance. Allow customizing wxBusyInfo window by passing wxBusyInfoFlags containing information about the icon, title, colours and frame transparency to use. Update the sample to show such "rich" busy info.

2014-10-24 23:54 VZ, revision 78062

Auto resize wxGenericStaticText when its label or font is changed. This makes the generic version consistent with the native control behaviour.

2014-10-24 23:54 VZ, revision 78061

Refactor: extra wxStaticText auto-resizing code from wxMSW to common. This will allow its reuse in wxGenericStaticText and maybe other ports that need it in the future.

2014-10-24 23:54 VZ, revision 78060

Slightly improve sizing of wxInfoFrame used by wxBusyInfo. Specify the margin around the text in dialog units, not pixels.

2014-10-24 23:54 VZ, revision 78059

Don't use wxRESIZE_BORDER for wxInfoFrame, used by wxBusyInfo, under wxX11. This doesn't make sense, this frame should never be resizeable, so clean up the code a little.

2014-10-24 23:54 VZ, revision 78058

Don't specify the title for wxInfoFrame used in wxBusyInfo. The title is not shown to the user anyhow because this frame doesn't have wxCAPTION style. And if it were shown, it should have been translated, but as it isn't, just remove it.

2014-10-24 23:54 VZ, revision 78057

Use its own foreground colour in wxGenericStaticText. For some reason, the control always drew itself using wxSYS_COLOUR_BTNTEXT. This is a good default, but it shouldn't ignore the explicitly set foreground colour, so use it instead.

2014-10-24 15:45 VZ, revision 78056

Avoid spurious error messages for WM_MDISETMENU under Windows XP. WM_MDISETMENU handler doesn't seem to reset the last error under Windows XP and this could result in spurious debug error messages when setting the initial menu in which case NULL is returned to indicate that there was no previous menu, but this doesn't indicate that an error occurred. Explicitly reset the last error to ERROR_SUCCESS ourselves before using WM_MDISETMENU to ensure that the last error can only be set after its return if it was really done by the code handling it, i.e. if an error really happened.

2014-10-23 15:56 VZ, revision 78055

Document wxScopedCharTypeBuffer::release(). Although this method is dangerous, it still (or, maybe, especially) needs to be documented.

2014-10-21 00:06 VZ, revision 78054

Revert "Use MaskBlt() with the correct ROP when drawing bitmaps with mask." This reverts r78040 (see #16512) as it broke the appearance of the disabled buttons in MSW toolbars as can be seen in the sample. The change itself might still be correct and could have just uncovered some other bug elsewhere, but for now still revert it just to make the toolbars usable again.

2014-10-21 00:06 VZ, revision 78053

Skip the menu events in wxFrameBase handlers. While wxFrame may process these events for its own purposes, it shouldn't prevent the user-defined fall back handlers for them (e.g. at wxApp level) from running.

2014-10-21 00:06 VZ, revision 78052

Avoid intercepting Ctrl-TAB keys in generic wxDataViewCtrl. Check for the absence of modifiers before intercepting the TAB key, we only want to do it for plain TAB or Shift-TAB but not Ctrl-TAB, for example, as this prevented the user from switching between MDI windows when focus was on wxDataViewCtrl.

2014-10-20 17:12 AW, revision 78051

Draw cursor image in wxCursorProperty using wxDC::DrawBitmap. Since monochrome images are supported by wxBitmap (under MSW) there is no longer need to draw cursor image using native Win API.

2014-10-20 17:08 VZ, revision 78050

Fix wxStringTokenizer copy ctor and assignment operator. Implement copying of wxStringTokenizer correctly: compiler-generated versions didn't work as the position of the tokenizer didn't point into the correct string after making the copy. Fix this by adjusting the position iterator to use the copy of the string. Closes #16339.

2014-10-19 21:05 VZ, revision 78049

Fix for PCH-less build after wake up changes. Include wx/msw/private.h when not using PCH to get wxZeroMemory() (this makes it unnecessary to include wx/msw/wrapwin.h as it's already included by the other header).

2014-10-19 16:16 VZ, revision 78048

Avoid spurious errors from wxFileType::GetCommand() under Windows XP too. This problem was already fixed in r77649 for Windows 7 (and hopefully all the other supported Windows versions), but it turns out that XP returns a different error when the association is not found in the registry, so the debug error message was still given under it. Fix this by checking for both ERROR_NO_ASSOCIATION and ERROR_FILE_NOT_FOUND.

2014-10-19 16:16 VZ, revision 78047

Fix handling of spurious wake ups in GetNextMessageTimeout() in wxMSW. It didn't take long to realize that changes of r78041 did break something (see #9053), as MsgWaitForMultipleObjects() can return indicating the message availability even if no message is actually available in the queue. This notably happens when the application is activated. Fix this by calling MsgWaitForMultipleObjects() in a loop until we do get a message. Notice that this only works correctly with the infinite timeout as we don't update the remaining time to wait after a spurious wake-up, but this shouldn't be a problem in practice as no such wake-ups should happen anyhow during a small timeout duration -- and nobody typically uses long ones.

2014-10-19 14:59 VZ, revision 78046

Don't leave wxSubwindows::m_ids uninitialized. Normally it's initialized by calling Create(), but don't crash deleting an invalid pointer in the dtor if Create() hadn't been called. See #16630.

2014-10-19 14:58 VZ, revision 78045

Only select the first radio button if there is one in wxMSW wxRadioBox. Don't call SetSelection(0) if the radio box is empty. See #16630.

2014-10-19 14:57 VZ, revision 78044

Don't leave wxSubwindows::m_ids uninitialized. Normally it's initialized by calling Create(), but don't crash deleting an invalid pointer in the dtor if Create() hadn't been called. See #16630.

2014-10-19 14:57 VZ, revision 78043

Only select the first radio button if there is one in wxMSW wxRadioBox. Don't call SetSelection(0) if the radio box is empty. See #16630.

2014-10-19 14:57 VZ, revision 78042

Update the bundled Scintilla version to 3.4.1. There are relatively few changes, see Scintilla changelog at http://www.scintilla.org/ScintillaHistory.html Closes #16182.

2014-10-19 14:57 VZ, revision 78041

Make main thread wake up code more efficient and less error-prone in wxMSW. Use a kernel event object to signal the thread wake up instead of sending WM_NULL to one of its windows. This is simpler as we don't need to look for any windows and doesn't suffer from the problem of overflowing the Windows message queue if we do it too many times as signalling an already signalled event simply doesn't do anything. Closes #9053.

2014-10-19 14:57 VZ, revision 78040

Use MaskBlt() with the correct ROP when drawing bitmaps with mask. We need to AND the destination with the mask first and then XOR it with the bitmap data to achieve the correct results. Closes #16512.

2014-10-19 14:57 VZ, revision 78039

Don't replace bitmap transparency with black when converting to icon in wxMSW. This was a wrong workaround for incorrect drawing of the icons elsewhere and isn't needed if the destination is first AND-ed with the mask, as it should be. See #16512.

2014-10-19 14:56 VZ, revision 78038

Fix creating wxBitmap from monochrome icon or cursor in wxMSW. Handle the "AND" and "XOR" masks inside monochrome icons/cursors correctly instead of simply copying the monochrome data which didn't work at all. See #16512.

2014-10-19 14:56 VZ, revision 78037

Fix memory leak in richtext sample. Destroy the children of wxRichTextFieldTypeCompositeTest when updating it instead of just clearing the list and leaking the objects in it. Closes #14324.

2014-10-19 14:56 VZ, revision 78036

Handle taskbar button recreation better in wxMSW. Store the various parameters in wxTaskBarButton itself and reapply them when the button is (re)created. This fixes problems with getting the "taskbar button created" message twice, e.g. because Explorer was restarted, or getting it too late, as now wxTaskBarButton can be configured both before and after receiving this message. Closes #16566.

2014-10-19 14:56 VZ, revision 78035

Work around unavailability of std::exception_ptr with some g++ versions. g++ headers only provide std::exception_ptr when __GCC_ATOMIC_INT_LOCK_FREE is 2, indicating that atomic operations on int are available, so check for this before setting HAS_EXCEPTION_PTR as in some MinGW builds (TDM gcc 4.7) this symbol is not defined as 2. Closes #16634.

2014-10-19 14:56 VZ, revision 78034

Use TLW parent for wxMessageDialog in all ports. This avoids problems with deleting child windows which are parents of wxMessageDialog before the dialog itself is destroyed and was already done in wxGTK, but not in wxMSW nor wxOSX. Do it in all ports now by calling GetParentForModalDialog() from wxMessageDialogBase ctor itself instead of depending on the port-specific wxMessageDialog to do it. Closes #16631.

2014-10-19 02:59 PC, revision 78033

Fix ClientToScreen()/ScreenToClient() when used immediately after window creation. And whenever window does not have an up-to-date GTK size allocation. Closes #16061

2014-10-18 14:00 AW, revision 78032

Add drawing cursor images for wxCursorProperty under wxGTK. Closes #16637

2014-10-18 11:37 AW, revision 78031

Fix deleting pending editor controls if wxPG is destructed from within its own event handler. If wxPG dtor is invoked from within event handler then deleting its pending editor controls should be delegated to the global idle event handler.

2014-10-17 00:49 AW, revision 78030

Fix deleting editor controls associated with wxPG properties from within event handler. Editor controls (and their event handlers) deleted from within wxPG event handler shouldn't by deleted in global idle event handler but only in local wxPG event handler because global idle events can be generated also by calling e.g. wxYield when wxPG is not in the real idle state. Closes #16617

2014-10-17 00:33 AW, revision 78029

Prevent renaming already renamed wxPG property waiting for deferred deletion. Name of the property to be deleted with delay is changed to the some meaningless name in order to avoid conflict with other active properties. It is enough to do this only once. See #16617

2014-10-17 00:27 AW, revision 78028

Accept only real idle events in wxPropertyGrid::OnIdle() Fake idle events generated e.g. by calling wxYield from within the event handler should be skipped to avoid problems. See #16617

2014-10-16 15:33 VZ, revision 78027

Only link webview library with libwebkitgtk in wxGTK, not the core one. Add EXTRALIBS_WEBVIEW similar to the existing EXTRALIBS_MEDIA and such and set it in configure instead of adding libwebkitgtk and dependent libraries directly to GUI_TK_LIBRARY. This ensure that the core library doesn't have any dependencies on libwebkitgtk which it doesn't need. Closes #16624.

2014-10-16 15:33 VZ, revision 78026

Only link webview library with libwebkitgtk in wxGTK, not the core one. Add EXTRALIBS_WEBVIEW similar to the existing EXTRALIBS_MEDIA and such and set it in configure instead of adding libwebkitgtk and dependent libraries directly to GUI_TK_LIBRARY. This ensure that the core library doesn't have any dependencies on libwebkitgtk which it doesn't need. Closes #16624.

2014-10-16 12:13 JS, revision 78025

Don't calculate refresh optimizations if we're not going to use them

2014-10-15 18:56 PC, revision 78024

update code to match 3.0 branch after r78023

2014-10-15 18:53 PC, revision 78023

fix crash in wxGCDC::DrawEllipticArc() after r76954, closes #16623

2014-10-14 21:36 VZ, revision 78022

Disable surrogate-related unit test for MSW. This test can't work when the in-memory representation is UTF-16, as we can't convert surrogates to anything else in this case. This fixes the unit tests broken since r76622, see #16298.

2014-10-14 21:36 VZ, revision 78021

Don't end converting prematurely on encountering consecutive NULs. Don't stop converting subsequent chunks just because the length of one of them was 0: this can happen if the first character of a string is a NUL or if there are two (or more) NULs in it later. Simply remove the check for this and continue as usual even in this case. Also add a unit test verifying that we do translate NULs in input into NULs in output. Closes #16620.

2014-10-14 21:23 VZ, revision 78020

Fix typo in a comment in wxSpinCtrlGenericBase::Create(). s/satisfy/specify/ to give some sense to this comment.

2014-10-14 15:42 VZ, revision 78019

Spanish translations update from Miguel Giménez.

2014-10-14 15:40 VZ, revision 78018

Spanish translations update from Miguel Giménez.

2014-10-14 10:53 VS, revision 78017

Add support for template NSImages to wxBitmap wxBitmap uses CGImage instead of NSImage internally and the conversion looses NSImage metadata. In particular, it looses the "template" attribute, which is set for files ending with "Template" and loaded trough wxArtProvider. This change makes it easy to use template images with native controls such as the toolbar.

2014-10-14 10:53 VS, revision 78016

Add support for template NSImages to wxBitmap wxBitmap uses CGImage instead of NSImage internally and the conversion looses NSImage metadata. In particular, it looses the "template" attribute, which is set for files ending with "Template" and loaded trough wxArtProvider. This change makes it easy to use template images with native controls such as the toolbar.

2014-10-13 14:08 VZ, revision 78015

Define unambiguous Is{List,Text}Empty() in wxOwnerDrawnComboBox. Like in wxComboBox itself, it's useful to provide these methods to avoid problems with ambiguous IsEmpty(), inherited from both wxTextEntry and wxItemContainer. Closes #16618.

2014-10-13 09:19 AW, revision 78014

Fix clearing wxPG Properties deleted immediately in wxPropertyGridPageState::DoClear() should be first removed from the lists of pending deletions. Closes #16617

2014-10-12 22:48 VZ, revision 78013

Fix calling wxFileHistory::Load() more than once. Don't add all the items in the history to the menu again, remove the old ones if we had already added them. Closes #16588.

2014-10-12 22:48 VZ, revision 78012

Fix vertical cell alignment in wxDataViewCtrl in wxGTK. Pass the alignment used when creating the column to the renderer. Closes #16035.

2014-10-12 22:48 VZ, revision 78011

Update MSVS 2010+ remarks in wxMSW installation notes. Document wx_local.props instead of the old and not existing any more wx_vcN_local.props. Also mention that wx/msw/setup.h can be linked to wx/msw/setup0.h instead of being a copy of it. Closes #16597.

2014-10-12 22:48 VZ, revision 78010

Add support for 'z' size format specifier. Assume that non-MSVC compilers support it directly and use 'I' for MSVC. Closes #16596.

2014-10-12 22:48 VZ, revision 78009

Fall back to executable file name in wxApp::GetAppName(). This is especially useful when wxWidgets is used as part of another library and is not initialized with the real argc/argv containing the application name. Closes #16615.

2014-10-11 18:30 VZ, revision 77994

Add wxART_FULL_SCREEN icon. Use stock GTK+ icon in wxGTK and Tango icon elsewhere. See #2662.

2014-10-11 18:30 VZ, revision 77993

Fix resource compiler include path for Borland. Explicitly include $(BCCDIR)/include/windows/sdk directory in the resource compiler options, as it needs it to find windows.h.

2014-10-11 18:29 VZ, revision 77992

Compilation fix for Borland overload selection bug. Avoid the following bogus compiler error: Error E2015 ..\..\src\common\filename.cpp 2589: Ambiguity between 'wxFileName::Exists(int) const at ..\..\src\common\filename.cpp:777' and 'wxFileName::Exists(const wxString &,int) at ..\..\src\common\filename.cpp:790' in function wxFileName::SetPermissions(int) by using an unambiguous overload. See #16592.

2014-10-11 18:29 VZ, revision 77991

Compilation fix for Borland compiler bug with ternary operator. Don't use ?: operator with references, Borland wrongly deduces the common type as being an object in this case, so use pointers instead and dereference later. See #16592.

2014-10-11 18:29 VZ, revision 77990

Update release instructions to mention tagging the release. Also remove the reference to the non-existing "next section" and a couple of other minor changes.

2014-10-11 17:48 VZ, revision 77989

Mention Borland C++ fixes in the change log.

2014-10-11 17:48 VZ, revision 77988

Fix resource compiler include path for Borland. Explicitly include $(BCCDIR)/include/windows/sdk directory in the resource compiler options, as it needs it to find windows.h.

2014-10-11 17:47 VZ, revision 77987

Compilation fix for Borland overload selection bug. Avoid the following bogus compiler error: Error E2015 ..\..\src\common\filename.cpp 2589: Ambiguity between 'wxFileName::Exists(int) const at ..\..\src\common\filename.cpp:777' and 'wxFileName::Exists(const wxString &,int) at ..\..\src\common\filename.cpp:790' in function wxFileName::SetPermissions(int) by using an unambiguous overload. See #16592.

2014-10-11 17:47 VZ, revision 77986

Compilation fix for Borland compiler bug with ternary operator. Don't use ?: operator with references, Borland wrongly deduces the common type as being an object in this case, so use pointers instead and dereference later. See #16592.

2014-10-09 17:37 VZ, revision 77985

Fix excessive height of wxSlider with labels but no ticks in wxMSW. We shouldn't add the label height to the control best height as the labels are positioned at the same vertical level as the main part of the control. See #16604.

2014-10-09 17:36 VZ, revision 77984

Fix excessive height of wxSlider with labels but no ticks in wxMSW. We shouldn't add the label height to the control best height as the labels are positioned at the same vertical level as the main part of the control. See #16604.

2014-10-09 06:44 MAR, revision 77983

Fix invalid listctrl imagelist assert in wxQT This reverts the bug introduced in r77935, now the list control sample works again.

2014-10-09 06:23 MAR, revision 77982

Support frameless taskbarless dialogs in wxQt * Moved frameless hint to window, checking border * Removed duplicate code in wxFrame and asserts that were preventing AUI to work Thanks to @seandepagnier for the original patch

2014-10-08 12:29 JS, revision 77981

Corrections to HasCharacterAttributes, HasParagraphAttributes EditProperties functions don't try to change read-only content Page up/down behaviour now takes into account margins and scale Transparency and y poition corrections to field labels

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)

2014-08-23 03:08 VZ, revision 77440

Revert generic text dialog due wxQT merge changes * This solves the issues of the previos commit about the extern defaults wxGetTextFromUserPromptStr / wxGetTextFromUserPromptStr * Removed the now superflous textdlg.cpp that was used to define that defaults

2014-08-23 03:08 VZ, revision 77439

Remove wxQT textdlg (use generic) Note that textdlg.cpp was missing from the build (it only defines a couple of default text messages, needed for example by wxPython to avoid undefined symbol)

2014-08-23 03:08 VZ, revision 77438

Fix interface for grid renderers best height/width

2014-08-23 03:08 VZ, revision 77437

Fixed ctor and missing methods of task bar icon for wxQT (wxPython)

2014-08-23 03:08 VZ, revision 77436

Add window getter/setter for wxQT tooltip (wxPython)

2014-08-23 03:08 VZ, revision 77435

Unprotect CreateTool in wxQT toolbar (wxPython)

2014-08-23 03:08 VZ, revision 77434

Avoid ambiguity with wxControl::GetDefaultBorder in wxQT radiobox (wxPython)

2014-08-23 03:08 VZ, revision 77433

Add missing IsTDI method to MDI in wxQT (wxPython)

2014-08-23 03:08 VZ, revision 77432

Add mask to bitmap conversion for wxQT (wxPython)

2014-08-23 03:08 VZ, revision 77431

Add missing virtual stub to wxQT listctrl (for wxPython)

2014-08-23 03:08 VZ, revision 77430

Add generic drag image to wxQT (for wxPython)

2014-08-23 03:07 VZ, revision 77429

Add missing setter/getters to wxQT data format (for wxPython)

2014-08-23 03:07 VZ, revision 77428

Remove duplicate methods in wxRichTextImage interface (for wxPython)

2014-08-23 03:07 VZ, revision 77427

Add missing cursor constructors to wxQT (for wxPython)

2014-08-23 03:07 VZ, revision 77426

Add missing get pixel stub to wxQT colour (for wxPython)

2014-08-23 03:07 VZ, revision 77425

Add missing has alpha method to wxQT bitmap (for wxPython)

2014-08-23 03:07 VZ, revision 77424

Add missing ok method to wxQT accel table (for wxPython)

2014-08-23 03:07 VZ, revision 77423

Fix event loop compilation issues wxQT Android * Proper guard GetEventLoopSourcesManager * Implement wxAppTraits::GetEventLoopSourcesManager (not only wxGUIAppTraits) if console event loop is disabled * Remove unused apptbase.h in wxQT (it is using the unix version) * Minor fix to headings in android setup.h (BTW, is that file used at all?)

2014-08-23 03:07 VZ, revision 77422

Fix string conversion from Qt to use UTF8

2014-08-23 03:07 VZ, revision 77421

Fix checkbox deletion problem in wxQT WXValidateStyle was failing (assertion) so the constructor wasn't calling QtCreateControl properly to initialize internal m_qtWindow pointer. Then the checkbox Qt widget wasn't cleanly deleted. Also, removed the guard in the exec test that was causing a crash due the deletion problem, now all tests run without crashing.

2014-08-23 03:07 VZ, revision 77420

Merge master trunk into GSOC 2014 QT branch

2014-08-23 03:06 VZ, revision 77419

Guard fixed default configuration for Android with wxQT

2014-08-23 03:06 VZ, revision 77418

Provisional guard of wxLocale::GetInfo in wxQT (android) Android's lconv seems dummy (TODO: should investigate Java api)

2014-08-23 03:06 VZ, revision 77417

Use internal wx functions for mbstowcs & wcstrombs in wxQT (Android) Android ones seems to be buggy and not completely implemented (TODO: investigate Qt or Java string conversion functions)

2014-08-23 03:06 VZ, revision 77416

Add missing decl's for wscdup, wcslen, et al in wxQT (Android)

2014-08-23 03:06 VZ, revision 77415

Add missing guard for console app trait loop in wxQT

2014-08-23 03:06 VZ, revision 77414

Rename wxQtSpinCtrlBase to wxSpinCtrlQt for concistency (not a wxQt helper)

2014-08-23 03:06 VZ, revision 77413

Rename wxTopLevelWindowNative to wxTopLevelWindowQt for concistency with other ports

2014-08-23 03:06 VZ, revision 77412

Rename wxWindow to wxWindowQt for concistency with other ports

2014-08-23 03:06 VZ, revision 77411

Avoid assertion in Qt if key code cannot be converted

2014-08-23 03:06 VZ, revision 77410

Provisional patch to support nested event loops in wxQT Without the patch, the wxExecute (wxAppTraits::RunLoopUntilChildExit) loop.Run() don't process synchonics events (not entering the new loop), so it cannot process exit code and streams (causing a SIGSEGV crash). The problem is that QCoreApplication::exec() seems to not start a new loop, maybe it should create a real new loop with QEventLoop but then the inner loop don't seems to process events/signals for the outer one (app). Provisionaly, to get wxExecute working, it calls processEvents() on the main app loop until wxGUIEventLoop::ScheduleExit() is called, terminating the inner loop. This seems to work for the exec sample, but exec tests keep crashing, will investigate further.

2014-08-23 03:06 VZ, revision 77409

Clean up socket notifiers in wxQT even loop source

2014-08-23 03:06 VZ, revision 77408

Fix bitmap deselection in wxQT * Remove redundant pixmap pointer that can become stale * Handle correctly the selected bitmap and check if it's ok (not deleted) The solution is similar to wxGTK, but note that the intermediate QImage prevents to write to the bitmap (QPixmap) directly, so if the current bitmap is not deselected prior it is deleted, probably there will be drawing issues (that code don't follow the docs anyway, as Select(wxNullBitmap) is mandatory after doing anything with the bitmap data for wxMemoryDC).

2014-08-23 03:06 VZ, revision 77407

Guard Exec tests in wxQT by now to avoid crashes

2014-08-23 03:06 VZ, revision 77406

Implement Qt FDIO manager This fixes the test ImageTestCase::LoadFromSocketStream that was timing out and failing --HG-- rename : src/gtk/sockgtk.cpp => src/qt/sockqt.cpp

2014-08-23 03:06 VZ, revision 77405

Fix SIGSEGV in tests about display size utils wxQT

2014-08-23 03:06 VZ, revision 77404

Better fix for invalid reutilization of menubar in Qt

2014-08-23 03:06 VZ, revision 77403

Implement MDI support (QMdiArea et al) in wxQT

2014-08-23 03:06 VZ, revision 77402

Use the base class in QScrollArea methods (in preparation for MDI) wxQT

2014-08-23 03:06 VZ, revision 77401

Remove redundant m_qtMainWindow pointer for frames in wxQT

2014-08-23 03:06 VZ, revision 77400

Fix SIGSEGV due menubar replacement in wxQT

2014-08-23 03:05 VZ, revision 77399

correct implementation of previous reverted revert to allow the original intention

2014-08-23 03:05 VZ, revision 77398

Revert "Revert "Add Qt destruction signal debugging helper"" This reverts commit 1116da62653b44935b77098dd46be688c895dafa.

2014-08-23 03:05 VZ, revision 77397

free idle timer

2014-08-23 03:05 VZ, revision 77396

remove default case from switch statement

2014-08-23 03:05 VZ, revision 77395

Merge branch 'SOC2014_QT' of https://github.com/reingart/wxWidgets into SOC2014_QT Conflicts: src/qt/frame.cpp

2014-08-23 03:05 VZ, revision 77394

Fix menubar crash on removal (tentative) and minor scrollbar adjust

2014-08-23 03:05 VZ, revision 77393

Fix toolbar parenting properly to avoid crashes * Removed logic to search the parent by @seandepagnier, and implemented wxFrame::SetToolBar (including removal to NULL) * Added missing AddChild that was causing SIGSEGV due toolbar not being deleted when the parent was destroyed * Adapted the code to follow current wxQT coding patterns (unifying QtToolBar -> GetHandle) and minor styling issues (space after if)

2014-08-23 03:05 VZ, revision 77392

Fix toolbar tool deletion incorrect return value in wxQT This was causing an infinite loop in the related unit test

2014-08-23 03:05 VZ, revision 77391

Fix stale bitmap deselection in memmory DC causing SIGSEGV (wxQT) Seems that Qt can draw directly on a QPixmap but doesn't have get pixel / blit so it is using a QImage, that doesn't update the pixmap directly. To reproduce and analyze, see the wxSearchCtrl::RenderCancelBitmap, that is not destroying the DC after using the generated bitmap, and crashing then as the bitmap (hence QPixmap) may be destroyed first. If this is a common use case, it could be causing drawing issues everywhere, and the solution will not be simple as some logic will need to be moved to wxBitmap or DC, using temporary conversions to QImage back and forth for bits methods.

2014-08-23 03:05 VZ, revision 77390

Fix TLW parenting so children are deleted in proper order (wxQT) If not parented, top level window childrens (dialogs or other frames) left open will deleted sequentially, raising a segmentation fault due parent becoming stale a pointer (DeletePendingObjects CleanUp). Now, calling AddChild (because TLW is not calling wxWindow::Create) works. wxGTK also does this.

2014-08-23 03:05 VZ, revision 77389

move borderless style setup to wxFrame to allow wxSplashScreen to work

2014-08-23 03:05 VZ, revision 77388

correct rtti macros

2014-08-23 03:05 VZ, revision 77387

fix possible crash of generic widgets with set extra style

2014-08-23 03:05 VZ, revision 77386

implement several unimplemented routines

2014-08-23 03:05 VZ, revision 77385

Revert "Add Qt destruction signal debugging helper" This reverts commit b7ee2e855255cc3d39b7ee1b5e6246a1c164098a.

2014-08-23 03:05 VZ, revision 77384

remove WXUNUSED for now used parameters, fix compiler warning

2014-08-23 03:05 VZ, revision 77383

Add Qt destruction signal debugging helper

2014-08-23 03:05 VZ, revision 77382

Fix TLW destruction after user closes it (not done by Qt) Note that Qt don't destroy the main window on close by default (except Qt::WA_DeleteOnClose is set). So, if Dialogs could remain alive (hidden) if user closes the window and the program don't call explicitelly to Destroy() / delete. This was causing a segmentation fault as when the apps finishes, the Top Level Windows where destroyed in order (and then a child dialog was being destroyed after its parent). The issue was reproducible easily with the combo sample, if the "Compare Dialog" was open using the menu, as the code was not calling Destroy nor deleting it explicitelly/implicitelly.

2014-08-23 03:04 VZ, revision 77381

Fix wrong condition (copy pasting error) in text ctrl sel

2014-08-23 03:04 VZ, revision 77380

Implement cairo image surface for memory DC in wxQT As for wxWindowDC, it uses an image surface internally until cairo qt surface is implemented. This was causing a SIGSEGV in unit tests.

2014-08-23 03:04 VZ, revision 77379

Fix selection derived from text entry (text / combo) This was causing valgrind to report the uninitialized variables as the methods were not implemented (and they are not diferent for single, multiline and combobox in qt).

2014-08-23 03:04 VZ, revision 77378

Adapted OpenGL canvas to current wxQT coding patterns

2014-08-23 03:04 VZ, revision 77377

implement cursor support

2014-08-23 03:04 VZ, revision 77376

Revert marking unused parameters in wxQT used in wxGTK

2014-08-23 03:04 VZ, revision 77375

Merge master trunk into wxQT GSOC 2014 branch (third milestone)

2014-08-23 03:04 VZ, revision 77374

Avoid default in switches over enums (wxQT)

2014-08-23 03:04 VZ, revision 77373

Fixed warnings due no return value of non-void functions wxQT

2014-08-23 03:04 VZ, revision 77372

Avoid unused variables compiler warning in wxQT

2014-08-23 03:04 VZ, revision 77371

Removed *m_qtDialog no longer used (crashing date picker)

2014-08-23 03:04 VZ, revision 77370

Implemented system settings get metric for wxQT

2014-08-23 03:04 VZ, revision 77369

Move internal utilities to private & credits update --HG-- rename : include/wx/qt/converter.h => include/wx/qt/private/converter.h rename : include/wx/qt/utils.h => include/wx/qt/private/utils.h

2014-08-23 03:03 VZ, revision 77368

fully implement 3 state checkbox

2014-08-23 03:03 VZ, revision 77367

implement missing routines from wxBitmap Why do we need to reference count our QPixmaps when Qt is already?

2014-08-23 03:03 VZ, revision 77366

implement copy from icon

2014-08-23 03:03 VZ, revision 77365

logic corrections to prevent certain dialogs from crashing

2014-08-23 03:03 VZ, revision 77364

add FD monitoring support

2014-08-23 03:03 VZ, revision 77363

Correct dialog logic and dirdialog setup

2014-08-23 03:03 VZ, revision 77362

allow handler to work from constructors of classes like filedialog we should do this for all the classes

2014-08-23 03:03 VZ, revision 77361

More Dialogs (file, dir, color, font), adapted from work by @seandepagnier Merged manually from commits done by Sean, adapted to conform current wxQT conventions (GetHandle)

2014-08-23 03:03 VZ, revision 77360

Fix SIGSEGV in test due font picker expecting native info (wxWQT)

2014-08-23 03:03 VZ, revision 77359

Fix fault due division by zero in wxQT listctrl

2014-08-23 03:03 VZ, revision 77358

Fix issue converting lowecase key codes to Qt (uiactionsim)

2014-08-23 03:03 VZ, revision 77357

Implemented Wx -> Qt key conversion mapping (for uiactionsim)

2014-08-23 03:03 VZ, revision 77356

Moved qt keyboard function helpers to converter

2014-08-23 03:03 VZ, revision 77355

More sane item insertion in listctrl & reuse SetItem (wxQT)

2014-08-23 03:03 VZ, revision 77354

Implement image list for wxQT listctrl

2014-08-23 03:03 VZ, revision 77353

Avoid a lot of paining debug messages (will remove soon)

2014-08-23 03:03 VZ, revision 77352

Merge branch 'SOC2014_QT' of https://github.com/reingart/wxWidgets into test

2014-08-23 03:03 VZ, revision 77351

Fix background color assertion (remove dup code)

2014-08-23 03:03 VZ, revision 77350

Minor fix to opengl iosurf sample in wxQT

2014-08-23 03:02 VZ, revision 77349

Initial opengl support for wxQT by @seandepagnier

2014-08-23 03:02 VZ, revision 77348

Stub support for wxQT glcanvas by @seandepagnier

2014-08-23 03:02 VZ, revision 77347

Fix crash due invalid bitmap in QLabel

2014-08-23 03:02 VZ, revision 77346

Fix toolbar parent search logic (adapted from @seandepagnier)

2014-08-23 03:02 VZ, revision 77345

Enable on mouse enter event on toolbar button (also remove warning)

2014-08-23 03:02 VZ, revision 77344

Fix toolbar painting issues adding the wxQT helper

2014-08-23 03:02 VZ, revision 77343

Fix crash reverting some changes by @seandepagnier * Remove explicit deletion (that is done by the base destructor) * Remove unneeded dependency of QToolBar on QObject (no signal required)

2014-08-23 03:02 VZ, revision 77342

Implemented list item find (by string and data) in wxQT

2014-08-23 03:02 VZ, revision 77341

Implemented several minor auxiliar list ctrl methods * get selected item count * count per page (aproximate) * visible rect (aproximate) * item position * ensure visible (using scroll) * edit label (some glitches, maybe it should use editItem) * scroll dx / dy (aproximate) * hit test (only item and nowhere)

2014-08-23 03:02 VZ, revision 77340

Implement item & subitem rect/pos in wxQT list ctrl

2014-08-23 03:02 VZ, revision 77339

Implement get next list item (adapted from generic) in wxQT

2014-08-23 03:02 VZ, revision 77338

Implemented item state getter and setter in wxQT list ctrl

2014-08-23 03:02 VZ, revision 77337

Implemented items and column deletion in wxQT list ctrl

2014-08-23 03:02 VZ, revision 77336

Implement item data in wxQT list control

2014-08-23 03:02 VZ, revision 77335

Refactor qt list item handling (check if not null)

2014-08-23 03:02 VZ, revision 77334

Implemented item text setter and getter

2014-08-23 03:02 VZ, revision 77333

Refactor get Qt list ctrl item to its own method

2014-08-23 03:02 VZ, revision 77332

Fix font in listctrl row

2014-08-23 03:02 VZ, revision 77331

Fix row colours (fg/bg) in wxQT list ctrl

2014-08-23 03:01 VZ, revision 77330

Implemented column getter and setter in listctrl

2014-08-23 03:01 VZ, revision 77329

Refactory the list ctrl signal handler

2014-08-23 03:01 VZ, revision 77328

Implement simple listctrl methods in wxQT

2014-08-23 03:01 VZ, revision 77327

Improve erasing issues (let Qt handle them)

2014-08-23 03:01 VZ, revision 77326

Fix default wxTextCtrl color background due PostCreation

2014-08-23 03:01 VZ, revision 77325

Implement missing wxQT helpers for QLabel This now is needed to correctly paint the background, allows the static text / bitmap to handle events and signals, and maybe a better destruction process.

2014-08-23 03:01 VZ, revision 77324

Fix default widget fore/background colour

2014-08-23 03:01 VZ, revision 77323

Simplificate QWidget* assignment (new PostCreation method) Also reducing the redundant m_qtWindow code, this could help to unify application of background style and default colors (for painting, that was not being enforced and could cause issues). Window style code is commented in the original, maybe it belongs to wxFrame. PostCreation method name was taken from wxGTK, that has similar features.

2014-08-23 03:01 VZ, revision 77322

improve clipboard to not include qt headers in it's headers

2014-08-23 03:01 VZ, revision 77321

Improve flags emitted from wx-config for building external programs

2014-08-23 03:01 VZ, revision 77320

improve top level window initialization

2014-08-23 03:01 VZ, revision 77319

clipboard support

2014-08-23 03:01 VZ, revision 77318

Fix crash caused when exiting. The lost focus event was triggered to the central widget. Since this widget does not map to a qt widget, there is no wxWindow derived destructor for it, so the handler must be set to NULL from the frame.

2014-08-23 03:01 VZ, revision 77317

Implement selection event and get item in list ctrl

2014-08-23 03:01 VZ, revision 77316

Add colour support for list ctrl items

2014-08-23 03:01 VZ, revision 77315

Implement set item in list ctrl (and item count and insert item return value)

2014-08-23 03:01 VZ, revision 77314

Implement basic item insertion in list ctrl

2014-08-23 03:01 VZ, revision 77313

Implement column insertion basics in wxQT list ctrl

2014-08-23 03:00 VZ, revision 77312

Use the correct widget QTreeWidget and helper for list control

2014-08-23 03:00 VZ, revision 77311

Derive list control from wxListCtrlBase in wxQT This fixes missing methods compilation errors: EnableBellOnNoMatch, EnableAlternateRowColours, AppendColumn and OnGetItemAttr

2014-08-23 03:00 VZ, revision 77310

Block Qt signals if widget is being deleted This avoid most of the problems caused by receiving a signal if the wxWindow is deleted (for example, notebook changing the default page, see previous commits). I've tried two other methods without success: * m_qtWindow::disconnect() should do the disconnection of all signals but returns false * QApplication::instance()->removePostedEvents(m_qtWindow); seems to have no effect (also, installEventFilter could be used)

2014-08-23 03:00 VZ, revision 77309

Avoid crash if a control is deleted and a signal is received For example, this could happen if the wxNotebook was deleted and there were pending singals (i.e., emmited due the removal of the current page). This should not happen, signals will be blocked in the destructor in following commits, but this is in place just in case to avoid segmentation fauls (debug message will be print by the wxQT helper)

2014-08-23 03:00 VZ, revision 77308

Add sanity checks for Qt event/signal handlers * Use the window pointer to detect if the class is dead or alive to avoid crashing caused by deleteLater() being processed in the event loop * Print debug messages if the handler (wxWindow) is NULL (deleted), just for safety and debugging as that code should not be reached if Qt signals are blocked or Qt events are filtered / removed (comming in future commits) * Set the window pointer immediatelly in wxQt helper template constructor to avoid problems if wxWindow base class was not fully initialized and a Qt event/signal is received GetHandler will return NULL if the wxWindow object was deleted, so it should be verified in the signal handlers in each derived class (events are automatically verified by the helper)

2014-08-23 03:00 VZ, revision 77307

Fix uninitialized value causing 'Painter not active', thanks @seandepagnier

2014-08-23 03:00 VZ, revision 77306

Fix missing __WXQT__ guard in include, thanks @seandepagnier

2014-08-23 03:00 VZ, revision 77305

Postpone the shortcut handler destruction to avoid seg. faults

2014-08-23 03:00 VZ, revision 77304

Removed GetHandle (virtual) call from wxWindow dtor in wxQT

2014-08-23 03:00 VZ, revision 77303

Implemented wxBitmap::GetRawData in wxQT (similar to wxGTK)

2014-08-23 03:00 VZ, revision 77302

Fix cairo image buffer paint DC in wxQT * do not destroy the image as it holds the pixel data buffer * hence, do not create a new image as it isn't necessary This solution is similar to cairo qt surface internals, that stores image and image_equiv -the cairo image surface-.

2014-08-23 03:00 VZ, revision 77301

Fix wxQtDCImpl::GetHandle() to return QPainter This is needed by the grahpic context

2014-08-23 03:00 VZ, revision 77300

Fix font face name getter (using actual info from Qt) It was returning an empty string (if no facename was given at the font ctor), and that caused a segmentation fault in cairo_show_text

2014-08-23 03:00 VZ, revision 77299

Fix font weight and underline setters

2014-08-23 03:00 VZ, revision 77298

Implement missing font family, weight & style getters

2014-08-23 03:00 VZ, revision 77297

Implement missing font info constructor in wxQT (This is also needed by the drawing sample)

2014-08-23 03:00 VZ, revision 77296

Added basic Cairo paint DC for wxQT (tentative) This is a very minimal approach (drawing to a cairo image surface and not a qt surface), but will help to avoid crashing (for example, in drawing sample, even if qt surface is not available).

2014-08-23 02:59 VZ, revision 77295

Removed dummy Graphic Context in wxQT If available, use Cairo like in wxGTK and other ports, but cairo qt surface not implemented yet.

2014-08-23 02:59 VZ, revision 77294

Fix SIGSEGV on children destruction (frame and msgdlg)

2014-08-23 02:59 VZ, revision 77293

Remove Qt's libraries dependency from wxBase

2014-08-23 02:36 VZ, revision 77292

implement wxToolBar from QToolBar

2014-08-23 02:36 VZ, revision 77291

fix memory leak/crash in wxFrame

2014-08-23 02:36 VZ, revision 77290

fix memory leak (which also fixes crashes from events that were triggered after the message box is destroyed)

2014-08-23 02:33 VZ, revision 77289

Fix DC device clipping region in wxQT Qt only uses logical coordinates for clipping methods, so this workaround removes temporarily the transformation (translation / scale) to match the physical device coordinates.

2014-08-23 02:33 VZ, revision 77288

Instantiate correct DC class in Qt paint handler Uses wxPaintDC instead of wxWindowDC directly, as now it prepares the Qt painter

2014-08-23 02:33 VZ, revision 77287

Fix cell editor positioning Qt seems to place slightly bigger control that will be drawn outside cell area, so then the remaining space will be not fully repainted when the editor is hidden.

2014-08-23 02:33 VZ, revision 77286

Added some __WXQT__ guards in grid The size of the cell should not substract the grid line to be drawn correctly. Also, the highlight rect should not be reduced to cover all the cell like in wxGTK (if not, it left white pixel line surrounding it). The other guards (set background and layout direction) are for consistency with wxGTK. There are still some painting issues related to the clipping regions and cell editor positioning.

2014-08-23 02:33 VZ, revision 77285

Prepare the Qt painter for wxDC Note that the function QtPreparePainter was already there but unused.

2014-08-23 02:33 VZ, revision 77284

Fix adding child window in scroll containers in wxQT This also fixes scrolling of children that weren't moved before (for example, see the erase sample). The solution is the same as in the wxFrame case (viewport instead of centralWidget).

2014-08-23 02:33 VZ, revision 77283

Implement missing static bitmap get methods This fix a sising issue too (as GetBitmap() is used in GetBestSize), see controls and erase samples.

2014-08-23 02:33 VZ, revision 77282

Fix incorrect wording in erase sample

2014-08-23 02:33 VZ, revision 77281

Fix background style regression (again) Qt should not clear the background in advance even in wxBG_STYLE_ERASE

2014-08-23 02:33 VZ, revision 77280

Use wxGTK default row height in wxQT

2014-08-23 02:33 VZ, revision 77279

Use the Qt paint event region instead bounding rect

2014-08-23 02:33 VZ, revision 77278

Removed now duplicate set background style

2014-08-23 02:33 VZ, revision 77277

Fix draw bitmap to honour transparent background

2014-08-23 02:33 VZ, revision 77276

Fix transparency style sheet setting in wxQT

2014-08-23 02:33 VZ, revision 77275

Only set transparency in inner scroll area viewport

2014-08-23 02:33 VZ, revision 77274

Fix SIGSEGV setting background style after creation in wxQT

2014-08-23 02:33 VZ, revision 77273

Don't draw and reset wxClientDC if empty in wxQT This fixes an issue when wxClientDC is used just for metrics calculations (for example, in wxTreeCtrl::Expand), so there is nothing to draw but if the QPicture is not reset, wxWindow::QtHandlePaintEvent get confused and don't use a wxPaintDC for an event generated by Refresh (thinking wxClientDC is valid and asking a repaint, but it will not replay anything).

2014-08-23 02:33 VZ, revision 77272

Add a debug message if qt painter is aborted

2014-08-23 02:33 VZ, revision 77271

Fix erasing background regression in wxQT Default paint handler has to clear the background is style is Qt::WA_OpaquePaintEvent (needed for wxBG_STYLE_ERASE so wxClientDC works outside the paint event). The background will remain black (unpainted) or inconsistent if not cleared in this case.

2014-08-23 02:33 VZ, revision 77270

Add some paint debugging messages (in wxGrid)

2014-08-23 02:33 VZ, revision 77269

Use wxLogDebug for paint debugging messages Removed wxLogTrace and guards.

2014-08-23 02:33 VZ, revision 77268

Only disable auto-erasing for generic panels

2014-08-23 02:32 VZ, revision 77267

Add basic logging facilities to debug wxQT paint issues

2014-08-23 02:32 VZ, revision 77266

Prevent Qt to auto-erase the background on paint events This is need by wxClientDC to be able to draw outside the paint event. Now this is set by default now for all the widgets but can be changed by SetBackgroundStyle (so it will need to be revised that background erasing is working properly).

2014-08-23 02:32 VZ, revision 77265

Divide wxClientDC & wxPaintDC logic in paint event handler wxClientDC should not erase the background nor generate a wxPaintEvent, it only replay the QPicture painted outside the event handler. This way was originally designed but it was not working in prior versions due lacking update region & background support.

2014-08-23 02:32 VZ, revision 77264

Don't initialize the Qt Picture size This avoids setting an excesive update region that was clearing the whole widget in the paint event handler. Now, wxClientDC will only paint the effective drawn rect.

2014-08-23 02:32 VZ, revision 77263

Repaint only the rect affected and handle scroll area

2014-08-23 02:32 VZ, revision 77262

Make QtGetScrollBarsContainer public for wxClientDC

2014-08-23 02:32 VZ, revision 77261

Remove compilation warnings in wxWindow (wxQT)

2014-08-23 02:32 VZ, revision 77260

Create Qt widget painter just once in ctor outside paint event

2014-08-23 02:32 VZ, revision 77259

Fix update / refresh in wxQT scroll bar containers Note that Qt don't propagate the paint event if sent to the entire area (only the viewport "virtual space" can draw anyway).

2014-08-23 02:32 VZ, revision 77258

Remove last wxQT paint warnings Implemented get scroll bar container method to missing controls (that also derive from QScrollArea) as in them the painter should be created only in the viewport (logic already coded in wxWindow paint event and for wxPanel), else the following warning is emmited: {{{ QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 }}}

2014-08-23 02:32 VZ, revision 77257

Add missing popup method in wxQT combo box

2014-08-23 02:32 VZ, revision 77256

Always use native double buffer on wxQT (Qt's painter is double buffered)

2014-08-23 02:32 VZ, revision 77255

Send Id in wxQT paint event

2014-08-23 02:32 VZ, revision 77254

Fix erase event (cleared DC) in wxQT

2014-08-23 02:32 VZ, revision 77253

Implement leading font metric in wxQT

2014-08-23 02:32 VZ, revision 77252

Guard missing wxUSE_ACCEL in wxWindow wxQT

2014-08-23 02:32 VZ, revision 77251

Fix default system font on wxQT

2014-08-23 02:32 VZ, revision 77250

Fix region iteration in wxQT This was preventing iterating in any region (as most has only one rect), hence the grid painting was not working propertly.

2014-08-23 02:32 VZ, revision 77249

Don't force a repaint if nothing to replay (wxClientDC wxQT)

2014-08-23 02:32 VZ, revision 77248

Avoid painting recursion for wxClientDC in wxQT Firing a repaint inside a paint ever could be recursive, update() should be used in that case but it is not immediate. Also, note that now the wxClientDC would work even if it is used inside the paint event, and could be used to simplificate the logic.

2014-08-23 02:32 VZ, revision 77247

Fix paint of wxClientDC in wxQT Moved the painter replay inside the paint event, so the erase and paint wx event are processed (wxPaintDC) before actions drawn outside the event handler (wxClientDC). After this, background was not prepared correctly and the drawing could become inconsistent (specially if the wxClientDC was just used for measures, ie: no drawings)

2014-08-23 02:31 VZ, revision 77246

Handle central widget paint events in wxQT Add wxQtCentralWidget helper and fix minor logic in paint event to detect the scrollable area

2014-08-23 02:31 VZ, revision 77245

Fix invalid destruction of painter in wxQT The DC is not really associated to the window, so the m_qtPainter is owned by this class and should be deleted in base dtor

2014-08-23 02:31 VZ, revision 77244

Paint directly wxWindowDC without buffer in wxQT This solution avoid flicker and is more optimal as the intermediate buffer is not need: * use QPainter* instead of QImage* in wxWindow paint event (no more m_qtPaintBuffer) * change m_qtPainter to pointer in wxQtDCImpl (created on subclasses) * rename QtPreparePainter internal method (not used right now) * initial erase left to Qt (auto fill background) Still more tweaks are needed to avoid problems on begin() and test background erasing

2014-08-23 02:31 VZ, revision 77243

Implement style background & transparency in wxQT

2014-08-23 02:31 VZ, revision 77242

Fix wxQT painting to honor background style Note that although this works better, the internal m_qtPaintBuffer still causes some issues and is inefficient (not needed as Qt already do a double buffering for widget painting) Also, QWidget::setBackgroundRole et.al. should be enforced too (and tested), to properly handle transparent and system backgrounds

2014-08-23 02:31 VZ, revision 77241

Add wxNORMAL_FONT in native system setting

2014-08-23 02:31 VZ, revision 77240

Implement native system settings GetColour in wxQT This was causing incorrect background in paint events and other drawing issues.

2014-08-23 02:31 VZ, revision 77239

Fix scroll window method in wxQT

2014-08-23 02:31 VZ, revision 77238

Set update region for wxQT paint events

2014-08-23 02:31 VZ, revision 77237

Remove superflous QtPaintClientDCPicture This is already handled inside QtHandlePaintEvent, so it duplicated some logic and could draw the picture twice (if not introducing conflicts with QPaint). Need to investigate the cases where this should be really done after the qt paint (maybe it could be related to wxEraseEvent)

2014-08-23 02:31 VZ, revision 77236

Fix paint issues on scrolled controls in wxQT Warning reported by qt was related to trying to draw in an invalid painter: QPainter.begin(...) returned False, with the output: QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 This can be tested quickly with the scroll sample (nothing is drawn the QScrollArea->viewport() is used. TLW also has a QScrollArea as central widget, so this should be solved there too.

2014-08-23 02:31 VZ, revision 77235

Fix scroll bar creation only for panels Other controls like wxListBox already include scroll bars (using wxHSCROLL / wxVSCROLL), and should not create / set new ones for them

2014-08-23 02:31 VZ, revision 77234

Fix scrollable control creation in wxQT Moved scroll bar creation from SetScrollbar to QtSetScrollBar so it can be called from Create

2014-08-23 02:31 VZ, revision 77233

Fix scroll bar window/frame in wxQT Now it is simplified using QScrollArea, so custom scroll layout was removed (that was commented and didn't work)

2014-08-23 02:31 VZ, revision 77232

Fix wxFrame dtor in wxQT (removed) This could cause the incorrect deletion order of qt children and delete is not safe, either explicit or implicit using wxQtPointer -that also was removed-. The wxWindow destructor should execute the deleteLater() that is safer in qt (see prior commits).

2014-08-23 02:31 VZ, revision 77231

Use Qt's safer deleteLater() in dtor Note that the comment was wrong (my mystake), destroy() is protected (and should not be used), deleteLater() is a slot and is the recommended way as it is defferred. Also, it could be called multiple times as Qt manages this in the event queue

2014-08-23 02:31 VZ, revision 77230

Remove superflous wxQtPointer helper (and header) Note that this added a new level of ref counting and the automatic deletion was causing premature destuction of Qt control's children. Direct destruction of the QObject is even discouraged and can cause chash according Qt docs, so deleteLater() is safer. For more info see QObject::~QObject comments (Qt source)

2014-08-23 02:30 VZ, revision 77229

Fix client data (missing dtor) memory leak in wxQT

2014-08-23 02:30 VZ, revision 77228
  • D /wxWidgets/branches/wxQT/include/wx/qt/panel.h
  • D /wxWidgets/branches/wxQT/src/qt/panel.cpp

Remove unused wxQT panel header and implementation

2014-08-23 02:30 VZ, revision 77227

Add dtor for wxBitmapRefData to fix memory leak in wxQT

2014-08-23 02:30 VZ, revision 77226

Fix m_rasterColourOp uninitialized value The problem is reported by valgrind in ApplyRasterColourOp. Setting it to wxQtNONE avoids the report but doesn't fix some drawing issues (don't know if it is related), so more investigation is needed about the initial value to get a correct behavior (if it should be used at all without calling first SetLogicalFunction)

2014-08-23 02:30 VZ, revision 77225

Fix memory leak in wxWindow::Init() for wxQT

2014-08-23 02:30 VZ, revision 77224

wxWindow::Init() function instead of a macro in wxQT This is needed to track down memmory issues (if not, valgrind just report the line of the macro as it is not expanded)

2014-08-23 02:30 VZ, revision 77223

Merge master trunk in SOC2014 wxQT branch Note: I did some manual edition (again) as the automatic merge incorrectly was adding __WXCOCOA__ and removing __WXQT__ ...

2014-08-23 02:30 VZ, revision 77222

Remove duplicate wxFrame dtor in wxQT This was removed in other ports and moved to wxFrameBase, see: http://trac.wxwidgets.org/changeset/76804

2014-08-23 02:30 VZ, revision 77221

Merge GSOC 2014 wxQT branch with master trunk

2014-08-23 02:27 VZ, revision 77220

Add missing wxFont ctor using wxFontInfo in wxQT (this is needed to build the tests)

2014-08-23 02:27 VZ, revision 77219

Remove private include (helper) from wxQT headers

2014-08-23 02:26 VZ, revision 77218

Refactor menu item (wxQtAction) to make it a thin helper

2014-08-23 02:26 VZ, revision 77217

Move helper template to private and rename last _qt.h --HG-- rename : include/wx/qt/pointer_qt.h => include/wx/qt/pointer.h rename : include/wx/qt/winevent_qt.h => include/wx/qt/private/winevent.h

2014-08-23 02:26 VZ, revision 77216

Make wxQtWidget helper internal (remove header)

2014-08-23 02:26 VZ, revision 77215

Make wxQT helpers internals in dialgo, frame, msgdlg, scrolbar and statusbar

2014-08-23 02:26 VZ, revision 77214

Make spin control helper internal / private in wxQT * Move helper (wxQtSpinBoxBase et al) declaration to c++ sources * Use QSpinBox / QDoubleSpinBox for header declarations (instead of the helper) * Refactor Create to instantiate the helper in the derived classes of wxSpinCtrlBase * Use a dynamic_cast in SetValue(wxString&) to safely access the derived class helper * Make SetValue (overloaded) virtual and reimplement both to avoid hiding * Change the controls sample to test SetValue(wxString&) Note that the dynamic_cast is needed now to access QSpinBox::valueFromText that is protected and is redeclared in the helper as public (all the other heplers didn't have this requeriment so far).

2014-08-23 02:26 VZ, revision 77213

Fix qt to wx date conversion function

2014-08-23 02:26 VZ, revision 77212

Make calendar control helper internal / private * Declaration of wxQtCalendarWidget moved from header to c++ source file * Renamed method to match signal names

2014-08-23 02:26 VZ, revision 77211

Fix SIGSEGV handling paint event in wxQT The logic was checking for m_qtPicture but used m_qtPaintBuffer (that is used bellow in a alternate block) Although the segmentation fail is fixed, this should be revised as it seems to be an explicit QtPaintClientDCPicture with this logic

2014-08-23 02:26 VZ, revision 77210

Fix unused variable due combobox z-order in contols sample wxQT

2014-08-23 02:26 VZ, revision 77209

Clean up controls sample * Removed invalid combo insert test that causes an error in wxGTK * Removed unused variable (compiler warning)

2014-08-23 02:26 VZ, revision 77208

Add wxGA_TEXT to wxGauge interface

2014-08-23 02:26 VZ, revision 77207

Test methods of wxCheckListBox in controls sample * Add a toggle check button that call wxCheckListBox::Check * Show (in the log) the wxCheckListBox::IsCheck status when a item is selected

2014-08-23 02:26 VZ, revision 77206

Implement IsChecked / Check for wxCheckListBox in wxQT

2014-08-23 02:26 VZ, revision 77205

Use wxCheckListBox in controls sample Replaced wxListBox with wxCheckListBox to test this derived class. The behavior will be similar as in most platforms it is just based on wxListBox

2014-08-23 02:25 VZ, revision 77204

Implement wxCheckListBox based on wxListBox (wxQT) Solution taken from wxGTK (but overriden Init private method to set m_hasCheckBoxes)

2014-08-23 02:25 VZ, revision 77203

Add test text event methods to controls sample

2014-08-23 02:25 VZ, revision 77202

Move setting initial text before CreateControl Note that CreateBase (in QtCreateControl) was not being called before setting the initial text value (ChangeValue), hence basic methods like HasFlag or IsMultiline weren't working at that point (and this caused a SIGSEGV in wxTextCtrl as it relies on flags to distinguish between m_qtLineEdit and m_qtTextEdit) In wxGTK CreateBase is called explicitly before creating the gtk control (for example, in wxTextCtrl::Create)

2014-08-23 02:25 VZ, revision 77201

Add wxQtTextEdit helper for multiline text control Note that only wxEVT_TEXT is implemented by now as qt lacks returnPressed signal in QTextEdit. Also, the signal textChanged has no parameter for QTextEdit, so text entries are not uniform in Qt regarding events notifications too. This also raised a SIGSEGV, issue with GetValue() called inside the event when setting the initial text (that was changed as it don't have to be sent according the docs), so please see the next commit

2014-08-23 02:25 VZ, revision 77200

Add wxQtTextEdit helper for multiline text control Note that only wxEVT_TEXT is implemented by now as qt lacks returnPressed signal in QTextEdit. Also, the signal textChanged has no parameter for QTextEdit, so text entries are not uniform in Qt regarding events notifications too. This also raised an issue with GetValue() called inside the event when setting the initial text (that don't have to be sent according the docs), so see the next commit

2014-08-23 02:25 VZ, revision 77199

Implement proper set value method for wxTextCtrl * Send events depending on flags (blocking qt signals) * Replace all the text without sending two events (removal and insert like wxGTK) Note that this add stub methods in wxTextEntry just for consistency. This should be revisited evaluating if wxTextEntry implementations is required at all (seems qt has different text entry controls methods so there could be nothing in common)

2014-08-23 02:25 VZ, revision 77198

Add wxQtLineEdit helper for single line TextCtrl Events similar to wxGTK (wxEVT_TEXT and wxEVT_TEXT_ENTER, checking wxTE_PROCESS_ENTER style flag)

2014-08-23 02:25 VZ, revision 77197

Honor slider tick position style flags in wxQT

2014-08-23 02:25 VZ, revision 77196

Add wxGA_TEXT style for text percent in wxQT gauge

2014-08-23 02:25 VZ, revision 77195

Hide text in wxQT progress bar for consistency (percentage completed, not shown by other ports) and fix minor coding styling issue

2014-08-23 02:25 VZ, revision 77194

Add safety check in wxQT list box item access (to avoid segmentation fault if null item is returned by qt)

2014-08-23 02:25 VZ, revision 77193

Use the new, short event type (wxEVT_CHECKBOX,) instead of the old verbose name (wxEVT_COMMAND_CHECKBOX_CLICKED)

2014-08-23 02:25 VZ, revision 77192

Refactor wxComboBox to be derived from wxChoice and wxTextEntry in wxQT (similar to wxGTK and wxMSW). Now it reuses a lot of code (as both are based on QComboBox), but it has to reimplement some wxTextEntry methods as they differ between qt text controls. Also now uses wxControlWithItemsBase::SendSelectionChangedEvent

2014-08-23 02:25 VZ, revision 77191

Fix slider event in wxQT, now using valueChanged signal as tracking is enabled by default. Note that using sliderMoved only works for mouse events (not for keyboard ones), and don't catch the final value when released (slider didn't reach 100%). Also, removed a comment copy-pasted by mistake.

2014-08-23 02:25 VZ, revision 77190

Implement slider tick frequency and marks in wxQT

2014-08-23 02:25 VZ, revision 77189

Force font selection on controls sample (to check font family works ok and to avoid default font -that can be different in wxQT than in wxGTK-)

2014-08-23 02:25 VZ, revision 77188

Fix notebook tab change events and insertion (move selection logic from qt helper to wx class, and block firing qt signals to avoid initialization problems and to better simulate signal vetoing -to not show the page in advance-). Solution for selection logic taken from wxGTK (now using base clases). Note also that most methods of QTabWidget cannot be overriden (IMHO enforcing the thin qt helpers approach).

2014-08-23 02:25 VZ, revision 77187

Move wxQT notebook helper from header to source (make it internal)

2014-08-23 02:24 VZ, revision 77186

Remove wxQT button helper from header and split signal handlers (using parameter, removing m_eventType and renaming the method following qt signal name). Note: cannot be unified as wxEVT_TOGGLEBUTTON is only defined in tglbtn, so a new inherited QtCreate method to instantiate the wxQtPushButton or wxQtToggleButton was introduced.

2014-08-23 02:24 VZ, revision 77185

Fix to ensure font family is enforced under wxQT (discarding facename if set, forcing qt to choose a proper font)

2014-08-23 02:24 VZ, revision 77184

Add wxFont::SetFaceName for wxQT to actually force the qt "font matching algoritm" to select a proper font (if not, wxFont::SetFamily has no effect). Also note that calling wxFontBase::SetFaceName causes a segmentation fault, probably caused by the UnRef() due wxFontEnumerator::IsValidFacename returns false (EnumerateFacenames is currently not implemented)

2014-08-23 02:24 VZ, revision 77183

Fix to draw ellipse with 'no fill' if pen is not transparent in wxQT (in fact, filled with text background color like in wxGTK)

2014-08-23 02:24 VZ, revision 77182

Fix wxMemoryDC object de-selection (using wxNullBitmap), storing the selected bitmap and implementing GetSelectedBitmap in wxQT

2014-08-23 02:24 VZ, revision 77181

Implement spin control event in wxQT (connecting the value changed signal, similar to wxGTK)

2014-08-23 02:24 VZ, revision 77180

Derive wxQtSpinBox polymorphy helpers from wxQtEventSignalHandler to proccess QSpinBox events. Note that wxQtSpinCtrlBase is not a helper derived from Qt (it is in fact the wxQT implementation derived from wxSpinCtrlBase)

2014-08-23 02:24 VZ, revision 77179

Implement wxTextCtr SetSelection and GetValue methods (needed by SetValue) in wxQt

2014-08-23 02:24 VZ, revision 77178

Rename internal helper wxQtSpinBox to wxQtSpinButton in order to avoid collision (and segmentation fault) with wxSpinCtrl

2014-08-23 02:24 VZ, revision 77177

Implement spin button event (wxQtSpinBox internal helper)

2014-08-23 02:24 VZ, revision 77176

Add text event and allow edition in wxQtComboBox

2014-08-23 02:24 VZ, revision 77175

Implement basic slider methods (set/get range and value) in wxQT

2014-08-23 02:24 VZ, revision 77174

Implement wxSlider event handling (including internal wxQtSlider helper)

2014-08-23 02:24 VZ, revision 77173

Implement basic gauge methods (set/get range and value)

2014-08-23 02:24 VZ, revision 77172

Add wxQtProgressBar stub internal helper for gauge (just for generic events, no signal needed now)

2014-08-23 02:24 VZ, revision 77171

Add wxQtButtonGroup internal intermediate helper to connect wxQtRadioBox (QGroupBox) button signal. Note this one is not a 'visual' control so it doesn't derives from QWidget, then using wxQtSignalHandler instead of wxQtEventSignalHandler

2014-08-23 02:24 VZ, revision 77170

Implement wxQtGroupBox and wxQtRadioBox internal helpers (just to handle qt events as no signal connected by now)

2014-08-23 02:24 VZ, revision 77169

Remove shared groupbox_qt header for wxQtGroupBox stub (real wxQT internal hepers will be implemented for wxStaticBox and wxRadioGroup)

2014-08-23 02:23 VZ, revision 77168

Implement combobox event (fixing wxQtComboBox helper signal handler), it should use SendSelectionChangedEvent but wxControlWithItemsBase collides with wxComboBoxBase, and it cannot derive from wxChoice as in wxGTK as in wxQT wxTextEntry is not completely implemented. So, the current implementation is not optimal (it has some minor code duplication) but it works ok

2014-08-23 02:23 VZ, revision 77167

Remove combobox_qt header as it is no longer used (helper implementations are now internal to wxChoice and wxComboBox)

2014-08-23 02:23 VZ, revision 77166

Implement combobox basic methods (adding internal wxQtComboBox helper), very similar to wxChoice implementation to wxQT. Note that the old wxQtComboBox superseded and no more shared with wxChoice

2014-08-23 02:23 VZ, revision 77165

Implement choice basic methods for wxQT (this was simpler than wxListBox as no intermediate item class like QListWidgetItem is used)

2014-08-23 02:23 VZ, revision 77164

Implement choice event (adding internal wxQtChoice helper), note the explicit cast needed as the qt signal is overloaded

2014-08-23 02:23 VZ, revision 77163

Implement DoInsertItems in wxQT list box (additional DoInsertOneItem is needed by wxItemContainer::DoInsertItemsInLoop)

2014-08-23 02:23 VZ, revision 77162

Implement client data in wxQT list box inside QListWidgetItem.data user role (using QVariant to store the pointer, similar to wxWindow::QtStoreWindowPointer but not using Q_DECLARE_METATYPE)

2014-08-23 02:23 VZ, revision 77161

Implement list box clear and item deletion methods in wxQT

2014-08-23 02:23 VZ, revision 77160

Implement list box basic selection method in wxQT

2014-08-23 02:23 VZ, revision 77159

Implement list box string methods in wxQT (used in SendEvent)

2014-08-23 02:23 VZ, revision 77158

Implement list box events (adding internal wxQtListBox helper), note the additional wxListBox::QtSendEvent method as wxListBoxBase:SendEvent is protected (taken from wxGTK solution)

2014-08-23 02:23 VZ, revision 77157

Implement check box event (adding wxQtCheckBox helper)

2014-08-23 02:23 VZ, revision 77156

Implement window enable/disable in wxQT

2014-08-23 02:23 VZ, revision 77155

Refactor wxQT button implementation adding wxAnyButton to avoid code duplication with toggle buttons and simplify wxQPushButton helper (only signal and event handling left on the derived Qt class) --HG-- rename : include/wx/gtk/anybutton.h => include/wx/qt/anybutton.h rename : src/qt/button.cpp => src/qt/anybutton.cpp

2014-08-23 02:23 VZ, revision 77154

Send toggle button checked state in wxQtPushButton event

2014-08-23 02:23 VZ, revision 77153

Send different event types from wxQtPushButton (to support toggle buttons that are the same class in qt)

2014-08-23 02:23 VZ, revision 77152

Add wxStaticText:SetLabel implmentation to wxQT

2014-08-23 02:23 VZ, revision 77151

Ensure the cursor is visible after writing in wxQT multiline wxTextCtrl

2014-08-23 02:23 VZ, revision 77150

Ensure the cursor is visible after setting insertion point in wxQT multiline wxTextCtrl

2014-08-23 02:22 VZ, revision 77149

Revert fake change that shoul't had been commited

2014-08-23 02:22 VZ, revision 77148

Implement cursor position (insertion point) in wxTextCtrl for wxQT (methods are different for QLineEdit and QTextEdit and even QComboBox, so it is not implemented in wxTextEntry)

2014-08-23 02:22 VZ, revision 77147

Implement wxTextCtrl::WriteText in wxQT (used by wxLogTextCtrl)

2014-08-23 02:22 VZ, revision 77146

Fix toggle button ctor in wxQT to create and size the qt control correctly

2014-08-23 02:22 VZ, revision 77145

Move bitmap setting to wxButton::DoSetBitmap so it can be reused from other methods and deriver classes (wxQT, skeleton taken from wxGTK wxAnyButton)

2014-08-23 02:22 VZ, revision 77144

Display bitmap in wxBitmapButton wxQT

2014-08-23 02:22 VZ, revision 77143

Add minimal support for single line text control for wxQT (using QLineEdit vs QTextEdit)

2014-08-23 02:22 VZ, revision 77142

Enable wrapping in static text in wxQT (solution similar to wxGTK)

2014-08-23 02:22 VZ, revision 77141

Fix adding initial items in wxQT wxListBox (taken from wxQtComboBox::AddChoices)

2014-08-23 02:22 VZ, revision 77140

Fix zorder between combo box and static box in controls sample for wxQT (so the combobox can receive events after staticbox is created)

2014-08-23 02:22 VZ, revision 77139

Fix choice best size calculation (it was overriding wxQT hints, specially for default height)

2014-08-23 02:22 VZ, revision 77138

Fix combobox sizing in wxQT (minimal is bigger than normal hint in this case) IMPORTANT: not seting MinSize as semantic seems a bit different with wxWidgets so it causes regressions in wxNotebook

2014-08-23 02:22 VZ, revision 77137

Use label height for top border in static box (to fix inner sizing issues in wxQT, similar solution than wxMSW)

2014-08-23 02:22 VZ, revision 77136

Fix radio box vertical / horizontal style implementation (selecting QVBoxLayout or QHBoxLayout accordingly)

2014-08-23 02:22 VZ, revision 77135

Fix sizing in radio box using a QVBoxLayout so get best size works (qt sizeHint)

2014-08-23 02:22 VZ, revision 77134

Remove rule for Qt's moc precompiler as no longer needed

2014-08-23 02:22 VZ, revision 77133

Use new Qt5 syntax to connect signals to QObject's member functions in wxQT, removing SLOT and SIGNAL macros (third stage to remove moc)

2014-08-23 02:22 VZ, revision 77132

Remove Q_OBJECT and Q_SLOTS from wxQT headers to avoid vtable linking issues (second stage to remove moc)

2014-08-23 02:22 VZ, revision 77131

Unify wxQT helpers code (*_qt.cpp) inside main source files (*.cpp), some headers (*_qt.h) remains independent to avoid include problems (first stage to remove moc)

2014-08-23 02:21 VZ, revision 77130

Remove Q_OBJECT macro for wxQT notebook to avoid vtable link-time error due no moc precompilation being used (not needed as not using slots)

2014-08-23 02:21 VZ, revision 77129

Use wxQtEventSignalHandler for wxQtTabWidget helper (and move declaration to header)

2014-08-23 02:21 VZ, revision 77128

Revert wxQT provisional notebook size fix in sample control (fixed in previous commits)

2014-08-23 02:21 VZ, revision 77127

Move DoGetBestSize() from wxWindow to wxControl to let wxWindowBase properly calculate sizes (ie. tabs inside wxNotebook) in wxQT

2014-08-23 02:21 VZ, revision 77126

Fix bad logic preventing wxSizeEvent triggering at Window::Show() due unreachable code in wxQT

2014-08-23 02:21 VZ, revision 77125

Fix notebook tab selection on insert (wxQt)

2014-08-23 02:21 VZ, revision 77124

Use wxVector<int> in new code for storage of internal imageId in notebook tabs (wxQT), wxArrayXXX stuff is legacy

2014-08-23 02:21 VZ, revision 77123

Fix style coding guidelines remarks

2014-08-23 02:21 VZ, revision 77122

Add support for notebook page change events in wxQT (using helper and new Qt5 connect syntax calling QObject member)

2014-08-23 02:21 VZ, revision 77121

Add some checks and to test wxQT notebook implementation with controls sample

2014-08-23 02:21 VZ, revision 77120

Fix notebook page removal in wxQT (add missing call to base)

2014-08-23 02:21 VZ, revision 77119

Add internal imageId array to implement notebook tabs image retrival in wxQT

2014-08-23 02:21 VZ, revision 77118

Implement notebook set page image and removal in wxQT

2014-08-23 02:21 VZ, revision 77117

Add support for images (QIcon) in notebook tabs (wxQT)

2014-08-23 02:21 VZ, revision 77116

Add inserted notebook page to the internal array of pages in wxQT (fix page order and possibly other issues)

2014-08-23 02:21 VZ, revision 77115

Comment out incorrect notebook set tab enabled in wxQT

2014-08-23 02:20 VZ, revision 77114

Merge wxQT GSOC2014 branch with master trunk (svn rev 76659)

2014-08-23 02:20 VZ, revision 77113

Update build files by bakefile_gen / autoconf

2014-08-23 02:20 VZ, revision 77112

Remove $ from wxQT branch sources and includes

2014-08-23 02:20 VZ, revision 77111

Remove WXWIN_COMPATIBILITY_2_6 and FUTURE_WXWIN_COMPATIBILITY_3_0 in wxQT

2014-08-23 02:20 VZ, revision 77110

Remove redundant text dialog generic .cpp include in wxQT

2014-08-23 02:20 VZ, revision 77109

Use generic tree control in wxQT (qt/treectrl.cpp and header not used but still not removed yet)

2014-08-23 02:20 VZ, revision 77108

Fix compilation regression in other ports (gtk) due commented entries in bakefiles (missing qt features)

2014-08-23 02:20 VZ, revision 77107

Fix QtGlobal include for for QT_VERSION_STR constants (wxQT)

2014-08-23 02:20 VZ, revision 77106

Add wxQtEventLoopSourcesManager stub implementation to fix wxQT linking error: reference to 'wxGUIAppTraits::GetEventLoopSourcesManager()' not defined (see svn r74477 and #15305)

2014-08-23 02:20 VZ, revision 77105

Add generic wxTextMeasure to wxQT QT_LOWLEVEL_SRC bakefile section (and regenerate build files) to fix error: reference to 'vtable for wxTextMeasure' not defined

2014-08-23 02:20 VZ, revision 77104

Add direct wxQT implementation of wxBitmap::Create(int, int, wxDC&) needed in wxAuiTabContainer::Render for retina support (not using the dc, see svn r76601 r74294)

2014-08-23 02:19 VZ, revision 77103

Add dummy wxDropTarget::GetMatchingPair for wxQT (not implemented as in osx)

2014-08-23 02:19 VZ, revision 77102

Define wxHAS_GENERIC_DATAVIEWCTRL for wxQT (as GetTextExtent is not defined)

2014-08-23 02:19 VZ, revision 77101

Use const arrays for wxDC array parameters in wxQtDCImpl and wxPrinterDCImpl (see svn r73382 #10712)

2014-08-23 02:19 VZ, revision 77100

Fixed error: invalid conversion from ‘int’ to ‘wxMouseWheelAxis’ (wxQQ)

2014-08-23 02:19 VZ, revision 77099

Fix missing qt tooltip include due bad merge

2014-08-23 02:19 VZ, revision 77098

Add wxSpinCtrl SetBase and GetBase methods to wxQT (only base 10, see svn r72414)

2014-08-23 02:19 VZ, revision 77097

Remove wxRA_USE_CHECKBOX (see svn r70345)

2014-08-23 02:19 VZ, revision 77096

Refactor wxQtEventLoopBase methods DoRun, ScheduleExit, DoYieldFor (based on svn r74333 r74335 r76061)

2014-08-23 02:19 VZ, revision 77095

Regenerate build files with bakefile_gen and autoconf after merge

2014-08-23 02:17 VZ, revision 77094

merge SOC2014_QT (2.9) with master trunk

2014-08-21 16:14 VZ, revision 77093

Fix ribbon bar tab width computation if the first tab is hidden. The logic for the first tab should really deal with the first visible tab as the actual first tab might be hidden and in this case we shouldn't account for it at all. Closes #16432.

2014-08-21 16:13 VZ, revision 77092

Fix ribbon bar tab width computation if the first tab is hidden. The logic for the first tab should really deal with the first visible tab as the actual first tab might be hidden and in this case we shouldn't account for it at all. Closes #16432.

2014-08-19 14:55 VZ, revision 77091
  • D /wxWidgets/branches/SOC2014_QT

Delete SOC2014_QT branch created at the wrong point.

2014-08-19 14:49 VZ, revision 77090

add SAMPLES_CXXFLAGS option for -fPIC due Qt is built with -reduce-relocations

2014-08-19 14:48 VZ, revision 77089

Add QT_WIDGETS_LIB define to enable QWidget* support in QTest (needed by uiactionsim)

2014-08-19 14:48 VZ, revision 77088

Use wxString::utf8_str() to avoid ambiguity as Qt5 now expect that encoding for QString::QString(const char * str)

2014-08-19 14:48 VZ, revision 77087

Migrate to qt5 (includes QtGui -> QtWidgets, toAscii -> toLatin, QApplication::GuiClient from QApplication() in main)

2014-08-19 14:48 VZ, revision 77086

Update pkg-config to Qt5* libs

2014-08-19 14:48 VZ, revision 77085

Fix plataform info for qt

2014-08-19 14:04 VZ, revision 77084

Create branch for GSoC 2014 wxQt project work.

2014-08-18 23:32 VZ, revision 77083

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.

2014-08-18 19:02 PC, revision 77082

fix use of stack variable after it has gone out of scope, closes #16423

2014-08-18 15:09 VZ, revision 77081

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-16 14:16 VZ, revision 77076

Remove default argument value from wxIHTMLElement2::setExpression(). This doesn't make much sense for an interface declaration anyhow and produces a warning from g++ about assigning string literal to (non-const) BSTR pointer.

2014-08-16 02:24 VZ, revision 77075

Don't exit event loop when exception occurs inside Yield(). If an unhandled exception occurs in an event handler called from Yield(), don't exit the current event loop which can continue running after handling this exception in the code calling Yield(). Closes #16419.

2014-08-15 19:09 PC, revision 77074

Fix handling of identical consecutive key events Events generated programmatically may have the same timestamp as the previous event, which caused them to be ignored on the assumption that they were the same event being sent to a parent window. Fix this by detecting when a new event could be generated by the event loop. Closes #15802

2014-08-15 14:14 VZ, revision 77073

Refactor Unix OpenGL code to avoid using static attributes array. Put the context attributes in wxGLCanvasX11 itself instead. See #16402.

2014-08-15 14:14 VZ, revision 77072

Fix creating wxGLCanvas without any attributes in wxMSW. This was broken by the changes of r77018, see #16402. Just check that we do have the attributes before examining them.

2014-08-14 18:05 VZ, revision 77071

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.

2014-08-14 14:17 VZ, revision 77070

Add support for paragraph spacing attribute to wxTextCtrl in wxMSW. Use PFM_SPACEAFTER/PFM_SPACEBEFORE to implement support for them. Closes #16417.

2014-08-14 14:17 VZ, revision 77069

Add support for paragraph spacing attribute to wxTextCtrl in wxMSW. Use PFM_SPACEAFTER/PFM_SPACEBEFORE to implement support for them. Closes #16417.

2014-08-14 14:11 VZ, revision 77068

Restore dynamic linking of GDI functions for non-MSVC. This partially reverts the changes of r77029 and r77039: now functions such as Set/GetLayout(), AlphaBlend() and GradientFill() are still called (almost) directly when using MSVC but pass by dynamic loading with the other compilers, which don't have #pragma comment(lib) and, in MinGW case, also lack some of these functions in their libraries even if we do link with them. Closes #16411.

2014-08-12 10:53 JS, revision 77067

Fix deletion of cells in defragment

2014-08-12 10:52 JS, revision 77066

Fix deletion of cells in defragment

2014-08-11 18:27 SC, revision 77065

updated multi-lib project file with naming close to Makefile convention

2014-08-11 18:25 SC, revision 77064

updated AppleScript for multilib builds

2014-08-11 17:52 SC, revision 77063

naming closer to Makefile

2014-08-11 17:51 SC, revision 77062

naming closer to Makefile

2014-08-11 17:50 SC, revision 77061

new separate config file for base

2014-08-11 17:06 SC, revision 77060

multi-lib cocoa project

2014-08-11 17:05 SC, revision 77059

multi-lib template

2014-08-11 17:03 SC, revision 77058

preproc changed for multi-lib

2014-08-11 13:53 VZ, revision 77057

Return correct string from wxEVT_TEXT wxComboBox events. wxCommandEvent::GetString() could return empty string for the programmatically-generated wxEVT_TEXT events from a wxComboBox. Fix this by extending the on-demand string retrieval in wxCommandEvent to wxComboBox as well (it was done only for wxTextCtrl). Also add a unit test checking that the string has the expected value in the events sent by all wxTextEntry-derived controls. Closes #3901.

2014-08-11 13:52 VZ, revision 77056

Return correct string from wxEVT_TEXT wxComboBox events. wxCommandEvent::GetString() could return empty string for the programmatically-generated wxEVT_TEXT events from a wxComboBox. Fix this by extending the on-demand string retrieval in wxCommandEvent to wxComboBox as well (it was done only for wxTextCtrl). Closes #3901.

2014-08-11 12:55 VS, revision 77055

Fix lossy conversion warning in wxString::reverse_iterator::operator-.

2014-08-11 11:30 SC, revision 77054

multi-lib configs

2014-08-11 09:07 SC, revision 77053

one call is enough

2014-08-10 19:15 SC, revision 77052

preparing for multi-lib builds

2014-08-10 18:11 VZ, revision 77051

Correct instructions for building wx applications with MSVC. Use the correct $WXWIN/include/msvc path instead of the non-existing $WXWIN/msvc. Also mention that $WXWIN should actually be $(WXWIN) for MSVC. Closes #16410.

2014-08-10 18:11 VZ, revision 77050

Use NMTVDISPINFO instead of TV_DISPINFO in wxMSW code. The latest w32api 4.0.3, used by MinGW project, still didn't manage to apply a one line fix to define TV_DISPINFO correctly, so tweak our sources to avoid using it. See #15537.

2014-08-10 18:11 VZ, revision 77049

Correct instructions for building wx applications with MSVC. Use the correct $WXWIN/include/msvc path instead of the non-existing $WXWIN/msvc. Also mention that $WXWIN should actually be $(WXWIN) for MSVC. Closes #16410.

2014-08-10 18:11 VZ, revision 77048

Use NMTVDISPINFO instead of TV_DISPINFO in wxMSW code. The latest w32api 4.0.3, used by MinGW project, still didn't manage to apply a one line fix to define TV_DISPINFO correctly, so tweak our sources to avoid using it. See #15537.

2014-08-10 17:43 SC, revision 77047

no filepath subgroups in xcode projects

2014-08-10 16:45 SC, revision 77046

get rid of execute.h

2014-08-10 14:54 SC, revision 77045

get rid of execute.h

2014-08-09 22:23 SC, revision 77044

updated files without glgrab

2014-08-09 22:16 SC, revision 77043

updated files without glgrab

2014-08-09 20:50 SC, revision 77042

updated files without glgrab

2014-08-09 20:39 SC, revision 77041

file not needed anymore

2014-08-09 20:38 SC, revision 77040
  • D /wxWidgets/trunk/include/wx/osx/private/glgrab.h
  • D /wxWidgets/trunk/src/osx/core/glgrab.cpp

remove outdated file

2014-08-09 20:03 VZ, revision 77039

Link wxMSW with msimg32.lib now that AlphaBlend() is used statically. Implicitly link msimg32.lib in when using MSVC and add it to MinGW (and Borland) makefiles. This should have been part of r77029.

2014-08-09 20:03 VZ, revision 77038

Remove manual mirroring in RTL case from wxGrid code. This is not necessary as wxDC already inherits RTL from the window itself and, in fact, breaks the display when using RTL. Closes #16250.

2014-08-09 19:56 VZ, revision 77037

Remove manual mirroring in RTL case from wxGrid code. This is not necessary as wxDC already inherits RTL from the window itself and, in fact, breaks the display when using RTL. Closes #16250.

2014-08-09 19:27 SC, revision 77036

removing code for pre 10.6 systems

2014-08-09 19:20 SC, revision 77035

removing code for pre 10.6 systems

2014-08-09 19:07 SC, revision 77034

removing code for pre 10.6 systems

2014-08-09 19:02 SC, revision 77033

removing code for pre 10.6 systems

2014-08-09 18:18 SC, revision 77032

fixing background style

2014-08-09 18:14 SC, revision 77031

using common implementation avoiding out-of-order redraws

2014-08-09 17:50 VZ, revision 77030

Fix markup on the preprocessor symbols documentation page. Due to an apparent bug in Doxygen 1.8.2 (the version currently used for the online documentation generation), using "@c __FOO__" not only renders __FOO__ in fixed width font, but also makes it bold (due to bad interaction with Markdown support?), so use <tt>__FOO__</tt> instead to work around this. And in one case, escape underscores explicitly (in __VISUALC7__) as they were still interpreted, even inside <tt>.

2014-08-09 16:21 VZ, revision 77029

Remove dynamic loading of GDI functions from wxMSW wxDC code. All of these functions (AlphaBlend(), SetLayout(), SetWorldTransform(), ...) are available in XP which is the minimally required version.

2014-08-09 16:21 VZ, revision 77028

Fix wxDC::DrawRectangle() when using RTL in wxMSW. Extend the correct edge of the rectangle (always the physical right, not the logical right) to fix off by one errors in RTL mode, affecting notably wxGrid. See #16250.

2014-08-09 16:07 VZ, revision 77027

Fix wxDC::DrawRectangle() when using RTL in wxMSW. Extend the correct edge of the rectangle (always the physical right, not the logical right) to fix off by one errors in RTL mode, affecting notably wxGrid. See #16250.

2014-08-08 22:37 PC, revision 77026

fix running on GTK < 2.10 when built with later, broken in r72935

2014-08-08 09:13 AW, revision 77025

Remove temporary fix for drawing check box in the wxPG edit mode with RTL layout Since the issue is fixed (r77020) this hack is no longer necessary (see #16254).

2014-08-08 03:46 VZ, revision 77024

wxOSX compilation fix after the last commit. Add the missing wx/time.h header required for using wxGetLocalTimeMillis(). Also add WXUNUSED() around the unused parameters of DrawGauge(). See #16406.

2014-08-08 03:03 VZ, revision 77023

Add wxRendererNative::DrawGauge() method. Add the method with the native implementations for MSW and OS X and a generic version fallback. Closes #16406.

2014-08-07 23:07 VZ, revision 77022

Fix drawing on wxDC when using right-to-left layout in wxMSW. Avoid integer overflow when setting wxDC scale. This affected (i.e. broke) drawing in RTL but probably not only that. Closes #16254.

2014-08-07 23:06 VZ, revision 77021
  • D /wxWidgets/trunk/build/msw/wx_vc10_wx_setup.props
  • D /wxWidgets/trunk/build/msw/wx_vc11_wx_setup.props
  • D /wxWidgets/trunk/build/msw/wx_vc12_wx_setup.props

Remove the files remaining from project-specific MSVS solutions. These files are not used any more since r77008, there is only wx_setup.props now.

2014-08-07 23:03 VZ, revision 77020

Fix drawing on wxDC when using right-to-left layout in wxMSW. Avoid integer overflow when setting wxDC scale. This affected (i.e. broke) drawing in RTL but probably not only that. Closes #16254.

2014-08-07 23:03 VZ, revision 77019

Add wxGCD() helper function. It is needed in wxMSW code and it looks like it could be useful to the library users, so make it public. See #16254.

2014-08-07 01:31 VZ, revision 77018

Allow requesting core OpenGL profile and explicit OpenGL version. Add WX_GL_CORE_PROFILE and WX_GL_{MAJOR,MINOR}_VERSION attributes which can be used to use modern OpenGL with wxGLCanvas. Closes #16402.

2014-08-07 01:28 AW, revision 77017

Remove unnecessary assertion in wxPGProperty::GetChoiceSelection

2014-08-07 01:01 VZ, revision 77016

Don't document wxFileType::GetIcon() as unimplemented under OS X. It is implemented and supposed to work. See #4562.

2014-08-07 00:59 VZ, revision 77015

Don't document wxFileType::GetIcon() as unimplemented under OS X. It is implemented and supposed to work. See #4562.

2014-08-06 16:57 TIK, revision 77014

Call wxWindow::Navigate when handling the tab key in wxAuiTabCtrl. This fixes tabbing on wxGTK where it was not possible to tab out of the wxAuiNotebook anymore.

2014-08-06 16:53 TIK, revision 77013

Call wxWindow::Navigate when handling the tab key in wxAuiTabCtrl. This fixes tabbing on wxGTK where it was not possible to tab out of the wxAuiNotebook anymore.

2014-08-06 15:34 AW, revision 77012

Fix wxPGProperty::InsertChoice Take into account that wxPGProperty::GetChoiceSelection can return either 0 (for wxEnumProperty) or -1 (for other properties) if choice value list is empty and initialize new selection index properly. See #16401.

2014-08-06 15:26 AW, revision 77011

Fix wxPGProperty::GetChoiceSelection Return the index of the integer choice item on the list instead of item value itself. See #16401.

2014-08-06 00:01 VZ, revision 77010

Add XRC handler for wxSimplebook. Similar to wxNotebook but even simpler as wxSimplebook doesn't use images. Also add wxSimplebook::Create() as the version inherited from wxBookCtrlBase didn't _quite_ work: we need to add wxBK_TOP style to prevent asserts due to unknown alignment in the base class when creating wxSimplebook.

2014-08-06 00:01 VZ, revision 77009

Remove wx/unix/execute.h from the master list of files too. This should have been part of r76683.

2014-08-06 00:01 VZ, revision 77008

Use the same project files for all MSBuild-based MSVS versions. Get rid of version-specific MSVS project files, we can reuse the same projects for all MSBuild-based versions, i.e. 2010, 2011 and 2013.

2014-08-06 00:00 VZ, revision 77007

Add XRC handler for wxSimplebook. Similar to wxNotebook but even simpler as wxSimplebook doesn't use images. Also add wxSimplebook::Create() as the version inherited from wxBookCtrlBase didn't _quite_ work: we need to add wxBK_TOP style to prevent asserts due to unknown alignment in the base class when creating wxSimplebook.

2014-08-06 00:00 VZ, revision 77006

No changes, just order sections in version-script.in correctly. Put them in reverse chronological order, with the older (.0) at the bottom and the newest on the top.

2014-08-04 20:58 VZ, revision 77005

Take into account wxAnimationCtrl "animation" property in wxrc. The files used as the values of this property need to be included in the generated file too.

2014-08-04 20:56 VZ, revision 77004

Take into account wxAnimationCtrl "animation" property in wxrc. The files used as the values of this property need to be included in the generated file too.

2014-08-04 18:35 SC, revision 77003

forwarding printing calls to graphics context as well

2014-08-03 19:56 VZ, revision 77002

Add a more complete example of different controls variants in XRC. Add a dialog showing all the existing variants of a few common controls to allow seeing at a glance how do they look. See #16247.

2014-08-03 19:56 VZ, revision 77001

Show "hint" wxTextCtrl attribute in the xrc sample. Rearrange the contents of the wxTextCtrl page in two columns to make space for the new control. This should have been part of r76629 but was forgotten.

2014-08-03 19:55 VZ, revision 77000

Add a more complete example of different controls variants in XRC. Add a dialog showing all the existing variants of a few common controls to allow seeing at a glance how do they look. See #16247.

2014-08-03 19:55 VZ, revision 76999

Show "hint" wxTextCtrl attribute in the xrc sample. Rearrange the contents of the wxTextCtrl page in two columns to make space for the new control. This should have been part of r76628 but was forgotten.

2014-08-03 19:55 VZ, revision 76998

Really add "hint" property to wxTextCtrl XRC handler schema description. This was supposed to be done in r76628 but the property was mistakenly added to wxRichTextCtrl instead.

2014-08-03 19:10 VS, revision 76997

Add window variant support to XRC. Fixes #16247.

2014-08-03 19:10 VS, revision 76996

Add window variant support to XRC. Fixes #16247.

2014-08-03 17:50 VZ, revision 76995

Fix wxListCtrl sort callback signature in the test under Win64. Use wxIntPtr instead of long which is not big enough to hold a pointer in Win64 builds. Closes #4309.

2014-08-03 17:50 VZ, revision 76994

Fix wxListCtrl sort callback signature in the test under Win64. Use wxIntPtr instead of long which is not big enough to hold a pointer in Win64 builds. Closes #4309.

2014-08-03 17:22 AW, revision 76993

Add missing index initialization in one of wxEnumProperty ctor. In every wxEnumProperty ctor, initial index value of selected choice must be set to zero. See #16401.

2014-08-03 14:47 VZ, revision 76992

Fix window position calculation in wxMSW when using RTL. Just use the native ::MapWindowPoints() to do the coordinate transformation instead of doing it ourselves: we did it wrongly by inheriting the layout direction from wxTheApp instead of from the parent window, so fix this in the best possible way by not doing it at all and just relying on Windows to do it for us. In particular, this corrects the display of wxStatusBar in RTL frames. Closes #15031.

2014-08-03 14:47 VZ, revision 76991

Refresh the window when its layout direction changes in wxMSW. Rearrange the window children and/or redraw its contents when its layout direction changes. See #15031.

2014-08-03 14:47 VZ, revision 76990

Don't activate hidden buttons when Enter is pressed in wxMSW. The keyboard handling code could decide to activate a button which wasn't currently visible at all, e.g. because it was on a non-current, and hence hidden, page of a wxBookCtrl. This didn't make any sense, so check for the button visibility before activating it.

2014-08-03 14:47 VZ, revision 76989

Add wxDateTime::GetWeekBasedYear(). It was just added as a private function to implement %V format specifier support, just extract and document it as it could possibly be useful in its own right. See #11857.

2014-08-03 14:47 VZ, revision 76988

Add support for "%V" and "%G" to wxDateTime::Format(). This is useful for creating ISO 8601 week number based stamps. Closes #11857.

2014-08-03 14:47 VZ, revision 76987

Disable a harmless deprecation MSVC warning for wxNORMAL in a test. Explicitly disable the warning just for the code using wxNORMAL as the use of this deprecated constant can't be avoided in the code which tests for its support.

2014-08-03 14:47 VZ, revision 76986

Fix static initialization order problem in wxStopWatch under MSW. Don't rely on the static global gs_perfCounter being already initialized when wxStopWatch::DoStart() is called, this may not be the case if wxStopWatch variable is global. Work around this by wrapping the variable inside a function to ensure that it is initialized before being used.

2014-08-03 14:47 VZ, revision 76985

Update wxSlider background when its parent background changes in wxMSW. The native control doesn't redraw itself, so force it to do it from the overridden DoMSWControlColor() which is called every time the background colour might have changed. See #12271.

2014-08-03 14:47 VZ, revision 76984

Fix background of wxRadioBox buttons and wxSlider labels in wxMSW. Handle WM_CTLCOLOR correctly for them, this wasn't done before because the code assumed that sub-windows (i.e. HWNDs which belong to the same logical wx control) were always children of the main window, but they could also be its siblings (like in at least the two above mentioned cases). Account for this case in wxControl::DoMSWControlColor() too now. Closes #12271.

2014-08-03 14:47 VZ, revision 76983

Add wxRESERVE_SPACE_EVEN_IF_HIDDEN flag to the XRC schema. It seems that this one was forgotten somehow and so is not recognized.

2014-08-03 14:47 VZ, revision 76982

Really add "hint" property to wxTextCtrl XRC handler schema description. This was supposed to be done in r76629 but the property was mistakenly added to wxRichTextCtrl instead.

2014-08-03 14:44 VZ, revision 76981

Auto-link expat and zlib even in non-GUI programs when using MSVC. These libraries are not GUI-specific and should be included even in console applications.

2014-08-03 14:44 VZ, revision 76980

Fix window position calculation in wxMSW when using RTL. Just use the native ::MapWindowPoints() to do the coordinate transformation instead of doing it ourselves: we did it wrongly by inheriting the layout direction from wxTheApp instead of from the parent window, so fix this in the best possible way by not doing it at all and just relying on Windows to do it for us. In particular, this corrects the display of wxStatusBar in RTL frames. Closes #15031.

2014-08-03 14:44 VZ, revision 76979

Refresh the window when its layout direction changes in wxMSW. Rearrange the window children and/or redraw its contents when its layout direction changes. See #15031.

2014-08-03 14:44 VZ, revision 76978

Don't activate hidden buttons when Enter is pressed in wxMSW. The keyboard handling code could decide to activate a button which wasn't currently visible at all, e.g. because it was on a non-current, and hence hidden, page of a wxBookCtrl. This didn't make any sense, so check for the button visibility before activating it.

2014-08-02 23:19 AW, revision 76977

Fix regression caused by r76974 (inserting first choice item to wxEnumProperty). This is a modified way of handling insertion of the first choice item to wxEnumProperty. Previous method based on special value (wxNOT_FOUND) used to indicate empty collection caused regression in wxPGProperty::DeleteChoice(). Currently, the size of the collection is checked directly in wxPGProperty::InsertChoice().

2014-08-02 14:19 VZ, revision 76976

Correct wxGrid column labels when using SetTable() with native header. Ensure that the table pointer inside wxGrid is updated before initializing the native column header as it uses wxGrid::GetColLabelValue() which doesn't work correctly without a valid table pointer. Closes #16399.

2014-08-02 14:19 VZ, revision 76975

Correct wxGrid column labels when using SetTable() with native header. Ensure that the table pointer inside wxGrid is updated before initializing the native column header as it uses wxGrid::GetColLabelValue() which doesn't work correctly without a valid table pointer. Closes #16399.

2014-08-02 00:12 AW, revision 76974

Fix inserting first choice item to wxEnumProperty Situation when when first choice item is inserted (in wxPGProperty::InsertChoice) to the empty collection must be handled in a special way. In order to do so: 1. The state when there are no choice items in wxEnumProperty object and hence no item is selected must be explicitly indicated (by special index value wxNOT_FOUND). 2. This initial state must be handled in a special way when there is determined new selection index after insertion. See #16401.

2014-08-01 20:04 VS, revision 76973

Only filter requested events in wxEventBlocker. Contrary to the documentation, wxEventBlocker always behaved as if the event type to block was wxEVT_ANY: while it returned false for events not on the blacklist, it never actually called the existing event handler as it was meant to. Fix by calling wxEvtHandler::ProcessEvent() in this case.

2014-08-01 20:03 VS, revision 76972

Only filter requested events in wxEventBlocker. Contrary to the documentation, wxEventBlocker always behaved as if the event type to block was wxEVT_ANY: while it returned false for events not on the blacklist, it never actually called the existing event handler as it was meant to. Fix by calling wxEvtHandler::ProcessEvent() in this case.

2014-08-01 17:39 AW, revision 76971

Fix wxPGProperty::SetChoiceSelection When selected choice is changed then set as selected value the value corresponding to the new index, not the index itself. Closes #16401.

2014-08-01 17:19 AW, revision 76970

Additional assertions in several wxPGProperty methods. Check if property is attached to the property grid before wxPG methods are invoked. See #16401.

2014-08-01 17:09 AW, revision 76969

Check if PG exists before adding or deleting a choice to wxPGProperty. Because choice value can be added/deleted also to/from detached property object there is necessary to skip in wxPGProperty::InsertChoice and wxPGProperty::DeleteChoice the operations which are valid exclusively for property attached to the property grid.

2014-07-28 01:04 VZ, revision 76959

Fix static initialization order problem in wxStopWatch under MSW. Don't rely on the static global gs_perfCounter being already initialized when wxStopWatch::DoStart() is called, this may not be the case if wxStopWatch variable is global. Work around this by wrapping the variable inside a function to ensure that it is initialized before being used.

2014-07-28 01:04 VZ, revision 76958

Add support for "%V" and "%G" to wxDateTime::Format(). This is useful for creating ISO 8601 week number based stamps. Closes #11857.

2014-07-27 02:36 VZ, revision 76957

No real changes, just a micro optimization in wxOSX DoGetAsBitmap(). Don't call wxWindow::GetSize() unnecessarily when we use the given fixed rectangle anyhow.

2014-07-26 12:50 VZ, revision 76956

No changes, just update the file name in the header. Update the name in the header to match the actual file name. See #12904.

2014-07-26 12:50 VZ, revision 76955

No changes, just update the file name in the header. Update the name in the header to match the actual file name. See #12904.

2014-07-26 03:41 VZ, revision 76954

Implement bounding box computations for wxGDDC. Update the bounding box in all the methods drawing something. This wasn't done before in many of them, resulting in the bounding box remaining empty, but it is updated now and a new test checking that it is was added. Closes #12904.

2014-07-26 03:34 VZ, revision 76953

Implement bounding box computations for wxGDDC. Update the bounding box in all the methods drawing something. This wasn't done before in many of them, resulting in the bounding box remaining empty, but it is updated now and a new test checking that it is was added. Closes #12904.

2014-07-25 19:34 VZ, revision 76952

Write delay between frames correctly when saving GIF files. Deal with delays greater than ~2.5s correctly, their most significant byte was previously lost resulting in 0 delay being written to the file. Closes #16392.

2014-07-25 19:34 VZ, revision 76951

Write delay between frames correctly when saving GIF files. Deal with delays greater than ~2.5s correctly, their most significant byte was previously lost resulting in 0 delay being written to the file. Closes #16392.

2014-07-25 19:34 VZ, revision 76950

Fix background of wxRadioBox buttons and wxSlider labels in wxMSW. Handle WM_CTLCOLOR correctly for them, this wasn't done before because the code assumed that sub-windows (i.e. HWNDs which belong to the same logical wx control) were always children of the main window, but they could also be its siblings (like in at least the two above mentioned cases). Account for this case in wxControl::DoMSWControlColor() too now. Closes #12271.

2014-07-25 15:45 SC, revision 76949

fixing Life demo for OSX

2014-07-24 13:34 VZ, revision 76948

Add --disable-sys-libs configure option. This allows to disable the use of all system libraries with a single option instead of having to use --with-{lib{png,jpeg,tiff},regex,zlib,expat}=builtin or similar. This is especially useful under OS X where we want to avoid the dependencies on any locally installed homebrew or similar libraries.

2014-07-24 12:58 VZ, revision 76947

Include the required headers from wx/custombgwin.h. Make this header self-contained, i.e. safe to include as the first wxWidgets header being included from the user code. Closes #16391.

2014-07-23 10:16 JS, revision 76946

Capitalize style names if specified in the style

2014-07-21 15:45 TIK, revision 76945

Fix compilation if configured with --disable-coldlg

2014-07-21 15:44 TIK, revision 76944

Fix compilation if configured with --disable-coldlg

2014-07-20 17:28 SC, revision 76943

supporting menu dimension retrieval for menubars, fixes #2570

2014-07-17 00:55 VZ, revision 76942

Don't consider hidden root item to be visible in wxGenericTreeCtrl. This fixes wrong results returned by GetFirstVisibleItem() in the tree control with wxTR_HIDE_ROOT style. Closes #4482.

2014-07-17 00:55 VZ, revision 76941

Fix test for __WXOSX__ in common code. Check whether it's defined, not whether it's true.

2014-07-17 00:54 VZ, revision 76940

Don't consider hidden root item to be visible in wxGenericTreeCtrl. This fixes wrong results returned by GetFirstVisibleItem() in the tree control with wxTR_HIDE_ROOT style. Closes #4482.

2014-07-16 22:10 AW, revision 76939

Use the same macro to implement all wxPG property classes. Currently, WX_PG_IMPLEMENT_PROPERTY_CLASS macro is used to implement most of the property classes (and also property classes in the propgrid sample) but few property classes are implemented in alternative way, using separate IMPLEMENT_DYNAMIC_CLASS and WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN macros. These two macros can be replaced with WX_PG_IMPLEMENT_PROPERTY_CLASS macro (which is a concatenation of both) so property class implementation can be unified.

2014-07-15 21:56 SC, revision 76938

mediactrl for ios

2014-07-15 21:52 SC, revision 76937

mediactrl for ios

2014-07-15 21:28 SC, revision 76936

fixing and expanding switches

2014-07-15 19:15 VZ, revision 76935

Update the checksum of the reuploaded wxMSW-3.0.1_vc120_Dev.7z file. The original version was somehow corrupted.

2014-07-15 19:14 SC, revision 76934

common type for native rectangle

2014-07-15 19:12 SC, revision 76933

updating header info, adding AVKit support, iOS support

2014-07-15 18:30 AW, revision 76932

Fix for drawing check box in the wxPG edit mode when RTL layout direction is set under wxMSW. Check box isn't drawn correctly in the edit mode under wxMSW due to the problems with RTL handling in wxAutoBufferedPaintDC and wxPaintDC (see #16254). We need to only draw the image, no text, so we can work around the problem by overriding layout direction to LTR.

2014-07-15 18:02 AW, revision 76931

When drawing wxPG items (with double buffering) use the same layout direction as the window uses. Memory DC used for double buffering purposes should inherit layout direction from the window DC to ensure that texts are rendered correctly. Closes #15797.

2014-07-15 15:27 VZ, revision 76930

Remove unnecessary ConvertWXArrayToC() helper choice dialog code. Just use the appropriate wxSingleChoiceDialog ctor directly. Also some renamings/reformattings, but no other real changes. Closes #16383.

2014-07-15 15:26 VZ, revision 76929

Compilation fix for wxMSW build with most features disabled. Include wx/msw/ownerdrawnbutton.h outside of WX_PRECOMP check to ensure it's always included. Closes #16380.

2014-07-14 21:17 VZ, revision 76928

Replace anonymous namespace with a named one in the test helpers. This should avoid clang warnings about the function in anonymous namespace being unused.

2014-07-14 20:38 SC, revision 76927

trying xcrun notation for sdk

2014-07-14 19:35 AW, revision 76926

Search through all properties in wxPG::GetPropertyByLabel. Function should search for given label through all properties. This is consistent with searching by name (in GetPropertyByName) which is not limited to the subset of properties. Closes #15251.

2014-07-14 19:18 AW, revision 76925

Resolve ambiguity in multiple inheritance of function GetPropertyByLabel in wxPGPage. In wxPropertyGridPage class derived from wxPropertyGridPageState and wxPropertyGridInterface, function GetPropertyByLabel is inherited from both base classes. To resolve this ambiguity, function defined in wxPGInterface is introduced in wxPGPage through 'using-declaration'. (This is a temporary fix and finally GetPropertyByLabel function should be removed from wxPropertyGridPageState.) See #15251.

2014-07-14 19:15 SC, revision 76924

forgotten commit

2014-07-14 18:36 SC, revision 76923

removing extraneous parentheses

2014-07-14 18:27 SC, revision 76922

adding standard options for OS compatibility

2014-07-14 18:03 SC, revision 76921

using in place swapping macros

2014-07-14 18:03 SC, revision 76920

completing in place swapping macros

2014-07-14 17:50 SC, revision 76919

fixing commit

2014-07-14 17:42 SC, revision 76918

adding in place replacements avoiding self assignment

2014-07-14 17:37 SC, revision 76917

attempt at getting rid of unused-function warning

2014-07-14 15:57 SC, revision 76916

trial build with special warnings ON

2014-07-14 13:54 VZ, revision 76915

Ensure that wxCmdLineParser::FoundSwitch() asserts when used wrongly. This makes CmdLine unit test pass with the assertions backported from trunk, where FoundSwitch() does assert when called for a non-switch.

2014-07-14 13:38 VZ, revision 76914

Shorten wxOSX builds labels. Too long labels made some of the buildbot tables quite unreadable, so shorten them to something more reasonable.

2014-07-14 12:25 SC, revision 76913

adding CoreText to iOS builds

2014-07-14 11:37 SC, revision 76912

adding separate trunk fir c++

2014-07-13 18:38 AW, revision 76911

Use native renderers in wxPG under MSW by default.

2014-07-13 18:34 AW, revision 76910

Use native renderer for drawing check boxes in wxPG only if wxPG_USE_RENDERER_NATIVE flag is set. wxPG_USE_RENDERER_NATIVE flag is used in wxPG code to control whether native renderers can be called and we need to employ it. Legacy custom drawing code is used if this flag is no set.

2014-07-13 16:30 VZ, revision 76909

Fix inserting an element of wxArrayString itself back into it. Do the insertion/addition before deallocating the old memory to allow things like array.Add(array[0]) to work correctly. Closes #2290.

2014-07-13 16:30 VZ, revision 76908

Fix memory leak in ArraysTestCase unit test. Clear the items in PTR array explicitly, this is not done by the array itself.

2014-07-13 16:27 VZ, revision 76907

Fix inserting an element of wxArrayString itself back into it. Do the insertion/addition before deallocating the old memory to allow things like array.Add(array[0]) to work correctly. Closes #2290.

2014-07-13 16:27 VZ, revision 76906

Fix memory leak in ArraysTestCase unit test. Clear the items in PTR array explicitly, this is not done by the array itself.

2014-07-13 15:53 VZ, revision 76905

Fix socket leaks in wxFTP if starting up/downloading fails. Add the missing delete statements. Closes #2250.

2014-07-13 15:53 VZ, revision 76904

Fix socket leaks in wxFTP if starting up/downloading fails. Add the missing delete statements. Closes #2250.

2014-07-13 14:22 VZ, revision 76903

Don't DLL-export the private wxSimpleFontEnumerator class. This class is only used internally, so there is no need to export it from the shared library.

2014-07-13 14:17 VZ, revision 76902

Use dictionary sort for wxListBox strings. This should result in more expected, and more consistent with MSW, order of the items differing in case only. Also do the same for wxChoice in wxGTK1. Closes #16356.

2014-07-13 10:52 JS, revision 76901

Fix for context menu key under wxGTK

2014-07-13 10:52 JS, revision 76900

Fix for context menu key under wxGTK

2014-07-13 10:47 JS, revision 76899

Fix for text parsing when the text object has properties

2014-07-13 10:47 JS, revision 76898

Fix for text parsing when the text object has properties

2014-07-13 10:44 JS, revision 76897

Layout fix for paragraphs after floating objects not centering

2014-07-12 21:34 AW, revision 76896

Credit for patch (r76895).

2014-07-12 18:34 AW, revision 76895

Use native renderer to draw check boxes in wxPG. Use wxRendererNative procedure instead of custom check box drawing to get native look and feel of the check boxes in wxPG. Closes #14881.

2014-07-12 18:07 AW, revision 76894

Check if colour database exists before trying to use it in wxColourProperty. Sanity check in wxColourProperty ctor.

2014-07-12 12:47 AW, revision 76893

Allow use of all wxPG colours. wxPG-specific colours are added to the colour database when wxColourProperty is created (already existing colours are not overwritten by wxPG ones). Original list of wxPG colours was restored. Closes #15597.

2014-07-12 10:31 TIK, revision 76892

wxBitmapComboBoxBase uses wxArrayPtrVoid, so we need to #include "wx/dynarray.h". This fixes a compile error in situations where wx/dynarray.h is not implicitly included through other headers, e.g. when building wx with many features disabled.

2014-07-12 10:31 TIK, revision 76891

wxBitmapComboBoxBase uses wxArrayPtrVoid, so we need to #include "wx/dynarray.h". This fixes a compile error in situations where wx/dynarray.h is not implicitly included through other headers, e.g. when building wx with many features disabled.

2014-07-11 19:25 AW, revision 76890

Allow clearing wxPG from within wxPG event handlers. If wxPG::Clear is called from within event handler then it is not possible to delete all property items directly because some vital internal wxPG data are still in use. In this case it is necessary to put all items on the list for deferred deletion in wxPG idle state. Closes #16222.

2014-07-11 19:01 AW, revision 76889

Adjust list of items for deferred deletion/removal if wxPG property item is actually deleted/removed. When property is actually deleted/removed it must be also removed from the respective list of items for deferred deletion/removal in order to avoid crashes when it would be attempted to delete/remove it again at next wxPG idle state. Because lists of items for deferred operations can be updated at every actual deletion/removal it is necessary to rearrange iteration through these lists in wxPG::OnIdle. See #16222.

2014-07-11 18:38 AW, revision 76888

Prevent duplicating wxPG property items on the list of items for deferred deletion/removal. It is necessary to prevent duplicating items on the list of items to be deleted/removed later on (in wxPropertyGrid::OnIdle) to avoid crashes when it would be attempted to delete/remove already deleted/removed item. See #16222.

2014-07-11 15:38 VZ, revision 76887

Fix using wrong variable in wxMotif DoSetSizeIntr(). Use y instead of using x twice.

2014-07-10 18:35 AW, revision 76886

Use XOR operation to toggle the state of check box in wxPG. Minor optimization by using single XOR operation instead of separate AND, OR operations to toggle the state of wxSimpleCheckBox.

2014-07-10 18:22 AW, revision 76885

Defer using of editable check box in wxPG until it is fully initialized. Currently, when wxPGCheckBoxEditor is clicked then associated check box (wxSimpleCheckBox) is created and immediately after that its state is changed. This causes problems when underlaying validation is performed because the check box object is not yet registered as an active editor and thus it is not visible from within e.g. validation function. We need to defer changing the initial state of the check box until this box is registered by queuing the special event which will be processed after initialization. Closes #16361.

2014-07-10 11:55 TIK, revision 76884

Fix a compile error with some compilers introduced in r76812.

2014-07-10 11:51 TIK, revision 76883

Fix a compile error with some compilers introduced in r76813.

2014-07-09 20:56 AW, revision 76882

Use automatically generated ID values for wxPG sub-controls. Currently in wxPG there are used fixed "magic" ID values to identify sub-controls and this can lead to side effects if these values overlap with ID values assigned to another controls in the application (like e.g. menu items). Closes #13634.

2014-07-08 17:56 AW, revision 76876

Fix wxEnumProperty::GetIndexForValue GetIndexForValue should indicate that given property value does not exist by returning special index value(-1). Closes #14450.

2014-07-08 00:32 AW, revision 76875

Refresh property grid when property is switched to read-only state. Property grid is refreshed to reflect the new state of the property. Small refactoring of wxPropertyGridInterface class: SetPropertyReadOnly() function body moved from header file to source file. Closes #16306.

2014-07-07 22:48 RD, revision 76874

revert last commit

2014-07-07 21:39 AW, revision 76873

2014-07-07 20:03 SC, revision 76872

adding libs for ios

2014-07-07 19:11 VZ, revision 76871

Correct the addition of wxLANGUAGE_KABYLE. Repair (too late?) the ABI breakage for all the language constants following wxLANGUAGE_KABYLE in alphabetical order by adding this enum element at the end of the enum instead of in the middle. Also add wxLANGUAGE_KABYLE to langtabl.txt so that it doesn't disappear when the generated fragments are updated by running misc/languages/genlang.py the next time. This corrects/supersedes r75753.

2014-07-07 16:21 SC, revision 76870

making choice of libcppunit explicit, no system installed version anymore

2014-07-07 11:33 TIK, revision 76869

Tools can be specified without name in the XRC, so GetID() of the node returns wxID_ANY. Use the auto-assigned ID of the tool to refer to it instead.

2014-07-07 11:33 TIK, revision 76868

Tools can be specified without name in the XRC, so GetID() of the node returns wxID_ANY. Use the auto-assigned ID of the tool to refer to it instead.

2014-07-07 07:16 SC, revision 76867

reverting incorrect change

2014-07-07 07:15 SC, revision 76866

reverting incorrect fixes

2014-07-06 21:39 SC, revision 76865

adding padding nuls

2014-07-06 21:32 SC, revision 76864

adding padding nuls

2014-07-06 16:59 SC, revision 76863

removing wxMacLaunch dependancy for ios

2014-07-06 16:58 SC, revision 76862

fixing warning

2014-07-06 16:58 SC, revision 76861

adding ios build

2014-07-06 16:56 SC, revision 76860

added missing impl

2014-07-06 16:55 SC, revision 76859

note for further action

2014-07-06 13:31 TIK, revision 76858

Implement wxGenericListCtrl::EndEditLabel.

2014-07-06 12:33 SC, revision 76857

support for 64 bit ios

2014-07-06 12:32 TIK, revision 76856

Implement wxGenericListCtrl::EndEditLabel.

2014-07-06 12:05 TIK, revision 76855

Fix typo in documentation.

2014-07-06 12:05 TIK, revision 76854

Fix typo in documentation.

2014-07-06 12:01 TIK, revision 76853

Do not assert if not editing a label when calling wxGenericTreeCtrl::EndEditLabel

2014-07-06 12:01 TIK, revision 76852

Do not assert if not editing a label when calling wxGenericTreeCtrl::EndEditLabel

2014-07-06 10:10 SC, revision 76851

reverting name changes, doesn't seem to get reflected w/o restart

2014-07-06 10:02 SC, revision 76850

building trunk with libc++ adjusting cppunit

2014-07-06 09:00 SC, revision 76849

add zero termination for utf16

2014-07-05 21:30 SC, revision 76848

adding carbon option and sdk

2014-07-05 21:14 SC, revision 76847

typo

2014-07-05 21:08 SC, revision 76846

add sdk again

2014-07-05 21:04 SC, revision 76845

change quoting

2014-07-05 21:03 SC, revision 76844

change quoting

2014-07-05 21:00 SC, revision 76843

adding flags, LDFLAGS need architecture as well

2014-07-05 20:22 SC, revision 76842

next try

2014-07-05 20:21 SC, revision 76841

next try

2014-07-05 20:20 SC, revision 76840

next try

2014-07-05 20:19 SC, revision 76839

xml error

2014-07-05 20:17 SC, revision 76838

switching attributes, spaces got eliminated to aggressively

2014-07-05 18:44 SC, revision 76837

adding builds for stable branch

2014-07-05 18:13 SC, revision 76836

attempt at using variables

2014-07-05 17:15 SC, revision 76835

clang and ccache warnings suppression also for .mm files, turn off other builds temporarily

2014-07-05 16:37 SC, revision 76834

clang warnings

2014-07-05 16:13 SC, revision 76833

trying to tune ccache and clang cooperation

2014-07-05 15:29 SC, revision 76832

raising trunk SDK, removing Carbon build

2014-07-05 12:16 SC, revision 76831

revert in case the buildbot problem was caused by this change

2014-07-05 12:14 SC, revision 76830

remove carbon build temporarily

2014-07-04 22:10 SC, revision 76829

adding base virtuals

2014-07-04 18:58 SC, revision 76828

supporting NSString also in Carbon

2014-07-04 18:52 SC, revision 76827

resolving ambiguity

2014-07-04 14:43 TIK, revision 76826

Fix compilation if configured with --disable-printarch

2014-07-04 14:43 TIK, revision 76825

Fix compilation if configured with --disable-printarch

2014-07-04 14:23 VZ, revision 76824

Skip mouse button release events in wxGenericListCtrl. This is similar to r76094 for wxGenericTreeCtrl and fixes a similar problem: clicking in a wxListCtrl inside wxNotebook confused GtkNotebook mouse tracking logic because it didn't get some events. Closes #16365.

2014-07-04 14:22 VZ, revision 76823

Fix typo in wxTreeCtrl::AppendItem() documentation. The greater sign got lost in Doxygen translation, restore it. Closes #16366.

2014-07-04 14:22 VZ, revision 76822

Skip mouse button release events in wxGenericListCtrl. This is similar to r76093 for wxGenericTreeCtrl and fixes a similar problem: clicking in a wxListCtrl inside wxNotebook confused GtkNotebook mouse tracking logic because it didn't get some events. Closes #16365.

2014-07-04 14:16 VZ, revision 76821

Fix typo in wxTreeCtrl::AppendItem() documentation. The greater sign got lost in Doxygen translation, restore it. Closes #16366.

2014-07-04 13:50 VZ, revision 76820

Remove accidentally committed wxCompilerPrefix setting. Don't use "vc120" compiler prefix by default.

2014-07-04 13:31 VZ, revision 76819

Extract setup.h copying into a separate project for MSVC11+. This fixes problems with parallel builds in Visual Studio 2012 or 2013 IDE as multiple projects may try to copy setup.h file at once, resulting in errors. Use _custom_build project as a common dependency to ensure that the copy step is done only once. This is a backport of r76419 from trunk, see #16177.

2014-07-04 12:35 SC, revision 76818

adding 10.9 constants

2014-07-04 09:58 SC, revision 76817

fixing non-precomp build on carbon

2014-07-04 00:51 VZ, revision 76816

Still continue to use QuickTime framework in wxOSX/Carbon builds. Amend the changes of r76803 to only avoid QuickTime framework when using Cocoa, under Carbon it's needed by wxSound too, and not only wxMediaCtrl, and there is no real reason to avoid it in the first place anyhow.

2014-07-04 00:03 VZ, revision 76815

Hopefully finish removing the old wxCocoa port. Get rid of the rest of __WXCOCOA__ tests in the sources. Drop configure option for using it. Also remove the documentation for this port. This should have also been part of r76735.

2014-07-04 00:03 VZ, revision 76814

Still continue to use QuickTime framework in wxOSX/Carbon builds. Amend the changes of r76800 to only avoid QuickTime framework when using Cocoa, under Carbon it's needed by wxSound too, and not only wxMediaCtrl, and there is no real reason to avoid it in the first place anyhow.

2014-07-03 18:47 TIK, revision 76813

Items appended via the menu have no item data. Don't crash if right-clicking these items.

2014-07-03 18:45 TIK, revision 76812

Items appended via the menu have no item data. Don't crash if right-clicking these items.

2014-07-03 16:33 TIK, revision 76811

Add some files created by building with Visual Studio 2013 to svn:ignore.

2014-07-03 16:33 TIK, revision 76810

Add some files created by building with Visual Studio 2013 to svn:ignore.

2014-07-03 16:25 TIK, revision 76809

wxListTextCtrlWrapper::Finish and wxTreeTextCtrl::Finish cannot be called multiple times without crashing. wxListTextCtrlWrapper already used to protect against this in the past, but revision 51150 removed the safety check. This patch reimplements the functionality in a slighly different way for both controls, so that Finish is not called multiple times.

2014-07-03 16:16 TIK, revision 76808

wxListTextCtrlWrapper::Finish and wxTreeTextCtrl::Finish cannot be called multiple times without crashing. wxListTextCtrlWrapper already used to protect against this in the past, but revision 51150 removed the safety check. This patch reimplements the functionality in a slighly different way for both controls, so that Finish is not called multiple times.

2014-07-03 11:57 VZ, revision 76807

Revert "Don't link with OpenGL framework unconditionally under Mac OS X." OpenGL framework is, in fact, always needed because of the code in src/osx/core/glgrab.cpp which is currently used to implement wxScreenDC::GetAsBitmap(). This reverts r76799.

2014-07-02 15:28 VZ, revision 76806

Remove the inclusions of wx/cocoa headers which don't exist any more. This should have been part of r76735: in addition to removing the old Cocoa port headers, also remove the references to them from the common include files.

2014-07-02 15:28 VZ, revision 76805

Fix wxMSW compilation with old MinGW versions without ASSOCXXX constants. Define ASSOCF_NOTRUNCATE and ASSOCSTR_DEFAULTICON ourselves to let the code compile with older MinGW.

2014-07-02 15:28 VZ, revision 76804

Stop duplicating wxFrame dtor in all ports. wxGTK1, wxGTK, wxMSW and wxOSX all did the same thing in their wxFrame dtor, so just do it in wxFrameBase instead.

2014-07-02 14:06 VZ, revision 76803

Don't link with QuickTime framework unnecessarily under OS X. Only use QuickTime when wxUSE_MEDIACTRL is true.

2014-06-30 20:43 TIK, revision 76802

Disabled bitmaps of toolbar tools are now rendered at the correct position if using GTK3. Extend toolbar sample to include a button with a custom disabled bitmap.

2014-06-30 20:41 TIK, revision 76801

Disabled bitmaps of toolbar tools are now rendered at the correct position if using GTK3. Extend toolbar sample to include a button with a custom disabled bitmap.

2014-06-30 14:02 VZ, revision 76800

Don't link with QuickTime framework unnecessarily under OS X. Only use QuickTime when wxUSE_MEDIACTRL is true.

2014-06-30 14:02 VZ, revision 76799

Don't link with OpenGL framework unconditionally under Mac OS X. "-framework OpenGL" is already added when wxUSE_OPENGL is true, there is no need to always include it.

2014-06-30 03:00 VZ, revision 76798

Check for conversion failure correctly in wx[F]File::Write(). Check for the length of the buffer to determine whether the conversion failed instead of checking whether it's NULL because this is currently never the case because of the code in wxString::AsCharBuf() which returns "" and not NULL in case of conversion failure. This at least eliminates silent data loss when saving data that can't be converted to the current locale encoding. Closes #16348.

2014-06-30 03:00 VZ, revision 76797

Don't call strlen() unnecessarily in wxFFile::Write(). We already have the length of the string, either in the buffer if we actually converted the string from Unicode to multi-byte, or in the string itself in non-Unicode build.

2014-06-30 03:00 VZ, revision 76796

Don't use C++ streams in wxString::FromCDouble() implementation. This doesn't work if the global C++ locale had been changed and we can't call imbue(locale::classic()) to ensure that the stream we use here uses the C locale because imbue() is hopelessly broken in some implementations. So just get rid of this code and keep only the hack replacing the decimal separator with the dot explicitly. This is ugly but should always work in practice and is also consistent with ToCDouble(). Closes #16343.

2014-06-30 03:00 VZ, revision 76795

No real changes, just use symbolic constants with BM_SETCHECK. Use BST_CHECKED and BST_UNCHECKED instead of implicitly relying on their values being 1 and 0. See #11665.

2014-06-30 03:00 VZ, revision 76794

Fix appearance of custom drawn wxToggleButton in wxMSW. Ensure that the owner-drawn toggle buttons are drawn in the pressed state when they are pressed, even if they are also selected or under mouse. Closes #11665.

2014-06-30 03:00 VZ, revision 76793

Check for conversion failure correctly in wx[F]File::Write(). Check for the length of the buffer to determine whether the conversion failed instead of checking whether it's NULL because this is currently never the case because of the code in wxString::AsCharBuf() which returns "" and not NULL in case of conversion failure. This at least eliminates silent data loss when saving data that can't be converted to the current locale encoding. Closes #16348.

2014-06-30 03:00 VZ, revision 76792

Don't call strlen() unnecessarily in wxFFile::Write(). We already have the length of the string, either in the buffer if we actually converted the string from Unicode to multi-byte, or in the string itself in non-Unicode build.

2014-06-30 02:27 VZ, revision 76791

Don't use C++ streams in wxString::FromCDouble() implementation. This doesn't work if the global C++ locale had been changed and we can't call imbue(locale::classic()) to ensure that the stream we use here uses the C locale because imbue() is hopelessly broken in some implementations. So just get rid of this code and keep only the hack replacing the decimal separator with the dot explicitly. This is ugly but should always work in practice and is also consistent with ToCDouble(). Closes #16343.

2014-06-30 02:03 VZ, revision 76790

Fix appearance of custom drawn wxToggleButton in wxMSW. Ensure that the owner-drawn toggle buttons are drawn in the pressed state when they are pressed, even if they are also selected or under mouse. Closes #11665.

2014-06-30 01:43 VZ, revision 76789

No real changes, just fix a harmless warning under OS X. Don't use "size" variable unnecessarily under non-Mac platforms, this also fixes a warning about reassigning it immediately after assigning a previous values to it under Mac. Closes #16353.

2014-06-30 01:42 VZ, revision 76788

No real changes, just fix a harmless warning under OS X. Don't use "size" variable unnecessarily under non-Mac platforms, this also fixes a warning about reassigning it immediately after assigning a previous values to it under Mac. Closes #16353.

2014-06-30 01:42 VZ, revision 76787

Fix harmless unused parameters warnings in builds without wxLogTrace(). Fix warnings appearing when building with --disable-debug under Unix by either referencing the parameters or variables which become unused then, because wxLogTrace() calls are compiled out, or by not compiling the code whose only purpose is to call wxLogTrace() at all.

2014-06-30 01:39 VZ, revision 76786

Fix harmless unused parameters warnings in builds without wxLogTrace(). Fix warnings appearing when building with --disable-debug under Unix by either referencing the parameters or variables which become unused then, because wxLogTrace() calls are compiled out, or by not compiling the code whose only purpose is to call wxLogTrace() at all.

2014-06-28 12:37 TIK, revision 76785

Fix wxStaticBox' clipping region in RTL mode.

2014-06-28 12:36 TIK, revision 76784

Fix wxStaticBox' clipping region in RTL mode.

2014-06-28 11:49 TIK, revision 76783

Improve handling of right-to-left support in wxStaticBox on wxMSW. Back in #8101 I made fixes for wxStaticBox and right-to-left handling under Windows. While this worked fine in wx2.8, the old patch has some unfortunate consequences on wx3: * Since the box is always set to LTR, its children also inherit LTR * Text was always right-aligned This follow-up patch removes the RTL-specific code from wxStaticBox. Instead, the wxMemoryDC in wxStaticBox::OnPaint is made to inherit attributes from the wxPaintDC. Tested on XP (both XP and classic theme), Windows 7 and 8.1

2014-06-28 11:47 TIK, revision 76782

Improve handling of right-to-left support in wxStaticBox on wxMSW. Back in #8101 I made fixes for wxStaticBox and right-to-left handling under Windows. While this worked fine in wx2.8, the old patch has some unfortunate consequences on wx3: * Since the box is always set to LTR, its children also inherit LTR * Text was always right-aligned This follow-up patch removes the RTL-specific code from wxStaticBox. Instead, the wxMemoryDC in wxStaticBox::OnPaint is made to inherit attributes from the wxPaintDC. Tested on XP (both XP and classic theme), Windows 7 and 8.1

2014-06-27 07:38 DS, revision 76781

Fix wxMenuItem::SetBitmap infinite recursion differently. Don't call SetBitmap from GetHBitmapForMenu but instead handle possibly needed bitmap modifications earlier on during SetBitmap. Allows for GetHBitmapForMenu to be const and gets rid of the clumsy re-entry check introduced in r76754. Also check the bitmap for alpha presence instead of needlessly converting the bitmap to an image and checking the latter for alpha.

2014-06-27 07:29 DS, revision 76780

Fix compilation with wxUSE_MENUITEMINFO==0. Add argument to a call to GetHBitmapForMenu, which doesn't have a default parameter any more. Fixes (this part of) WinCE compilation. Broken since r76760.

2014-06-26 22:43 SC, revision 76779

adding AVFoundation implementation for media ctrl

2014-06-26 15:38 SC, revision 76778

remove unnecessary includes

2014-06-26 07:58 JJ, revision 76777

Update of OpenVMS makefile

2014-06-25 20:07 VS, revision 76776

Revert wxCurrentPopupMenu clearing in HandleMenuPopup(). WM_COMMAND is delivered after WM_UNINITMENUPOPUP and clearing wxCurrentPopupMenu in the latter's handler broke delivery of the command event to the wxTextCtrl control.

2014-06-25 20:06 VS, revision 76775

wxTextCtrl: call UpdateUI() when showing OLE-based context menu.

2014-06-25 20:04 VS, revision 76774

Fix IRichEditOleCallback compilation with MinGW. MinGW headers declare the IRichEditOleCallback interface and the corresponding IID, but the libraries don't contain the latter symbol. Work around it by defining it ourselves. Fixes #16340.

2014-06-25 20:04 VS, revision 76773

Revert wxCurrentPopupMenu clearing in HandleMenuPopup(). WM_COMMAND is delivered after WM_UNINITMENUPOPUP and clearing wxCurrentPopupMenu in the latter's handler broke delivery of the command event to the wxTextCtrl control.

2014-06-25 20:03 VS, revision 76772

wxTextCtrl: call UpdateUI() when showing OLE-based context menu.

2014-06-25 20:01 VS, revision 76771

Fix IRichEditOleCallback compilation with MinGW. MinGW headers declare the IRichEditOleCallback interface and the corresponding IID, but the libraries don't contain the latter symbol. Work around it by defining it ourselves. Fixes #16340.

2014-06-25 17:17 VZ, revision 76770

Generate debug information in MSVC 11/12 builds too. This partially (as MSVC 10 projects were already correct) backports r76475 from trunk, see #16236.

2014-06-25 01:56 VZ, revision 76769

Mention the addition of x64 configs in MSVC 8/9 projects in the change log. Should have been part of the previous commit.

2014-06-25 01:54 VZ, revision 76768

Generate 64 bit configurations in MSVC 8/9 projects. Update bakefile configuration to include x64 configurations into MSVS 2005 and 2008 projects (2003 doesn't support building in 64 bits, 2010 and later are manually maintained and already have them) and rebake the projects. Closes #13675.

2014-06-25 01:52 VZ, revision 76767

Generate 64 bit configurations in MSVC 8/9 projects. Update bakefile configuration to include x64 configurations into MSVS 2005 and 2008 projects (2003 doesn't support building in 64 bits, 2010 and later are manually maintained and already have them) and rebake the projects. See #13675.

2014-06-24 20:54 DS, revision 76760

Clean up GetHBitmapForMenu. Merge wxMenuItem::GetHBitmapForMenuCheckable and ::DoGetHBitmapForMenu into wxMenuItem::GetHBitmapForMenu. Change its boolean parameter to an enum specifying the kind of bitmap that is wanted (normal, checked, or unchecked).

2014-06-24 04:47 DS, revision 76759

Fixes for building wxMSW under Cygwin. Replace a few __WXMSW__ tests with __WINDOWS__ as the former is not defined any longer (since r73290) when compiling with wxUSE_GUI set to 0. Tested changes with both wxGTK and wxMSW builds under Cygwin. Closes #14382.

2014-06-24 04:46 DS, revision 76758

Fix non-MSVS compilation of webview_ie.cpp. Use wxCRT_StricmpW instead of the Visual C++ specific _wcsicmp. See #14382.

2014-06-23 22:05 DS, revision 76757

Fix failing Win32 calls with checkable menu item. Since r76202 InsertMenuItem is used when adding checkable menu items even without a bitmap. The call fails because hbmpChecked and hbmpUnchecked are set to HBMMENU_CALLBACK on pre-Vista, making the menu owner drawn unnecessarily. Fix by adding GetHBitmapForMenuCheckable which is used when assigning values to hbmpChecked and hbmpUnchecked. GetHBitmapForMenu remains unchanged (for possible porting reasons) and is used for hBmpItem only.

2014-06-23 22:01 DS, revision 76756

Make checkable menu item with bitmap owner drawn. Since r44192 a checkable menu item with bitmap on pre-Vista assigns HBMMENU_CALLBACK to hbmpChecked and hbmpUnchecked members of MENUITEMINFO. However this value is only valid for hbmpItem and for other bitmaps InsertMenuItem will fail (with "the parameter is incorrect") resulting in making the menu owner drawn later. Instead check earlier on in MSWMustUseOwnerDrawn if we're dealing with a checkable menu item with a bitmap and if so make it owner drawn explicitly.

2014-06-23 22:00 DS, revision 76755

Fix exception while reinserting menu item. After removing an item from a menu that item's parent menu is set to NULL and can't be used any longer to insert the item again. Fix by remembering the parent menu before removing the item from it. Regression since r76251 (this commit is a partial revert of that commit).

2014-06-23 21:58 DS, revision 76754

Fix wxMenuItem::SetBitmap infinite recursion (Vista+). Calling a menu item's SetBitmap can result in a stack overflow. This occurs when setting a bitmap after the menu item has already been added to the menu and while running under Vista (and later). Under those circumstances [Do]SetBitmap will call GetHBitmapForMenu which itself calls SetBitmap again. Fix by adding a simple check for re-entry. Regression since r76202.

2014-06-23 14:02 VZ, revision 76753

Add wxDictionaryStringSortAscending comparison function. Add "dictionary sort" callbacks and document them and the already existing wxStringSortAscending() and wxStringSortDescending(). See #16330.

2014-06-23 03:08 VZ, revision 76752

Avoid harmless warning about unused variables in wxOSX/Carbon. Declare the variables only used when wxUSE_STATUSBAR==1 inside the check for it. Closes #16331.

2014-06-23 03:08 VZ, revision 76751

Allow specifying custom comparator for wxSortedArrayString. Add a possibility to order wxSortedArrayString in some order different from the default alphabetical one. Closes #16330.

2014-06-23 03:08 VZ, revision 76750

Change wxStringSort{As,De}cending() to use references, not pointers. This is more convenient to use and makes more sense as the arguments are never null. See #16330.

2014-06-23 03:08 VZ, revision 76749

Handle wxSYS_COLOUR_LISTBOXTEXT in wxMotif wxSystemSettings. At the very least, don't fail with an assert if this colour is requested.

2014-06-23 03:08 VZ, revision 76748

Force wxUSE_GRAPHICS_CONTEXT to 0 for wxMotif build. wxGraphicsContext is not implemented in this port.

2014-06-23 03:08 VZ, revision 76747

Fix wxVector3f ctor in the propgrid sample. Even if this code is not used, it was still wrong as it didn't initialize the (shadowed) member variables, so fix it to actually do it. Closes #16342.

2014-06-22 23:36 VZ, revision 76746

Fix crash when right clicking AUI toolbar while left button is pressed. Ignore the unrelated mouse events during the item dragging. This avoids a crash due to m_actionItem being NULL when right clicking an item while the left mouse button is kept pressed. See #16327.

2014-06-22 16:23 VZ, revision 76745

Use wxIntNN types in wxQuantize code instead of INTNN ones. Rely on the already properly defined wx types instead of using INTNN which could clash with the system headers (e.g. INT32 is already defined in some Motif headers) and are not guaranteed to be always defined correctly (while int is always 32 bit on all currently supported platforms, this is not guaranteed to always remain the case).

2014-06-20 10:15 SC, revision 76744

fixes 64 bit to 32 warnings, see #16329

2014-06-20 10:14 SC, revision 76743

using proper types for webkit variants, see #16329

2014-06-20 03:35 DS, revision 76742

Fix finding menu items in wxMenuItem::DoSetBitmap. FindChildItem gets passed the id of a menu item as returned by GetMSWId, however GetMSWId should be used in combination with Win32 API functions. Instead use GetId: this fixes finding menu items that have a negative id (as a result of using wxID_ANY as id) or have a sub menu.

2014-06-20 00:35 VZ, revision 76741
  • D /wxWidgets/trunk/docs/publicity/publicity.txt

Remove file with obsolete release announcement information. This file was last (really) updated in 2003 and, unsurprisingly, information in it is not relevant 10+ years later and most of URLs in it simply don't exist any more (or exist but are no longer used, such as freshmeat.net, since yesterday). Any additional places to announce wxWidgets releases should be added to the "Announcement" section of docs/contributing/how-to-release.md now.

2014-06-20 00:11 VZ, revision 76740

Correct the name of the "preferences" sample in configure. Fix building (all) samples under Unix.

2014-06-19 15:10 SC, revision 76739

supporting retina, see #15887

2014-06-19 15:05 SC, revision 76738

supporting 2x display on retina displays, fixes #15887

2014-06-19 11:29 TIK, revision 76737

wxBitmap::GetMask() asserts on invalid bitmap. Check for valid bitmap before calling GetMask().

2014-06-19 11:29 TIK, revision 76736

wxBitmap::GetMask() asserts on invalid bitmap. Check for valid bitmap before calling GetMask().

2014-06-18 18:52 SC, revision 76735
  • D /wxWidgets/trunk/include/wx/cocoa
  • D /wxWidgets/trunk/src/cocoa

removing 'old' cocoa port

2014-06-18 16:55 SC, revision 76734

the old cocoa code will be removed in the next step

2014-06-18 16:27 SC, revision 76733

remove dependency from former cocoa port

2014-06-18 16:22 SC, revision 76732

adapting const parameter convention

2014-06-18 15:28 SC, revision 76731

remove dependency from former cocoa port

2014-06-18 15:25 SC, revision 76730

in reality there are only 2 different native toolbar sizes

2014-06-18 15:13 SC, revision 76729

remove dependency from former cocoa port

2014-06-18 15:11 SC, revision 76728

remove dependency from former cocoa port

2014-06-18 15:05 SC, revision 76727

only flush a client dc if it was not inheriting the native CGContextRef from an outside paint context, fixes #16334

2014-06-18 14:57 VS, revision 76726

Use IRichEditOleCallback for wxTextCtrl's context menu. In wxMSW, use IRichEditOleCallback::GetContextMenu() to provide our default context menu for rich text controls, instead of using EVT_CONTEXT_MENU. The latter completely overrides native control's handling and in particular breaks Windows 8's builtin spellchecking support. Fall back to the previous non-OLE code for older richtext versions.

2014-06-18 14:57 VS, revision 76725

Add wxMenu::MSWDetachHMENU(). Make it possible to pass ownership of a wxMenu to win32.

2014-06-18 14:57 VS, revision 76724

Handle WM_*MENU* events in wxWindow. Contrary to MSDN implications, at least some of these messages are not actually sent to the TLW for popup menus, but to the owning window or even its parent window (!). Catch the events in wxWindow and forward to the TLW.

2014-06-18 14:51 VS, revision 76723

Use IRichEditOleCallback for wxTextCtrl's context menu. In wxMSW, use IRichEditOleCallback::GetContextMenu() to provide our default context menu for rich text controls, instead of using EVT_CONTEXT_MENU. The latter completely overrides native control's handling and in particular breaks Windows 8's builtin spellchecking support. Fall back to the previous non-OLE code for older richtext versions. Also make the new MSWCreateContextMenu() method virtual so that the context menu can be customized.

2014-06-18 14:51 VS, revision 76722

Add wxMenu::MSWDetachHMENU(). Make it possible to pass ownership of a wxMenu to win32.

2014-06-18 14:51 VS, revision 76721

Handle WM_*MENU* events in wxWindow. Contrary to MSDN implications, at least some of these messages are not actually sent to the TLW for popup menus, but to the owning window or even its parent window (!). Move the handling of these events from wxTLW to wxWindow. Move menu depth tracking to wxFrame, because it only makes sense for frame's menus and move DoGiveHelp() from wxTLW to wxFrame.

2014-06-17 17:05 VZ, revision 76720

Clarify wxEVT_SLIDER event handler argument type in the documentation. Unlike all other events generated by wxSlider, this one receives a wxCommandEvent and not a wxScrollEvent. Unfortunately @beginEventEmissionTable doesn't handle the case of a class producing events of different types, perhaps it shouldn't be used at all here.

2014-06-17 17:05 VZ, revision 76719

Clarify wxEVT_SLIDER event handler argument type in the documentation. Unlike all other events generated by wxSlider, this one receives a wxCommandEvent and not a wxScrollEvent. Unfortunately @beginEventEmissionTable doesn't handle the case of a class producing events of different types, perhaps it shouldn't be used at all here.

2014-06-17 16:39 VZ, revision 76718

Add a reminder to update the date on download page to release HOWTO. This is probably useful as it was forgotten for 3.0.1.

2014-06-16 19:50 VZ, revision 76717

Update the version to 3.0.2 and rebake everything. This is the result of running misc/scripts/inc_release and bakefile_gen.

2014-06-16 16:51 VZ, revision 76716

Update the release notes and checksums for 3.0.1 release. Also add an explicit notice about needing to compile the library even after downloading the installer.

2014-06-16 00:18 TIK, revision 76715

Under certain conditions, selecting a menu item triggers an assert in toplevel.cpp:1544: wxASSERT_MSG( m_menuDepth > 0, wxS("No open menus?") ); The conditions to reproduce: - Windows 8.1 - An application manifest that indicates Windows 8.1 compatibility In this case, wxGetWinVersion() used to return wxWinVersion_Unknown (Without a manifest indicating 8.1 support, wxWinVersion_8 is being returned). This in turn causes the version check against Windows98 in toplevel.cpp:455 to fail, ultimately leading to the mentioned assert. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724439%28v=vs.85%29.aspx for details. This patch on the 3.x branch of wx adjusts wxGetWinVersion to return wxWinVersion_8 on 8.1 instead of wxWinVersion_Unknown if there's such a manifest. In future, a different approach needs to be chosen that does not depend the deprecated GetVersion function.

2014-06-16 00:17 TIK, revision 76714

Under certain conditions, selecting a menu item triggers an assert in toplevel.cpp:1539: wxASSERT_MSG( m_menuDepth > 0, wxS("No open menus?") ); The conditions to reproduce: - Windows 8.1 - An application manifest that indicates Windows 8.1 compatibility In this case, wxGetWinVersion() used to return wxWinVersion_Unknown (Without a manifest indicating 8.1 support, wxWinVersion_8 is being returned). This in turn causes the version check against Windows98 in toplevel.cpp:450 to fail, ultimately leading to the mentioned assert. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724439%28v=vs.85%29.aspx for details. This patch on trunk adjusts adds the wxWinVersion_8_1 enum value and returns it on Windows 8.1 if the program is manifested as such. In future, a different approach needs to be chosen that does not depend the deprecated GetVersion function.

2014-06-15 17:14 VZ, revision 76713

Add a page containing the screenshots of all controls to the manual. It can be helpful to see all the controls at a glance, especially if you don't know which control is needed.

2014-06-15 17:14 VZ, revision 76712

Make picker controls description in the manual less useless. It's not really clear what potential benefit could library users extract from the knowledge that the picker controls behaviour is "highly platform-dependent". Try to be flighty more helpful.

2014-06-15 14:58 VZ, revision 76711

Display wxString in more readable way in MSVS debug visualizer. Use "sb" format specifier to avoid having L"..." around the string and then add just the quotes back manually.

2014-06-15 03:33 VZ, revision 76710

Remove the old release making instructions and scripts. Using git-based scripts seems to work well and the old scripts are not maintained any more and having several ways of making releases is just confusing, so leave only one set of scripts, the one actually used since 2.9.

2014-06-15 02:50 VZ, revision 76709

Tag 3.0.1 release.

2014-06-15 02:30 VZ, revision 76708

Update the release notes and the announcement for 3.0.1 release. Document the changes in this release. Remove the "Documentation" section from the README as it doesn't seem to be very useful there, the link to the online documentation is the most important thing and it's mentioned in the very beginning.

2014-06-15 02:30 VZ, revision 76707

Set the 3.0.1 release date. Update the release date in the change log and the manual.

2014-06-15 02:30 VZ, revision 76706

Add MSVS visualizers for wxArrayString, wxVector, wxWindowList. Make viewing the contents of the (most common) container types easier when debugging in MSVS 2012 or later. Provide std::{vector,list}-like visualizers for wxVector and wxWindowList and a special visualizer allowing to see the contents of wxArrayString in a relatively common case when it has just or two elements.

2014-06-15 02:30 VZ, revision 76705

Add a file with debug visualizers for MSVS 2013 and later. For now this file contains just the visualizer for wxWindow which shows its real (most derived) type as this is often the most useful thing you need to know about the window.

2014-06-15 02:30 VZ, revision 76704

Add debugger visualizers for Visual Studio 2012+. Starting with 2012, Visual Studio uses a new, XML-based and actually quite understandable format for the debug visualizers. Only basics are included so far.

2014-06-15 02:00 BP, revision 76703

Updated date in manual for 3.0.1 release.

2014-06-14 23:03 VZ, revision 76702

Add MSVS visualizers for wxArrayString, wxVector, wxWindowList. Make viewing the contents of the (most common) container types easier when debugging in MSVS 2012 or later. Provide std::{vector,list}-like visualizers for wxVector and wxWindowList and a special visualizer allowing to see the contents of wxArrayString in a relatively common case when it has just or two elements.

2014-06-14 23:03 VZ, revision 76701

Add a file with debug visualizers for MSVS 2013 and later. For now this file contains just the visualizer for wxWindow which shows its real (most derived) type as this is often the most useful thing you need to know about the window.

2014-06-14 22:23 TIK, revision 76700

Remove the unused anonymous function OffsetWindow to fix a compiler warning.

2014-06-14 22:22 TIK, revision 76699

Remove the unused anonymous function OffsetWindow to fix a compiler warning.

2014-06-14 22:20 TIK, revision 76698

Don't redefine _FORCENAMELESSUNION it if it is already defined. Fixes a warning when compiling with MinGW.

2014-06-14 22:19 TIK, revision 76697

Don't redefine _FORCENAMELESSUNION it if it is already defined. Fixes a warning when compiling with MinGW.

2014-06-13 19:19 VZ, revision 76696

Compilation fix for wxFont in wxMotif. Include wx/crt.h containing wxSscanf() declaration.

2014-06-12 19:14 VZ, revision 76695

Allow using wxALIGN_CENTER in XRC for wxStaticText. Only wxALIGN_CENTRE was allowed previously in the XRC, while both worked in the code and also even in XRC but for wxSizer alignment.

2014-06-12 19:13 VZ, revision 76694

Fix wxDynamicLibrary compilation under Solaris. Add const_cast<> needed for the call to dladdr() to compile.

2014-06-12 19:13 VZ, revision 76693

Allow using wxALIGN_CENTER in XRC for wxStaticText. Only wxALIGN_CENTRE was allowed previously in the XRC, while both worked in the code and also even in XRC but for wxSizer alignment.

2014-06-11 23:31 VZ, revision 76692

Added a brief version of README in markdown for Github users. Now that we have CONTRIBUTING.md there doesn't seem to be any reason for not having README.md as well. Perhaps this one will replace docs/readme.txt in the future.

2014-06-11 23:31 VZ, revision 76691

Update the README after recent changes. Update the platform list after dropping Win9x and OS/2 support. Use new URLs after web site redesign and Trac upgrade.

2014-06-11 23:14 VZ, revision 76690

Convert contributors documentation to markdown. The conversion is very superficial and there are probably many problems in the Markdown rendering, but this is the first step towards making these documents more readable when viewing them online.

2014-06-11 23:14 VZ, revision 76689

Rename tech notes to files with reasonable names. Keep the old files to avoid breaking existing links to them, but just point to the files in the new contributing subdirectory with more meaningful names now. Also remove a couple of long obsolete tech notes.

2014-06-11 22:01 VZ, revision 76688

Add brief contribution instructions for Github users. This should show up when opening Github pull requests.

2014-06-11 17:25 VZ, revision 76687

Fix misspellings of "occurred" and "occurrences". See https://github.com/wxWidgets/wxWidgets/pull/9

2014-06-11 17:25 VZ, revision 76686

Portuguese translations update from Manuella Silva. Update to use new (1990) spelling. See https://github.com/wxWidgets/wxWidgets/pull/5

2014-06-11 16:56 VZ, revision 76685

Install private headers used by wx/unix/execute.h. Although private headers are not normally installed, do install the ones included from the (erroneously) public wx/unix/execute.h to allow code including it to compile. Closes #16325.

2014-06-11 16:55 VZ, revision 76684

Avoid g++ warning about using possibly uninitialized PangoContext. Initialize it to NULL as it could indeed be left uninitialized in some build configurations before.

2014-06-11 16:55 VZ, revision 76683

Move include/wx/unix/execute.h to include/wx/unix/private. This header is private and is not supposed to be used from the outside the library. See #16325.

2014-06-10 02:38 VZ, revision 76682

Show the shaped frame with start shape initially in the sample. It's not clear that setting the window shape actually works if the initial shape is not set.

2014-06-10 02:38 VZ, revision 76681

Don't assert in wxOSX if a shaped window doesn't define a valid shape. A window with wxFRAME_SHAPED style can still not defined any valid shape actually, in which case wxFRAME_SHAPED should be just ignored.

2014-06-10 02:38 VZ, revision 76680

Show the shaped frame with start shape initially in the sample. It's not clear that setting the window shape actually works if the initial shape is not set.

2014-06-10 02:38 VZ, revision 76679

Don't assert in wxOSX if a shaped window doesn't define a valid shape. A window with wxFRAME_SHAPED style can still not defined any valid shape actually, in which case wxFRAME_SHAPED should be just ignored.

2014-06-09 23:31 VZ, revision 76678

Fix wxMSW build without PCH after recent wxListBox font fix. This should have been part of r76673. See #3577.

2014-06-09 23:31 VZ, revision 76677

Fix wxMSW build without PCH after recent wxListBox font fix. This should have been part of r76671. See #3577.

2014-06-09 22:33 VZ, revision 76676

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.

2014-06-09 22:33 VZ, revision 76675

Fix getting position of wxPopupWindow in wxMSW. Don't offset the returned values by the parent window origin unnecessarily: as popup windows are created as children of the desktop window in wxMSW, their coordinates are already expressed in screen coordinate system (which is exactly the same as display window coordinate system) and we must not try to translate them to it once again, this is completely wrong and was probably a left over from earlier wxPopupWindow implementation in which it wasn't created as a child of desktop. Closes #4440.

2014-06-09 22:30 VZ, revision 76674

Fix getting position of wxPopupWindow in wxMSW. Don't offset the returned values by the parent window origin unnecessarily: as popup windows are created as children of the desktop window in wxMSW, their coordinates are already expressed in screen coordinate system (which is exactly the same as display window coordinate system) and we must not try to translate them to it once again, this is completely wrong and was probably a left over from earlier wxPopupWindow implementation in which it wasn't created as a child of desktop. In 3.0 branch we still need to continue overriding virtual DoGetPosition() for ABI reasons, but don't do anything in it any more. Closes #4440.

2014-06-09 02:54 VZ, revision 76673

Fix wxMSW wxCheckListBox appearance when using larger than normal fonts. Update the height of the items when changing the font to ensure that there is enough space to show the item text when using fonts larger than normal. Closes #3577.

2014-06-09 02:54 VZ, revision 76672

Fix changing wxWindow ID in wxMSW. This must be done both at wxWidgets and MSW level, otherwise changing the ID results in window not recognizing itself as the recipient of the messages sent to it by Windows. Closes #3697.

2014-06-09 02:53 VZ, revision 76671

Fix wxMSW wxCheckListBox appearance when using larger than normal fonts. Update the height of the items when changing the font to ensure that there is enough space to show the item text when using fonts larger than normal. Closes #3577.

2014-06-09 02:24 VZ, revision 76670

Work around broken wxWindow::SetId() in wxMSW 3.0 in XRC code. As wxWindow::SetId() doesn't update the ID at the Windows level in 3.0 and can't be modified to do it because of ABI compatibility concerns, work around this in the code calling SetId() in XRC wxUnknownControlContainer itself. Closes #3697.

2014-06-08 18:39 TIK, revision 76669

When loading wxTextCtrl from XRC files, only call SetHint if the XRC specifies a hint. Otherwise an assert is triggered on multi-line text controls.

2014-06-08 15:55 JS, revision 76668

Reverting previous fix for floating object update in 3.0 branch pending further investigation.

2014-06-05 13:29 VZ, revision 76667

Compilation fix for wxMSW with wxUSE_TOOLTIPS==0. This is another fix after the changes of r76657, see #16265.

2014-06-05 02:28 VZ, revision 76666

Fix spurious assert when creating multiline wxTextCtrl from XRC. Don't try to set the hint unconditionally, this doesn't work with multiline text controls and so resulted in an assert when trying to create one from XRC since the changes of r76629. Closes #16317.

2014-06-05 02:26 VZ, revision 76665

Stop Scintilla timer when the control doesn't have focus. This avoids excessive CPU load due to generating completely unnecessary timer notifications for every wxSTC control in a program. Closes #14938.

2014-06-05 00:47 VZ, revision 76664

Add cast to wxWindow to fix wxUniv/MSW compilation. wxWindowMSW is different from (base class of) wxWindow in wxUniv and needs to be converted to it explicitly.

2014-06-05 00:47 VZ, revision 76663

Including missing header for wxUniv/MSW build. Compilation fix after the changes of r76657, see #16265.

2014-06-04 23:34 VZ, revision 76662

Compilation fix to wxMSW tooltip code when not using PCH. Include the required header when not using PCH. See #16265.

2014-06-04 23:15 VZ, revision 76661

Polish translations update from Mariusz Drozdowski.

2014-06-04 22:55 VZ, revision 76660

Polish translations update from Mariusz Drozdowski.

2014-06-02 20:14 VZ, revision 76659

Compilation fix for wxMSW 64 bit build with icc. This compiler doesn't want to narrow INVALID_HANDLE_VALUE to int, so use wxUIntPtr instead. See #16233.

2014-06-02 15:15 VZ, revision 76658

Explicitly convert int to HANDLE to fix 64 bit wxMSW build. This fixes g++ compilation problem in 64 bit mode after the changes of r76653, it complained about comparing pointer (HANDLE) with an integer. It might also fix compilation with icc. See #16233.

2014-06-02 03:15 VZ, revision 76657

Hide tooltip when its associated window is hidden in wxMSW. Don't leave the tooltip shown on screen if the window it was shown for was hidden or iconized (without moving the mouse, as that would have dismissed the tooltip as well). Closes #16265.

2014-06-02 03:15 VZ, revision 76656

Fix bug with removing items from menus with radio buttons in wxMSW. Update the indices of the radio groups after removing an item from the menu. See #14213.

2014-06-02 03:15 VZ, revision 76655

Use wxWinAPI::Event wrapper class instead of raw Windows event handles. This makes the code slightly shorter and, more importantly, more readable and safer. Closes #16233.

2014-06-02 03:15 VZ, revision 76654

Add a simple wrapper for Windows event handle object. This will be used instead of raw events in wxMSW code in the upcoming commit. See #16233.

2014-06-02 03:15 VZ, revision 76653

Allow wxMSW AutoHANDLE helper to be used with more kinds of handles. Make AutoHANDLE a template to allow specifying the invalid handle value, which is inconsistent across Win32 API and is INVALID_HANDLE_VALUE for most kinds of handles but 0 for some others, e.g. event object handles. See #16233.

2014-06-02 03:15 VZ, revision 76652

Ensure that wxPreviewCanvas always gets idle event. Use wxWS_EX_PROCESS_IDLE flag to ensure that the print preview receives idle events even when wxIDLE_PROCESS_SPECIFIED global idle mode is used. Closes #15104.

2014-06-02 03:15 VZ, revision 76651

Allow access to the currently shown wxInfoBar buttons. Add wxInfoBar::GetButtonCount(), GetButtonId() and HasButtonId() methods. Closes #15110.

2014-06-02 03:13 VZ, revision 76650

Fix bug with removing items from menus with radio buttons in wxMSW. Update the indices of the radio groups after removing an item from the menu. See #14213.

2014-06-02 02:16 VZ, revision 76649

Revert "Correctly detect cancelled drag-and-drop operations in wxGTK." This reverts r75745 (and r75749 fixing a minor problem in it) as this change broke the reporting of the result of the drag and drop operation instead of fixing it. See #15930.

2014-06-01 18:46 VZ, revision 76648

Document that wxCANCEL_DEFAULT doesn't work in wxOSX/Cocoa. See #16268.

2014-06-01 18:46 VZ, revision 76647

Don't check for model in wxDataViewCtrl::InsertColumn() in wxOSX. This isn't done in neither generic nor the GTK versions and prevents from inserting the columns into the control before associating a model with it. Closes #16257.

2014-06-01 18:44 VZ, revision 76646

Document that wxCANCEL_DEFAULT doesn't work in wxOSX/Cocoa. See #16268.

2014-06-01 18:30 VZ, revision 76645

Don't check for model in wxDataViewCtrl::InsertColumn() in wxOSX. This isn't done in neither generic nor the GTK versions and prevents from inserting the columns into the control before associating a model with it. Closes #16257.

2014-06-01 18:28 VZ, revision 76644

Relax checking window visibility in wxGLCanvas::SetCurrent(). It is enough for the window to be shown for SetCurrent() to work, it doesn't have to be actually visible on screen, and checking for this using IsShownOnScreen() resulted in false positives. Closes #16193.

2014-06-01 18:27 VZ, revision 76643

Relax checking window visibility in wxGLCanvas::SetCurrent(). It is enough for the window to be shown for SetCurrent() to work, it doesn't have to be actually visible on screen, and checking for this using IsShownOnScreen() resulted in false positives. Closes #16193.

2014-06-01 18:23 VZ, revision 76642

Don't leak sort descriptors array in wxDataViewCtrl in wxOSX. wxCocoaOutlineDataSource owns its sortDescriptors field, so it must release it in its dealloc() (and also initialize it in its init(), no idea how did it work without this being done before). Closes #16231.

2014-06-01 18:23 VZ, revision 76641

Fix memory leak when using custom renderers in wxOSX wxDataViewCtrl. wxDataViewRendererNativeData retains a reference to the cell passed to it, so the cell must be released after passing it to wxDataViewRendererNativeData to avoid leaking it. Closes #16226.

2014-06-01 18:23 VZ, revision 76640

Don't leak wxDataViewCtrl column objects in wxOSX/Cocoa. NSOutlineView addTableColumn method takes ownership of the column passed to it, so we must release it ourselves to avoid leaking it. Closes #16223.

2014-06-01 18:23 VZ, revision 76639

Don't recreate the native control in wxOSX wxDataViewCtrl dtor. Don't call ClearColumns() which recreates the control in order to remove its columns in wxOSX/Cocoa, just clean up the internal data, the control, and its columns, will soon be deleted anyhow. Closes #16210.

2014-06-01 18:22 VZ, revision 76638

Don't leak sort descriptors array in wxDataViewCtrl in wxOSX. wxCocoaOutlineDataSource owns its sortDescriptors field, so it must release it in its dealloc() (and also initialize it in its init(), no idea how did it work without this being done before). Closes #16231.

2014-06-01 18:22 VZ, revision 76637

Fix memory leak when using custom renderers in wxOSX wxDataViewCtrl. wxDataViewRendererNativeData retains a reference to the cell passed to it, so the cell must be released after passing it to wxDataViewRendererNativeData to avoid leaking it. Closes #16226.

2014-06-01 18:22 VZ, revision 76636

Don't leak wxDataViewCtrl column objects in wxOSX/Cocoa. NSOutlineView addTableColumn method takes ownership of the column passed to it, so we must release it ourselves to avoid leaking it. Closes #16223.

2014-06-01 18:22 VZ, revision 76635

Don't recreate the native control in wxOSX wxDataViewCtrl dtor. Don't call ClearColumns() which recreates the control in order to remove its columns in wxOSX/Cocoa, just clean up the internal data, the control, and its columns, will soon be deleted anyhow. Closes #16210.

2014-05-31 23:01 TIK, revision 76634

wxString::To(U)LongLong has very bad semantics, if that function is not supported on a given platform, it silently fails. Took me hours to spot this as the cause for a strange bug in one of my programs. While not fixing the silent failure (e.g. via #error), this patch adds support for additional platforms.

2014-05-31 16:30 VZ, revision 76633

Remove spurious MSVC check around wxDF_HTML code in wxMSW. For some reason, support for wxDF_HTML in clipboard code was disabled for non-MSVC compilers. Enable it now as it's not compiler-specific at all. See #16297.

2014-05-31 16:30 VZ, revision 76632

Remove spurious MSVC check around wxDF_HTML code in wxMSW. For some reason, support for wxDF_HTML in clipboard code was disabled for non-MSVC compilers. Enable it now as it's not compiler-specific at all. See #16297.

2014-05-31 16:21 VZ, revision 76631

Allow viewing read-only long string wxPropertyGrid properties values. When wxLongStringProperty is read-only, it should still be possible to view its value by opening the dialog normally used for editing it, otherwise this value cannot be seen (nor copied, which is also useful sometimes) at all. Closes #14945.

2014-05-31 16:21 VZ, revision 76630

Return all information from wxListCtrl::GetItem() if no mask specified. This is more useful than returning nothing and is consistent with the generic version behaviour. Closes #3666.

2014-05-30 18:35 VZ, revision 76629

Add support for "hint" property in wxTextCtrl XRC handler. It is convenient to allow specifying the hints directly in the resources.

2014-05-30 18:34 VZ, revision 76628

Add support for "hint" property in wxTextCtrl XRC handler. It is convenient to allow specifying the hints directly in the resources.

2014-05-30 18:34 VZ, revision 76627

Fix cancelling choice of custom colour in wxPropertyGrid. When using wxPGEditor_Choice colour property, cancelling the choice of the custom colour reset the previously selected custom colour. Fix this by correcting the test for the custom colour which didn't work before. Closes #15542.

2014-05-30 18:29 PC, revision 76626

Fix X 'BadPixmap' crash in Blit() with mask when GTK+ <= 2.16, closes #16303

2014-05-30 01:48 VZ, revision 76625

Update the instructions about adding a new wxUSE_FOO symbol. Mention wx/chkconf.h. Provide specific instructions for MSW-specific options. Don't tell people to update wx/univ/setup.h (it is auto-generated) nor setup.h_vms (it is manually updated by the OpenVMS maintainer).

2014-05-30 01:48 VZ, revision 76624

Fix cancelling choice of custom colour in wxPropertyGrid. When using wxPGEditor_Choice colour property, cancelling the choice of the custom colour reset the previously selected custom colour. Fix this by correcting the test for the custom colour which didn't work before. Closes #15542.

2014-05-30 01:48 VZ, revision 76623

Correct handling of the characters outside of the BMP in wxSTC. The code mapping positions for the units of the UTF-13/32 string used by wxWidgets to positions for the units of the UTF-8 string used by Scintilla didn't work correctly for the characters outside of the BMP, i.e. Unicode code points >= 0x10000. See #15621.

2014-05-30 01:48 VZ, revision 76622

Fix wrong resulting string length in UTF-16 to wchar_t conversion. Don't optimize the returned length for surrogate-less case, this does save a pass of the string but at the price of returning a wrong result, which is not worth it, just compute the really required length exactly. Closes #16298.

2014-05-28 21:33 VZ, revision 76618

Fix wrong resulting string length in UTF-16 to wchar_t conversion. Don't optimize the returned length for surrogate-less case, this does save a pass of the string but at the price of returning a wrong result, which is not worth it, just compute the really required length exactly. Closes #16298.

2014-05-28 01:59 VZ, revision 76616

Don't include "webview" in "standard" libraries. This means `wx-config --libs` doesn't include webview in its output by default any longer, it must be explicitly requested. Closes #16291.

2014-05-28 01:59 VZ, revision 76615

Don't advise people to make new libraries standard. Update the instructions for adding the new library to not recommend to make the new library standard, this is rarely, if ever, needed. See #16291.

2014-05-27 23:09 SC, revision 76614

work around OS X bug, fixes #16292

2014-05-27 19:27 VZ, revision 76613

Ensure that wxTestableFrame is shown on the (main) screen. Undo the accidental commit of local modifications in r74997.

2014-05-26 22:15 VZ, revision 76612

Move wx/html/forcelnk.h back to wxHTML from wxBase headers. This partially undoes r32570 which doesn't seem necessary any more as wx/html/forcelnk.h is only used in wxHTML since the addition of wx/link.h soon after that revision and having it in wxBase is completely unnecessary and just looks strange.

2014-05-26 22:15 VZ, revision 76611

Update MSVC 10+ projects with upmake. Update the files used in MSVC 10, 11 and 12 projects from the master files list. The main change is the removal of all headers from the core project: it doesn't seem to make sense to have all headers, even for the completely unrelated projects, in it and it is easier to just have the core own headers. The only other changes are the addition of a few headers (including the .cpp files used as headers) to the base project and the removal of the files which are never built (but still appear in auto-generated by bakefile projects because they could have been used in wxUniv case) in the core project.

2014-05-26 22:15 VZ, revision 76610

Add first draft version of upmake, tool for updating makefiles. Start moving away from files.bkl as the primary source for the files -- and away from bakefile itself as the make/project file generator -- by storing the list of files in a new build/files file and provide a simple build/upmake script for updating files.bkl and the manually maintained MSVC10+ projects from this file contents.

2014-05-26 22:15 VZ, revision 76609

Add missing wx/msw/webview_missing.h header to MSVC 10+ webview projects. This file was present in auto-generated VC[789] projects but was forgotten in the manually maintained ones, add it now.

2014-05-26 22:14 VZ, revision 76608

Separate MSW resource files from the headers. Use separate MSW_HDR and MSW_RSC variables instead of putting everything into MSW_HDR: resources, such as .manifest, .bmp, .ico and .cur files, don't belong to the headers.

2014-05-26 22:14 VZ, revision 76607

No real changes, just use FOO_CMN_{SRC,HDR} for all libraries in files.bkl. Make variable definitions consistent for all libraries: previously some of them were decomposed in FOO_CMN_SRC and FOO_PLATFORM_SRC parts while others just defined FOO_SRC directly and interpolated FOO_PLATFORM_SRC into it. Use helper FOO_CMN_SRC for all of them now, as it will make it easier to update them automatically (and the same thing for headers, i.e. HDR variables). No changes to the generated project/make files.

2014-05-26 22:14 VZ, revision 76606

Minor cleanup in files.bkl. Remove duplicate file. Remove commented out variable assignments.

2014-05-26 09:30 PC, revision 76605

Fix setting client data when adding items to a sorted wxListBox, broken in r74317 closes #16290

2014-05-26 02:00 DS, revision 76604

remove stray '1' character from docs (introduced in r76601)

2014-05-25 11:40 TIK, revision 76603

Fix buffer overflow reported by the compiler: wxChar m_ext[kMacExtensionMaxLength] ; ... m_ext[kMacExtensionMaxLength] = 0 ; //warning: array index 16 is past the end of the array (which contains 16 elements) [-Warray-bounds]

2014-05-24 20:39 PC, revision 76602

fix wxStaticText improperly wrapping text when initial size is fully specified, closes #16278

2014-05-24 00:34 TIK, revision 76601

Make documentation reflect reality.

2014-05-22 22:35 VZ, revision 76600

Return wxWinVersion_[78] correctly from wxMSW wxGetWinVersion(). This is especially important because the workaround of r76152 for IFileDialog bug under Windows Vista also applied under later Windows versions as they were not detected correctly. Closes #16286.

2014-05-22 22:33 VZ, revision 76599

Return wxWinVersion_[78] correctly from wxMSW wxGetWinVersion(). This is especially important because the workaround of r76152 for IFileDialog bug under Windows Vista also applied under later Windows versions as they were not detected correctly. Closes #16286.

2014-05-22 17:13 VZ, revision 76598

Disable another wxStopWatch test case in the build bot builds. We can't rely on the program waking up quickly enough when running on the (loaded) buildbot machines, better to skip this test than to have spurious failures.

2014-05-22 16:36 VZ, revision 76597

Avoid showing the colour selection dialog twice in wxPropertyGrid. Selecting "Custom" in a colour property cell resulted in the colour selection dialog being shown twice if it was cancelled the first time. Fix this by using wxPG_PROPERTY_SPECIFIC to indicate that the value is just being queried and the user shouldn't be asked to enter it, as it is already in the other places. Closes #15543.

2014-05-22 16:35 VZ, revision 76596

Fix changing individual font properties in the propgrid sample. Fixes the bug in the sample which resulted in the UI not working as expected. Closes #12779.

2014-05-22 16:35 VZ, revision 76595

Don't destroy wxFont from its GetFaceName() in wxMSW. wxFont::GetFaceName() could destroy the HFONT used by the font accidentally, avoid it by not invalidating the font when caching its face name. Closes #16273.

2014-05-22 16:35 VZ, revision 76594

Minor fixes to wxStaticBitmap documentation. Fix typo in the description; correct "See also" section. Closes #16279.

2014-05-22 16:15 VZ, revision 76593

Avoid showing the colour selection dialog twice in wxPropertyGrid. Selecting "Custom" in a colour property cell resulted in the colour selection dialog being shown twice if it was cancelled the first time. Fix this by using wxPG_PROPERTY_SPECIFIC to indicate that the value is just being queried and the user shouldn't be asked to enter it, as it is already in the other places. Closes #15543.

2014-05-22 16:08 VZ, revision 76592

Don't destroy wxFont from its GetFaceName() in wxMSW. wxFont::GetFaceName() could destroy the HFONT used by the font accidentally, avoid it by not invalidating the font when caching its face name. Closes #16273.

2014-05-21 09:41 VS, revision 76591

Fix warning in wxSimplebook::UpdateSelectedPage().

2014-05-21 09:40 VS, revision 76590

Fix warning in wxSimplebook::UpdateSelectedPage().

2014-05-20 05:16 RD, revision 76588

Add Get/SetDisabledBitmap methods for msw

2014-05-20 05:16 RD, revision 76587

Add Get/SetDisabledBitmap methods for msw

2014-05-19 20:40 SC, revision 76586

backport, fixing deletion of window during mouse down handler

2014-05-19 19:27 VS, revision 76585

Add missing Language: header to locale/msw/it.po.

2014-05-19 19:26 VS, revision 76584

Add missing Language: header to locale/msw/it.po.

2014-05-19 19:23 VS, revision 76583

Fix wxOSX warnings about unused variables.

2014-05-19 19:23 VS, revision 76582

Don't use the deprecated 'register' storage specifier. It is not only useless with any modern C++ compiler, but also deprecated in C++11. Removing it fixes Clang warnings on the subject.

2014-05-19 19:23 VS, revision 76581

Fix wxOSX warnings about unused variables.

2014-05-19 19:23 VS, revision 76580

Don't use the deprecated 'register' storage specifier. It is not only useless with any modern C++ compiler, but also deprecated in C++11. Removing it fixes Clang warnings on the subject.

2014-05-19 18:58 SC, revision 76579

guarding against deleted 'self' during the mouse handler, setting peer ptr to NULL during destruction

2014-05-18 18:33 SC, revision 76578

in order to get all focus set events, store field in editor and catch becomeFirstResponder there, see #14269

2014-05-18 15:59 SC, revision 76577

allowing reentrancy on NSPanels makeResponder as in NSWindow, see #14269

2014-05-18 12:46 SC, revision 76576

refactoring to common code for updating selections, using common focus code, see #14269

2014-05-18 12:44 SC, revision 76575

refactoring to common code for focus set and lost events, so that changes can be made a single place, see #14269

2014-05-18 02:24 VZ, revision 76569

Fix bugs in wxEnumProperty introduced by r76562. The compilation fixes introduced run-time fixes due to not account for the use of NULL pointers (which are not accepted as choices cache but are accepted as choices values, go figure). Closes #16266.

2014-05-17 23:31 DS, revision 76568

Add 3 missing declarations for wxPoint2DInt non-member operator functions. Three duplicate declarations were removed in r70493 instead of replacing them with the missing declarations. Closes #10946.

2014-05-17 23:29 DS, revision 76567

Cast arguments passed to wxPoint2DInt constructor. Cast them to wxInt32 (instead of int) as that is the type of the wxPoint2DInt members m_x and m_y. See #10946.

2014-05-17 23:26 DS, revision 76566

Fix wxPoint2DInt::operator*= and wxPoint2DInt::operator/= . These operator functions are respectively adding and subtracting their arguments. Instead let the functions multiply and divide their arguments (like their wxPoint2DDouble counterparts were doing already). See #10946.

2014-05-17 21:14 SC, revision 76565

using the base class wxHAS_NATIVE_ENABLED_MANAGEMENT in cocoa disabling/enabling child windows, fixes #16232, fixes #15495

2014-05-17 19:34 PC, revision 76564

Fix wxSystemSettings::GetColour() returning transparent colors with GTK3, closes #16255

2014-05-17 19:22 PC, revision 76563

fix propgrid sample when WXWIN_COMPATIBILITY_3_0==0, broken in r75561

2014-05-17 15:41 VZ, revision 76562

Compilation fixes to wxPropertyGrid after r76558. We can't use _() in the static wxChar* arrays: first, because this doesn't compile and second because if it did compile, it still wouldn't work as no message catalogs are loaded yet when the static arrays are initialized. Use wxTRANSLATE() instead and arrange for the strings to be translated when they are really used. This is rather ugly and perhaps it would be better to avoid passing untranslated labels array to the property classes but at least the code compiles again now. See #16266.

2014-05-17 14:29 VZ, revision 76561

Don't use X11-only GDK functions in wxGTK/Win32 build. Add GDK_WINDOWING_X11 checks to allow compiling wxGTK display code under Win32. Closes #16270.

2014-05-17 14:29 VZ, revision 76560

Use non-deprecated pen and brush style constants in wxOSX code. Use wx{PEN,BRUSH}STYLE_{SOLID,TRANSPARENT} instead of the old wx{SOLID,TRANSPARENT}. Closes #16269.

2014-05-17 14:29 VZ, revision 76559

Fix recursive self-reference in wxRichTextAttr documentation. Refer to wxTextAttr, not wxRichTextAttr itself. Closes #16271.

2014-05-17 14:29 VZ, revision 76558

Make names of properties used in wxPropertyGrid translatable. Use _() around these user-visible strings, not wxT(). Closes #16266.

2014-05-17 14:29 VZ, revision 76557

Fix querying the value of wxEnumProperty in wxPropertyGridEditor. Doing this changed the internal state of the control and resulted in the choice not being updated. Fix this by using wxPG_PROPERTY_SPECIFIC. Closes #15449.

2014-05-17 14:29 VZ, revision 76556

Add simple font tests for the drawing unit test. Check that DrawText() results in the expected output. Currently the tests are disabled for non-Windows systems because of the problem with the reference file paths there. See #16261.

2014-05-17 14:29 VZ, revision 76555

Add public wxDegToRad() and wxRadToDeg() functions. Define these functions just once in wx/math.h instead of duplicating them in a dozen of places.

2014-05-17 14:29 VZ, revision 76554

Include renderer version into the platform tag in graphics context tests. This allows to distinguish the results of the same renderer (e.g. GDI+-based one) on the different OS versions (because GDI+ produces different results under XP and Windows 8). Closes #16260.

2014-05-17 14:29 VZ, revision 76553

Make assert message in GraphicsContextDrawingTestCase more informative. Include the paths of the files that we failed to copy. See #16260.

2014-05-17 14:28 VZ, revision 76552

Fix recursive self-reference in wxRichTextAttr documentation. Refer to wxTextAttr, not wxRichTextAttr itself. Closes #16271.

2014-05-17 14:28 VZ, revision 76551

Fix querying the value of wxEnumProperty in wxPropertyGridEditor. Doing this changed the internal state of the control and resulted in the choice not being updated. Fix this by using wxPG_PROPERTY_SPECIFIC. Closes #15449.

2014-05-17 13:25 DS, revision 76550

Compilation fix for --disable-precomp-headers in combination with --disable-all-features . Fix an error for compile step of "Linux i386 wxGTK trunk no features" buildbot by forward declaring wxWindow class.

2014-05-16 15:01 VZ, revision 76549

Remove checks for ancient gcc/MinGW versions. Don't test for wxUSE_NORLANDER_HEADERS, this is always true since many, many years. Remove tests for gcc version < 3.3, notably 2.95: the minimal supported gcc version is 3.4. Closes #15727.

2014-05-16 15:01 VZ, revision 76548

Remove obsolete MSVC version tests. Don't compare __VISUALC__ with versions 1200 (VC6) and earlier, such tests are always true or always false now that we don't support VC6 any more, so just remove them simplifying the code.

2014-05-16 15:01 VZ, revision 76547

Remove support for Digital Mars compiler. This compilers is not being developed any longer since many years, drop support for it.

2014-05-16 15:01 VZ, revision 76546

Remove (Open)Watcom support. This compiler is not being developed since several years and almost certainly can't be used to build the current wxWidgets sources anyhow, so remove all support for it, including a lot of extremely ugly workarounds for its bugs with template functions.

2014-05-16 15:00 VZ, revision 76545

Add default argument for the overridden base class Connect() in wxHTTP. This allows to call Connect(wxIPV4address) on a wxHTTP object, without having to explicitly specify the second argument (this was documented as being a Watcom-specific problem, but actually it wasn't).

2014-05-16 15:00 VZ, revision 76544

Update wx/android/setup.h automatically from wx/setup_inc.h too. Not sure if this file is actually used at all right now, but update it to avoid discrepancies with the other setup[0].h.

2014-05-16 13:29 VZ, revision 76543

Update configure after the last commit. Previous commit didn't include bakefile-generated update to configure, breaking the build, fix this.

2014-05-16 12:53 VZ, revision 76542

Don't build drawing test plugin in static builds. Static wxWidgets library can't be used in dynamically loaded plugin, simply don't build it in this case.

2014-05-16 12:53 VZ, revision 76541

Build 3.0 branch on Travis as well.

2014-05-16 12:00 VZ, revision 76540
  • D /wxWidgets/trunk/build/msw/wx_dll.dsw
  • D /wxWidgets/trunk/samples/samples.dsw
  • D /wxWidgets/trunk/tests/benchmarks/bench.dsw
  • D /wxWidgets/trunk/utils/ifacecheck/src/ifacecheck.dsw
  • D /wxWidgets/trunk/utils/screenshotgen/src/screenshotgen.dsw

Remove remaining MSVC6 workspace files. See #15726.

2014-05-16 11:59 VZ, revision 76539

Fix drawing test link in static build. We must use wx_append template which adds the required GUI libraries when using static versions of wxWidgets libraries and not wx_append_base.

2014-05-16 11:59 VZ, revision 76538

Fix image resolution options setting in wxBMPHandler code. This was broken by the changes of r76144 as the resolution information read from the bitmap was never used due to a typo in Resolution::Init().

2014-05-16 11:59 VZ, revision 76537

Work around bogus "use of possibly uninitialized variable" warning. Resolution::m_x and m_y were always initialized before use but g++ 4.2 still complained about them being possibly not initialized, so do initialize them.

2014-05-16 11:59 VZ, revision 76536

Remove unused variables to avoid compilation warnings. Don't call CFGetRetainCount() unnecessarily.

2014-05-16 04:33 VZ, revision 76535

Remove support for Win9x from wxMSW. Most importantly, this allows us to remove all MSLU-related stuff. Some functions which were previously loaded dynamically can now be just used directly, too.

2014-05-16 04:31 VZ, revision 76534

Fix MinGW build after MSVC6 removal changes. Don't define wxUSE_DBGHELP as 1 for MinGW, it was only supposed to be defined as 1 for MSVC (just for all versions of it now that we don't support MSVC6 which couldn't compile this code).

2014-05-16 01:56 VZ, revision 76533

Remove wxPM, wxWidgets port to OS/2. This port is not used and is not being worked on, so remove it to reduce the amount of the code which needs to be updated for every global change. Also remove tests for VisualAge compiler which isn't used since ages.

2014-05-16 00:32 VZ, revision 76532

Remove MSVC6 support. Don't support this compiler any more, this allows to get rid of tons of MSVC6-specific workarounds, in particular we can now use Bind() and natural template functions calls in the library code. Also remove MSVC6 project and solution files and don't generate them when bakefile_gen is ran any more (removing the remaining occurrences of msvc6prj from the bakefiles results in weird bake-time errors, so it's simpler to just leave them there).

2014-05-14 14:40 VZ, revision 76531

Use wxMemorySize type in Unix implementation of wxGetFreeMemory(). This should avoid overflows on 32 bit systems with more than 2GB of RAM.

2014-05-14 14:40 VZ, revision 76530

Check result of fgets() and sscanf() in wxGetFreeMemory(). This fixes g++ -Wunused-result warnings and also actually makes the code more robust.

2014-05-14 14:40 VZ, revision 76529

Use wxMemorySize type in Unix implementation of wxGetFreeMemory(). This should avoid overflows on 32 bit systems with more than 2GB of RAM.

2014-05-14 14:40 VZ, revision 76528

Check result of fgets() and sscanf() in wxGetFreeMemory(). This fixes g++ -Wunused-result warnings and also actually makes the code more robust.

2014-05-14 14:39 VZ, revision 76527

Remove unused variables from wxRichTextListStylePage code. This avoids warnings about them.

2014-05-14 14:21 VZ, revision 76526

Remove non existing wxPG_COMPACTOR style from documentation. No idea what was it supposed to do, but this style doesn't exist and never did in the version included in wxWidgets, so simply remove it. Closes #16264.

2014-05-13 22:48 SC, revision 76525

support for enable/disable and capitalization in ios

2014-05-13 22:47 SC, revision 76524

expose capitalize flag for ios as well

2014-05-13 22:03 SC, revision 76523

fixing compile in case of absent wxSpinCtrl

2014-05-13 22:02 SC, revision 76522

order than the current OnInit handling for cocoa and carbon we still have to use the native callback for ios

2014-05-13 21:55 SC, revision 76521

allowing compile under ios, where menus are not available

2014-05-13 21:54 SC, revision 76520

fixing compile under ios

2014-05-12 15:16 VZ, revision 76519

Fix print preview in 64 bit MinGW wxMSW builds. Don't hardcode wrong PRINTDLG structure size for 64 bit builds. In fact, don't hardcode it at all as it just doesn't seem to be necessary to do it, the comment about Cygwin getting it wrong seems to be out of date. Closes #16256.

2014-05-12 15:16 VZ, revision 76518

Fix cast from "void*" to integer type in wxThread::Exit() for non-MSVC. This fixes another problem in 64 bit Cygwin build.

2014-05-12 15:16 VZ, revision 76517

Use DWORD instead of unsigned long in wxFileSystemWatcher wxMSW code. These two types are not the same in 64 bit Cygwin builds, so fix the build by just using DWORD everywhere.

2014-05-12 15:16 VZ, revision 76516

Fix tests for __WXMSW__ in non-GUI-only code. __WXMSW__ is not defined when compiling wxBase, so the tests which were meant to prevent using Unix event loop classes under Cygwin (under which both __UNIX__ and __WINDOWS__, but not __WXMSW__, are defined) failed, breaking compilation of all wxEventLoop-related code in wxBase in Cygwin builds.

2014-05-12 15:16 VZ, revision 76515

Don't use _{get,ch}drive() functions in Cygwin builds. They are not available there when not using MinGW headers, e.g. in 64 bit builds. Also simplify the code by using wxHAS_DRIVE_FUNCTIONS instead of complicated (and sometimes negated) checks for MinGW32 version.

2014-05-12 15:16 VZ, revision 76514

Don't use LCID and WXLCID interchangeably in wxMSW code. Similarly to the problem with WXDWORD and DWORD, LCID is actually an unsigned int and not unsigned long in 64 bit Cygwin builds, so it's a different type.

2014-05-12 15:16 VZ, revision 76513

Add casts from long to LONG to fix 64 bit Cygwin wxMSW build. In 64 bits, LONG is actually defined as int in Cygwin gcc headers, so is different from long -- even if both types use identical representation. Just add the casts to fix this for now, as this is the smallest ABI-preserving change. Ideally, something better and less ugly would need to be done in the future.

2014-05-12 15:15 VZ, revision 76512

Don't use DWORD and WXDWORD interchangeably in wxMSW code. WXDWORD is defined as unsigned long, while DWORD is defined as unsigned int in 64 bit builds using Cygwin gcc, so they are not the same type (although they do have the same size) and using the latter instead of the former in the function definition results in errors in this build configuration.

2014-05-12 15:15 VZ, revision 76511

Define __WIN64__ for 64 bit wxMSW builds with gcc too. Previously __WIN64__ was only defined for 64 bit builds with MSVC, which resulted in many problems when using 64 bit Cygwin compiler. Also don't use MSVC-specific __int64 but our wxInt64 for WX{L,W}PARAM and WXLRESULT definitions in 64 bit builds.

2014-05-12 15:15 VZ, revision 76510

Use __WIN64__ instead of MSVC-specific _WIN64 in wxIsPlatform64Bit(). Make the code work correctly for 64 bit builds with other compilers, e.g. gcc.

2014-05-12 15:15 VZ, revision 76509

Don't define wxSIZE_T_IS_UINT for Cygwin unconditionally. This breaks 64 bit Cygwin builds and is unnecessary for 32 bit ones where configure already defines wxSIZE_T_IS_UINT correctly. Closes #16130.

2014-05-12 15:14 VZ, revision 76508

Fix print preview in 64 bit MinGW wxMSW builds. Don't hardcode wrong PRINTDLG structure size for 64 bit builds. In fact, don't hardcode it at all as it just doesn't seem to be necessary to do it, the comment about Cygwin getting it wrong seems to be out of date. Closes #16256.

2014-05-12 15:14 VZ, revision 76507

Fix cast from "void*" to integer type in wxThread::Exit() for non-MSVC. This fixes another problem in 64 bit Cygwin build.

2014-05-12 15:14 VZ, revision 76506

Use DWORD instead of unsigned long in wxFileSystemWatcher wxMSW code. These two types are not the same in 64 bit Cygwin builds, so fix the build by just using DWORD everywhere.

2014-05-12 15:14 VZ, revision 76505

Fix tests for __WXMSW__ in non-GUI-only code. __WXMSW__ is not defined when compiling wxBase, so the tests which were meant to prevent using Unix event loop classes under Cygwin (under which both __UNIX__ and __WINDOWS__, but not __WXMSW__, are defined) failed, breaking compilation of all wxEventLoop-related code in wxBase in Cygwin builds.

2014-05-12 15:14 VZ, revision 76504

Don't use _{get,ch}drive() functions in Cygwin builds. They are not available there when not using MinGW headers, e.g. in 64 bit builds. Also simplify the code by using wxHAS_DRIVE_FUNCTIONS instead of complicated (and sometimes negated) checks for MinGW32 version.

2014-05-12 15:14 VZ, revision 76503

Don't use LCID and WXLCID interchangeably in wxMSW code. Similarly to the problem with WXDWORD and DWORD, LCID is actually an unsigned int and not unsigned long in 64 bit Cygwin builds, so it's a different type.

2014-05-12 15:14 VZ, revision 76502

Add casts from long to LONG to fix 64 bit Cygwin wxMSW build. In 64 bits, LONG is actually defined as int in Cygwin gcc headers, so is different from long -- even if both types use identical representation. Just add the casts to fix this for now, as this is the smallest ABI-preserving change. Ideally, something better and less ugly would need to be done in the future.

2014-05-12 15:14 VZ, revision 76501

Don't use DWORD and WXDWORD interchangeably in wxMSW code. WXDWORD is defined as unsigned long, while DWORD is defined as unsigned int in 64 bit builds using Cygwin gcc, so they are not the same type (although they do have the same size) and using the latter instead of the former in the function definition results in errors in this build configuration.

2014-05-12 15:14 VZ, revision 76500

Define __WIN64__ for 64 bit wxMSW builds with gcc too. Previously __WIN64__ was only defined for 64 bit builds with MSVC, which resulted in many problems when using 64 bit Cygwin compiler. Also don't use MSVC-specific __int64 but our wxInt64 for WX{L,W}PARAM and WXLRESULT definitions in 64 bit builds.

2014-05-12 15:14 VZ, revision 76499

Use __WIN64__ instead of MSVC-specific _WIN64 in wxIsPlatform64Bit(). Make the code work correctly for 64 bit builds with other compilers, e.g. gcc.

2014-05-12 15:14 VZ, revision 76498

Don't define wxSIZE_T_IS_UINT for Cygwin unconditionally. This breaks 64 bit Cygwin builds and is unnecessary for 32 bit ones where configure already defines wxSIZE_T_IS_UINT correctly. Closes #16130.

2014-05-12 01:16 DS, revision 76497

Fixed code checking for bit flags. Use "flag & bitmask" instead of "flag && bitmask" (resulted in LLVM compiler warning: "Use of logical '&&' with constant operand").

2014-05-12 00:51 DS, revision 76496

Added default parameter to EnableCloseButton(). Previously the default parameter was only available in wxMSW and wxGTK. Added it to the base class as well to allow EnableCloseButton() calls without a parameter under other platforms too.

2014-05-12 00:41 DS, revision 76495

Added support for using OS X' full screen API (available since OS X 10.7). Added EnableFullScreenView() to have a full screen button in the title bar and also allowing ShowFullScreen() to make use of the newer full screen API. See #14357.

2014-05-10 18:20 VZ, revision 76494

Disable wxSleep() test case for buildbot builds. This test keeps failing just because the buildbot machine are too heavily loaded. This is not really an error, so just avoid running this test there.

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

Improve RTL support in wxStyledTextCtrl. Use the correct HDC, inheriting the right text orientation, when creating wxMemoryDC in SurfaceImpl code. There may still be problems with the actual RTL languages, but at the very least English text displayed in RTL locale is not mirrored any more. Closes #16230.

2014-05-10 18:15 VZ, revision 76492

Do not export template wxMSWOwnerDrawnButton class from the DLL. This doesn't seem to be necessary even for ICC, finally, see #16237.

2014-05-10 18:15 VZ, revision 76491

Fix crash in generic wxDataViewCtrl::AssociateModel(NULL). Don't use the possibly dangling pointer. Closes #16249.

2014-05-10 18:15 VZ, revision 76490

Fix wxRichTextCtrl code compilation with wxUSE_XML==0. Add missing wxUSE_XML checks. Closes #16251.

2014-05-09 17:14 PC, revision 76489

fix build on systems which don't have vsscanf, such as Solaris 8

2014-05-08 19:05 PC, revision 76488

fix building on IRIX with GCC It's impossible to know what problem this was supposed to fix (it's been there since the Dawn of Time: r2), but it prevents stddef.h from defining ptrdiff_t, among others. We need ptrdiff_t.

2014-05-08 16:43 VZ, revision 76487

Add wxStyledTextCtrl copy/paste text events. Add wxEVT_STC_CLIPBOARD_{COPY,PASTE} events, allowing to transform the text being copied from or pasted into wxStyledTextCtrl. Closes #16191.

2014-05-08 16:43 VZ, revision 76486

Remove wxStyledTextEvent::m_text and m_dragText. These fields were unnecessary and duplicated m_cmdString inherited from the base class. Also use base class GetString() instead of the redundant GetText() and GetDragText() in the code, even though these methods are still kept for backwards compatibility. See #16191.

2014-05-08 16:43 VZ, revision 76485

Do export wxMSWOwnerDrawnButton from DLL in wxMSW. This class shouldn't need to be exported but not doing it breaks builds using LTCG with Intel compiler, so do export it to avoid this problem. Closes #16237.

2014-05-08 16:43 VZ, revision 76484

Fix harmless warning about using wxCONTROL_CHECKED in ternary operator. Add wxCONTROL_NONE which is just a symbolic name for 0 and use it in the code to avoid g++ 4.8 warnings about mixing enum and int in conditional expression. Closes #16242.

2014-05-08 16:43 VZ, revision 76483

Compilation fix for PCH-less build of wxMSW. Include wx/msw/ownerdrawnbutton.h usually included via wx/checkbox.h from the PCH. Closes #16241.

2014-05-07 17:24 VZ, revision 76482

Make wxGetPangoContext() work even without open display. Use default Pango font map if we don't have any default screen in wxGTK. Closes #16240.

2014-05-07 15:43 VZ, revision 76481

Add missing "inline" to std::swap() specialization for wxUniCharRef. Avoid multiple definitions of this function. See #16234.

2014-05-07 15:10 VZ, revision 76480

Remove non-existent wx/ownerdrawnbutton.h from MSVS projects. This resulted in constant spurious rebuilds as this file doesn't exist, only wx/msw/ownerdrawnbutton.h does.

2014-05-07 15:10 VZ, revision 76479

Put files in the correct groups in MSVS manually maintained projects. Don't show textmeasurecmn.cpp, textmeasure.cpp and xmlreshandler.cpp at the top project level.

2014-05-07 15:10 VZ, revision 76478

Fix harmless C4275 MSVC warning in wxMSW DLL builds. Since the addition of wxMSWOwnerDrawnButton, DLL builds started generated a lot of warnings about using this non DLL-exported class as base class for the DLL-exported wxCheckBox and wxRadioButton. Simply suppress these warnings as they are harmless in this case because the base class has no static data, which is the real problem this warning hints at. Closes #16237.

2014-05-07 15:10 VZ, revision 76477

Add LexRust.cxx to manually generated MSVS project files. This should have been part of r76121, see #15742.

2014-05-07 15:10 VZ, revision 76476

Remove DebugInformationFormat options from MSVC 10+ projects. This option is common to all projects and is defined in the global properties file, so it doesn't need to be present in the projects themselves at all. See #16236.

2014-05-07 15:09 VZ, revision 76475

Generate debug information for all MSVC builds. We want to have debug information even for the release builds as it doesn't affect the binaries produced but greatly helps when debugging, so create PDB for all release builds as well in the manually maintained MSVS files (this was already the case for Win32 release builds but not x64 ones for some reason). This also fixes the problem with "None" being an invalid value for DebugInformationFormat with MSVC 10 as a side effect. Closes #16236.

2014-05-07 15:09 VZ, revision 76474

Define std::swap() correctly for wxUniCharRef. The default implementation doesn't work for this reference-like class, and this breaks not only swap() itself (see #14694), but also any algorithms using it, such as std::reverse(). Fix this by providing our own specialization which does work correctly. Closes #16234.

2014-05-06 20:20 VZ, revision 76473

Allow using sizers for laying out wxMDIClientWindow in wxMSW. Let the user code put wxMDIParentFrame::GetClientWindow() into a sizer and manage it as any other window, instead of having to do it manually. Closes #16196.

2014-05-06 20:16 VZ, revision 76472

Minor documentation corrections. Escape the space after "i.e." (or avoid using it altogether), add missing @ref. Closes #16235.

2014-05-06 20:16 VZ, revision 76471

Minor documentation corrections. Escape the space after "i.e." (or avoid using it altogether), add missing @ref. Closes #16235.

2014-05-06 18:34 PC, revision 76470

Always check for wide char IO functions, they are used regardless of wxUSE_UNICODE setting

2014-05-06 17:58 SC, revision 76469

backport, fixing enabling/disabling child windows, closes #16232

2014-05-06 17:49 SC, revision 76468

using the base class wxHAS_NATIVE_ENABLED_MANAGEMENT in cocoa disabling/enabling child windows, fixes #16232, fixes #15495

2014-05-06 13:44 VZ, revision 76467

Add wx/msw/ownerdrawnbutton.h to {make,project} files. In particular, ensure that it's installed when using configure+make.

2014-05-06 13:44 VZ, revision 76466

Define BS_TYPEMASK for the compilers which don't have it. Fixes compilation with MinGW after wxMSWOwnerDrawnButton introduction.

2014-05-05 17:53 PC, revision 76465

Implement access to a global toplevel GdkWindow in a way that does not require always having an extra GtkWindow. And don't use "RootWindow" in the name, it is not a root window in the X11 sense. Also add wxGetPangoContext() to get access to a PangoContext.

2014-05-05 16:47 VZ, revision 76464

Fix wxMSW owner drawn buttons appearance in "selected" state. Draw the buttons (i.e. checkboxes and radio buttons) correctly when the space key is pressed. See #10137.

2014-05-05 16:42 VZ, revision 76463

Add a TODO comment to wxGTK wxToolBar::FindToolForPosition(). Replace the out of date comment saying that GTK+ doesn't have a function to do this with a TODO comment mentioning the name of the function which should be used here.

2014-05-05 16:42 VZ, revision 76462

Fix handling of multiple and rectangular selections in wxSTC. Copy and paste rectangular selections in the standard format, this is especially important under Windows where a (de facto) standard clipboard format for such selections exists. Also fix handling of multipaste, i.e. pasting clipboard contents into several locations at once. Closes #16221.

2014-05-05 16:42 VZ, revision 76461

Show Scintilla multiple selections and multipaste features in the sample. Add menu items to toggle multiple selections and multipaste support in wxSTC. See #16221.

2014-05-05 00:13 VZ, revision 76460

Fix resetting owner drawn radio buttons to normal state. Ensure that we bring the native button in sync with the real state of the radio button when we switch to normal state. Also avoid using BM_GETCHECK for the owner drawn buttons as we don't use BM_SETCHECK for them (as it's useless). See #10137.

2014-05-05 00:13 VZ, revision 76459

Factor out common owner drawn code from wx{Check,Radio}Box. Create wxMSWOwnerDrawnButton class which contains all of this code. Currently the methods of this class are (still) implemented in src/msw/control.cpp. See #10137.

2014-05-05 00:13 VZ, revision 76458

Fix pressed owner-drawn checkbox appearance in wxMSW. Handle the "pressed" state correctly in wxCheckBox::MSWOnDraw(). See #10137.

2014-05-05 00:13 VZ, revision 76457

Fix the size of owner-drawn checkbox and radiobuttons under Vista and later. The size of the native buttons has changed between XP and Vista, so add version check to draw the buttons of correct size under all Windows versions. See #10137. REBASE: squash with aa5d7c5 Fix the size of owner-drawn check and radio boxes under Vista and later.

2014-05-05 00:13 VZ, revision 76456

Implement setting foreground colour for wxRadioButton in wxMSW. Native radio buttons don't support changing their foreground colour, so use owner drawn buttons if SetForegroundColour() was called, similarly to what was already done for wxCheckBox. Closes #10137.

2014-05-05 00:13 VZ, revision 76455

Refactor owner drawn buttons drawing code in wxMSW. Move it from wxCheckBox to wxControl to allow reusing this code in other classes, notably wxRadioButton in the upcoming commits. See #10137.

2014-05-05 00:13 VZ, revision 76454

Use wxArrayInt methods instead of duplicating them. Just use wxArrayInt::Index() instead of doing a linear search in the array manually. Also use RemoveAt() + Insert() instead of manually iterating over the items. See #16110.

2014-05-05 00:12 VZ, revision 76453

Fix position of the column after drag-move operation in wxGrid. Fix the logic for finding the correct position to drop the column at when ending a drag move operation. The old code dropped it one position too far to the left when it was dropped on the "far" (i.e. right with LTR layout) part of the target column. See #16110.

2014-05-05 00:12 VZ, revision 76452

Fix changing column order in wxGrid when some columns are hidden. Using negative column widths used for hidden columns when updating the column positions after dragging one of them to a new position totally broke their display. Fix this by ignoring the hidden columns. Closes #16110.

2014-05-05 00:12 VZ, revision 76451

Add wxGridCellRenderer::GetBest{Height,Width}() and use them in wxGrid. Allow the renderer to specify the best height at the given width (or vice versa) instead of the best size in both direction which is not defined for e.g. wxGridCellAutoWrapStringRenderer. Closes #15943.

2014-05-05 00:12 VZ, revision 76450

Document restrictions on icon names in the resources in wxMSW. Make it more clear that application icon must precede "wx" in alphabetical order. Closes #3529.

2014-05-05 00:12 VZ, revision 76449

Fix busy cursor handling in modal dialogs under MSW. Modal dialogs shown during wxBusyCursor effect shouldn't show the busy cursor as they do accept input, but did in wxMSW (as could be seen in e.g. the widgets sample after enabling the "Global busy cursor" in the menu and showing the text entry dialog via "Text|Set Help Hint"). Fix this by explicitly checking for the special case of having a modal dialog as parent at wxWindow level as doing it in wxDialog simply didn't work as its WM_SETCURSOR handler wasn't called at all for determining the cursor to use for its children because they handled WM_SETCURSOR themselves in the global busy state, without letting DefWindowProc(), which propagates this message upwards the window hierarchy, to have it at all.

2014-05-05 00:12 VZ, revision 76448

Bring MSVS 2010 projects in line with 2011 and 2012 ones. The new projects are easier to customize as the build options can now be specified in wx_vc10_local.props file. They also have correct dependencies and avoid sharing violations when copying wx/setup.h. Finally, they also use the correct names for the webview DLL, see #15820.

2014-05-05 00:12 VZ, revision 76447

Reset icon ref count when deleting the icon in wxMSW balloon icons code. This avoids the assert which happened when trying to show the next notification message in SetUpIcon() as the icon was null while the reference count was positive.

2014-05-05 00:11 VZ, revision 76446

Fix position of the column after drag-move operation in wxGrid. Fix the logic for finding the correct position to drop the column at when ending a drag move operation. The old code dropped it one position too far to the left when it was dropped on the "far" (i.e. right with LTR layout) part of the target column. See #16110.

2014-05-05 00:11 VZ, revision 76445

Fix changing column order in wxGrid when some columns are hidden. Using negative column widths used for hidden columns when updating the column positions after dragging one of them to a new position totally broke their display. Fix this by ignoring the hidden columns. Closes #16110.

2014-05-05 00:11 VZ, revision 76444

Fix busy cursor handling in modal dialogs under MSW. Modal dialogs shown during wxBusyCursor effect shouldn't show the busy cursor as they do accept input, but did in wxMSW (as could be seen in e.g. the widgets sample after enabling the "Global busy cursor" in the menu and showing the text entry dialog via "Text|Set Help Hint"). Fix this by explicitly checking for the special case of having a modal dialog as parent at wxWindow level as doing it in wxDialog simply didn't work as its WM_SETCURSOR handler wasn't called at all for determining the cursor to use for its children because they handled WM_SETCURSOR themselves in the global busy state, without letting DefWindowProc(), which propagates this message upwards the window hierarchy, to have it at all.

2014-05-05 00:11 VZ, revision 76443

Correct webview DLL name in x64 config of MSVS 2010 project files. The architecture suffix was missing. Closes #15820.

2014-05-03 18:44 PC, revision 76442

vswscanf is needed regardless of wxUSE_UNICODE

2014-05-03 18:31 PC, revision 76441

build fix for systems lacking vswscanf when wxUSE_UNICODE==0

2014-05-03 15:07 JS, revision 76440

Implemented keyboard selection and better cell navigation for tables

2014-05-02 16:19 VZ, revision 76439

Fix property sheets names in MSVS 2013 custom build project. It must be vc12, not vc11.

2014-05-02 16:19 VZ, revision 76438

Add dependency of wxregex on wx/setup.h in MSVS projects. Modified regex library code uses wx headers, so build _custom_build project creating wx/setup.h before it.

2014-05-02 16:19 VZ, revision 76437

Don't crash when dismissing expanded ribbon panel. The parent of wxRibbonPanel is not always a wxRibbonPage, it can also be the containing wxFrame itself if the panel is a temporarily expanded one created when the user clicks a panel reduced to a button. So don't rely on the cast of the parent to wxRibbonPage to always work. This is ugly but at least avoids a crash. Closes #16215.

2014-05-01 18:57 PC, revision 76436

send changed event when selecting a special directory from wxDirPickerCtrl combobox closes #16064

2014-04-30 19:08 PC, revision 76435

avoid referencing xml and html libs when they are not enabled

2014-04-30 16:11 VZ, revision 76434

Fix wxGetClientDisplayRect() when _NET_WORKAREA is not supported. Don't intersect the total rectangle with the uninitialized work area one resulting in an empty rectangle being returned from wxGetClientDisplayRect() if X11 server doesn't support _NET_WORKAREA (this is the case for at least Cygwin X11 server).

2014-04-30 16:10 VZ, revision 76433

Fix wxGetClientDisplayRect() when _NET_WORKAREA is not supported. Don't intersect the total rectangle with the uninitialized work area one resulting in an empty rectangle being returned from wxGetClientDisplayRect() if X11 server doesn't support _NET_WORKAREA (this is the case for at least Cygwin X11 server).

2014-04-30 09:01 SC, revision 76432

backport, supporting alpha channel from clipboard correctly, closes #16198

2014-04-30 08:59 SC, revision 76431

supporting alpha channel correctly from clipboard, closes #16198

2014-04-29 22:35 VZ, revision 76430

Use SetInitialSize() in the about wxHTML sample. SetSize() is useless here as it is simply ignored by the sizer which will fit the window to its initial size anyhow.

2014-04-29 20:34 SC, revision 76429

backport, fix multiline texts for drawing rotated text, see #16216

2014-04-29 20:22 SC, revision 76428

adding support for multi-line text in rotated text, fixes #16216

2014-04-29 16:20 SC, revision 76427

backport, fix memory leak, see #15666

2014-04-29 16:18 SC, revision 76426

fix memory leak for initial empty menubar, see #15666

2014-04-29 12:59 VZ, revision 76425

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.

2014-04-28 13:33 VZ, revision 76424

Fix problems due to using "%i" format with size_t in propgrid sample. Cast size_t value to int when passing it to "%i" format specifier as it has a different size on LP64 platforms. Closes #16213.

2014-04-28 13:32 VZ, revision 76423

Fix problems due to using "%i" format with size_t in propgrid sample. Cast size_t value to int when passing it to "%i" format specifier as it has a different size on LP64 platforms. Closes #16213.

2014-04-28 13:28 VZ, revision 76422

Make "Close" button affirmative ID in standard dialog button sizer. This allows to use the Escape key to close a dialog with the "Close" button only. Closes #16185.

2014-04-28 13:28 VZ, revision 76421

Make "Close" button affirmative ID in standard dialog button sizer. This allows to use the Escape key to close a dialog with the "Close" button only. Closes #16185.

2014-04-28 00:42 VZ, revision 76420

Fix precision in wxGraphicsContext::{Stroke,Draw}Lines() under MSW. Use floating point coordinates instead of ints which were used for some reason, resulting in a loss of precision. Closes #16187.

2014-04-28 00:41 VZ, revision 76419

Extract setup.h copying into a separate project for MSVC11+. This fixes problems with parallel builds in Visual Studio 2012 or 2013 IDE as multiple projects may try to copy setup.h file at once, resulting in errors. Use _custom_build project as a common dependency to ensure that the copy step is done only once. Closes #16177.

2014-04-28 00:41 VZ, revision 76418

Add wxThread::MSWGetHandle(). Under MSW a thread has both an ID, returned by wxThread::GetId(), and a handle, which couldn't be retrieved so far. Add an accessor to do it. Closes #16170.

2014-04-28 00:41 VZ, revision 76417

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.

2014-04-28 00:41 VZ, revision 76416

Allow dropping data outside of item area in wxDataViewCtrl. Implement this change for the generic and the native GTK versions and document it. Closes #16152.

2014-04-28 00:40 VZ, revision 76415

Bring wxMSW wxBitmap::SetBitmapXXX(wxBitmap()) in line with wxGTK. Remove or reset the corresponding bitmap if the provided one is invalid instead of asserting, this is what wxGTK does and this behaviour seems to be more useful. Also document this behaviour as it's now implemented in both wxMSW and wxGTK. Closes #13569.

2014-04-28 00:39 VZ, revision 76414

Micro optimization of checking for alpha transparency. Use faster accessors to the image size. Closes #16148.

2014-04-28 00:39 VZ, revision 76413

Make wxMSW wxTextCtrl::AdjustSpaceLimit() safe to call in all cases. Allow calling this function not only from inside DoWriteText(): first, because the existing code could be doing this (although this is only a concern in 3.0 branch as it was made private in the trunk) and second because it could actually happen if the text limit was exceeded by user typing in the control. See #15980.

2014-04-28 00:39 VZ, revision 76412

Don't call AdjustSpaceLimit() explicitly in wxMSW wxTextCtrl any more. There is no need to do it as this is done by DoWriteText() and AdjustSpaceLimit() doesn't work correctly if called from outside of it now. Because of this, also make it private to prevent other accidental calls to it. Closes #15980.

2014-04-28 00:39 VZ, revision 76411

Fix warning about using "deprecated" close() in MSVC build. Use wxClose(), which is the same as _close() for MSVC. Closes #16212.

2014-04-28 00:39 VZ, revision 76410

Suppress warnings about using _set_se_translator() for MSVC 12 too. We did it up to MSVC 11 but this still seems to work just fine without /EHa with MSVC 12 too, so relax the version check to allow it to pass.

2014-04-28 00:39 VZ, revision 76409

Get rid of deprecated warnings for ::GetVersionEx(). This does not solve the actual problem of this function not returning the correct value for Windows 8+ any more, but at least allows to compile the library without warnings with MSVC 12 and later.

2014-04-28 00:39 VZ, revision 76408

Don't duplicate wxGetOsVersion() in wxMSW wxGUIAppTraits. Just call wxGetOsVersion() instead of using the Windows ::GetVersionEx() function directly.

2014-04-28 00:39 VZ, revision 76407

Enable wxCSConv UTF-7 test under Windows. Even though it doesn't work with iconv under Unix, we can still enable this test under Windows.