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):

2014-04-28 00:39 VZ, revision 76406

Remove Windows version check from wxMBConv_win32. We don't support systems predating Windows 2000 SP4 any more, so there is no need to check for them. This also allows to get rid of the code checking for conversion correctness. Also remove the broken URLs from the comments, they didn't contain any particularly useful information anyhow.

2014-04-28 00:39 VZ, revision 76405

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:38 VZ, revision 76404

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:38 VZ, revision 76403

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:38 VZ, revision 76402

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:38 VZ, revision 76401

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:38 VZ, revision 76400

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-26 19:36 SC, revision 76399

adding wxFALLTHROUGH where until now we had comments, allows for code-analysis support

2014-04-26 19:11 PC, revision 76398

Delay GtkIMContext calls until widget is realized. This may avoid a locking bug seen on Ubuntu which causes a deadlock. See #16202

2014-04-25 23:03 SC, revision 76397

backport, get rid of performance warnings "For best performance, only use PostScript names when calling this API", see #15999

2014-04-25 16:35 SC, revision 76396

backport, get rid of performance warnings "For best performance, only use PostScript names when calling this API", see #15999

2014-04-25 15:02 SC, revision 76395

backport, add our own Apple Event handler for the quit app event, see #16200

2014-04-25 01:25 DS, revision 76394

Fixed wxFileDialog::MSWOnInitDone and wxFileDialog::MSWOnSelChange never being called. A condition was checking for the wrong CDN_XXX message range resulting in CDN_INITDONE and CDN_SELCHANGE no longer being processed. Broken since r75937 (branches/WX_3_0_BRANCH/) and r75941 (trunk/). See #16003.

2014-04-23 15:40 SC, revision 76393

in order to get rid of the warnings completely use the former font descriptor creation sequence and cache the result immediately, fixes #15999

2014-04-22 23:21 SC, revision 76392

add our own Apple Event handler for the quit app event, fixes #16200

2014-04-22 20:20 SC, revision 76391

The Human Interface Guidelines recommend using NSSmallSquareBezelStyle now

2014-04-22 18:27 JS, revision 76390

Added wxRichTextCtrl::DoLayoutBuffer so an application can perform custom tasks before or after layout.

2014-04-22 18:25 JS, revision 76389

Draw an unknown field using a fallback field type, so it's not invisible.

2014-04-22 18:24 JS, revision 76388

Don't Sync() if there is no buffer. This allows derived classes that handle the buffer differently (e.g. reuse the buffer).

2014-04-22 18:24 JS, revision 76387

Don't Sync() if there is no buffer. This allows derived classes that handle the buffer differently (e.g. reuse the buffer).

2014-04-22 18:23 JS, revision 76386

Don't Sync() if there is no buffer. This allows derived classes that handle the buffer differently (e.g. reuse the buffer).

2014-04-21 20:56 SC, revision 76385

removes zlib link statement from static builds, closes #16192

2014-04-21 20:52 SC, revision 76384

recreated project files, see #16192

2014-04-21 20:37 SC, revision 76383

adding built-in zlib sources, see #16192

2014-04-21 20:31 SC, revision 76382

adapting xcode build templates and config file to built-in zlib sources, see #16192

2014-04-20 14:45 VZ, revision 76380

Add wxGraphicsRenderer::GetName() and GetVersion() methods. Allow the code to determine which underlying technology is used for implementing wxGraphics API. This is needed by the unit tests to account for the known differences between platforms and may be useful in other cases. Closes #16154.

2014-04-20 14:44 VZ, revision 76379

Handle wxLANGUAGE_CAMBODIAN correctly in the generation script. Fix wxLANGUAGE_CAMBODIAN definition in autogenerated code, this was already done manually in r76368 but these changes would have been lost after the next generation, so update the script itself to generate them. Closes #16183.

2014-04-20 14:44 VZ, revision 76378

Fix the addition of Kabyle language. Data for this language was added manually in r75752, which meant that it was going to be lost after the next regeneration of the automatically generated files. Add it properly, by updating misc/language/langtabl.txt now.

2014-04-20 13:44 VZ, revision 76377

Italian translations update from bovirus.

2014-04-20 13:42 VZ, revision 76376

Aragonese translations update from Jorge Pérez Pérez.

2014-04-19 00:40 SN, revision 76368

Fixed wxLANGUAGE_USER_DEFINED, which is supposed to be the last element of the enum, but as such must still be given, before messing with the automatic internal counter of enum by defining synonyms. Fixes #16183.

2014-04-18 04:30 PC, revision 76367

fix building or running on GTK < 2.14 after r76365

2014-04-18 04:28 PC, revision 76366

remove wxOVERRIDE, forgot that it's trunk only

2014-04-17 19:36 PC, revision 76365

Add a separate GTK-specific wxDisplay implementation. This separates the GTK implementation from Unix/X11, except for the wxVideoMode stuff, and _NET_WORKAREA when GTK < 3.4. wxDisplay and wxClientDisplayRect() should now work as well as they can with Wayland.

2014-04-17 18:15 PC, revision 76364

allow using wxEventLoopGuarantor when wxUSE_GUI==1 fixes wxOSX-Cocoa build when wxUSE_CONSOLE_EVENTLOOP==0 closes #14980

2014-04-17 17:21 PC, revision 76363

use correct signature for callback

2014-04-17 08:22 PC, revision 76362

use a prefix match for interactive search having to type in the whole string to get a match is worthless

2014-04-17 08:09 PC, revision 76361

Avoid assertion failure when GtkTreeView interactive search is started. The treeview does an unselect_all causing a "changed" signal with no selection. The problem is easily triggered by pressing Ctrl-F (the "start-interactive-search" key binding)

2014-04-16 18:41 VS, revision 76359

Initialize wxFileDialog::m_filter{Panel,Choice} in ctor.

2014-04-16 18:41 VS, revision 76358

Initialize wxFileDialog::m_filter{Panel,Choice} in ctor.

2014-04-15 19:39 PC, revision 76354

remove extraneous semicolons

2014-04-15 19:23 PC, revision 76353

don't use Cairo functions when wxUSE_CAIRO==0

2014-04-15 18:16 PC, revision 76352

wxASSERT(false) --> wxFAIL

2014-04-15 18:16 PC, revision 76351

initialize members in ctor, avoid int-to-bool warnings

2014-04-15 18:16 PC, revision 76350

avoid unused variable warning with wxUSE_VALIDATORS==0

2014-04-15 18:07 PC, revision 76349

use gtk_window_set_opacity() in SetTransparent() when GTK >= 2.12

2014-04-15 17:46 PC, revision 76348

fix wxClientDisplayRect() when wxUSE_DISPLAY==0 GDK_WINDOWING_X11 was not getting defined, causing hard coded size to be used

2014-04-14 05:36 RD, revision 76343

Update how the docset is generated. Use a more human-friendly name, put the files in doxygen/out/docset instead of in html, etc.

2014-04-14 05:36 RD, revision 76342

Avoid possible infinite recursion

2014-04-14 05:36 RD, revision 76341

Add the CellHighlight getters too.

2014-04-14 05:36 RD, revision 76340

Add some missing wxGrid methods

2014-04-14 05:24 RD, revision 76332

Add the CellHighlight getters too.

2014-04-14 05:24 RD, revision 76331

Avoid possible infinite recursion

2014-04-14 05:24 RD, revision 76330

Add some missing wxGrid methods

2014-04-14 05:24 RD, revision 76329

Update how the docset is generated. Use a more human-friendly name, put the files in doxygen/out/docset instead of in html, etc.

2014-04-14 00:07 VZ, revision 76328

Use wxWS_EX_VALIDATE_RECURSIVELY in native Cocoa wxPreferencesEditor too. Transfer data recursively for consistency with the generic implementation and because this generally just makes more sense.

2014-04-14 00:07 VZ, revision 76327

Use wxWS_EX_VALIDATE_RECURSIVELY in native Cocoa wxPreferencesEditor too. Transfer data recursively for consistency with the generic implementation and because this generally just makes more sense.

2014-04-13 02:00 VZ, revision 76326

Disable TextCtrlTestCase::LongText() for non-MSW platforms. At least under GTK SetMaxLength(), tested by this test, can't be used with multiline text controls at all, so running it fails. Keep the test for MSW only where SetMaxLength() works with controls of all kinds.

2014-04-13 00:56 VZ, revision 76325

Add error handling to wxSound under wxOSX. Don't assume that we can open any file as a sound, check for the return value from AudioServicesCreateSystemSoundID().

2014-04-13 00:56 VZ, revision 76324

Don't use timer inside wxSound in wxOSX/Cocoa. The timer is only used by Carbon code, there is no need for it in Cocoa, so don't complicate things by starting it unnecessarily.

2014-04-13 00:56 VZ, revision 76323

Fix crash when playing invalid sounds under wxOSX. Sound ID 0 is not actually invalid, it is returned by AudioServicesCreateSystemSoundID() when it fails to open the file and currently we don't consider this to be an error. However, because we never called AudioServicesDisposeSystemSoundID() for this sound ID, we continued to receive the notifications from the callback registered by AudioServicesAddSystemSoundCompletion() for it even after the corresponding sound object was destroyed, resulting in crashes when playing it more than once. Fix this by keeping a separate flag indicating whether we're playing a sound and always disposing of the sound if we are, even if ID is 0.

2014-04-13 00:56 VZ, revision 76322

Call wxDataViewRenderer::Validate() under OS X too. Ensure that the custom renderers get a chance to validate (and maybe change) the value entered by user, as previously it was completely impossible with the native OS X implementation of wxDataViewCtrl.

2014-04-13 00:54 VZ, revision 76321

Fix crash when playing invalid sounds under wxOSX. Sound ID 0 is not actually invalid, it is returned by AudioServicesCreateSystemSoundID() when it fails to open the file and currently we don't consider this to be an error. However, because we never called AudioServicesDisposeSystemSoundID() for this sound ID, we continued to receive the notifications from the callback registered by AudioServicesAddSystemSoundCompletion() for it even after the corresponding sound object was destroyed, resulting in crashes when playing it more than once. Fix this by keeping a separate flag indicating whether we're playing a sound and always disposing of the sound if we are, even if ID is 0.

2014-04-13 00:54 VZ, revision 76320

Call wxDataViewRenderer::Validate() under OS X too. Ensure that the custom renderers get a chance to validate (and maybe change) the value entered by user, as previously it was completely impossible with the native OS X implementation of wxDataViewCtrl.

2014-04-13 00:54 VZ, revision 76319

Avoid selecting invalid tab when removing last page from wxOSX wxNotebook. Closes #15897 (backport of r75663 from trunk).

2014-04-12 17:42 PC, revision 76318

make validator pointer const

2014-04-12 02:11 VZ, revision 76317

Compilation fix for MinGW in GDI+ code. Don't use the XXXModeInvalid constants which are missing from MinGW headers for some reason.

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

Use the same wxWeakRef implementation for complete and incomplete classes. This fixes an ODR violation which could arise if wxWeakRef<T> was seen both when T was an incomplete (e.g. just forward-defined) class and when it was complete. As different implementations, with different binary layouts, were used in these two cases, this resulted in fatal run-time problems. Fix this by always using the slightly less efficient (because storing an extra pointer) but simpler and safe "dynamic" wxWeakRef implementation. Also get rid of checks for the ancient compilers such as VC6 and g++ < 3.3, they are not supported any longer. Closes #15884.

2014-04-11 19:49 VZ, revision 76315

Restore correct handling of wxDocument::OnCreate() error return value. The changes of r74515 didn't quite restore the old behaviour, the document was still not being cleaned up if its OnCreate() simply returned false and not threw an exception. Do add cleanup in this code branch too, just duplicating what we in case of exception (this duplication can't be easily avoided unfortunately). This backports changes of r75646 from trunk, see #15883.

2014-04-11 18:04 PC, revision 76314

build fix for wxUSE_VALIDATORS==0 when NULL is defined to be nullptr casting nullptr is not allowed

2014-04-11 17:53 PC, revision 76313

build fix for wxUSE_VALIDATORS==0

2014-04-11 13:48 VZ, revision 76312

Fixes to the previous Nepalese translation update.

2014-04-11 06:48 PC, revision 76311

build fix for wxUSE_TOGGLEBTN==0

2014-04-11 06:48 PC, revision 76310

build fix for wxUSE_DRAG_AND_DROP==0

2014-04-11 06:48 PC, revision 76309

build fix for wxUSE_THREADS==0

2014-04-10 17:57 PC, revision 76308

fix invisible multi-line wxTextCtrl selection when custom foreground/background color is used with GTK3 closes #16176

2014-04-09 06:41 PC, revision 76307

fix invisible wxTextCtrl selection when custom foreground/background color is used with GTK3 closes #16176

2014-04-08 23:38 VZ, revision 76306

Nepalese translations update from Him Prasad Gautam.

2014-04-08 23:38 VZ, revision 76305

Don't set wxINTERPOLATION_GOOD quality by default in wxGDIPlusContext. This is inconsistent with wxOSX and also doesn't play well with the existence of wxINTERPOLATION_DEFAULT which is different from wxINTERPOLATION_GOOD. See #14134.

2014-04-08 23:31 VZ, revision 76304

Document unexpected default wxGraphicsContext interpolation quality. In 3.0, keep wxINTERPOLATION_GOOD as the default value instead of wxINTERPOLATION_DEFAULT for compatibility, but at least mention this and warn about the changes in 3.1. See #14134.

2014-04-08 23:23 VZ, revision 76303

Fix mouse events after calling WarpPointer() under OS X. See #16169.

2014-04-08 11:14 SC, revision 76302

fixes #16169

2014-04-07 22:34 VZ, revision 76301

Remove "default" clause from enums in wxGDIPlusContext code. This will allow the compiler to give us a warning if more elements are added to the enum later but not added to the switch. Also add error checking to Graphics::SetSmoothingMode() call.

2014-04-07 22:34 VZ, revision 76300

Fix mismatch between GDI+ and wxGraphicsContext interpolation quality. Use wxGDIPlusContext own method instead of using GDI+ method directly when setting the interpolation mode in wxGDIPlusContext initialization code to ensure that m_interpolation field matches the real interpolation mode used.

2014-04-07 22:34 VZ, revision 76299

Initialize wxGraphicsContext::m_interpolation field. This member wwas never initialized, resulting in erratic behaviour of SetInterpolationQuality() which compared its parameter with m_interpolation.

2014-04-07 22:29 VZ, revision 76298

Fix mismatch between GDI+ and wxGraphicsContext interpolation quality. Use wxGDIPlusContext own method instead of using GDI+ method directly when setting the interpolation mode in wxGDIPlusContext initialization code to ensure that m_interpolation field matches the real interpolation mode used.

2014-04-07 22:29 VZ, revision 76297

Initialize wxGraphicsContext::m_interpolation field. This member wwas never initialized, resulting in erratic behaviour of SetInterpolationQuality() which compared its parameter with m_interpolation.

2014-04-07 19:16 PC, revision 76296

update comment for wxBG_STYLE_TRANSPARENT

2014-04-07 19:15 PC, revision 76295

fix transparent window example wxBG_STYLE_TRANSPARENT can only be set before window creation. closes #16161

2014-04-07 18:23 JS, revision 76294

Object position calculation correction

2014-04-06 21:33 PC, revision 76293

avoid warnings about double-to-float conversion

2014-04-06 21:30 PC, revision 76292

avoid warning about shadowed variable

2014-04-06 21:28 PC, revision 76291

cast to proper type to avoid warning

2014-04-06 21:27 PC, revision 76290

remove unused macro definition

2014-04-06 21:27 PC, revision 76289

avoid warning about unreachable code

2014-04-05 19:13 PC, revision 76288

avoid double-to-float conversion warnings in headers

2014-04-05 12:44 VZ, revision 76287

Don't use %i format specifier for size_t values. In 64 bit build, size_t can be 64 bits while %i expects a 32 bit value. Fix this by just avoiding the unnecessary use of size_t, the number of entries in the index is not going to be greater than 2^32. Closes #16163.

2014-04-05 12:44 VZ, revision 76286

Fix warning about %lu being used with an int in 32 bit wxOSX build. NSUInteger is unsigned long in 64 bit builds, but unsigned int in 32 bits, so case it to long explicitly to avoid warnings about using it with %lu format specifier.

2014-04-05 12:44 VZ, revision 76285

Don't use %i format specifier for size_t values. In 64 bit build, size_t can be 64 bits while %i expects a 32 bit value. Fix this by just avoiding the unnecessary use of size_t, the number of entries in the index is not going to be greater than 2^32. Closes #16163.

2014-04-05 12:44 VZ, revision 76284

Fix warning about %lu being used with an int in 32 bit wxOSX build. NSUInteger is unsigned long in 64 bit builds, but unsigned int in 32 bits, so case it to long explicitly to avoid warnings about using it with %lu format specifier.

2014-04-04 20:32 VZ, revision 76283

Remove unused variables from wxRichTextListStylePage code. This avoids warnings about them.

2014-04-04 18:55 PC, revision 76282

avoid preprocessor directives inside macro invocation

2014-04-04 18:46 PC, revision 76281

remove unused member functions

2014-04-04 18:44 PC, revision 76280

remove unused macro definitions and limit others to the configurations which use them

2014-04-04 18:00 PC, revision 76279

assertion messages don't need to be translated

2014-04-04 17:56 PC, revision 76278

remove redundant assertion messages, wxLogError has already been called

2014-04-04 17:28 VZ, revision 76277

Add more precise wxRibbonBar::ShowPanels() overload. The existing overload taking bool didn't allow to specify whether the panel should be just expanded or expanded and pinned, add a new one supporting this. Also fix a bug with not updating the ribbon state in the old method. Closes #16133.

2014-04-04 17:28 VZ, revision 76276

Turkish translation update from Hakki Dogusan.

2014-04-04 17:28 VZ, revision 76275

Document wxRibbonDisplayMode enum. See #16133.

2014-04-04 17:28 VZ, revision 76274

Document wxRibbonDisplayMode enum. See #16133.

2014-04-04 17:26 PC, revision 76273

fix typo in size 2530 --> 3530

2014-04-04 17:09 PC, revision 76272

fix some asserts that were clearly meant to be wxFAIL_MSG

2014-04-04 08:45 PC, revision 76271

fix more memory leaks

2014-04-04 08:41 PC, revision 76270

Improve conversion between wxPaperSize and GtkPaperSize Eliminates many "Gtk-WARNING **: Unknown paper size", and the occasional "GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed". And fixes approximately one zillion memory leaks.

2014-04-04 08:36 PC, revision 76269

fix missing semicolon typo

2014-04-04 08:05 PC, revision 76268

Improve conversion between wxPaperSize and GtkPaperSize by using a table to map the screwy Windows DMPAPER_* stuff, which wxWidgets stupidly uses. Eliminates many "Gtk-WARNING **: Unknown paper size", and the occasional "GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed". And fixes approximately one zillion memory leaks.

2014-04-03 15:54 JS, revision 76267

Removed unnecessary list renumbering

2014-04-03 15:53 JS, revision 76266

Removed unnecessary list renumbering

2014-04-03 15:53 JS, revision 76265

Removed unnecessary list renumbering

2014-04-03 03:40 RD, revision 76264

working version of the trac hooks

2014-04-03 03:28 RD, revision 76263

Yet another test commit. Closes #16155

2014-04-03 03:08 RD, revision 76262

Yet another test commit. Closes #16155

2014-04-03 01:59 RD, revision 76261

Another test commit. Closes #16155

2014-04-03 01:51 RD, revision 76260

Another test commit. Closes #16155

2014-04-03 01:35 RD, revision 76259

Another test commit. Closes #16155

2014-04-03 01:26 RD, revision 76258

Update svn hooks. Closes #16155

2014-04-03 00:39 VZ, revision 76257

Fix return value of wxRichMessageDialog with only an "OK" button. Apply the same workaround as was applied in r67771 to wxMessageDialog to wxRichMessageDialog and map IDCANCEL returned from it to IDOK if "Cancel" is the only button in the dialog -- as in this case it's really just a renamed (for convenience of allowing the user to use "Esc" to close it) "OK". Closes #16153.

2014-04-03 00:39 VZ, revision 76256

Show the result of closing rich message box in the sample. Improve showing the button which closed the message box by doing it inside the dialog used for testing it instead of popping up a separate message box just for this. And do the same thing for rich message boxes as for the normal ones. See #16153.

2014-04-03 00:39 VZ, revision 76255

Decrease the size of the message box test dialog in the sample. This dialog was getting too tall, especially in the rich message boxes case, so reduce its vertical size. Also centre it on screen to prevent it from being displayed partially off it because contents was added to the dialog after creating it.

2014-04-03 00:38 VZ, revision 76254

Fix return value of wxRichMessageDialog with only an "OK" button. Apply the same workaround as was applied in r67771 to wxMessageDialog to wxRichMessageDialog and map IDCANCEL returned from it to IDOK if "Cancel" is the only button in the dialog -- as in this case it's really just a renamed (for convenience of allowing the user to use "Esc" to close it) "OK". Closes #16153.

2014-04-02 00:49 VZ, revision 76253

Don't build the drawing test in GUI-less builds. This test requires GUI parts. Closes #16145.

2014-04-01 19:45 PC, revision 76252

Fix invalid use of g_object_get_property()

2014-04-01 14:46 VZ, revision 76251

Fix recently introduced assert when using owner drawn items in wxMSW. Relax the check added in r76202, the item might not be added to its parent menu yet even if the menu is not NULL. See #13878.

2014-04-01 11:02 JJ, revision 76250

Update OpenVMS compile support

2014-04-01 10:56 JJ, revision 76249

OpenVMS (Alpha only) uses != operator in std::find ->needs operator defenition

2014-03-31 21:42 SC, revision 76248

fixing missing wxON_BLOCK_EXIT_OBJ1 error on gtk build

2014-03-31 20:28 SC, revision 76247

extra semicolon

2014-03-31 20:28 SC, revision 76246

testing whether this helps getting the drawing testsuite to build

2014-03-31 18:46 JS, revision 76245

Use style sheet when copying to the clipboard if available

2014-03-31 18:11 JS, revision 76244

Use style sheet when copying to the clipboard if available

2014-03-31 18:11 JS, revision 76243

Use style sheet when copying to the clipboard if available

2014-03-31 17:47 SC, revision 76242

single wxFALLTHROUGH change to test different builds

2014-03-31 17:46 SC, revision 76241

fixing parameter type

2014-03-31 17:46 SC, revision 76240

fixing extra semicolon

2014-03-31 17:46 SC, revision 76239

getting rid of clang warning due to variable size array

2014-03-31 17:45 SC, revision 76238

silencing paranoid analyzer

2014-03-31 17:44 SC, revision 76237

fixing include style

2014-03-31 17:28 SC, revision 76236

adding wxFALLTHROUGH to indicate intended fall through in switch statements

2014-03-31 14:58 SC, revision 76235

adding log for nonprecomp builds, hopefully fixes test compiles on builbot

2014-03-31 14:34 SC, revision 76234

adding correct return type

2014-03-31 13:23 SC, revision 76233

make sure platform constants exist by using defs.h instead of setup.h

2014-03-31 09:55 SC, revision 76232

adding minimal ios support for webview

2014-03-31 09:28 SC, revision 76231

removing extra semicola

2014-03-31 09:08 SC, revision 76230

removing extra semicola

2014-03-31 08:15 SC, revision 76229

removing unnecessary header

2014-03-31 08:02 SC, revision 76228

fixing extra semicola

2014-03-31 04:16 PC, revision 76227

use wxDialog::ShowModal() rather than gtk_dialog_run() so all the things wxDialog::ShowModal() does are not bypassed

2014-03-30 21:23 PC, revision 76226

Prevent dialog widget from being destroyed during ShowModal()

2014-03-30 19:17 VZ, revision 76225

Vietnamese translations update from Trần Ngọc Quân.

2014-03-30 13:47 SC, revision 76224

removing superfluous semicolon

2014-03-30 13:46 SC, revision 76223

adding empty base class implementation for OnNextIteration, call from OSXDoRun, allowing console event loop to override

2014-03-30 09:07 PC, revision 76222

use "new" wx-prefixed macros in samples

2014-03-30 03:52 PC, revision 76221

adjust size hints when decor size changes, to prevent changing a set client size during initial show closes #15794

2014-03-30 01:02 PC, revision 76220

use wxOVERRIDE

2014-03-29 17:53 VZ, revision 76219

Avoid overflows when calculating metafile coordinates in wxMSW. Use MulDiv() instead of naive multiplication followed by division as this could overflow, and did when large paper sizes were used in print preview. Closes #16138.

2014-03-29 17:53 VZ, revision 76218

Another PrepareForItem()-related fix in generic wxDataViewCtrl. This fix is similar to the previous commit but more speculative, as we currently don't have a bug scenario for it. Still, it seems to be wrong to call PrepareForItem() just before GetLineStart() which undoes its effect, so exchange the order of the calls. See #16132.

2014-03-29 17:53 VZ, revision 76217

Fix clicking on activatable toggle column in generic wxDataViewCtrl. Call PrepareForItem() after calling GetLineStart() as the latter calls PrepareForItem() for other items internally, undoing the effects of the first call. Closes #16132.

2014-03-29 17:53 VZ, revision 76216

Fix use of expander in non left most position in wxDataViewCtrl. Correct the expander rectangle definition to work when the expander column left boundary is not 0, i.e. if the expander column is not the left most one. Closes #16131.

2014-03-29 17:53 VZ, revision 76215

Simplify wxMSW wxToolBar controls support implementation. Rely on being able to set the separator size, which is supported since comctl32.dll v4.71 (the version distributed with IE 4.0...). This allows to remove big chunks of code dealing with multiple separators and simplifies the rest. Closes #16129.

2014-03-29 17:53 VZ, revision 76214

Avoid overflows when calculating metafile coordinates in wxMSW. Use MulDiv() instead of naive multiplication followed by division as this could overflow, and did when large paper sizes were used in print preview. Closes #16138.

2014-03-29 17:52 VZ, revision 76213

Another PrepareForItem()-related fix in generic wxDataViewCtrl. This fix is similar to the previous commit but more speculative, as we currently don't have a bug scenario for it. Still, it seems to be wrong to call PrepareForItem() just before GetLineStart() which undoes its effect, so exchange the order of the calls. See #16132.

2014-03-29 17:52 VZ, revision 76212

Fix clicking on activatable toggle column in generic wxDataViewCtrl. Call PrepareForItem() after calling GetLineStart() as the latter calls PrepareForItem() for other items internally, undoing the effects of the first call. Closes #16132.

2014-03-29 17:52 VZ, revision 76211

Fix use of expander in non left most position in wxDataViewCtrl. Correct the expander rectangle definition to work when the expander column left boundary is not 0, i.e. if the expander column is not the left most one. Closes #16131.

2014-03-29 14:06 VS, revision 76210

Don't emit wxEVT_TEXT in wxMSW's wxTextCtrl::SetFont(). Native text control sends EN_CHANGE when the font changes, producing a wxEVT_TEXT event as if the user changed the value. This is not the case, so supress the event.

2014-03-29 14:04 VS, revision 76209

Revert "Don't emit wxEVT_TEXT in wxMSW's wxTextCtrl::SetFont()." This reverts accidentally committed r76207.

2014-03-29 14:03 VS, revision 76208

OS X: fix wxFileDialog::SetupExtraControls()'s sandbox test. OS X 10.9 (possibly earlier) don't have nil contentView in NSSavePanel anymore, a NSRemoteView instance is used. The wx code that follows this test still crashes under sandbox, though, so update the check to use the APP_SANDBOX_CONTAINER_ID environment variable, which is only set when running under the sandbox. This is just another quick fix for the existing uncomfortably long-lived sandbox crash hotfix, not a proper solution.

2014-03-29 14:03 VS, revision 76207

Don't emit wxEVT_TEXT in wxMSW's wxTextCtrl::SetFont(). Native text control sends EN_CHANGE when the font changes, producing a wxEVT_TEXT event as if the user changed the value. This is not the case, so supress the event.

2014-03-29 14:02 VS, revision 76206

OS X: fix wxFileDialog::SetupExtraControls()'s sandbox test. OS X 10.9 (possibly earlier) don't have nil contentView in NSSavePanel anymore, a NSRemoteView instance is used. The wx code that follows this test still crashes under sandbox, though, so update the check to use the APP_SANDBOX_CONTAINER_ID environment variable, which is only set when running under the sandbox. This is just another quick fix for the existing uncomfortably long-lived sandbox crash hotfix, not a proper solution.

2014-03-27 23:10 VZ, revision 76205

Make "NOT the index" in wxListCtrl::SortItems() stand out even more. Any reasonable person expects the sort callback to receive the indices of the items, but it doesn't: it's passed the client data associated with them instead. Make it even more noticeable in the documentation.

2014-03-27 13:46 JS, revision 76204

Allow derivation from wxRichTextBufferDataObject

2014-03-27 13:05 VZ, revision 76203

Russian translations update from Pavel Maryanov.

2014-03-27 01:02 VZ, revision 76202

Make wxMSW owner drawn menu item code more clear and correct. The user-visible effect of this change is that removing the item from the menu and adding it back doesn't lose its icon any more. At the code level, wxMenuItem::SetBitmaps() and related methods are implemented outside of "#if wxUSE_OWNER_DRAWN" which allows to use them even in minimalistic library builds. And IsOwnerDrawn() is not used any more to determine whether the item has bitmaps, just only if it's really owner drawn, making the code more clear and fixing at least the bug above and possible more. Closes #13878.

2014-03-27 01:02 VZ, revision 76201

Rename wxMenuItem::MustUseOwnerDrawn() to MSWMustUseOwnerDrawn(). No real changes, just make it clear that this method is MSW-specific and is about using owner drawn items at MSW level and not wx one. See #13878.

2014-03-27 01:02 VZ, revision 76200

Close monitoring thread handles as soon as possible in wxMSW. Don't leave the handles of all threads used for monitoring the child processes open until the main process termination, rather close them as soon as the monitored process terminates. This ensures that we don't accumulate potentially unbounded number of open handles if we keep launching new child processes. An even better idea would be to actually use a single thread for monitoring all of them, but this fix is much simpler and should fix the most acute problem for now. Closes #16123.

2014-03-27 00:41 VZ, revision 76199

Close monitoring thread handles as soon as possible in wxMSW. Don't leave the handles of all threads used for monitoring the child processes open until the main process termination, rather close them as soon as the monitored process terminates. This ensures that we don't accumulate potentially unbounded number of open handles if we keep launching new child processes. An even better idea would be to actually use a single thread for monitoring all of them, but this fix is much simpler and should fix the most acute problem for now. Closes #16123.

2014-03-26 14:40 VZ, revision 76198

Dutch translations update from Thomas De Rocker.

2014-03-24 19:46 VZ, revision 76197

Add missing wxUSE_WXDIB checks. Fix compilation with wxUSE_WXDIB==0. Closes #16113.

2014-03-24 19:46 VZ, revision 76196

Don't change bitmap depth in wxMSW when copying it. Sometimes, creating a DDB may fail to create the bitmap of the requested depth and so a copy of wxBitmap could have a different depth than the original wxBitmap. Avoid this problem by falling back on using DIB if DDB with the right depth couldn't be created. Closes #11640.

2014-03-24 14:19 VZ, revision 76195

Add "View text" menu item to the webview sample. Allow to view just the text of the web page. Closes #16098.

2014-03-24 14:17 VZ, revision 76194

Fix reentrancy issues in wxMSW wxTextCtrl max length handling code. The changes of r75936 didn't work correctly if the handler of wxEVT_TEXT in some text control modified a (potentially) different text control, as the same global variable was reused with disastrous results. Avoid this by keeping a stack of insertion lengths instead. Additionally, fix another problem in r75936 which used 0 as a special marker for the insertion length, which result in redoing each insertion of empty string (which is another word for Remove()) twice unnecessarily, by using -1 instead. Closes #15980.

2014-03-24 14:06 VZ, revision 76193

Fix reentrancy issues in wxMSW wxTextCtrl max length handling code. The changes of r75940 didn't work correctly if the handler of wxEVT_TEXT in some text control modified a (potentially) different text control, as the same global variable was reused with disastrous results. Avoid this by keeping a stack of insertion lengths instead. Using a per-control field would work too, but would be a bit wasteful as the size of the stack will rarely be more than 1 (and never much more) and this change can also be applied to 3.0 branch without breaking ABI. Additionally, fix another problem in r75940 which used 0 as a special marker for the insertion length, which result in redoing each insertion of empty string (which is another word for Remove()) twice unnecessarily, by using -1 instead. Closes #15980.

2014-03-23 18:54 VZ, revision 76192

Add files included by richtext library to MSVC1{1,2} projects. Closes #16104.

2014-03-23 16:18 VZ, revision 76191

Fix setting menu item bitmaps after appending them in wxMSW. Update the bitmap used by Windows when using non-owner-drawn items with bitmaps. Closes #9388.

2014-03-23 16:18 VZ, revision 76190

Refactor wxMSW: move some code from wxMenu to wxMenuItem. This will allow reusing it for other wxMenuItem bitmap-related operations. See #9388.

2014-03-23 01:57 VZ, revision 76189

Fix toolbar repainting after deleting a tool in wxMSW. The toolbar was in an inconsistent state when recalculating the sizes of the separators used as placeholders for the controls and stretch spacers as the tool was already deleted from the native toolbar but still present in wx internal toolbar data and this resulted in discrepancies between the indices in the native and wx toolbars. Fix this by specially marking the already deleted but not yet removed tool and ignoring it during the recalculations. This makes the old, and only partially successful, attempt to work around this bug in DoDeleteTool() unnecessary and so the code is actually simplified by this change. Closes #16095.

2014-03-23 01:57 VZ, revision 76188

Document what wxPrintQuality really is. Mention that it can be either a predefined constant or a number expressing the resolution. See #14085.

2014-03-23 01:57 VZ, revision 76187

Fix wxFileSystemWatcher::RemoveAll() to actually work. We need to call DoRemove() on all watcher objects to really remove them, just removing our record of them was not enough and e.g. resulted in errors if we tried to re-add a previously watched path again. Closes #15531.

2014-03-23 01:57 VZ, revision 76186

Fix handling deletion of watched directory in MSW wxFileSystemWatcher. Don't log an incomprehensible error when the watched directory itself is deleted, but generate wxFSW_EVENT_DELETE for it. This is consistent with the behaviour under Unix and generally more useful. Closes #13294.

2014-03-23 01:57 VZ, revision 76185

Small refactoring in wxFileSystemWatcher MSW implementation. Make wxIOCPService::GetStatus() smarter about its return value, it makes sense to encapsulate the convention used to indicate the thread exit condition inside wxIOCPService class itself instead of sharing it between it wxIOCPThread itself. It will also make it easier to detect more detailed error conditions in this code.

2014-03-23 01:56 VZ, revision 76184

Disable the use of "override" keyword for MSVC < 11. While the keyword is indeed supported since MSVC 8, it's only since MSVC 11 that using it doesn't generate C4481 compiler warning ("nonstandard extension used"), so avoid using it with the earlier versions. See #16100.

2014-03-23 01:51 VZ, revision 76183

Fix toolbar repainting after deleting a tool in wxMSW. The toolbar was in an inconsistent state when recalculating the sizes of the separators used as placeholders for the controls and stretch spacers as the tool was already deleted from the native toolbar but still present in wx internal toolbar data and this resulted in discrepancies between the indices in the native and wx toolbars. Fix this by specially marking the already deleted but not yet removed tool and ignoring it during the recalculations. This makes the old, and only partially successful, attempt to work around this bug in DoDeleteTool() unnecessary and so the code is actually simplified by this change. Closes #16095.

2014-03-23 01:10 VZ, revision 76182

Fix wxFileSystemWatcher::RemoveAll() to actually work. We need to call DoRemove() on all watcher objects to really remove them, just removing our record of them was not enough and e.g. resulted in errors if we tried to re-add a previously watched path again. Closes #15531.

2014-03-23 01:10 VZ, revision 76181

Fix handling deletion of watched directory in MSW wxFileSystemWatcher. Don't log an incomprehensible error when the watched directory itself is deleted, but generate wxFSW_EVENT_DELETE for it. This is consistent with the behaviour under Unix and generally more useful. Closes #13294.

2014-03-23 01:10 VZ, revision 76180

Small refactoring in wxFileSystemWatcher MSW implementation. Make wxIOCPService::GetStatus() smarter about its return value, it makes sense to encapsulate the convention used to indicate the thread exit condition inside wxIOCPService class itself instead of sharing it between it wxIOCPThread itself. It will also make it easier to detect more detailed error conditions in this code.

2014-03-22 23:03 VZ, revision 76179

Handle normalization of directory names correctly in wxFileHistory. Don't use relative path for the directories, which can also be managed by wxFileHistory, because they don't have any and the old code resulted in showing an empty string for them.

2014-03-20 20:52 VZ, revision 76177

Put a __cplusplus guard around C++-specific tests in wx/defs.h. This avoids the warning about __cplusplus being undefined in the recently added wxOVERRIDE logic and make the existing wx_xxx_cast<>s definitions simpler.

2014-03-20 20:45 VZ, revision 76176

Mark some deprecated wxGrid methods as deprecated in the documentation. Point people to the new names of the deprecated methods. Closes #16103.

2014-03-20 20:45 VZ, revision 76175

Use Doxygen @deprecated tags for deprecated methods. Instead of just mentioning that the methods are deprecated in the documentation text, use the @deprecated tag for them to make it possible to detect it in documentation-processing tools too. Closes #16102.

2014-03-20 16:49 VZ, revision 76174

Remove configure test for override keyword. Detect its support in the code by testing __cplusplus value and using specific checks for MSVC and Clang as configure detects it as being available when using recent g++ versions in non-C++11 mode, which do support this keyword but warn when it is used without -std={gnu,c}++11 option, which makes actually using it a bad idea in this case.

2014-03-20 14:26 VZ, revision 76173

Add wxOVERRIDE and use it in common and wxOSX code. Make overriding virtual methods more explicit and enable additional checks provided by C++11 compilers when "override" is used. Closes #16100.

2014-03-20 14:26 VZ, revision 76172

Compilation fix in wchar_t build after r76171. Don't concatenate narrow wxLongLongFmtSpec with wide strings, just don't use wxT() at all. Closes #14685.

2014-03-19 23:57 VZ, revision 76171

Add wxInt64 support to wxText{Input,Output}Stream. Add explicit Read64[S]() and Write64() methods. Closes #14685.

2014-03-19 19:06 VZ, revision 76170

Use "virtual" keyword with overridden methods. No real changes, just make the code more clear by explicitly using "virtual". Closes #16097.

2014-03-19 19:01 VZ, revision 76169

Remove more unnecessary headers from drawing test. Don't include GUI headers in non-GUI code.

2014-03-19 18:59 VZ, revision 76168

Fix WX_ASSERT_SAME_AS_FILE() definition in the new drawing test. This macro should use AreFilesContentsEqual(), not AreImagesFilesContentsEqual(), used by WX_ASSERT_SAME_AS_IMAGE_FILE().

2014-03-18 21:12 VZ, revision 76166

Don't include apparently unnecessary headers in drawing test. wx/window.h shouldn't be needed in this non-GUI test.

2014-03-18 21:10 VZ, revision 76165

Remove redundant forward declaration of wxCursor from wx/window.h. We include wx/cursor.h from wx/window.h anyhow (and can't avoid it as we have a member of wxCursor type in wxWindowBase).

2014-03-18 20:31 VZ, revision 76164

Add a new test checking wxGraphicsContext implementation correctness. This test verifies that the output of wxGraphicsContext on the current system matches the pregenerated reference output.

2014-03-18 20:28 VZ, revision 76163

Include the individual headers that we really need instead.

2014-03-18 20:28 VZ, revision 76162

Don't include wx/dc.h from wx/graphics.h. This is not necessary and prevents compilation of this header in wxUSE_GUI=0 case.

2014-03-18 20:28 VZ, revision 76161

Don't include wx/cursor.h from wx/dc.h. This is simply not needed.

2014-03-18 18:23 VZ, revision 76160

Add font colour support to wxFontPickerCtrl. Currently this is only really implemented under Windows, just as the colour support in wxFontDialog, but make the API available under all platforms for consistency. Closes #11614.

2014-03-18 18:23 VZ, revision 76159

Use helper GetPickerWidget() function in wxFontPickerCtrl. No real changes, just use a helper function instead of an ugly M_PICKER macro. See #11614.

2014-03-18 18:08 VZ, revision 76158

Use "MultiProcessorCompilation" instead of explicit /MP in MSVS projects. Use the user-visible option instead of the command line option which is now hidden in the IDE. Closes #16093.

2014-03-18 18:07 VZ, revision 76157

Use "MultiProcessorCompilation" instead of explicit /MP in MSVS projects. Use the user-visible option instead of the command line option which is now hidden in the IDE. Closes #16093.

2014-03-18 15:21 VZ, revision 76156

Add margin to the right of the message in wxGenericProgressDialog. For some reason the border was used only on the left side but not on the right one, resulting in the ugly looking label flush to the right dialog border if it was long enough. Closes #16094.

2014-03-18 15:20 VZ, revision 76155

Add margin to the right of the message in wxGenericProgressDialog. For some reason the border was used only on the left side but not on the right one, resulting in the ugly looking label flush to the right dialog border if it was long enough. Closes #16094.

2014-03-18 10:14 JS, revision 76154

Improved calculation of spanning column widths.

2014-03-16 17:39 PC, revision 76153

update for GTK3

2014-03-16 14:05 VZ, revision 76152

Disable the use of new style wxDirDialog under Vista. IFileDialog-based dialog has a bug making it return a wrong path sometimes under Vista, disable its use there to avoid it. Closes #16005.

2014-03-16 14:05 VZ, revision 76151

Disable the use of new style wxDirDialog under Vista. IFileDialog-based dialog has a bug making it return a wrong path sometimes under Vista, disable its use there to avoid it. Closes #16005.

2014-03-15 20:34 PC, revision 76150

build fixes for wxUniversal

2014-03-15 19:44 PC, revision 76149

for GTK+ 3.6 and later, invalidate cached best size when GTK's style cache is updated, see #16088

2014-03-14 20:22 VZ, revision 76148

Fix showing of 32bpp bitmaps without alpha in wxMSW wxStaticBitmap. The native control doesn't make a secret copy of the image in this case (0RGB bitmap, i.e. 32bpp ARGB bitmap with all alpha values set to 0) and just shows the bitmap we assigned to it directly, so we must not delete it in this case, otherwise nothing is shown at all. Closes #16084.

2014-03-14 20:22 VZ, revision 76147

Also free internal handlers when wxMSW wxStaticBitmap is destroyed. r76142 fixed the resource leak when wxStaticBitmap image was replaced by another one but the leak still happened at the end, when the wxStaticBitmap was destroyed. Fix it there as well in the same way. Closes #16068.

2014-03-14 20:22 VZ, revision 76146

Fix recently introduced compilation error in wxUSE_PALETTE==0 build. Add missing "#if wxUSE_PALETTE" tests. Closes #16083.

2014-03-14 20:21 VZ, revision 76145

Also free internal handlers when wxMSW wxStaticBitmap is destroyed. r76141 fixed the resource leak when wxStaticBitmap image was replaced by another one but the leak still happened at the end, when the wxStaticBitmap was destroyed. Fix it there as well in the same way. Closes #16068.

2014-03-14 02:36 VZ, revision 76144

Add support for loading old V1 bitmap files to wxBMPHandler. Such files are apparently still seen in the wild, even though this format has been superseded since Windows 3.0 (!). Closes #3433.

2014-03-13 18:09 SC, revision 76143

adding 10.5 compatibility again

2014-03-13 17:20 VZ, revision 76142

Fix resource leak in wxMSW wxStaticBitmap when using RGBA icons. Release the old handle if it wasn't freed by STM_SETIMAGE itself. Closes #16068.

2014-03-13 17:19 VZ, revision 76141

Fix resource leak in wxMSW wxStaticBitmap when using RGBA icons. Release the old handle if it wasn't freed by STM_SETIMAGE itself. Closes #16068.

2014-03-13 17:17 VZ, revision 76140

Avoid unused variable warning in wxUSE_VALIDATORS==0 build. Closes #16076.

2014-03-13 17:15 VZ, revision 76139

Install wx/preferences.h and wx/testing.h in "make install". These headers were accidentally forgotten in files.bkl, add them there and rebake.

2014-03-13 17:12 VZ, revision 76138

Install wx/preferences.h and wx/testing.h in "make install". These headers were accidentally forgotten in files.bkl, add them there and rebake.

2014-03-13 14:03 VZ, revision 76137

Compilation fix to wxScopedArray use. The ctor taking the number of elements doesn't exist in 3.0, don't use it to fix compilation after the changes of r76124.

2014-03-13 00:04 VZ, revision 76136

Use wxScopedXXX<> instead of explicit memory management in wxBMPHandler. Make the code simpler and ensure there are no memory leaks in it.

2014-03-13 00:04 VZ, revision 76135

No changes, just use properly const variable in wxBMPHandler code. Initialize "data" pointer consistently with "alpha".

2014-03-13 00:04 VZ, revision 76134

Add support for saving 32bpp icons too. Save in 32bpp format if alpha channel is present in the image being saved in ICO format. See #15918.

2014-03-13 00:04 VZ, revision 76133

Allow saving 24 bpp ICO file in wxImage. Create ICO files with 24bpp if the image being saved contains more than 256 colours. Also use smaller values (4 bpp or monochrome) if the image uses fewer colours. See #15918.

2014-03-13 00:04 VZ, revision 76132

Add support for saving 256*256 ICOs in PNG format. Allow saving icons larger than 127*127 pixels (up to 256*256 which is the maximal size supported by the ICO format) and save large icons with the item data in PNG format, as it is normally done for these sizes. See #15918.

2014-03-13 00:04 VZ, revision 76131

Add support for loading icons in PNG format to wxImage. ICO files can contain data in PNG, as well as BMP, format in recent (i.e. from this millennium) versions of Windows, so check for this case in wxICOHandler and load such data using wxPNGHandler. See #15918.

2014-03-13 00:04 VZ, revision 76130

Handle verbosity correctly in wxICOHandler loading code. Pass on the "verbose" argument to LoadDib() function instead of always being verbose in it. Also remove the unused IsBmp variable. See #15918.

2014-03-13 00:04 VZ, revision 76129

Allow loading icons of width 256 from ICO files. Account for the tweak of ICO file format which uses 0 if the width is 256. See #15918.

2014-03-13 00:03 VZ, revision 76128

Fix possible memory leak in wxICOHandler loading code. Use wxScopedArray<> instead of a raw pointer to ensure that the memory is always freed, even in case of error return. See #15918.

2014-03-12 23:54 VZ, revision 76127

Add support for loading icons in PNG format to wxImage. ICO files can contain data in PNG, as well as BMP, format in recent (i.e. from this millennium) versions of Windows, so check for this case in wxICOHandler and load such data using wxPNGHandler. See #15918.

2014-03-12 23:54 VZ, revision 76126

Handle verbosity correctly in wxICOHandler loading code. Pass on the "verbose" argument to LoadDib() function instead of always being verbose in it. Also remove the unused IsBmp variable. See #15918.

2014-03-12 23:54 VZ, revision 76125

Allow loading icons of width 256 from ICO files. Account for the tweak of ICO file format which uses 0 if the width is 256. See #15918.

2014-03-12 23:54 VZ, revision 76124

Fix possible memory leak in wxICOHandler loading code. Use wxScopedArray<> instead of a raw pointer to ensure that the memory is always freed, even in case of error return. See #15918.

2014-03-12 23:20 VZ, revision 76123

Reset the system last error value before checking it in wxLog test. Explicitly set the last error indicator to 0 before checking that wxLogSysError() logs it correctly as it wasn't always set to 0 otherwise.

2014-03-12 17:02 VZ, revision 76122

Update the version string in manually managed VC11 project files. Use "31", not "30".

2014-03-12 14:23 VZ, revision 76121

Upgrade included Scintilla to version 3.3.9. Closes #15742.

2014-03-11 21:48 VZ, revision 76120

Add wxFont::GetBaseFont(). This can be used to "undo" the result of Bold() ,Underlined() or Italic() methods and returns an unadorned version of the font. Closes #11815.

2014-03-11 21:48 VZ, revision 76119

Remove unnecessarily overridden methods from wxToggleButtonBase. These methods already do exactly the same thing in the base wxAnyButton class, there is no need to override them again.

2014-03-11 21:48 VZ, revision 76118

No changes, just fix typos in my own name ("Zeitlin").

2014-03-11 17:04 VZ, revision 76117

Add wxEnhMetaFile::Detach(). Allow getting the handle from this class, this is useful if it needs to be passed to some other library, for example. Closes #15706.

2014-03-11 17:04 VZ, revision 76116

Correct wxThread::SetPriority() under Unix to hopefully work. The old implementation was completely broken, the new should hopefully work if pthread_setschedparam() behaviour really corresponds to its documentation. Mapping of our priorities in 0..100 range to pthread 1..99 range remains ugly but this seems to be unavoidable, unfortunately. Closes #14985.

2014-03-11 17:04 VZ, revision 76115

Fix accelerators in appended submenu items in wxGTK. They were not previously taken into account because we didn't call gtk_widget_add_accelerator() on the right GtkAccelGroup. Closes #16050.

2014-03-11 17:04 VZ, revision 76114

Add wxDynamicLibrary::GetModuleFromAddress(). Use dladdr() under Unix, if available, to provide the same functionality as we get from GetModuleHandleEx() under MSW and export it in a new public function. Closes #15248.

2014-03-11 16:20 VZ, revision 76113

Fix accelerators in appended submenu items in wxGTK. They were not previously taken into account because we didn't call gtk_widget_add_accelerator() on the right GtkAccelGroup. Closes #16050.

2014-03-10 20:05 VZ, revision 76111

Do run TextStreamTestCase::TestULongLong() test case. We ran TestLongLong test case twice because of an accidental typo.

2014-03-10 12:08 JS, revision 76110

Added on-demand image loading option to wxRTC.

2014-03-09 21:58 VZ, revision 76109

Fix size calculation for multi-column vertical toolbars in wxMSW. The width was calculated incorrectly in this case as we simply multiplied the width of the widest column by their number in this case, but actually each of them has its own width which needs to be calculated separately. See #13579.

2014-03-09 21:58 VZ, revision 76108

Fix background painting of multi-row toolbars in wxMSW. The item rectangle used wrong vertical coordinates which didn't matter (much?) for the single row toolbars but was completely wrong for toolbars with more than one row. Don't always anchor the rectangle at the window top to avoid this. See #13579.

2014-03-09 21:58 VZ, revision 76107

Disable stretchable spaces in multi-row toolbars in wxMSW. Stretchable separators simply don't work correctly when the space they are supposed to stretch onto is distributed across several different toolbar rows or columns, so just disable them for multi-row (or column, for vertical toolbars) case. See #13579.

2014-03-09 21:56 VZ, revision 76106

Fix size calculation for multi-column vertical toolbars in wxMSW. The width was calculated incorrectly in this case as we simply multiplied the width of the widest column by their number in this case, but actually each of them has its own width which needs to be calculated separately. See #13579.

2014-03-09 21:55 VZ, revision 76105

Fix background painting of multi-row toolbars in wxMSW. The item rectangle used wrong vertical coordinates which didn't matter (much?) for the single row toolbars but was completely wrong for toolbars with more than one row. Don't always anchor the rectangle at the window top to avoid this. See #13579.

2014-03-09 21:55 VZ, revision 76104

Disable stretchable spaces in multi-row toolbars in wxMSW. Stretchable separators simply don't work correctly when the space they are supposed to stretch onto is distributed across several different toolbar rows or columns, so just disable them for multi-row (or column, for vertical toolbars) case. See #13579.

2014-03-09 17:54 TIK, revision 76103

Don't assert if no keyboard has been found in wxGetKeyState(). Sometimes there really is no keyboard plugged in.

2014-03-09 17:51 TIK, revision 76102

wxBitmap::GetMask() asserts on invalid bitmap. Check for valid bitmap before calling GetMask().

2014-03-09 15:05 VZ, revision 76101

Make Move{Before,After}InTabOrder() work at any time in wxGTK. These functions only worked if called at the beginning, before showing the parent window containing the children whose TAB order was being adjusted, because it didn't refresh the GTK+ TAB order on the correct window: we need to do it for the parent of the window being moved, not this window itself. Closes #16032.

2014-03-09 15:03 VZ, revision 76100

Make Move{Before,After}InTabOrder() work at any time in wxGTK. These functions only worked if called at the beginning, before showing the parent window containing the children whose TAB order was being adjusted, because it didn't refresh the GTK+ TAB order on the correct window: we need to do it for the parent of the window being moved, not this window itself. Closes #16032.

2014-03-08 15:34 VZ, revision 76099

Fix handling of controls in vertical toolbars in wxMSW. Not adding the controls to vertical toolbar is not enough, we also need to hide them to prevent them from being shown as independent floating windows. And we also need to add separators instead of the controls themselves to keep the indices the same as in the horizontal case. Closes #11821.

2014-03-08 15:33 VZ, revision 76098

Fix handling of controls in vertical toolbars in wxMSW. Not adding the controls to vertical toolbar is not enough, we also need to hide them to prevent them from being shown as independent floating windows. And we also need to add separators instead of the controls themselves to keep the indices the same as in the horizontal case. Closes #11821.

2014-03-08 14:39 VZ, revision 76097

Fix handling of Esc while an auto-complete drop down is open in wxMSW. Just close the drop down instead of closing the dialog the text control using this auto-complete drop down is in, as this was completely unexpected and counter-intuitive. Closes #13945.

2014-03-08 14:39 VZ, revision 76096

Fix handling of Esc while an auto-complete drop down is open in wxMSW. Just close the drop down instead of closing the dialog the text control using this auto-complete drop down is in, as this was completely unexpected and counter-intuitive. Closes #13945.

2014-03-07 19:43 PC, revision 76095

fix memory leak in SetFont with GTK3

2014-03-07 14:17 VZ, revision 76094

Skip mouse button release events in wxGenericTreeCtrl. Not doing this prevented the default handling from taking place resulting in internal confusion in GtkNotebook when wxTreeCtrl was placed inside it: the code there set the button being held by user in its mouse press event handler and reset it in its mouse release event handler which was never called because we didn't skip the event, resulting in ignoring the next mouse press in the notebook. Closes #16055.

2014-03-07 14:16 VZ, revision 76093

Skip mouse button release events in wxGenericTreeCtrl. Not doing this prevented the default handling from taking place resulting in internal confusion in GtkNotebook when wxTreeCtrl was placed inside it: the code there set the button being held by user in its mouse press event handler and reset it in its mouse release event handler which was never called because we didn't skip the event, resulting in ignoring the next mouse press in the notebook. Closes #16055.

2014-03-07 02:19 VZ, revision 76092

Make stretchable spacers work in vertical toolbars too in wxMSW. Replace the old implementation of stretchable spacers based on changing the size of the separators used as spacers as the toolbar size itself changed with a new one, simply replacing the old separator with the new one of the correct size, as it also works for the vertical toolbars, unlike the old approach. Closes #13673.

2014-03-07 02:19 VZ, revision 76091

Document Insert() and Prepend() overloads taking wxMenu. Document these methods in addition to AppendSubMenu(). Closes #16052.

2014-03-07 01:58 VZ, revision 76090

Document Insert() and Prepend() overloads taking wxMenu. Document these methods in addition to AppendSubMenu(). Closes #16052.

2014-03-06 14:53 VZ, revision 76089

Update the URL of the web site images used in the test. The old images don't exist any more after web site redesign. Also, the new favicon can't be loaded from an unseekable stream because it contains multiple icons, so point to the old favicon instead. Closes #16049.

2014-03-06 14:49 VZ, revision 76088

Update the URL of the web site images used in the test. The old images don't exist any more after web site redesign. Also, the new favicon can't be loaded from an unseekable stream because it contains multiple icons, so point to the old favicon instead. Closes #16049.

2014-03-05 17:29 VZ, revision 76085

Add wxFD_NO_FOLLOW style for wxFileDialog. This style tells the dialog to return the paths of the link being selected without dereferencing it. Currently only implemented under wxMSW as the links are not dereferenced by default in wxGTK anyhow. But we may want to change this and implement it there too for consistency in the future. Closes #15429.

2014-03-05 17:29 VZ, revision 76084

Another compilation fix for wxUniv/MSW build. This should have been part of r76077, see #16039.

2014-03-05 00:57 VZ, revision 76082

Fix initializing bitmaps from DIB in wxMSW code. Don't call wxDIB::CreatePalette() on an invalid (because its handle had been detached from it) DIB object. Also add some comments to explain this code a bit better. Closes #16045.

2014-03-05 00:57 VZ, revision 76081

Fix initializing bitmaps from DIB in wxMSW code. Don't call wxDIB::CreatePalette() on an invalid (because its handle had been detached from it) DIB object. Also add some comments to explain this code a bit better. Closes #16045.

2014-03-04 15:20 VZ, revision 76080

Fix bug in vertical toolbar size calculation in wxMSW. Correct the changes of the r76035 to avoid using separators when calculating the fitting width of the vertical toolbars as this doesn't always work correctly. Closes #3788.

2014-03-04 15:17 VZ, revision 76079

Fix bug in vertical toolbar size calculation in wxMSW. Correct the changes of the r76034 to avoid using separators when calculating the fitting width of the vertical toolbars as this doesn't always work correctly. Closes #3788.

2014-03-04 15:07 VZ, revision 76078

Don't accept data in unsupported format in wxMSW dnd code. We wrongly pretended to accept the data in formats which we didn't actually accept and showed misleading cursors to the user. Fix this by partially reverting some of the changes of r72668 (see #14697). Closes #16042.

2014-03-04 15:07 VZ, revision 76077

Compilation fix for wxUniv/MSW in wxTLW code dealing with menus. The code used by WM_INITMENUPOPUP and WM_EXITMENULOOP handlers shouldn't be used in wxUniv build as it's not used there anyhow and doesn't even compile. Closes #16039.

2014-03-04 15:07 VZ, revision 76076

Don't accept data in unsupported format in wxMSW dnd code. We wrongly pretended to accept the data in formats which we didn't actually accept and showed misleading cursors to the user. Fix this by partially reverting some of the changes of r72668 (see #14697). Closes #16042.

2014-03-03 16:27 VZ, revision 76074

Romanian translations update from Catalin for 3.0.1.

2014-03-03 15:21 VZ, revision 76073

Romanian translations update from Catalin.

2014-03-03 08:04 SC, revision 76072

cleanup, see #15600

2014-03-03 00:46 VZ, revision 76071

Update wxForum URL in documentation overview.

2014-03-03 00:40 VZ, revision 76070

Add a one liner script to show symbols exported from a DLL. This is useful to check if ABI wasn't accidentally broken between two micro wxMSW releases.

2014-03-03 00:40 VZ, revision 76069

Remove non-existent wx/cairo.h from MSVC{11,12} projects. This file resulted in never ending rebuilds of the core project as MSVS tried to recreate the missing dependency (and failed). See http://blogs.msdn.com/b/andrewarnottms/archive/2012/06/07/enable-c-and-javascript-project-system-tracing.aspx for help with debugging such problems in the future.

2014-03-03 00:40 VZ, revision 76068

Enable debug information in release configuration of MSVC{11,12} projects. We want to generate debug information even in the release builds of the libraries in order to allow debugging of the programs using them. This is especially important for the DLLs but do it for the static release build too for consistency. This also almost fixes the constant rebuilding of the entire solution which happened because the PDBs, supposed to be generated by linker, were not found because they were not actually created as the debug information wasn't there. See #15780.

2014-03-03 00:40 VZ, revision 76067

Add missing XRC handlers to the manual VC{11,12} projects. XRC handler in aui, ribbon and richtext libraries were omitted in the initial versions of the projects for some reason. See #15780.

2014-03-03 00:37 VZ, revision 76066

Remove non-existent wx/cairo.h from MSVC{11,12} projects. This file resulted in never ending rebuilds of the core project as MSVS tried to recreate the missing dependency (and failed). See http://blogs.msdn.com/b/andrewarnottms/archive/2012/06/07/enable-c-and-javascript-project-system-tracing.aspx for help with debugging such problems in the future.

2014-03-03 00:37 VZ, revision 76065

Enable debug information in release configuration of MSVC{11,12} projects. We want to generate debug information even in the release builds of the libraries in order to allow debugging of the programs using them. This is especially important for the DLLs but do it for the static release build too for consistency. This also almost fixes the constant rebuilding of the entire solution which happened because the PDBs, supposed to be generated by linker, were not found because they were not actually created as the debug information wasn't there. See #15780.

2014-03-03 00:37 VZ, revision 76064

Add missing XRC handlers to the manual VC{11,12} projects. XRC handler in aui, ribbon and richtext libraries were omitted in the initial versions of the projects for some reason. See #15780.

2014-03-02 22:55 PC, revision 76063

fix for wxMiniFrame titlebar appearing blank

2014-03-02 19:58 PC, revision 76062

for GTK3, draw odd-width lines as a sharp, n-pixel wide line, rather than a fuzzy n+1-pixel wide line

2014-03-02 19:58 VZ, revision 76061

Refactor YieldFor() to avoid code duplication among the ports. Don't repeat the same code in all the ports, move it to the common base class and add a new virtual DoYieldFor() for the really port-specific code.

2014-03-02 19:27 VZ, revision 76060

Don't dispatch pending events from selective YieldFor(). Pending events list can contain events from all kinds and dispatching them from YieldFor() called to dispatch the events of some particular kind only (e.g. to redraw the window) is unexpected and wrong, e.g. it breaks some uses of wxProgressDialog, see #15799.

2014-03-02 19:07 VZ, revision 76059

Fix harmless signed/unsigned comparison warning in a test. Don't compare int with unsigned to avoid warnings that were introduced by the changes of r75936. See #15980.

2014-03-02 19:06 VZ, revision 76058

Fix harmless signed/unsigned comparison warning in a test. Don't compare int with unsigned to avoid warnings that were introduced by the changes of r75940. See #15980.

2014-03-02 17:07 VZ, revision 76057

Correct wrong version number in MSVC12 properties file. Use "30" in 3.0 branch.

2014-03-02 16:51 VZ, revision 76056

Fix off by 1 error in buffer size in wxOSX wxDropTarget code. The size of the buffer used for the data currently needs to include an extra byte for the trailing NUL. This is wrong, as it means that GetDataSize() and GetDataHere() behaviour is not consistent, but at least avoid overrunning the buffer for now. Also use wxCharBuffer instead of raw char array to make the code safer (both because it releases the memory automatically and because it also adds an extra byte for the trailing NUL automatically as well, making such bugs impossible). See #15914.

2014-03-02 16:51 VZ, revision 76055

Implement support for wxGA_VERTICAL style in wxOSX. Rotate the native control to make it look correct in vertical orientation. Closes #15682.

2014-03-02 16:51 VZ, revision 76054

Fix harmless signed/unsigned comparison warning in wxOSX wxJoystick. A better fix would probably be to make wxJoystick::GetNumberAxes() return an unsigned value.

2014-03-02 16:51 VZ, revision 76053

Remove redundant comparison of unsigned value with 0. This is always true and so is unnecessary.

2014-03-02 16:51 VZ, revision 76052

Really fix using install_name_tool with wxrc under OS X. Don't test for USE_XRC before it is set, correcting the wrong change of r75845. See #15946.

2014-03-02 16:51 VZ, revision 76051

Don't crash in wxOSX wxDataViewChoiceRenderer if selection was cancelled. Check for the index validity and ignore the value of -1 as it is passed if the selection in the popup was cancelled. Closes #16017.

2014-03-02 16:50 VZ, revision 76050

Fix off by 1 error in buffer size in wxOSX wxDropTarget code. The size of the buffer used for the data currently needs to include an extra byte for the trailing NUL. This is wrong, as it means that GetDataSize() and GetDataHere() behaviour is not consistent, but at least avoid overrunning the buffer for now. Also use wxCharBuffer instead of raw char array to make the code safer (both because it releases the memory automatically and because it also adds an extra byte for the trailing NUL automatically as well, making such bugs impossible). See #15914.

2014-03-02 16:50 VZ, revision 76049

Implement support for wxGA_VERTICAL style in wxOSX. Rotate the native control to make it look correct in vertical orientation. Closes #15682.

2014-03-02 16:50 VZ, revision 76048

Fix harmless signed/unsigned comparison warning in wxOSX wxJoystick. A better fix would probably be to make wxJoystick::GetNumberAxes() return an unsigned value.

2014-03-02 16:50 VZ, revision 76047

Remove redundant comparison of unsigned value with 0. This is always true and so is unnecessary.

2014-03-02 16:49 VZ, revision 76046

Really fix using install_name_tool with wxrc under OS X. Don't test for USE_XRC before it is set, correcting the wrong change of r75845. See #15946.

2014-03-02 16:49 VZ, revision 76045

Don't crash in wxOSX wxDataViewChoiceRenderer if selection was cancelled. Check for the index validity and ignore the value of -1 as it is passed if the selection in the popup was cancelled. Closes #16017.

2014-03-02 14:34 VZ, revision 76044

Fix setting the label for already existing menu items with bitmaps in wxMSW. Do update the label at Windows level if we don't use MF_OWNERDRAW style, checking for IsOwnerDrawn() is wrong because the flag it tests may be set even if the item is not really owner drawn from Windows point of view. This is a mess and setting the bitmap for the existing items is still broken, but at least setting the label works now. See #9388.

2014-03-02 14:34 VZ, revision 76043

Fix loading of top to bottom BMP files in wxMSW wxBitmap. The native LoadImage() function used by wxBMPFileHandler only supports the standard bottom to top BMPs, fall back to our own implementation in wxImage wxBMPHandler if it fails to also support the top to bottom ones. Closes #13650.

2014-03-02 14:22 VZ, revision 76042

Fix setting the label for already existing menu items with bitmaps in wxMSW. Do update the label at Windows level if we don't use MF_OWNERDRAW style, checking for IsOwnerDrawn() is wrong because the flag it tests may be set even if the item is not really owner drawn from Windows point of view. This is a mess and setting the bitmap for the existing items is still broken, but at least setting the label works now. See #9388.

2014-03-02 14:06 VZ, revision 76041

Fix loading of top to bottom BMP files in wxMSW wxBitmap. The native LoadImage() function used by wxBMPFileHandler only supports the standard bottom to top BMPs, fall back to our own implementation in wxImage wxBMPHandler if it fails to also support the top to bottom ones. Closes #13650.

2014-03-01 17:48 SC, revision 76036

using a lazy translation hash map for conversion between user friendly names and postscript names, so that we get only one warning per font family. The only way to completely get rid of this would be to pre-populate the map during startup which would mean to completely iterate through all installed fonts, so it's a compromise. see #15999

2014-03-01 00:40 VZ, revision 76035

Fix calculating the size of vertical toolbar in wxMSW. Use the width of the largest toolbar item as the toolbar width, not the width of the first one. The implicit assumption that all items had the same width was wrong and resulted in items wider than the first one being truncated. Closes #3788.

2014-03-01 00:39 VZ, revision 76034

Fix calculating the size of vertical toolbar in wxMSW. Use the width of the largest toolbar item as the toolbar width, not the width of the first one. The implicit assumption that all items had the same width was wrong and resulted in items wider than the first one being truncated. Closes #3788.

2014-02-28 23:35 VZ, revision 76033

Document possible problem with unbinding functors. Unbind() may currently disconnect the wrong functor as it compares them by address. See http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/81445

2014-02-28 17:16 VS, revision 76032

Fix VarArgTestCase::ArgsValidation() after r76026.

2014-02-28 17:15 VS, revision 76031

Fix VarArgTestCase::ArgsValidation() after r76027.

2014-02-27 16:46 VZ, revision 76030

Allow passing NULL buffer to wx{,F}File::{Read,Write} when count==0. If the count of bytes to read or write is 0, the buffer pointer value shouldn't matter as it's not used at all anyhow, so relax the assert and allow it to be NULL in this case. Closes #16018.

2014-02-27 16:46 VZ, revision 76029

Fix Intel compiler warnings about hiding member variables. Rename method parameters to avoid conflicts with member variables names. Closes #15971.

2014-02-27 16:46 VZ, revision 76028

Don't build wxFileSystemWatcher test if wxUSE_FSWATCHER==0. Closes #16031.

2014-02-27 16:24 VS, revision 76027

Be more permissive when validating format string arguments. Previously, the code would assert if the caller passed too many arguments to wxPrintf() or other printf-like functions. But that can happen legitimately in translations: in some languages such as Hebrew, using "1" (i.e. "%d") in the singular feels unnatural and it's better to use the word "one" and left the variadic argument unused. Relax the check not to assert in this case. This is consistent with the standard library and other implementations. Notice that gettext's msgfmt doesn't complain about this case either in the specific case of singular forms.

2014-02-27 16:23 VS, revision 76026

Be more permissive when validating format string arguments. Previously, the code would assert if the caller passed too many arguments to wxPrintf() or other printf-like functions. But that can happen legitimately in translations: in some languages such as Hebrew, using "1" (i.e. "%d") in the singular feels unnatural and it's better to use the word "one" and left the variadic argument unused. Relax the check not to assert in this case. This is consistent with the standard library and other implementations. Notice that gettext's msgfmt doesn't complain about this case either in the specific case of singular forms.

2014-02-27 16:15 JS, revision 76025

Paragraph and image layout fixes

2014-02-27 16:14 JS, revision 76024

Paragraph layout fix

2014-02-27 11:07 JS, revision 76023

Correction for wxTextAttrCollectCommonAttributes

2014-02-27 11:03 JS, revision 76022

Corrections to attribute manipulation

2014-02-25 18:55 VS, revision 76017

Fix compilation with Xcode projects (type_traits). The changes to type_traits headers detection with Clang broke Clang use with the Xcode projects. Fix this by not setting HAVE_* macros in config_xcode.h for Clang and letting defs.h detect the features. See #15915.

2014-02-25 18:54 VS, revision 76016

Fix compilation with Xcode projects (type_traits). The changes to type_traits headers detection with Clang broke Clang use with the Xcode projects. Fix this by not setting HAVE_* macros in config_xcode.h for Clang and letting defs.h detect the features. See #15915.

2014-02-25 18:38 PC, revision 76015

Index: src/generic/graphicc.cpp =================================================================== --- src/generic/graphicc.cpp (revision 76007) +++ src/generic/graphicc.cpp (working copy) @@ -1569,12 +1569,13 @@ { const wxUint32 argb = *src++; - *alpha++ = (argb & 0xff000000) >> 24; + const unsigned char a = argb >> 24; + *alpha++ = a; // Copy the RGB data undoing the pre-multiplication. - *dst++ = Unpremultiply(*alpha, (argb & 0x00ff0000) >> 16); - *dst++ = Unpremultiply(*alpha, (argb & 0x0000ff00) >> 8); - *dst++ = Unpremultiply(*alpha, (argb & 0x000000ff)); + *dst++ = Unpremultiply(a, argb >> 16); + *dst++ = Unpremultiply(a, argb >> 8); + *dst++ = Unpremultiply(a, argb); } src = rowStart + stride;

2014-02-25 18:26 VZ, revision 76014

Fix wxGenericTreeCtrl::ScrollTo() for all ports, not just wxOSX. When scrolling down, make the item being scrolled into view completely visible instead of just showing its top part. The fix was already used for wxOSX but not for the other ports for some reason, do use it everywhere as this code is generic and behaves in the same way in all ports. Also fix the wrong comments about scrolling direction.

2014-02-25 18:26 VZ, revision 76013

Add a helper function to get the last tree item to the sample. This makes the behaviour of different menu commands working with the "last item" consistent as some of them used the last root child while others used the really last item (i.e. the last child of the last child). This should have been part of r75987.

2014-02-25 18:26 VZ, revision 76012

Fix font size when using wxGraphicsContext with wxPrinterDC in wxMSW. Use pixel size which is scaled correctly by GDI+ itself instead of the size in points which is currently not scaled correctly by wx. Closes #3566.

2014-02-25 18:26 VZ, revision 76011

Define wxUSE_BOOKCTRL as 1 if wxUSE_AUI==1. wxAuiNotebook needs wxBookCtrlBase. Closes #16025.

2014-02-25 18:26 VZ, revision 76010

Add missing semicolons to the example in wxThread documentation. wxDEFINE_EVENT() needs a semicolon after it. Closes #16026.

2014-02-25 18:26 VZ, revision 76009

Fix wxGenericTreeCtrl::ScrollTo() for all ports, not just wxOSX. When scrolling down, make the item being scrolled into view completely visible instead of just showing its top part. The fix was already used for wxOSX but not for the other ports for some reason, do use it everywhere as this code is generic and behaves in the same way in all ports. Also fix the wrong comments about scrolling direction.

2014-02-25 18:12 VZ, revision 76008

Fix font size when using wxGraphicsContext with wxPrinterDC in wxMSW. Use pixel size which is scaled correctly by GDI+ itself instead of the size in points which is currently not scaled correctly by wx. Closes #3566.

2014-02-24 21:55 VZ, revision 76007

Fix loading of bitmap with non-pre-multiplied alpha in wxMSW. Detect when the bitmap file doesn't have pre-multiplied alpha and pre-multiply it ourselves when loading it in this case. Closes #12762.

2014-02-24 21:54 VZ, revision 76006

Add helper Set32bppHDIB() method to wxMSW wxBitmapRefData. No real changes, just add a helper to allow replacing the HBITMAP stored in wxBitmapRefData without changing anything else, this is going to be used in another place soon. See #12762.

2014-02-24 21:54 VZ, revision 76005

Mention that wxAuiNotebook uses native theme under wxGTK. Closes #16021.

2014-02-24 21:54 VZ, revision 76004

Clarify that there is only a single TAB traversal implementation. Don't imply that wxPanel can use either native or generic TAB traversal implementation because this is not true. Closes #16020.

2014-02-24 21:54 VZ, revision 76003

Include wxEVT_AUINOTEBOOK_PAGE_XXX in the documented interface. This facilitates automatic language bindings generation. Closes #16019.

2014-02-24 20:31 VZ, revision 76002

Tamil translations update for 3.0.1 from DINAKAR T.D.

2014-02-24 20:31 VZ, revision 76001

Tamil translations update for 3.0.1 from DINAKAR T.D.

2014-02-24 15:47 VZ, revision 76000

Mention wxDD_DIR_MUST_EXIST support in wxGTK in the change log. Document the change of r75997, see #16002.

2014-02-24 09:17 SC, revision 75999

using old code for carbon only, new code for cocoa, fixing doubly apply flip of y axis

2014-02-24 09:10 SC, revision 75998

add fix for 32 bit builds, also when wx is drawing CGContextRef is always flipped

2014-02-24 07:44 PC, revision 75997

add support for wxDD_DIR_MUST_EXIST, closes #16002

2014-02-24 02:00 PC, revision 75996

native GTK3 implementation for DrawSash()

2014-02-23 20:14 SC, revision 75995

new DrawIcon implementation, turned off by default

2014-02-23 20:11 SC, revision 75994

adding NSImage support to wxIcon on OSX, as IconRefs are on their way out, and performance under 10.9 is suffering

2014-02-23 20:02 SC, revision 75993

make sure a frozen control calls a native 'thaw' on the tlw during destruction, otherwise tlws might end up unresponsive, see #16011

2014-02-23 16:09 VZ, revision 75992

Swedish translations update for 3.0.1 from Jonas Rydberg.

2014-02-23 16:08 VZ, revision 75991

Swedish translations update for 3.0.1 from Jonas Rydberg.

2014-02-22 23:40 VZ, revision 75990

Always initialize values returned from wxGDDC::GetChar{Width,Height}(). Don't return garbage in case of error.

2014-02-22 23:40 VZ, revision 75989

Improve parameter validation in wxStream code. Replace wxASSERT_MSG()s with wxCHECK_MSG()s to ensure that we don't crash even if we are passed a NULL pointer, saying "Warning: Null pointer is about to be used" and crashing just isn't very useful in the grand scheme of things.

2014-02-22 23:39 VZ, revision 75988

Remove confusing delete from wxIdRangeManager dtor. The singleton dtor shouldn't delete the global singleton object, if this were ever really possible, it would result in an infinite recursion. And even though it was not (because ms_instance was reset to NULL before destroying the object pointed by it), this delete was still confusing and unnecessary, so remove it.

2014-02-22 23:39 VZ, revision 75987

Remove code maintaining last item from the treectrl sample. The code was buggy (e.g. it didn't update the last item correctly after executing "Append many items" menu command) and seems to be unnecessary.

2014-02-22 23:39 VZ, revision 75986

Fix harmless warnings about unused global variables. Don't define variables that we never use to fix clang warnings about them. See #15915.

2014-02-22 23:39 VZ, revision 75985

Fix Unix build using clang with g++ 4.8 headers. Don't override HAVE_TR1_TYPE_TRAITS detected by configure with HAVE_TYPE_TRAITS detected by clang __has_include() as the latter is less reliable and can return true even when the header is not actually usable, as it happens with g++ 4.8 <type_traits> in non C++11 mode. Closes #15915.

2014-02-22 23:39 VZ, revision 75984

Fix harmless warnings about unused global variables. Don't define variables that we never use to fix clang warnings about them. See #15915.

2014-02-22 23:38 VZ, revision 75983

Fix Unix build using clang with g++ 4.8 headers. Don't override HAVE_TR1_TYPE_TRAITS detected by configure with HAVE_TYPE_TRAITS detected by clang __has_include() as the latter is less reliable and can return true even when the header is not actually usable, as it happens with g++ 4.8 <type_traits> in non C++11 mode. Closes #15915.

2014-02-22 20:45 VZ, revision 75982

Use settings in wx_vcN_local.props files if they exist. Allow overriding the default build settings in local properties files for VC11 and VC12 builds. See #15780.

2014-02-22 18:26 VZ, revision 75981

Allow customizing bitmap handling in wxSVGFileDC. Provide a built-in alternative for using external files for the bitmaps in SVG: allow embedding them inside the SVG itself using "data:" URI. And also allow to define custom handlers to make the behaviour even more flexible. Closes #15968.

2014-02-22 15:54 VZ, revision 75980

Fix several rounding problems with float values in wxPropertyGrid. Loss of precision when converting floating point numbers to text and back could result in several problems, notably comparing a valid value with the minimum could fail after a round trip through wxSpinCtrl. Fix this by using a specialization of NumericValidation() handling floating point values specially and correctly. Closes #15625.

2014-02-22 15:54 VZ, revision 75979

Use symbolic attributes names in wxPropertyGrid code. No real changes, just use constants instead of hardcoding their values. See #15625.

2014-02-22 15:54 VZ, revision 75978

Allow retrieving wxPG_FLOAT_PRECISION and not just setting it. It was possible to call SetAttribute() to change this attribute value but not to get it back. Override DoGetAttribute() to also allow the latter. See #15625.

2014-02-22 15:54 VZ, revision 75977

Expose ScintillaWX DoDragEnter() and DoDragLeave() methods. These methods are needed to allow implementing alternative wxDropTargets, in addition to the already public DoDragOver(). Closes #16010.

2014-02-22 15:54 VZ, revision 75976

Document interaction of wxSplitterWindow gravity with initial size. Document the somewhat counter intuitive (but difficult to change) behaviour of the splitter when both sash position and gravity are set. See #15996.

2014-02-22 15:54 VZ, revision 75975

Fix memory leak when not finishing iteration started by wxFindFirstFile(). Memory allocated by wxFindFirstFile() was only freed when no more files could be found by wxFindNextFile(), resulting in a memory leak if the iteration was never finished. Closes #4631.

2014-02-22 15:14 VZ, revision 75974

Fix wxOSX compilation error after r75956. wxScopedArray::get() needs to be explicitly called to access the array contents as a pointer. Closes #16015.

2014-02-22 15:09 VZ, revision 75973

Chinese translations update for 3.0.1 from Jiawei Huang.

2014-02-22 15:09 VZ, revision 75972

Chinese translations update for 3.0.1 from Jiawei Huang.

2014-02-22 15:06 VZ, revision 75971

German translations update for 3.0.1 from Sebastian Walderich.

2014-02-22 15:06 VZ, revision 75970

German translations update for 3.0.1 from Sebastian Walderich.

2014-02-22 10:08 SC, revision 75969

backport of r75966, make sure a frozen control calls a native 'thaw' on the tlw during destruction, otherwise tlws might end up unresponsive, see #16011

2014-02-21 22:47 VZ, revision 75968

Basque translations update for 3.0.1 from Xabier Aramendi.

2014-02-21 22:47 VZ, revision 75967

Basque translations update for 3.0.1 from Xabier Aramendi.

2014-02-21 20:05 SC, revision 75966

make sure a frozen control calls a native 'thaw' on the tlw during destruction, otherwise tlws might end up unresponsive, see #16011

2014-02-21 18:15 VZ, revision 75965

Ukrainian translations update for 3.0.1 from Yuri Chornoivan.

2014-02-21 18:15 VZ, revision 75964

Ukrainian translations update for 3.0.1 from Yuri Chornoivan.

2014-02-21 17:28 VZ, revision 75963

French translations update for 3.0.1 from Xavier Perrissoud. Apply to the trunk as well. See #16013.

2014-02-21 17:27 VZ, revision 75962

Regenerate all .po files in the trunk too. Bring them (more) in sync with 3.0 branch.

2014-02-21 17:22 VZ, revision 75961

French translations update for 3.0.1 from Xavier Perrissoud. Closes #16013.

2014-02-21 14:55 VZ, revision 75960

Regenerate message catalogs for 3.0.1 release. Add a couple of new strings which have been added since 3.0.0.

2014-02-21 01:51 VZ, revision 75959

Fix memory leak in wxRibbonToolBar in case of error. Use wxScopedPtr to ensure the tool is not leaked, even if we fail to insert it.

2014-02-21 01:51 VZ, revision 75958

Fix uninitialized variable use in wxPropertyGrid code. wxPGProperty::GetItemAtY() uses its input/output "nextItem" parameter, so it must be initialized before calling it.

2014-02-21 01:51 VZ, revision 75957

Ensure we don't read invalid memory in wxOSX wxDisplay code. Replace wxASSERT() with wxCHECK_MSG() to ensure that we don't read beyond the end of the array even if we are given an invalid index.

2014-02-21 01:51 VZ, revision 75956

Fix memory leak on error return in wxOSX wxDisplay code. Use wxScopedArray to ensure that memory is freed, even if wxCHECK_MSG() condition fails.

2014-02-21 01:51 VZ, revision 75955

Fix memory leak in case of error in wxOSX graphics code. Delete the pointer before returning from the function if we don't pass its ownership to CGDataProviderCreateWithData().

2014-02-21 01:51 VZ, revision 75954

Fix memory leak on error return from wxMsgCatalogFile::FillHash(). Use wxScopedPtr to make memory management simpler and to ensure that all pointers allocated in this function are deleted: this wasn't the case when we returned false earlier due to the MO file being invalid.

2014-02-21 01:51 VZ, revision 75953

No real changes, just use smart pointers in GIF decoding code. Use wxScopedArray to make the code much shorter and guarantee that it doesn't leak memory.

2014-02-21 01:51 VZ, revision 75952

Fix socket leak in Accept() in case of error.o We leaked a socket descriptor if creating the accepted socket object failed.

2014-02-21 01:51 VZ, revision 75951

Fix fall back to default resolution in wxOSX printing code. The code was written to use the default resolution if getting it from the printer failed but only handled failure of PMPrinterGetOutputResolution() and not of PMSessionGetCurrentPrinter() itself. Use default resolution if obtaining it failed for any reason (alternative could be to return error if obtaining it failed for any return...).

2014-02-21 01:51 VZ, revision 75950

Correct wxDataViewColumn::AppendXXXColumn() return value in case of failure. Don't return invalid column pointer if it was freed because actually appending it to the control failed. Fixes corresponding Coverity warnings.

2014-02-20 16:13 VZ, revision 75949

Fix crash when using wxThreadSpecificInfo from global object ctor. When not using compiler TLS support (which is the default now), TLS variable itself needs to be initialized and user-defined code in the global objects ctor could be called before this happened, resulting in using uninitialized CRITICAL_SECTION under Windows and a crash. Fix this by wrapping global wxThreadSpecificInfo itself in an accessor function ensuring that it is always initialized before use. Notice that this required adding wxTLS_TYPE_REF() as wxTLS_TYPE() itself can't be used for the function return value (__thread or similar can only be used on the variables). Closes #16009.

2014-02-20 16:12 VZ, revision 75948

Fix crash when using wxThreadSpecificInfo from global object ctor. When not using compiler TLS support (which is the default now), TLS variable itself needs to be initialized and user-defined code in the global objects ctor could be called before this happened, resulting in using uninitialized CRITICAL_SECTION under Windows and a crash. Fix this by wrapping global wxThreadSpecificInfo itself in an accessor function ensuring that it is always initialized before use. Notice that this required adding wxTLS_TYPE_REF() as wxTLS_TYPE() itself can't be used for the function return value (__thread or similar can only be used on the variables). Closes #16009.

2014-02-20 14:06 VZ, revision 75947

Use correct column type when adding columns to wxDataViewListCtrl. Using base class methods such as AppendBitmapColumn() resulted in wxDataViewListCtrl::AppendColumn() being called but this function always assumed the column was of "string" variant type -- which was, of course, false for bitmap columns and so resulted in heap corruption (thanks to the wonderfully type unsafe code using wxVariant) and a crash. Get the correct type to use from the column itself now to fix this. Closes #16008.

2014-02-20 14:05 VZ, revision 75946

Use correct column type when adding columns to wxDataViewListCtrl. Using base class methods such as AppendBitmapColumn() resulted in wxDataViewListCtrl::AppendColumn() being called but this function always assumed the column was of "string" variant type -- which was, of course, false for bitmap columns and so resulted in heap corruption (thanks to the wonderfully type unsafe code using wxVariant) and a crash. Get the correct type to use from the column itself now to fix this. Closes #16008.

2014-02-20 01:32 VZ, revision 75945

Don't show hidden MDI frames when maximizing them in wxMSW. This is inconsistent with the other ports and rather unexpected. Closes #2508.

2014-02-20 01:32 VZ, revision 75944

Don't show the MDI children implicitly by default in wxMSW any more. We kept doing it for compatibility with pre-2.5.3 versions but this was a long time ago and we don't need this any longer. See #2508.

2014-02-20 01:32 VZ, revision 75943

Fix wxCmdLineParser::Found(name) for options with values. Calling Found() without providing the second "value" argument started generating an assert since introduction of the negated options as it reused FoundSwitch() which can only be used for switches, i.e. options without values. Fix this to revert a regression since 2.8 and also add unit tests for the different Found() overloads. Closes #15986, #16001.

2014-02-20 01:32 VZ, revision 75942

Reduce code duplication in wxCmdLineParser implementation. No real changes, just extract the code for finding options from their names into a separate function instead of repeating it 4 (and 5, after the next commit changes) times.

2014-02-20 01:32 VZ, revision 75941

Don't use invalid pointer in file dialog hook procedure in wxMSW. We can receive WM_NOTIFY for other than CDN_XXX messages if we have a native control as our immediate child (which can happen with "extra" controls) and the LPARAM is not a pointer to OFNOTIFY at all in this case, so don't try to use it as such. This fixes a crash when adding a "bare" extra control, see #16003.

2014-02-20 01:32 VZ, revision 75940

Fix wxTextCtrl contents corruption with long strings in wxMSW. wxMSW automatically extended wxTextCtrl length limit beyond the tiny standard 32KB when it was exceeded, but part of the text being appended into the control was lost when doing it. Fix this by retrying insertion after extending the limit. Closes #15980.

2014-02-20 01:31 VZ, revision 75939

Fix wxCmdLineParser::Found(name) for options with values. Calling Found() without providing the second "value" argument started generating an assert since introduction of the negated options as it reused FoundSwitch() which can only be used for switches, i.e. options without values. Fix this to revert a regression since 2.8 and also add unit tests for the different Found() overloads. Closes #15986, #16001.

2014-02-20 01:31 VZ, revision 75938

Reduce code duplication in wxCmdLineParser implementation. No real changes, just extract the code for finding options from their names into a separate function instead of repeating it 4 (and 5, after the next commit changes) times.

2014-02-20 01:31 VZ, revision 75937

Don't use invalid pointer in file dialog hook procedure in wxMSW. We can receive WM_NOTIFY for other than CDN_XXX messages if we have a native control as our immediate child (which can happen with "extra" controls) and the LPARAM is not a pointer to OFNOTIFY at all in this case, so don't try to use it as such. This fixes a crash when adding a "bare" extra control, see #16003.

2014-02-20 01:31 VZ, revision 75936

Fix wxTextCtrl contents corruption with long strings in wxMSW. wxMSW automatically extended wxTextCtrl length limit beyond the tiny standard 32KB when it was exceeded, but part of the text being appended into the control was lost when doing it. Fix this by retrying insertion after extending the limit. Closes #15980.

2014-02-19 21:38 SC, revision 75935

backport of r75934, misplaced the orderOut: , see #15998, #15902

2014-02-19 21:24 SC, revision 75934

misplaced the orderOut: , see #15998, #15902

2014-02-19 15:52 VZ, revision 75933

Set model pointer in wxDataViewEvents generated under wxOSX. Add missing SetModel() calls. Closes #16004.

2014-02-19 15:51 VZ, revision 75932

Set model pointer in wxDataViewEvents generated under wxOSX. Add missing SetModel() calls. Closes #16004.

2014-02-19 00:36 VZ, revision 75930

Move DSS_HIDEPREFIX fallback definition to the central header. Do it only once now that it's used in 3 different places (it recently started to be used in src/msw/anybutton.cpp as well) instead of defining it thrice. This also fixes MinGW build.

2014-02-19 00:36 VZ, revision 75929

Move DSS_HIDEPREFIX fallback definition to the central header. Do it only once now that it's used in 3 different places (it recently started to be used in src/msw/anybutton.cpp as well) instead of defining it thrice. This also fixes MinGW build.

2014-02-18 18:47 SC, revision 75928

backport of r15902

2014-02-18 16:44 VZ, revision 75927

Mention the addition of VC{11,12} solution files in the change log. This is an important thing for a lot of people.

2014-02-18 16:43 VZ, revision 75926

Add projects for MSVC 11 and 12 (MSVS 2012 and 2013). Add manually created projects for now, as it looks that we are not going to have bakefile-generated ones any time soon. Closes #15780.

2014-02-18 16:40 VZ, revision 75925

Add projects for MSVC 11 and 12 (MSVS 2012 and 2013). Add manually created projects for now, as it looks that we are not going to have bakefile-generated ones any time soon. Closes #15780.

2014-02-18 16:14 VZ, revision 75924

Fix transparency in toolbar buttons when not using comctl32.dll v6. Old versions of comctl32.dll don't support alpha in the toolbar image list, so use the masks only for them. This is a backport of r75785, r75794 and r75923 from trunk. Closes #2609.

2014-02-18 16:13 VZ, revision 75923

Compilation fix for wxUSE_IMAGE==0 wxMSW build. Declare the variable used in any case outside of wxUSE_IMAGE-only block. See #2609.

2014-02-18 16:09 VZ, revision 75922

Don't delete child controls when deleting wxStaticBoxSizer. This is an incompatible change compared to 2.8 which can make the existing code crash and it also goes against the usual rule that the windows are never owned by sizers, only other windows. Closes #15698.

2014-02-18 16:08 VZ, revision 75921

Don't delete child controls when deleting wxStaticBoxSizer. This is an incompatible change compared to 2.8 which can make the existing code crash and it also goes against the usual rule that the windows are never owned by sizers, only other windows. Closes #15698.

2014-02-18 16:05 VZ, revision 75920

Add support for fixed spacers and labels to wxAuiToolBar XRC handler. Allow specifying "width" and "proportion" attributes for the "space" elements and add "label" element support. Closes #15964.

2014-02-18 14:13 SC, revision 75919

backport of r75899

2014-02-18 11:09 SC, revision 75918

fixing nested modal sessions, part 2, see #15902

2014-02-18 00:55 VZ, revision 75917

Add missing bounding box calculations in wxMSW wxDC code. Update the bounding box when drawing bitmaps (in one of several possible ways) and gradients. Closes #2132.

2014-02-18 00:55 VZ, revision 75916

Improve disabled buttons appearance in wxMSW when not using themes. Owner drawn buttons were not drawn in the same way as normal ones when they were disabled, use Win32 DrawState() to do it now to achieve the correct appearance. Closes #11746.

2014-02-18 00:55 VZ, revision 75915

Fix crash in wxMSW wxFileSystemWatcher when removing the same path twice. Starting to watch a path, stopping to watch it, starting to watch it again and stopping again resulted in a crash in wxMSW wxFileSystemWatcher implementation because the watcher object wasn't kept artificially kept alive when it was stopped for the second time. This happened because our way of keeping it alive was to store it in a hash map indexed by path, but if a watcher for the same path (added there when this path was first unwatched) was already present in the map, the watcher wasn't added to it and not kept alive. Fix this by using a vector instead of a map. We obviously sacrifice quick access to it by path but at least this doesn't crash any more. And we could actually still use a map, just indexed by the (unique) pointer to the object stored inside wxSharedPtr itself, and not its path. But a vector might be a more efficient data structure in practice, if we keep it from becoming too big as we should try to do by triggering artificial port completions when a watch is removed. At any rate, at least the crash is fixed for now. Closes #15995.

2014-02-18 00:55 VZ, revision 75914

Allow waiting for thread termination even without wxTheApp in wxMSW. Attempts to wait for thread termination after wxTheApp was destroyed resulted in an error in wxMSW since 2.9.something whereas it used to work in 2.8 and also generally makes sense to be allowed. So do make this work again by falling back to the simple non-interruptible wait for thread if we don't have the application object any more. Closes #13391.

2014-02-18 00:55 VZ, revision 75913

Fix handling of wxTEXT_ATTR_EFFECT_SMALL_CAPITALS in wxRichTextFontPage. Due to a typo when copy-and-pasting code wrong control was being updated. It would be better to have a function updating the given control from the given flag, of course, but for now just fix the bug. Closes #15990.

2014-02-18 00:55 VZ, revision 75912

Fix fallback format index in wxPropertyGetter wxUIntProperty code. Don't crash by accessing an out of bands array element if the format string index had been set to an invalid value, just use the default (decimal) format in this case. Closes #15984.

2014-02-18 00:55 VZ, revision 75911

Use symbolic constants in wxPropertyGrid wxUIntProperty code. No real changes, just use symbolic constants instead of hard coded magical constants. The code is still difficult to understand but slightly better than before.

2014-02-18 00:53 VZ, revision 75910

Add "const" to the recently added wxRTC XPM. This fixes half a page of warnings about converting string constants to non-const char* from g++.

2014-02-18 00:53 VZ, revision 75909

Add missing bounding box calculations in wxMSW wxDC code. Update the bounding box when drawing bitmaps (in one of several possible ways) and gradients. Closes #2132.

2014-02-18 00:53 VZ, revision 75908

Improve disabled buttons appearance in wxMSW when not using themes. Owner drawn buttons were not drawn in the same way as normal ones when they were disabled, use Win32 DrawState() to do it now to achieve the correct appearance. Closes #11746.

2014-02-18 00:53 VZ, revision 75907

Speed up wxHtmlHelpWindow startup time by freezing font choices. Appending the names of all fonts could take a significant amount of time if there were a lot of them, freeze the controls while doing it to speed it up. Closes #15978.

2014-02-18 00:53 VZ, revision 75906

Set wxHtmlHelpFrame title format before creating it. This ensures that it's always set before it can be used, fixing assert introduced in r75748. Closes #15977.

2014-02-18 00:53 VZ, revision 75905

Fix crash in wxMSW wxFileSystemWatcher when removing the same path twice. Starting to watch a path, stopping to watch it, starting to watch it again and stopping again resulted in a crash in wxMSW wxFileSystemWatcher implementation because the watcher object wasn't kept artificially kept alive when it was stopped for the second time. This happened because our way of keeping it alive was to store it in a hash map indexed by path, but if a watcher for the same path (added there when this path was first unwatched) was already present in the map, the watcher wasn't added to it and not kept alive. Fix this by using a vector instead of a map. We obviously sacrifice quick access to it by path but at least this doesn't crash any more. And we could actually still use a map, just indexed by the (unique) pointer to the object stored inside wxSharedPtr itself, and not its path. But a vector might be a more efficient data structure in practice, if we keep it from becoming too big as we should try to do by triggering artificial port completions when a watch is removed. At any rate, at least the crash is fixed for now. Closes #15995.

2014-02-18 00:53 VZ, revision 75904

Allow waiting for thread termination even without wxTheApp in wxMSW. Attempts to wait for thread termination after wxTheApp was destroyed resulted in an error in wxMSW since 2.9.something whereas it used to work in 2.8 and also generally makes sense to be allowed. So do make this work again by falling back to the simple non-interruptible wait for thread if we don't have the application object any more. Closes #13391.

2014-02-18 00:53 VZ, revision 75903

Fix handling of wxTEXT_ATTR_EFFECT_SMALL_CAPITALS in wxRichTextFontPage. Due to a typo when copy-and-pasting code wrong control was being updated. It would be better to have a function updating the given control from the given flag, of course, but for now just fix the bug. Closes #15990.

2014-02-18 00:52 VZ, revision 75902

Fix fallback format index in wxPropertyGetter wxUIntProperty code. Don't crash by accessing an out of bands array element if the format string index had been set to an invalid value, just use the default (decimal) format in this case. Closes #15984.

2014-02-18 00:52 VZ, revision 75901

Use symbolic constants in wxPropertyGrid wxUIntProperty code. No real changes, just use symbolic constants instead of hard coded magical constants. The code is still difficult to understand but slightly better than before.

2014-02-18 00:52 VZ, revision 75900

Document wxTopLevelWindow::Restore(). This was never documented, probably because it's not actually very clear to understand what exactly does it do.

2014-02-17 20:13 SC, revision 75899

fixing nested modal sessions

2014-02-17 17:25 PC, revision 75898

avoid potential NULL pointer dereference, closes #15993

2014-02-17 17:25 PC, revision 75897

fix ordering of function parameters, closes #15985

2014-02-17 15:54 JS, revision 75896

Fixed floating object layout when there is only a short text string in the paragraph

2014-02-17 15:54 JS, revision 75895

Fixed floating object layout when there is only a short text string in the paragraph

2014-02-16 21:05 JS, revision 75894

Removed rounding that didn't work for negative numbers

2014-02-16 21:05 JS, revision 75893

Removed rounding that didn't work for negative numbers; added ability to hide "move object" controls

2014-02-16 12:41 JS, revision 75892

Compile fix

2014-02-15 19:14 PC, revision 75888

mimic wxMSW wxSetCursorEvent propagation behavior, closes #15801

2014-02-15 19:11 JS, revision 75887

Sizing fix in wxRichTextImage::LoadImageCache

2014-02-15 17:59 VS, revision 75886

OS X: fix startup sequence when restoring session on >=10.7. Make sure that OnInit() is called before MacReopenApp(). This is normally the case, but it is possible for it to be called as the first thing. This can happen when OS X restores running apps when starting a new user session. Apps that were hidden (dock only) when the previous session terminated are only restored in a limited, resources-saving way - the event loop is running, but didn't call anything in the app delegate yet. When the user clicks the icon, applicationShouldHandleReopen: is called, but we didn't call OnInit() yet. In this case, we shouldn't call MacReopenApp(), but should proceed with normal initialization.

2014-02-15 17:59 VS, revision 75885

OS X: fix startup sequence when restoring session on >=10.7. Make sure that OnInit() is called before MacReopenApp(). This is normally the case, but it is possible for it to be called as the first thing. This can happen when OS X restores running apps when starting a new user session. Apps that were hidden (dock only) when the previous session terminated are only restored in a limited, resources-saving way - the event loop is running, but didn't call anything in the app delegate yet. When the user clicks the icon, applicationShouldHandleReopen: is called, but we didn't call OnInit() yet. In this case, we shouldn't call MacReopenApp(), but should proceed with normal initialization.

2014-02-15 17:19 JS, revision 75884

Optimized wxRTC insertion and deletion when floating objects are present.

2014-02-13 17:47 PC, revision 75883

avoid setting negative window size, see #15976

2014-02-13 17:46 PC, revision 75882

avoid forcing a paint on a window with zero size, see #15976

2014-02-13 13:32 JS, revision 75881

Added ability to disable images in wxRTC for performance or image corruption reasons

2014-02-13 13:01 JS, revision 75880

Corrected wxTextBoxAttr::IsDefault() implementation

2014-02-13 13:00 JS, revision 75879

Corrected wxTextBoxAttr::IsDefault() implementation

2014-02-13 12:57 JS, revision 75878

Border drawing corrections

2014-02-13 12:47 JS, revision 75877

Fixed a bug that prevented floating objects from being updated correctly

2014-02-13 12:46 JS, revision 75876

Fixed a bug that prevented floating objects from being updated correctly

2014-02-12 14:15 VZ, revision 75875

Provide more detailed deprecation message for wxFont ctor. Be more clear about how should the code be changed. Closes #15972.

2014-02-10 18:32 PC, revision 75867

finish setting size before sending wxMoveEvent

2014-02-10 18:25 PC, revision 75866

remove stuff that is already done by gtk_window_set_transient_for()

2014-02-10 18:11 PC, revision 75865

generate wxMoveEvent from wxPopupWindow::DoSetSize()

2014-02-09 20:53 PC, revision 75864

add missing GTK3 implementations of GTKGetWindow()

2014-02-09 19:36 PC, revision 75863

emit signal by id instead of name

2014-02-09 19:15 PC, revision 75862

get non-default wxTextCtrl cursors working with GTK3

2014-02-09 17:49 PC, revision 75861

Use "state-flags-changed" signal with GTK3, deprecated "state-changed" is ignored.

2014-02-09 14:40 VZ, revision 75858

Extract private methods when generating documentation too. The only private methods appearing in interface/wx/*.h files are meant to be documented, so do extract them. This should fix wxThread::OnExit() not appearing in the generated documentation, for example.

2014-02-08 15:12 VZ, revision 75846

Fix wxToolBar size in wxMSW when not using icons. There were several problems when the toolbar style was toggled to not show icons, fix them by adding missing checks for wxTB_NOICONS style. Closes #13578.

2014-02-08 15:12 VZ, revision 75845

Fix build under OS X with --disable-xrc. Don't try to change the install names in non-existent (in this case) wxrc. Closes #15946.

2014-02-08 15:04 VZ, revision 75844

Fix build under OS X with --disable-xrc. Don't try to change the install names in non-existent (in this case) wxrc. Closes #15946.

2014-02-08 12:55 JS, revision 75843

Return true from GetRangeSize or partial extents will be incorrectly filled in

2014-02-08 12:55 JS, revision 75842

Return true from GetRangeSize or partial extents will be incorrectly filled in

2014-02-08 01:46 VZ, revision 75839

Don't show "deleted stale lock file" message by default. The user typically can't do anything about this error anyhow, so don't show it by default. Still do show it when running in the verbose mode as this might add diagnosing the problem when something goes unexpectedly wrong. Closes #15944.

2014-02-08 01:46 VZ, revision 75838

Don't show "deleted stale lock file" message by default. The user typically can't do anything about this error anyhow, so don't show it by default. Still do show it when running in the verbose mode as this might add diagnosing the problem when something goes unexpectedly wrong. Closes #15944.

2014-02-08 01:43 VZ, revision 75837

Don't use try/catch if exceptions support is disabled. Closes #15954.

2014-02-08 01:41 VZ, revision 75836

Don't use try/catch if exceptions support is disabled. Closes #15954.

2014-02-07 16:02 VZ, revision 75835

Don't log error from wxMSW wxWakeUpIdle(). This is not necessary as there is nothing that can be done about this error anyhow and the function still "works" even if it occurs (it doesn't wake up anything but it is not necessary to do it if the message queue is already full) and, worse, results in a crash due to stack overflow. Closes #15951.

2014-02-07 16:02 VZ, revision 75834

Don't log error from wxMSW wxWakeUpIdle(). This is not necessary as there is nothing that can be done about this error anyhow and the function still "works" even if it occurs (it doesn't wake up anything but it is not necessary to do it if the message queue is already full) and, worse, results in a crash due to stack overflow. Closes #15951.

2014-02-07 15:35 VZ, revision 75833

Avoid crashes when deleting owned top level windows. Don't delay the TLW destruction if it has a parent and its parent is already being deleted: we can't delay the inevitable in this case and only succeed in making the program crash if we try. Closes #15743.

2014-02-07 15:35 VZ, revision 75832

Fix exit on last TLW logic after the change of r75630. The changes in this revision meant to prevent the closure of transient dialogs from quitting the application (see #15880) prevented any application using AUI, including the aui sample, from exiting as the AUI utility frames deleted during the main frame destruction were returning false from their IsLastBeforeExit() now. Fix this by relaxing the check and ignoring the parent if it is already being deleted anyhow -- in this case there is no danger of closing it accidentally. Closes #15894.

2014-02-06 18:27 PC, revision 75826

Don't update position variables from window dragging code. Let "configure-event" handler do it so it can also generate proper move events. closes #15904

2014-02-06 16:10 VZ, revision 75825

Revert "Add XRC handler file to MSVC 10 project." This reverts r75789 which shouldn't have been applied to 3.0 branch as the files added to the project don't exist in it. Closes #15942.

2014-02-06 11:15 VS, revision 75824

Fix failing TextFileTestCase::ReadMixedWithFuzzing(). The test failed with 33% probability because it didn't account for trailing non-newline character. Fixed and also changed the test to repeat itself a hundred times, to increase the probability of catching problems like this.

2014-02-06 11:15 VS, revision 75823

Fix failing TextFileTestCase::ReadMixedWithFuzzing(). The test failed with 33% probability because it didn't account for trailing non-newline character. Fixed and also changed the test to repeat itself a hundred times, to increase the probability of catching problems like this.

2014-02-06 09:54 PC, revision 75821

Fix wxSetCursorEvent handling For compatibility with wxMSW, send event up the parent chain. Properly handle setting the cursor for a wxSetCursorEvent, and don't overwrite the window cursor. see #15801

2014-02-06 05:43 PC, revision 75807

Different fix for cursor inheritance and busy cursor/global cursor. Previous work was not compatible with GTK < 2.18 and did not properly handle some cases see #15801

2014-02-05 23:12 VZ, revision 75806

Add support for sorting by more than one column to generic wxDataViewCtrl. Maintain a list of columns used for sorting instead of a single sort column index and allow to add/remove columns to/from it interactively by right clicking them if AllowMultiColumnSort() was used. See https://github.com/wxWidgets/wxWidgets/pull/3

2014-02-05 19:29 VS, revision 75804

Add line-endings fuzzing test to TextFileTestCase. Stress-test wxTextFile's handling of unusual CR,LF characters.

2014-02-05 19:29 VS, revision 75803

Rewrite wxTextFile's newlines parsing to fix multiple bugs. Remove the complicated parsing state machine that contained bugs with unexpected inputs and was very hard to modify correctly. Replace it with much simpler code that looks ahead, instead of deducing line endings from past characters. The new code never looses lines with data and calls AddLine() on the first newline character it encounters, peeking ahead to determine the line ending type.

2014-02-05 19:29 VS, revision 75802

TextFileTestCase: test for \r\r\r\n parsing. While r75387 fixed parsing of \r\r\n, it still didn't handle triple-\r correctly.

2014-02-05 19:29 VS, revision 75801

TextFileTestCase: test for correct parsing of empty Mac lines. (This is failing both with and without r75387.)

2014-02-05 19:29 VS, revision 75800

Add line-endings fuzzing test to TextFileTestCase. Stress-test wxTextFile's handling of unusual CR,LF characters.

2014-02-05 19:28 VS, revision 75799

Rewrite wxTextFile's newlines parsing to fix multiple bugs. Remove the complicated parsing state machine that contained bugs with unexpected inputs and was very hard to modify correctly. Replace it with much simpler code that looks ahead, instead of deducing line endings from past characters. The new code never looses lines with data and calls AddLine() on the first newline character it encounters, peeking ahead to determine the line ending type.

2014-02-05 19:28 VS, revision 75798

TextFileTestCase: test for \r\r\r\n parsing. While r75387 fixed parsing of \r\r\n, it still didn't handle triple-\r correctly.

2014-02-05 19:28 VS, revision 75797

TextFileTestCase: test for correct parsing of empty Mac lines. (This is failing both with and without r75387.)

2014-02-05 12:29 JS, revision 75796

Return true from OnCellClicked if the event was processed, otherwise further processing will use default behaviour which may negate the effect of the event handler.

2014-02-05 02:04 VZ, revision 75794

Compilation fix for PCH-less build. This should fix compilation without PCH after r75785. See #2609.

2014-02-04 20:10 JS, revision 75793

Return true from OnCellClicked if the event was processed, otherwise further processing will use default behaviour which may negate the effect of the event handler.

2014-02-04 20:10 JS, revision 75792

Return true from OnCellClicked if the event was processed, otherwise further processing will use default behaviour which may negate the effect of the event handler.

2014-02-04 19:57 JS, revision 75791

Added the ability to restore the last selected page in a wxRTC formatting dialog.

2014-02-04 17:59 DS, revision 75790

Added support for wxEVT_COMBOBOX_DROPDOWN and wxEVT_COMBOBOX_CLOSEUP events to wxOSX/Cocoa. Backport of r75783. Closes #15762.

2014-02-04 17:42 VZ, revision 75789

Add XRC handler file to MSVC 10 project. Closes #15942.

2014-02-04 17:40 VZ, revision 75788

Add XRC handler file to MSVC 10 project. Closes #15942.

2014-02-04 16:59 VZ, revision 75787

Add new XRC headers to the core project too. Closes #15942.

2014-02-04 16:59 VZ, revision 75786

Allow using wxRearrangeList::Check() to change state programmatically. Previous this resulted in an assert and broken behaviour as it didn't update the internally stored state. Do update it now and remove the assert as it isn't possible to distinguish between user code calling Check() and wxGTK doing it itself from wxCheckListBox implementation. Closes #15940.

2014-02-04 16:59 VZ, revision 75785

Fix transparency in toolbar buttons when not using comctl32.dll v6. Old versions of comctl32.dll don't support alpha in the toolbar image list, so use the masks only for them. Closes #2609.

2014-02-04 16:46 VZ, revision 75784

Add new XRC headers to the core project too. Closes #15942.

2014-02-04 10:32 DS, revision 75783

Added support for wxEVT_COMBOBOX_DROPDOWN and wxEVT_COMBOBOX_CLOSEUP events to wxOSX/Cocoa. See #15762.

2014-02-04 08:37 JJ, revision 75782

correction on commit 75776

2014-02-03 21:32 SC, revision 75780

backport merging in Václav's fix for getting CPU usage down in ShowModal

2014-02-03 21:31 SC, revision 75779

merging in Václav's fix for getting CPU usage down in ShowModal

2014-02-03 18:44 SC, revision 75778

backport from trunk

2014-02-03 18:40 SC, revision 75777

passing correct timeout values, patch from Václav

2014-02-03 15:06 JJ, revision 75776

synchronizing the definition of wxLoadQueryNearestFont

2014-02-02 22:47 VZ, revision 75775

Remove unnecessary CommandStateChangeConstants enum redeclaration. This declaration conflicted with the one in the latest MinGW-W64 headers and wasn't needed anyhow as we don't use neither the enum itself nor its members in our code, so just remove it to fix the build in 64 bits with MinGW-W64 4.8. This is the backport of r75669 from trunk.

2014-02-02 02:46 VZ, revision 75772

Compilation fix after r75765. Forgot to backport ResetAlpha() addition which is used by the code of r75765.

2014-02-02 02:16 VZ, revision 75771

Restore wxBusyCursor::Get{Story,Busy}Cursor() in wxGTK. Even if these methods are completely useless, we still need to keep them in wxGTK 3.0 for ABI compatibility.

2014-02-02 02:15 VZ, revision 75770

Improve appearance of tools using bitmaps with alpha in wxMSW wxToolBar. Use alpha in the combined toolbar bitmap if any of its tools has a bitmap using alpha. This greatly improves the appearance of the automatically generated disabled images for the tools with bitmaps using alpha. See #15876.

2014-02-02 02:15 VZ, revision 75769

Fix appearance of tools with alpha bitmaps in wxMSW wxToolBar. Recent changes broke the handling of tools with alpha bitmaps as drawing them on the global toolbar bitmap changes its underlying HBITMAP now, but the code in wxToolBar didn't expect this. Fix it by updating the HBITMAP used after every DrawBitmap() call, just in case it changed (it doesn't cost anything to reset it if it did not). Closes #15876.

2014-02-02 02:15 VZ, revision 75768

Make wxFILTER_INCLUDE_LIST in wxTextValidator actually usable. Only check for its violation once the full text is entered as otherwise nothing could ever be entered when it was used. Closes #15778.

2014-02-02 02:15 VZ, revision 75767

Fix handling of menu items checked before being attached in wxMSW. Calling wxMenuItem::Check() before appending the item to a menu didn't have any effect, fix this by checking the item state when actually attaching it. Closes #15748.

2014-02-02 02:15 VZ, revision 75766

Prevent wxGrid rows/columns from becoming too small on double click. The minimal size wasn't respected when auto-sizing rows/columns in Set{Row,Col}Size() which was called in response to double clicking the separator line, which resulted in clearly wrong behaviour as the user was prevented from resizing the row/column to a smaller size by dragging them but not by double clicking, so fix this to respect the minimal size as well. Closes #15627.

2014-02-02 02:15 VZ, revision 75765

Fix alpha channel values when using wxGCDC with wxMemoryDC in wxMSW. Ensure that 32bpp bitmaps selected in wxMemoryDC use DIB for their internal representation as GDI+ functions don't seem to work correctly with DDBs with alpha channel. Closes #13328.

2014-02-02 02:15 VZ, revision 75764

Disable the use of compiler TLS by default under Windows. While compiler TLS support is simpler to use and much faster than using our own Win32 API-based TLS implementation, it results in difficult to debug crashes when used inside a dynamically loaded DLL under Windows XP, so disable it by default to be safe. Closes #13116.

2014-02-02 02:15 VZ, revision 75763

Move wxCHECK_MINGW32_VERSION() declaration to wx/msw/gccpriv.h. Unfortunately we can't keep it in wx/compiler.h which is included too early, before UNICODE macro is defined, and we can't define it before including wx/setup.h which itself must be included after wx/compiler.h. So move it to wx/msw/gccpriv.h which is not a great solution, as the best would be to get rid of this gcc-specific file completely, but at least should make everything build again and ensure that _mingw.h is included after UNICODE definition. Closes #15798.

2014-02-01 22:01 PC, revision 75761

don't avoid no-window widgets in GTKUpdateCursor() it doesn't work for things like multi-line text control where m_widget is a no-window GtkScrolledWindow

2014-02-01 21:05 PC, revision 75760

fix running with GTK < 2.18 when built with later GTK

2014-02-01 19:26 PC, revision 75759

restore non-default cursors in native widgets when unsetting wxCursor

2014-02-01 19:22 VZ, revision 75758

Recompute the tooltip width when changing its text in wxMSW. This avoids unnecessarily wrapping the tooltips if they are set to a longer string than their initial value later. Closes #4685.

2014-02-01 19:18 VZ, revision 75757

Don't show windows with "hidden" XRC attribute at all. This is better than showing them initially and then hiding them if only because it avoids the unexpected wxEVT_SHOW events being generated. Closes #15919.

2014-02-01 19:18 VZ, revision 75756

Recompute the tooltip width when changing its text in wxMSW. This avoids unnecessarily wrapping the tooltips if they are set to a longer string than their initial value later. Closes #4685.

2014-02-01 18:08 PC, revision 75755

don't override non-default cursors in native controls when no wxCursor is set, a regression introduced by r75690

2014-02-01 11:39 TIK, revision 75754

Add Kabyle language, as rare language it uses a three-letter code as per ISO 639-2.

2014-02-01 11:39 TIK, revision 75753

Add Kabyle language, as rare language it uses a three-letter code as per ISO 639-2.

2014-02-01 11:39 TIK, revision 75752

Add Kabyle language, as rare language it uses a three-letter code as per ISO 639-2.

2014-01-31 20:33 VZ, revision 75751

Use automatic resource management in wxMSW wxDC::DrawRotatedText(). No real changes, just simplify the code by using RAII classes. Also avoid unnecessary indentation by returning after checking for the special cases.

2014-01-31 20:33 VZ, revision 75750

Support multiline strings in wxDC::DrawRotatedText() in wxMSW. The native API doesn't support this, so do it by splitting the string into lines manually. Closes #9686.

2014-01-31 19:26 PC, revision 75749

build fix for GTK3, see #15930

2014-01-31 17:06 VZ, revision 75748

Try to detect invalid wxHtmlWindow title format earlier. Assert directly in wxHtmlWindow::SetRelatedFrame() instead of doing it much later, hopefully people will read the comment at the assert point.

2014-01-30 20:40 VZ, revision 75747

Add xh_ribbon.cpp to MSVC 10 ribbon library project. Fix linking errors when using wxRibbonXmlHandler. Closes #15927.

2014-01-30 20:40 VZ, revision 75746

Reduce the number of realloc() calls in wxHtmlTableCell. Don't call realloc() after adding each row, this is horribly inefficient, so preallocate more memory to avoid this. Closes #15931.

2014-01-30 20:40 VZ, revision 75745

Correctly detect cancelled drag-and-drop operations in wxGTK. The status of the drop operation wasn't propagated back to the initiator of drag and drop, so failing to drop data over a possibly accepting recipient could result in wrong behaviour and even data loss. Closes #15930.

2014-01-30 20:40 VZ, revision 75744

Deprecate wxTipProvider::PreprocessTip(). It is completely useless, and there is no reason to keep it. Closes #15916.

2014-01-30 20:14 VZ, revision 75743

Add xh_ribbon.cpp to MSVC 10 ribbon library project. Fix linking errors when using wxRibbonXmlHandler. Closes #15927.

2014-01-30 19:58 VZ, revision 75742

Reduce the number of realloc() calls in wxHtmlTableCell. Don't call realloc() after adding each row, this is horribly inefficient, so preallocate more memory to avoid this. Closes #15931.

2014-01-30 04:32 VZ, revision 75741

Update copyright year in the library versions. Update the version info dialog and the version info included in MSW DLLs.

2014-01-29 23:29 VZ, revision 75740

Don't mark wxMSW applications as being DPI aware. Because they are not, fully. While our standard controls do appear correctly in any DPI, anything using bitmaps/icons (e.g. toolbars, AUI title bars, ...) isn't usable at all without scaling at high DPI, so it's better to avoid pretending that we're DPI aware at all rather than doing it without being it for 100%. This reverts the changes of r63990.

2014-01-29 23:26 VZ, revision 75739

Fix a bug which could result in two default buttons in wxMSW dialogs. Exchange the order of setting/resetting the new/old button as the default one when focus is lost/gained to avoid the possibility of having two simultaneously default buttons at once. Closes #9528.

2014-01-29 23:25 VZ, revision 75738

Fix handling of wxSET, wxCLEAR and wxINVERT ROPs in wxMSW. Avoid passing source HDC to MaskBlt() for these ROPs which only use the destination HDC as they produce garbage instead of just ignoring the source in if it's non-NULL. Closes #2047.

2014-01-29 23:25 VZ, revision 75737

Fix wxClientDC::Clear() for scrolled windows in wxMSW. Take the DC origin into account when clearing a window DC and not only a memory one. Closes #2048.

2014-01-29 23:25 VZ, revision 75736

Fix wxPrinterDC::DrawIcon() in wxMSW. Make DrawIcon() work when printing: it previously didn't, as we used ::DrawIconEx() Windows function which wasn't supported when printing. Work around this by using DrawBitmap() if necessary. Closes #379.

2014-01-29 23:25 VZ, revision 75735

Fix display of bitmaps with alpha in wxStaticBitmap under MSW. Avoid double alpha pre-multiplication by converting the bitmap into a non pre-multiplied format before passing it to STM_SETIMAGE. Closes #2395.

2014-01-29 23:25 VZ, revision 75734

Virtualize wxXmlNode methods used by wxAuiToolBarXmlHandler. This fixes the DLL build of aui library as it can now be linked without leaving any unresolved dependencies to the code in xml library (where wxXmlNode is implemented). Closes #15686.

2014-01-29 23:25 VZ, revision 75733

Fix bug with non-NUL-terminaed inputs in wxMBConvUTF8. We read beyond the provided maximal length as we didn't update the remaining length while parsing the remaining bytes of an UTF-8-encoded code point. Fix this and add a test for it. Closes #15901.

2014-01-29 23:24 VZ, revision 75732

Fix a bug which could result in two default buttons in wxMSW dialogs. Exchange the order of setting/resetting the new/old button as the default one when focus is lost/gained to avoid the possibility of having two simultaneously default buttons at once. Closes #9528.

2014-01-29 23:24 VZ, revision 75731

Fix handling of wxSET, wxCLEAR and wxINVERT ROPs in wxMSW. Avoid passing source HDC to MaskBlt() for these ROPs which only use the destination HDC as they produce garbage instead of just ignoring the source in if it's non-NULL. Closes #2047.

2014-01-29 23:24 VZ, revision 75730

Fix wxClientDC::Clear() for scrolled windows in wxMSW. Take the DC origin into account when clearing a window DC and not only a memory one. Closes #2048.

2014-01-29 23:24 VZ, revision 75729

Fix wxPrinterDC::DrawIcon() in wxMSW. Make DrawIcon() work when printing: it previously didn't, as we used ::DrawIconEx() Windows function which wasn't supported when printing. Work around this by using DrawBitmap() if necessary. Closes #379.

2014-01-29 23:24 VZ, revision 75728

Fix bug with non-NUL-terminaed inputs in wxMBConvUTF8. We read beyond the provided maximal length as we didn't update the remaining length while parsing the remaining bytes of an UTF-8-encoded code point. Fix this and add a test for it. Closes #15901.

2014-01-29 23:24 VZ, revision 75727

Fix display of bitmaps with alpha in wxStaticBitmap under MSW. Avoid double alpha pre-multiplication by converting the bitmap into a non pre-multiplied format before passing it to STM_SETIMAGE. Closes #2395.

2014-01-28 17:52 VZ, revision 75725

Fix embarrassing typo in the last commit.

2014-01-28 14:45 VZ, revision 75724

Add forward declaration of wxCmdLineParser to fix compilation. This should fix the build after the previous commit.

2014-01-28 14:04 VZ, revision 75723

Allow iterating over wxCmdLineParser arguments in order. This allows the meaning of the options to depend on their order relatively to the other options which wasn't possible before. See http://review.bakefile.org/r/557/

2014-01-27 08:53 RD, revision 75718

Add some of the Draw* methods that have been available in wxPython.

2014-01-27 08:50 RD, revision 75716

Add some of the Draw* methods that have been available in wxPython.

2014-01-26 17:24 VZ, revision 75715

Try rounding the values when resizing wxImage instead of truncating. This would seem to make more sense and might also fix the test failures resulting from tiny differences in arithmetic operations when compiled with different compilers/under different architectures. Regenerate the test files and commit (disabled) change to the unit test allowing to do it again in the future.

2014-01-26 15:08 VZ, revision 75714

Don't keep dangling pointers in other wxRibbonButtonBar members neither. This should have been part of r75710: after deleting the button, also reset any stored pointers to it. Closes #15909.

2014-01-26 15:08 VZ, revision 75713

Fix `wx-config --libs` in monolithic build. Don't include non-existent libraries (which are built as part of the main monolithic one) in this case. Closes #15567.

2014-01-26 14:52 VZ, revision 75712

Fix `wx-config --libs` in monolithic build. Don't include non-existent libraries (which are built as part of the main monolithic one) in this case. Closes #15567.

2014-01-25 18:39 VZ, revision 75711

Don't leave dandling pointers in wxDataViewCtrl in wxOSX. The previous m_ModelNotifier became invalid but wasn't always replaced with a valid one, resulting in a crash due to the use of an invalid pointer. Closes #15910.

2014-01-25 18:39 VZ, revision 75710

Delete the button object in wxRibbonButtonBar::DeleteButton(). Unlike ClearButtons(), DeleteButton() didn't actually delete the button. Fix this and document this behaviour. Closes #15909.

2014-01-25 18:38 VS, revision 75709

Fix improper NSGraphicsContext handling in wxOSXCreateBitmapContextFromNSImage. Don't leave currentContext set to the temporary context indefinitely, but restore the previous one when done. It's apparent from the code that this is how it was meant to be done. Not doing this can result in strange, insanely hard to debug errors in completely unrelated places, because OS X (at least < 10.9) reuses a pool of contexts. For example, this change fixes Quicklook crashes in file open panel on 10.8. For detailed explanation, see the lengthy discussion at https://code.google.com/p/chromium/issues/detail?id=90140

2014-01-25 18:38 VS, revision 75708

Fix improper NSGraphicsContext handling in wxOSXCreateBitmapContextFromNSImage. Don't leave currentContext set to the temporary context indefinitely, but restore the previous one when done. It's apparent from the code that this is how it was meant to be done. Not doing this can result in strange, insanely hard to debug errors in completely unrelated places, because OS X (at least < 10.9) reuses a pool of contexts. For example, this change fixes Quicklook crashes in file open panel on 10.8. For detailed explanation, see the lengthy discussion at https://code.google.com/p/chromium/issues/detail?id=90140

2014-01-25 18:28 VZ, revision 75707

Don't leave dandling pointers in wxDataViewCtrl in wxOSX. The previous m_ModelNotifier became invalid but wasn't always replaced with a valid one, resulting in a crash due to the use of an invalid pointer. Closes #15910.

2014-01-24 22:08 SC, revision 75700

backport, fixes memory leak

2014-01-24 22:07 SC, revision 75699

backport, fixes normalization

2014-01-24 21:27 SC, revision 75698

make things work as advertised

2014-01-24 20:55 SC, revision 75697

fixing memory leak

2014-01-24 19:29 PC, revision 75696

fix GetBordersForSizer(), closes #15872

2014-01-23 22:02 JS, revision 75693

Added an optimisation when the control is frozen

2014-01-23 22:01 JS, revision 75692

Added an optimisation when the control is frozen

2014-01-23 19:37 PC, revision 75691

remove some debugging code inadvertently checked in as part of r75690

2014-01-23 19:27 PC, revision 75690

Fix cursor inheritance and busy cursor/global cursor, closes #15801

2014-01-23 06:54 PC, revision 75689

use the more appropriate letter 'h' for height

2014-01-23 06:47 PC, revision 75688

fix a couple GTK assertions about setting negative sizes, closes #15891

2014-01-23 05:46 PC, revision 75687

fix wxPopupTransientWindow mouse events with GTK3, also fixes wxOwnerDrawnComboBox, wxDatePickerCtrl. closes #15874

2014-01-23 01:18 RD, revision 75676

Add missing joystick methods

2014-01-23 01:17 RD, revision 75675

add SetRGB overload

2014-01-23 01:17 RD, revision 75674

Add missing joystick methods

2014-01-23 01:16 RD, revision 75673

add SetRGB overload

2014-01-22 14:10 VZ, revision 75672

Russian translations update from Dmitry Levichev.

2014-01-22 14:10 VZ, revision 75671

Russian translations update from Dmitry Levichev.

2014-01-22 05:14 PC, revision 75670

restrict fix from r75668 to GTK3 only, as it might cause flickering

2014-01-21 22:46 VZ, revision 75669

Remove unnecessary CommandStateChangeConstants enum redeclaration. This declaration conflicted with the one in the latest MinGW-W64 headers and wasn't needed anyhow as we don't use neither the enum itself nor its members in our code, so just remove it to fix the build in 64 bits with MinGW-W64 4.8.

2014-01-21 20:37 PC, revision 75668

Fix best size calculation with GTK3 GTK3 reports preferred size of hidden widgets as zero. see #15896

2014-01-21 20:32 VZ, revision 75667

Move deprecated wxFont ctor implementation out of line. Blind fix to avoid strange warnings given by OS X build slave about the ctor being deprecated when it's defined, not used.

2014-01-21 20:32 VZ, revision 75666

Add a virtual dtor to wxEventLoopSourcesManagerBase to avoid g++ warnings. This virtual dtor is not really needed as manager objects are static singletons and are not destroyed via their pointer, but add a virtual dtor just to avoid g++ warnings about its absence.

2014-01-21 19:39 VZ, revision 75665

Send events when toggling wxPropertyGrid nodes from keyboard. Closes #15899.

2014-01-21 19:39 VZ, revision 75664

Draw the selected bitmap correctly in wxMSW buttons. Clear the previously drawn bitmap before drawing the new one. Closes #12550.

2014-01-21 19:39 VZ, revision 75663

Avoid selecting invalid tab when removing last page from wxOSX wxNotebook. Closes #15897.

2014-01-20 15:45 VZ, revision 75662

Remove unnecessary redundant assignments. Don't assign values consecutively to the same variable without using it in between the assignments, this is useless. See #15893.

2014-01-20 15:45 VZ, revision 75661

Remove redundant checks from conditional statements. It is not necessary to test for the condition which is already known to be true or false because the code is inside the if statement checking it. See #15893.

2014-01-20 15:45 VZ, revision 75660

Correct wrong error handler in wxDialUpManagerMSW code. Forgot to set the success flag to false if thread creation failed. See #15893.

2014-01-20 15:45 VZ, revision 75659

Don't pass input parameter by non-const reference unnecessarily. This is confusing. See #15893.

2014-01-20 15:45 VZ, revision 75658

Don't pass ID to wxWindow::LoadNativeDialog() by reference. This is completely unnecessary and confusing. See #15893.

2014-01-20 15:45 VZ, revision 75657

Pass non-primitive types by const reference instead of value. No real changes, just avoid the unnecessary copying and also make the signatures more consistent by adding the apparently forgotten "&" in a couple of places. See #15893.

2014-01-20 15:44 VZ, revision 75656

Fix exit on last TLW logic after the change of r75633. The changes in this revision meant to prevent the closure of transient dialogs from quitting the application (see #15880) prevented any application using AUI, including the aui sample, from exiting as the AUI utility frames deleted during the main frame destruction were returning false from their IsLastBeforeExit() now. Fix this by relaxing the check and ignoring the parent if it is already being deleted anyhow -- in this case there is no danger of closing it accidentally. Closes #15894.

2014-01-20 15:44 VZ, revision 75655

Deal correctly with non-ASCII hostnames in wxGetFullHostName() in wxMSW. Somewhat surprisingly, Windows can return a non-ASCII string from gethostname(). It's not really clear what happens if the host name is not representable in the current locale encoding at all, but at least make the function work in case it is. Closes #15875.

2014-01-20 15:44 VZ, revision 75654

Ensure wxChoice reported width never becomes negative in wxMSW. Don't set the pending size to (-1, valid-height) as it is always supposed to be either fully valid or fully invalid (meaning there is no pending size change). Closes #15723.

2014-01-19 20:03 VZ, revision 75653

Work around g++ warning about comparing compatibility_iterator with NULL. Use double negation to placate both it and MSVC, see r75445.

2014-01-19 15:14 VZ, revision 75652

Use wxUSE_WXDIB in preprocessor tests. NEVER_USE_DIB is meant to be used only in conjunction with {SOMETIMES,ALWAYS}_USE_DIB constants, use wxUSE_WXDIB elsewhere. This is more logical and also fixes inadvertent use of NEVER_USE_DIB before it is defined added by the changes of r75648. See #13328.

2014-01-19 15:14 VZ, revision 75651

Exclude wxMSW-specific code from compilation under other platforms. Compilation fix after r75648, see #13328.

2014-01-19 14:16 VZ, revision 75650

Improve appearance of tools using bitmaps with alpha in wxMSW wxToolBar. Use alpha in the combined toolbar bitmap if any of its tools has a bitmap using alpha. This greatly improves the appearance of the automatically generated disabled images for the tools with bitmaps using alpha. See #15876.

2014-01-19 14:15 VZ, revision 75649

Fix appearance of tools with alpha bitmaps in wxMSW wxToolBar. Recent changes broke the handling of tools with alpha bitmaps as drawing them on the global toolbar bitmap changes its underlying HBITMAP now, but the code in wxToolBar didn't expect this. Fix it by updating the HBITMAP used after every DrawBitmap() call, just in case it changed (it doesn't cost anything to reset it if it did not). Closes #15876.

2014-01-19 14:15 VZ, revision 75648

Fix alpha channel values when using wxGCDC with wxMemoryDC in wxMSW. Ensure that 32bpp bitmaps selected in wxMemoryDC use DIB for their internal representation as GDI+ functions don't seem to work correctly with DDBs with alpha channel. Closes #13328.

2014-01-19 14:15 VZ, revision 75647

Use AssocQueryString() instead of manual accessing registry in wxMSW. AssocQueryString() is more reliable and should work under all Windows versions, including Windows 8 for which our previous implementation, reading the values directly from the registry, had some problems.

2014-01-19 14:15 VZ, revision 75646

Restore correct handling of wxDocument::OnCreate() error return value. The changes of r74515 didn't quite restore the old behaviour, the document was still not being cleaned up if its OnCreate() simply returned false and not threw an exception. Do add cleanup in this code branch too, just duplicating what we in case of exception (this duplication can't be easily avoided unfortunately). Closes #15883.

2014-01-19 14:15 VZ, revision 75645

Focus generic spin control when its spin button is pressed. This is consistent with the behaviour of the native control under MSW and GTK and generally makes sense as otherwise focus could remain on a completely unrelated control. Closes #15885.

2014-01-19 13:58 VZ, revision 75644

Fix setting fonts and colours for wxToggleButton with bitmaps in wxGTK. Apply the fixes of r54138 to wxToggleButton too, the problem of #3939 was not specific to just plain wxButtons.

2014-01-19 13:57 VZ, revision 75643

Fix setting fonts and colours for wxToggleButton with bitmaps in wxGTK. Apply the fixes of r54138 to wxToggleButton too, the problem of #3939 was not specific to just plain wxButtons.

2014-01-19 12:44 VZ, revision 75642

Fix possible crash in TAR header parsing code. Check that the iterator is valid before using its value, otherwise the validity check was useless. Closes #15888.

2014-01-19 12:39 VZ, revision 75641

Fix possible crash in TAR header parsing code. Check that the iterator is valid before using its value, otherwise the validity check was useless. Closes #15888.

2014-01-17 19:56 VZ, revision 75640

Override Do{Freeze,Thaw}() instead of {Freeze,Thaw}() in wxPropGrid code. {Freeze,Thaw}() themselves are not virtual any more, so overriding them doesn't really work and it is unnecessary to reimplement the reference counting already done by the base class anyhow, so override the DoXXX() versions instead. Closes #15877.

2014-01-17 17:50 PC, revision 75639

avoid crash with GTK3 when deleting an item, closes #15786

2014-01-17 15:33 VZ, revision 75638

Fix wrong variable name in the example in wxVariantDataSafeArray documentation. Closes #15882.

2014-01-17 15:32 VZ, revision 75637

Compilation fix for the example in wxThread documentation. Make MyThread a friend to allow it accessing the private fields of MyFrame. Notice that this example still remains badly written and should be ideally entirely redone using conditions and mutexes. See #15881.

2014-01-17 15:32 VZ, revision 75636

Fix syntax error in the QueueEvent() documentation example. Use ".", not "->", on the object. Closes #15881.

2014-01-16 22:45 VZ, revision 75635

wxWindow::SetWindowVariant() does do something under ports other than wxOSX. Document that this function adjusts the window font size under non-OS X systems and explain why it should still be used instead of changing the font size directly.

2014-01-16 22:44 VZ, revision 75634

Ensure that the help viewer keeps running as long as its main frame is opened. Do prevent the app from exiting when the help frame is shown in the special case of the help viewer application where the default behaviour of exiting the application when only the help window remains open is inappropriate and results in unexpected program exit if we open and then close any dialog, e.g. from the help frame toolbar. Even though the previous commit actually already fixed the problem in the current code, still apply this fix as well, just in case we can (or could, in the future) should any dialogs with NULL parent in this program. Closes #15880.

2014-01-16 22:44 VZ, revision 75633

Avoid automatically closing parent frame if a child dialog was closed. This counterintuitive behaviour could happen when a dialog of a frame returning false from its ShouldPreventAppExit() was closed: if there were no other TLWs in the application, then the parent frame could be closed as well, even if this clearly shouldn't happen. See #15880.

2014-01-16 22:41 VZ, revision 75632

wxWindow::SetWindowVariant() does do something under ports other than wxOSX. Document that this function adjusts the window font size under non-OS X systems and explain why it should still be used instead of changing the font size directly.

2014-01-16 22:33 VZ, revision 75631

Ensure that the help viewer keeps running as long as its main frame is opened. Do prevent the app from exiting when the help frame is shown in the special case of the help viewer application where the default behaviour of exiting the application when only the help window remains open is inappropriate and results in unexpected program exit if we open and then close any dialog, e.g. from the help frame toolbar. Even though the previous commit actually already fixed the problem in the current code, still apply this fix as well, just in case we can (or could, in the future) should any dialogs with NULL parent in this program. Closes #15880.

2014-01-16 22:33 VZ, revision 75630

Avoid automatically closing parent frame if a child dialog was closed. This counterintuitive behaviour could happen when a dialog of a frame returning false from its ShouldPreventAppExit() was closed: if there were no other TLWs in the application, then the parent frame could be closed as well, even if this clearly shouldn't happen. See #15880.

2014-01-14 06:36 RD, revision 75625

Add missing GetControl and SetControl methods

2014-01-14 06:36 RD, revision 75624

add missing GetVeto method

2014-01-14 06:35 RD, revision 75623

Add missing GetControl and SetControl methods

2014-01-14 06:35 RD, revision 75622

add missing GetVeto method

2014-01-13 14:38 VZ, revision 75608

Document wxWindow::FindWindow() TLW skipping behaviour. Explicitly mention that TLW "children" are not searched by this function (which is the case since r74721).

2014-01-13 14:38 VZ, revision 75607

Document incompatible change to wxWindow::FindWindow() in 3.0. We now skip the TLW children in this method, see r74721. Also explicitly mention that TLW "children" are not searched by this function in the documentation.

2014-01-12 15:13 VZ, revision 75606

Support file associations using "show" verb under MSW too. If we failed to find the "open" command, try the "show" one as some programs (notable Microsoft viewers for Office file formats) only define the latter but not the former. Closes #15821.

2014-01-12 15:13 VZ, revision 75605

Support file associations using "show" verb under MSW too. If we failed to find the "open" command, try the "show" one as some programs (notable Microsoft viewers for Office file formats) only define the latter but not the former. Closes #15821.

2014-01-11 15:25 VZ, revision 75590

Don't use deprecated wxBOLD, wxNORMAL and similar constants. Replace them with wxFONTWEIGHT_BOLD, wxFONTSTYLE_NORMAL or wxFONTWEIGHT_NORMAL and equivalents in the code of the library itself and in the samples. Also simplify font construction using wxFontInfo where possible to avoid specifying these constants at all if they are not needed.

2014-01-11 15:25 VZ, revision 75589

Remove commented out line from the dnd sample. No real changes, just remove the unnecessary line and its outdated comment (wxPaintDC::Clear() can be called in wxGTK, it's just not useful).

2014-01-11 15:24 VZ, revision 75588

wxBitmap with cleared alpha channel doesn't keep its alpha flag any more. Explicitly reset wxBitmap alpha flag after clearing its alpha channel to ensure that we don't treat it as having alpha after going to all the trouble of ensuring that it doesn't/ See #14403.

2014-01-11 03:52 VZ, revision 75587

Rename wxLANGUAGE_CAMBODIAN to wxLANGUAGE_KHMER. Keep the old name for compatibility. See https://github.com/wxWidgets/wxWidgets/pull/2

2014-01-11 03:52 VZ, revision 75586

No real changes, just fix a typo in a comment. z/preffered/preferred/

2014-01-10 15:18 VZ, revision 75585

Allow building wxGTK using GTK+3 under Windows too. No real changes, just use the right libraries for GTK+3 port. Closes #15871.

2014-01-10 06:15 RD, revision 75579

Add doc for wxFlexGridSizer::GetRowHeights and GetColWidths

2014-01-10 06:14 RD, revision 75578

Add doc for wxFlexGridSizer::GetRowHeights and GetColWidths

2014-01-08 16:56 JJ, revision 75572

Fix compilation on OpenVMS id the logical CONFIG is defined

2014-01-08 01:38 VZ, revision 75571

Disable wxUSE_PREFERENCES_EDITOR in correct place in wxiOS. wx/osx/setup0.h is auto-generated, so r74708 shouldn't have changed it as the change was overwritten by r75568 which regenerated that file. Instead, disable wxUSE_PREFERENCES_EDITOR in iPhone-specific file.

2014-01-07 22:54 VZ, revision 75570

Fix check for the item being checked when appending it under wxMSW. The changes of r75448 were wrong, we can't ask Windows for the item state before attaching it to the menu, so just check the internal flag here. See ##15748.

2014-01-07 22:54 VZ, revision 75569

Fix benchmarks compilation with WXWIN_COMPATIBILITY_2_8 set to 0. Include wx/crt.h explicitly to be able to use wxPrintf() and friends.

2014-01-07 22:54 VZ, revision 75568

Disable the use of compiler TLS by default under Windows. While compiler TLS support is simpler to use and much faster than using our own Win32 API-based TLS implementation, it results in difficult to debug crashes when used inside a dynamically loaded DLL under Windows XP, so disable it by default to be safe. Closes #13116.

2014-01-07 22:13 VZ, revision 75567

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.

2014-01-07 22:13 VZ, revision 75566

Fix alpha after drawing a bitmap with alpha on a purely RGB bitmap in wxMSW. Previously, the area of the bitmap outside of the rectangle covered by the bitmap being drawn became completely transparent, "losing" the original bitmap contents. This was due to some pixels of the bitmap having non-0 alpha value after AlphaBlend() call, as it updates both the colours and alpha of the destination. As there doesn't seem to be any way to prevent it from doing this, just reset alpha back to 0 after calling it to avoid the problem. Closes #14403.

2014-01-06 13:42 VZ, revision 75565

Just deprecate but don't schedule for removal wxNORMAL and friends. Deprecate the use of the old untyped constants but don't schedule them from removal in a future wx version by removing "#if WXWIN_COMPATIBILITY_3_0" tests around their definition and use. Provoking deprecation warnings in the code using these constants is worth it as they are unclear and it's easy to make mistakes when using them, but breaking this code compilation outright can't be justified -- even in the future. Also use more informational wxDEPRECATED_MSG() instead of a simple wxDEPRECATED() as it might not be obvious at all how should the code be updated exactly. Finally, avoid the use of deprecated constants inside the library itself. As a side effect, this closes #15814.

2014-01-06 13:42 VZ, revision 75564

Actually implement default wxPasswordEntryDialog ctor. This was added in r75404 but not implemented, do provide the trivial definition of this function too. Closes #15770.

2014-01-05 22:11 VZ, revision 75563

Fix mouse wheel event coordinates in wxFrame in wxMSW. The screen to client conversion for this event coordinates took the toolbar height into account twice, resulting in a wrong value if the event was handled in a frame that did have a toolbar. Closes #15812.

2014-01-05 22:11 VZ, revision 75562

Update the versions of the libraries built by wx_vc10.sln. Use "31" or "310" in the library names instead of "30". Closes #15810.

2014-01-05 22:10 VZ, revision 75561

Deprecate wxPropertyGrid::DoubleToString(). Simply use wxNumberFormatter instead, this reduces code duplication and avoids bugs due to formatting inconsistencies in DoubleToString(). Closes #15625.

2014-01-05 22:10 VZ, revision 75560

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.

2014-01-05 22:10 VZ, revision 75559

Fix mouse wheel event coordinates in wxFrame in wxMSW. The screen to client conversion for this event coordinates took the toolbar height into account twice, resulting in a wrong value if the event was handled in a frame that did have a toolbar. Closes #15812.

2014-01-05 20:20 VZ, revision 75558

Portuguese translations update from Manuela Silva.

2014-01-05 20:20 VZ, revision 75557

Portuguese translations update from Manuela Silva.

2014-01-05 14:56 VZ, revision 75556

Remove unnecessary _mingw.h inclusion from wx/msw/missing.h. This header is already included from wx/platform.h which is always included before wx/msw/missing.h.

2014-01-05 14:56 VZ, revision 75555

Move wxCHECK_MINGW32_VERSION() declaration to wx/msw/gccpriv.h. Unfortunately we can't keep it in wx/compiler.h which is included too early, before UNICODE macro is defined, and we can't define it before including wx/setup.h which itself must be included after wx/compiler.h. So move it to wx/msw/gccpriv.h which is not a great solution, as the best would be to get rid of this gcc-specific file completely, but at least should make everything build again and ensure that _mingw.h is included after UNICODE definition. Closes #15805.

2014-01-05 14:55 VZ, revision 75554

Revert "Move UNICODE section of wx/platform.h before wx/compiler.h inclusion." Unfortunately this fix for MinGW broke compilation under Unix, see #15805. This reverts r75520.

2014-01-05 14:55 VZ, revision 75553

Revert "Define wxUSE_UNICODE on compiler command line in Unix builds too." This fix only helps with building wxWidgets itself but doesn't help when building user code using it, so revert it as we need another solution to this problem anyhow. This reverts r75536, see #15805.

2014-01-05 14:55 VZ, revision 75552

Simplify and fix column determination code in wxGridStringTable. The number of columns in the table is now (since r60717) stored in m_numCols, so there is no need to get it from wxGrid any more. This is not only simpler and faster but also more correct as the first row might not have the full number of values yet. Closes #15809.

2014-01-05 13:56 VZ, revision 75551

Simplify and fix column determination code in wxGridStringTable. The number of columns in the table is now (since r60717) stored in m_numCols, so there is no need to get it from wxGrid any more. This is not only simpler and faster but also more correct as the first row might not have the full number of values yet. Closes #15809.

2014-01-04 23:50 VZ, revision 75550

Add Aragonese translations by Jorge Pérez.

2014-01-04 23:50 VZ, revision 75549

Fix another wxDOT deprecation warning, this time in wxGTK build. Use wxPENSTYLE_DOT instead.

2014-01-04 23:50 VZ, revision 75548

Add Aragonese translations by Jorge Pérez.

2014-01-04 23:20 VZ, revision 75547

Fix tons of warnings in wxMSW after deprecating wxPen/wxBrush int styles &c. Replacement of FUTURE_WXWIN_COMPATIBILITY_3_0 with WXWIN_COMPATIBILITY_3_0 in r75532 resulted in tons of warnings as all code using wxSOLID and similar constants now uses the deprecated methods taking int instead of the preferred ones taking wx{Pen,Brush}Style (and similarly for wxFont{Style,Weight,Family}). Fix all of them but this also would seem to mean that this change might not be such a good idea at all.

2014-01-04 22:58 VZ, revision 75538

Revert "Hack wxMSW wxNotebook to show the text controls correctly initially." This hack resulted in showing a black rectangle corresponding to the initial size of the first notebook page when creating the notebook, as could be seen in the notebook sample by pressing Alt+2,Alt+1 to recreate the notebook after the startup. If the bug that this hack was supposed to fix hasn't been fixed yet (and it might have been by r73126, but it's hard to be sure as we don't have any test case for that bug), we could reintroduce this call to Update() but only if we're not inside a deferred resize (i.e. m_hDWP != 0) as it just can't work correctly in this case. This reverts r69793.

2014-01-04 22:58 VZ, revision 75537

Remove unnecessary ::SetWindowLong() call in wxMSW wxNotebook code. There is no point in manually resetting WS_VISIBLE style before calling wxWindow::Show(false) which does it too.

2014-01-04 22:58 VZ, revision 75536

Define wxUSE_UNICODE on compiler command line in Unix builds too. Under Windows we already define _UNICODE which gets picked up and translated to wxUSE_UNICODE by wx/platform.h, but under Unix we didn't do it until now. Do it both for consistency and to fix the build breakage since r75520 which moved the tests for wxUSE_UNICODE being defined before wx/setup.h. This seems like the simplest solution because otherwise there doesn't seem to be any single header order which would work under both Windows and Unix: under Windows we need to include wx/compiler.h, and hence _mingw.h included from it, before wx/setup.h, which implies that wxUSE_UNICODE must be set before doing it, but under Unix wxUSE_UNICODE was only defined in wx/setup.h and so couldn't be tested before including wx/compiler.h. And just the explanation above should convincingly show that defining wxUSE_UNICODE in CPPFLAGS makes things simpler. Closes #15805.

2014-01-04 22:58 VZ, revision 75535

Fix wrong comment in the scroll sample. Fix coordinates in the comment to match those used by the code. Closes #15804.

2014-01-04 22:58 VZ, revision 75534

Reset sorting column index in generic wxDataViewCtrl when clearing columns. Otherwise we could continue to use the now invalid index for sorting. Closes #15803.

2014-01-04 21:48 VZ, revision 75533

Reset sorting column index in generic wxDataViewCtrl when clearing columns. Otherwise we could continue to use the now invalid index for sorting. Closes #15803.

2014-01-04 21:07 PC, revision 75532

remove WXWIN_COMPATIBILITY_2_6, add WXWIN_COMPATIBILITY_3_0 closes #15792

2014-01-03 15:40 VZ, revision 75523

Avoid asserts in wxGTK when wxMDIChildFrame::SetSize() is called. SetSize() doesn't do anything for MDI children in wxGTK and other ports using TDI version of MDI, but it shouldn't result in an assert from wxTLW::DoMoveWindow() neither, so override DoMoveWindow() in wxTDIChildFrame to avoid it.

2014-01-03 15:40 VZ, revision 75522

Avoid asserts in wxGTK when wxMDIChildFrame::SetSize() is called. SetSize() doesn't do anything for MDI children in wxGTK and other ports using TDI version of MDI, but it shouldn't result in an assert from wxTLW::DoMoveWindow() neither, so override DoMoveWindow() in wxTDIChildFrame to avoid it.

2014-01-03 02:34 VZ, revision 75521

Revert "Don't intercept accelerators in wxTextValidator in wxGTK." Testing for absence of Alt modifier is wrong as it could be specified for the events generated by AltGr-letter key combinations (AltGr is Alt+Ctrl), so this commit broke the validation of any such symbols entered from non-US keyboard. This is worse than the problem it was trying to fix, so revert this for now. The real fix will need to ensure that the mnemonics are checked first, i.e. before generating EVT_CHAR, in wxGTK, just as it already happens in wxMSW. This reverts r75453. See #15777.

2014-01-03 02:18 VZ, revision 75520

Move UNICODE section of wx/platform.h before wx/compiler.h inclusion. This fixes the build with some versions of MinGW which depend on UNICODE being defined correctly in _mingw.h which is included from wx/compiler.h, so that before this change the build was broken as inconsistent definitions of UNICODE were used there and in windows.h included later.

2014-01-03 02:12 VZ, revision 75519

Define HAVE_VARIADIC_MACROS as 1, not nothing, in wx/cpp.h. This avoids g++ warning about HAVE_VARIADIC_MACROS redefinition in setup.h if wx/cpp.h happens to be included before it.

2014-01-03 02:08 VZ, revision 75518

Don't keep using the old wxBitmap data after modifying it directly in wxGTK. Drawing on a wxBitmap via wxMemoryDC modified its pixmap representation in wxGTK and even if its pixbuf representation was later changed using direct access to the bitmap pixels, the out of date pixmap continued to be used, creating the illusion of direct access being completely ignored. Fix this by purging the old pixmap representation when locking the bitmap for raw access.

2014-01-03 02:06 VZ, revision 75517

Don't keep using the old wxBitmap data after modifying it directly in wxGTK. Drawing on a wxBitmap via wxMemoryDC modified its pixmap representation in wxGTK and even if its pixbuf representation was later changed using direct access to the bitmap pixels, the out of date pixmap continued to be used, creating the illusion of direct access being completely ignored. Fix this by purging the old pixmap representation when locking the bitmap for raw access.

2014-01-02 01:24 RD, revision 75515

Turn off wxUSE_COMPILER_TLS for wxPython builds to avoid crashes on XP.

2014-01-02 01:21 RD, revision 75514

Turn off wxUSE_COMPILER_TLS for wxPython builds to avoid crashes on XP.

2013-12-31 15:03 VZ, revision 75507

Mention horizontal scrolling in wxScrollBar documentation too. Up/down can also mean left/right. Closes #15791.

2013-12-31 15:03 VZ, revision 75506

No real changes, just fix some typos in the comments. Fix spelling in a couple of comments. Closes #15790.

2013-12-31 15:03 VZ, revision 75505

Use wxScopedArray instead of raw new[]/delete[] and fix memory leak. Don't leak memory in case of error when reading from the stream in BMP loading code. Closes #15789.

2013-12-31 15:03 VZ, revision 75504

Allow initializing wxScopedArray more conveniently. Typical wxScopedArray initialization uses "new T[n]" expression, allow to omit most of it and specify just n, the number of elements to allocate. Use the new shorter form in the places where wxScopedArray(new ...) was used (which is in almost all of them)

2013-12-31 14:58 VZ, revision 75503

Fix possible memory leak in BMP reading code. Don't forget to free the arrays even in case of an error while reading from the stream. Closes #15789.

2013-12-29 20:14 PC, revision 75490

fix memory leak, closes #15785

2013-12-29 12:49 SC, revision 75489

moving special characters handling for EVT_CHAR into SetupKeyEvent, fixes #15784

2013-12-29 11:39 SC, revision 75488

routing to common code, see #15784

2013-12-29 10:04 SC, revision 75487

copy over all modifiers for single char events, fixes shift-tabs for single line controls, see #15784

2013-12-29 04:37 RD, revision 75466

Add missing wxMenuItem methods

2013-12-29 04:37 RD, revision 75465

Slight tweaks for the wxWebKitCtrl doc. Remove inline function bodies.

2013-12-29 04:36 RD, revision 75464

Add wxWebKitCtrl header.

2013-12-29 04:36 RD, revision 75463

Workaround for OSX crash in STC’s CallTip popup. Revert this when the fix in #15765 is backported.

2013-12-29 04:36 RD, revision 75462

Document ctors and dtor for wxListView

2013-12-29 04:36 RD, revision 75461

Add the ability to show a CallTip in the stc sample.

2013-12-29 04:36 RD, revision 75460

Guard against trying to use extend() with None

2013-12-29 04:23 RD, revision 75459

Add missing wxMenuItem methods

2013-12-29 04:22 RD, revision 75458

Slight tweaks for the wxWebKitCtrl doc. Remove inline function bodies.

2013-12-29 04:22 RD, revision 75457

Add wxWebKitCtrl header.

2013-12-29 04:22 RD, revision 75456

Document ctors and dtor for wxListView

2013-12-29 04:22 RD, revision 75455

Add the ability to show a CallTip in the stc sample.

2013-12-29 04:22 RD, revision 75454

Guard against trying to use extend() with None

2013-12-29 01:19 VZ, revision 75453

Don't intercept accelerators in wxTextValidator in wxGTK. Key events with modifiers shouldn't be filtered by the validator as they are used as accelerators and not for the text entry at all. Closes #15777.

2013-12-29 01:19 VZ, revision 75452

Simplify wxTextValidator EVT_CHAR handler. Ignore the event by default to reduce the number of event.Skip() calls. No changes in the code behaviour.

2013-12-29 01:19 VZ, revision 75451

Handle Unicode keys correctly in wxTextValidator. Don't allow entering arbitrary Unicode keys in wxTextValidator limited to digits only, for example.

2013-12-29 01:01 VZ, revision 75450

Make wxTextValidator validation error messages more informative. Saying that "something is invalid" really doesn't help much at all, so try to be at least a bit more informative.

2013-12-29 01:01 VZ, revision 75449

Make wxFILTER_INCLUDE_LIST in wxTextValidator actually usable. Only check for its violation once the full text is entered as otherwise nothing could ever be entered when it was used. Closes #15778.

2013-12-29 01:01 VZ, revision 75448

Fix handling of menu items checked before being attached in wxMSW. Calling wxMenuItem::Check() before appending the item to a menu didn't have any effect, fix this by checking the item state when actually attaching it. Closes #15748.

2013-12-29 01:01 VZ, revision 75447

Avoid crashes when deleting owned top level windows. Don't delay the TLW destruction if it has a parent and its parent is already being deleted: we can't delay the inevitable in this case and only succeed in making the program crash if we try. Closes #15743.

2013-12-29 01:01 VZ, revision 75446

Prevent wxGrid rows/columns from becoming too small on double click. The minimal size wasn't respected when auto-sizing rows/columns in Set{Row,Col}Size() which was called in response to double clicking the separator line, which resulted in clearly wrong behaviour as the user was prevented from resizing the row/column to a smaller size by dragging them but not by double clicking, so fix this to respect the minimal size as well. Closes #15627.

2013-12-29 01:01 VZ, revision 75445

Fix harmless MSVC warning. Avoid "converting value to bool" warning introduced by r75310.

2013-12-28 23:20 VZ, revision 75444

Update the generated file after gen_iface.py change. Regenerate the file to use the symbolic constants instead of the raw values. See #15783.

2013-12-28 23:20 VZ, revision 75443

Use symbolic constants names in the generated wxSTC files. Update the script generating stc.cpp to put the symbolic constants names and not their raw numeric values into the generated code. This makes it much easier to read and understand. Closes #15783.

2013-12-28 16:11 VZ, revision 75439

Mention that raw pixel access is efficient only with DIBs under MSW. While accessing DDBs (now) works too, it's inefficient and should be avoided.

2013-12-28 16:11 VZ, revision 75438

Make raw pixel access work even with DDBs under MSW. This is inefficient, because we need to copy pixels to and from them, but better than silently doing nothing.

2013-12-24 23:17 RD, revision 75428

Fix blank wxComboBox appearance broken by the changes of r75134.

2013-12-23 23:05 RD, revision 75417

Add comment about use of wxFRAME_TOOL_WINDOW

2013-12-23 23:04 RD, revision 75416

Document ctors and dtor for wxListView

2013-12-23 23:04 RD, revision 75415

Add the ability to show a CallTip in the stc sample.

2013-12-23 23:04 RD, revision 75414

Guard against trying to use extend() with None

2013-12-23 23:04 RD, revision 75413

Include frame.h at the beginning of the file instead of in the middle. It will be needed earlier in some cases.

2013-12-23 23:04 RD, revision 75412

Use wxFRAME_TOOL_WINDOW style for the STC’s calltip window to avoid crashing on OSX.

2013-12-23 21:02 RD, revision 75411

A new branch for minor tweaks needed for wxPython 3.0.0.

2013-12-23 17:43 VZ, revision 75409

Use wxPENSTYLE_{SOLID,TRANSPARENT} instead of deprecated versions in the docs. Don't push people to use the deprecated wxSOLID and wxTRANSPARENT. Closes #15775.

2013-12-21 23:26 VZ, revision 75408

Add wxNumberEntryDialog default ctor and Create(). Allow creating wxNumberEntryDialog in 2 steps, as most of the other classes. Closes #15769.

2013-12-21 15:59 SC, revision 75405

- one single method for sending char events from a NSString - adding insertText override for multiline fields as char events went missing after r74945

2013-12-21 13:23 VZ, revision 75404

Add wxPasswordEntryDialog default ctor and Create(). Allow creating wxPasswordEntryDialog in 2 steps, as most of the other classes. Closes #15770.

2013-12-20 18:55 VZ, revision 75403

Don't link with -lm if the check using it failed. It is useless and can, apparently, result in problems, see #15746.

2013-12-20 18:50 VZ, revision 75402

Document wxEVT_MEDIA_XXX event types. Closes #15768.

2013-12-20 17:03 SC, revision 75401

reverting r74098, applying John's version, see #15008, #15765, #13841 will be backported if no regressions are discovered

2013-12-18 17:18 VZ, revision 75400

Don't crash in wxAuiToolBar::GetToolBarFits(). The code could crash if m_overflowVisible was true but m_overflowSizerItem was NULL. Ideally this shouldn't happen in the first place, but it did, so at least fix the crash for now -- and hopefully this code will be refactored to make it more clear later. Closes #15747.

2013-12-18 17:18 VZ, revision 75399

Don't crash in wxAuiToolBar::GetToolBarFits(). The code could crash if m_overflowVisible was true but m_overflowSizerItem was NULL. Ideally this shouldn't happen in the first place, but it did, so at least fix the crash for now -- and hopefully this code will be refactored to make it more clear later. Backport from trunk, see #15747.

2013-12-18 17:00 VZ, revision 75398

Add wxHtmlWindow::SetDefaultHTMLCursor(). This allows to change the cursors used by any HTML windows, before creating them. Closes #15324.

2013-12-18 17:00 VZ, revision 75397

Document wxMediaState enum. Closes #15760.

2013-12-18 17:00 VZ, revision 75396

Treat empty variants as null ones in wxMSW OLE code. Simply ignoring VT_EMPTY variants doesn't make any sense and can result in completely unexpected results, so don't do it. Closes #15757.

2013-12-18 17:00 VZ, revision 75395

Remove wx/generic/colrdlgg.h from common GUI headers. This header is not used in all ports, notably not in wxMSW nor wxGTK. See #15753.

2013-12-18 17:00 VZ, revision 75394

Add default ctor and Create() to wxContextHelpButton. Allow two step creation of wxContextHelpButton. Closes #14848.

2013-12-18 17:00 VZ, revision 75393

Document wxMediaState enum. Closes #15760.

2013-12-16 19:55 VS, revision 75388

wxTextFile: don't loose data with CRCRLF line endings. Previously, when reading files with completely nonstandard - but occurring in the wild thanks to broken Notepad - files with CRCRLF, all content would be replaced with empty lines. Fix the code to do what many editors do with such files: treat this as data line followed by an empty one. This is not ideal, but it is better than discarding data - and arguably, silently cleaning up the endings wouldn't be great either (and would add extra complications for what is an obscure and broken case). See http://stackoverflow.com/questions/6998506/text-file-with-0d-0d-0a-line-breaks

2013-12-16 19:54 VS, revision 75387

wxTextFile: don't loose data with CRCRLF line endings. Previously, when reading files with completely nonstandard - but occurring in the wild thanks to broken Notepad - files with CRCRLF, all content would be replaced with empty lines. Fix the code to do what many editors do with such files: treat this as data line followed by an empty one. This is not ideal, but it is better than discarding data - and arguably, silently cleaning up the endings wouldn't be great either (and would add extra complications for what is an obscure and broken case). See http://stackoverflow.com/questions/6998506/text-file-with-0d-0d-0a-line-breaks

2013-12-16 17:36 VS, revision 75386

Support keyboard navigation with Tab in generic wxDataViewCtrl. Move keyboard focus between columns with Tab and Shift-Tab. Works similarly to left and right arrows, but wraps around to go to the next or previous line and doesn't collapse tree nodes. If focus reaches the last or first cell, the key event is skipped, allowing normal Tab handling for moving to another control.

2013-12-16 12:12 JJ, revision 75385

Update OpenVMS compile support

2013-12-16 11:51 JJ, revision 75384

Add OpenVMS to the systems that support the Bind-Event

2013-12-15 03:07 PC, revision 75383

fix inconsistent line endings

2013-12-15 03:04 PC, revision 75382

just put GtkBorder variable on the stack fixes missing runtime version check

2013-12-15 02:29 PC, revision 75381

fix missing/incorrect GTK runtime version checks

2013-12-14 16:33 JS, revision 75380

Ensure a small spanned column doesn't shrink its columns too much by checking for min column sizes

2013-12-14 16:32 JS, revision 75379

Ensure a small spanned column doesn't shrink its columns too much by checking for min column sizes

2013-12-12 17:08 SC, revision 75378

backport, fixes #15688

2013-12-11 18:27 VZ, revision 75377

Afrikaans translations update from Friedel Wolff.

2013-12-11 18:26 VZ, revision 75376

Afrikaans translations update from Friedel Wolff.

2013-12-11 13:06 JS, revision 75375

Fix for occasionally missing cells in tables

2013-12-11 13:05 JS, revision 75374

Fix for occasionally missing cells in tables

2013-12-10 16:24 JS, revision 75373

Added scrollbar hysteresis detection to stop infinite looping when vertical scrollbar presence or absence affects the content height.

2013-12-09 22:09 SC, revision 75364

trying 10.5 / 10.6 fix for #15688

2013-12-08 11:30 JS, revision 75363

Fixed overlapping text and floating objects by simplifying the available rectangle calculation

2013-12-08 11:30 JS, revision 75362

Fixed overlapping text and floating objects by simplifying the available rectangle calculation

2013-12-07 16:51 JS, revision 75361

Clicking on a floating (non-container) object no longer sets the caret position. Double-clicking on a floating (non-container) object selects it instead of selecting a word. Selection refresh now takes floating objects into account. The last line of a paragraph now takes floating objects into account.

2013-12-07 16:50 JS, revision 75360

Clicking on a floating (non-container) object no longer sets the caret position. Double-clicking on a floating (non-container) object selects it instead of selecting a word. Selection refresh now takes floating objects into account. The last line of a paragraph now takes floating objects into account.

2013-12-07 16:12 JS, revision 75359

Backported r75354: Fix layout of content within a floating object by using Move and not SetPosition; prevent creeping of floating objects on layout.

2013-12-07 13:30 VZ, revision 75358

Don't build wxOSX/Cocoa twice in wxOSX buildbot. Both trunk builds were using Cocoa, change the one supposed to be Carbon to use Carbon instead. Also add Carbon stable branch build as this is probably even more important than testing Carbon in the trunk.

2013-12-07 12:59 VZ, revision 75357

Clarify wxGetTopLevelParent() behaviour for TLWs. It doesn't return the parent of a TLW but TLW itself. Whether this is a good idea or bad one, this is how it works since a very long time and we don't want to change it any more.

2013-12-07 12:55 VZ, revision 75356

Big Galician translation update from Nuria Andión.

2013-12-07 12:55 VZ, revision 75355

Big Galician translation update from Nuria Andión.

2013-12-05 20:56 JS, revision 75354

Fix layout of content within a floating object by using Move and not SetPosition; prevent creeping of floating objects on layout.

2013-12-05 20:16 SC, revision 75353

backporting SDK 10.5

2013-12-05 10:13 SC, revision 75352

support 10.5 SDK build

2013-12-04 15:33 VS, revision 75351

wxOSX Retina fixes: wxImageList::GetSize(). wxImageList returns size of its bitmap as pixel size, i.e. twice the displayed screen on HiDPI screens. Unfortunately, wxImageList::GetSize() is used heavily in (generic) GUI drawing code, e.g. to properly size wxListCtrl's icon columns. As wxImageList is used primarily by controls, it seems reasonable to adjust for scaling here, rather than requiring all users of the class to do it.

2013-12-04 15:33 VS, revision 75350

wxOSX Retina fixes: size wxStaticBitmap and wxBitmapButton properly. The size is expressed in logical coordinates and needs to use bitmap's scaled size, otherwise it would appear twice as large in both dimensions.

2013-12-04 15:32 VS, revision 75349

wxOSX Retina fixes: wxImageList::GetSize(). wxImageList returns size of its bitmap as pixel size, i.e. twice the displayed screen on HiDPI screens. Unfortunately, wxImageList::GetSize() is used heavily in (generic) GUI drawing code, e.g. to properly size wxListCtrl's icon columns. As wxImageList is used primarily by controls, it seems reasonable to adjust for scaling here, rather than requiring all users of the class to do it.

2013-12-04 15:32 VS, revision 75348

wxOSX Retina fixes: size wxStaticBitmap and wxBitmapButton properly. The size is expressed in logical coordinates and needs to use bitmap's scaled size, otherwise it would appear twice as large in both dimensions.

2013-12-04 14:23 VS, revision 75347

Auto grow the last wxDataViewCtrl column on all platforms. The GTK+ implementation always did this and it doesn't make much sense to let the space be wasted, so do as GTK+ does: expand the last column to cover the remaining unused space in the OS X and generic implementations too. Don't do anything if the space is insufficient. Respect the last column's minimal width. See #13904.

2013-12-04 13:38 VS, revision 75346

Fix fixed-width progress columns in generic wxDataViewCtrl. Both native wxDVC implementations grow the progress column, the generic one didn't. This change fixes it and _seems_ not to break other things. As a consequence, progress columns no longer have a 40px minimal width, but that should be OK. Fixes #15745.

2013-12-04 13:36 VS, revision 75345

Fix fixed-width progress columns in generic wxDataViewCtrl. Both native wxDVC implementations grow the progress column, the generic one didn't. This change fixes it and _seems_ not to break other things. As a consequence, progress columns no longer have a 40px minimal width, but that should be OK. Fixes #15745.

2013-12-03 19:41 JS, revision 75344

Applied patch #15744: wxRichTextCtrl: HitTest can't find top-level floats (dghart)

2013-12-03 19:41 JS, revision 75343

Applied patch #15744: wxRichTextCtrl: HitTest can't find top-level floats (dghart)

2013-12-03 15:53 VZ, revision 75342

Fix crash when Destroy()-ing a TLW with a non-TLW parent. Generalize the code in wxTopLevelWindowBase dtor checking for the children of the TLW being destroyed pending for deletion themselves to work when the child TLW is an indirect child, i.e. was created with a child window of this TLW as parent and not this TLW itself. Closes #15743.

2013-12-03 15:53 VZ, revision 75341

Fix crash when Destroy()-ing a TLW with a non-TLW parent. Generalize the code in wxTopLevelWindowBase dtor checking for the children of the TLW being destroyed pending for deletion themselves to work when the child TLW is an indirect child, i.e. was created with a child window of this TLW as parent and not this TLW itself. Closes #15743.

2013-12-03 14:38 VZ, revision 75340

Work around wrong vsscanf() declaration under HP-UX. Under this system vsscanf() is declared as taking a non-const char* as first argument which prevented our code using it from compiling. Wrap it in wxCRT_VsscanfA() adding the necessary const_cast<> to fix this. Closes #15638.

2013-12-03 14:36 VZ, revision 75339

Work around wrong vsscanf() declaration under HP-UX. Under this system vsscanf() is declared as taking a non-const char* as first argument which prevented our code using it from compiling. Wrap it in wxCRT_VsscanfA() adding the necessary const_cast<> to fix this. Closes #15638.

2013-12-02 18:46 VS, revision 75336

Minor clarifications to wxTextEntry::SetHint() docs. Update platforms support docs. Mention event handlers interaction in the generic implementation.

2013-12-02 18:46 VS, revision 75335

Implement wxTextEntry::SetHint() natively for GTK+3.

2013-12-02 18:46 VS, revision 75334

Don't use native cue banners in wxTextEntry::SetHint() on XP. The code apparently expected EM_SETCUEBANNER to return false on pre-Vista systems (where the cue banners don't work). This isn't the case in practice, so check for Vista explicitly and use the generic implementation on XP.

2013-12-02 18:45 VS, revision 75333

Don't use native cue banners in wxTextEntry::SetHint() on XP. The code apparently expected EM_SETCUEBANNER to return false on pre-Vista systems (where the cue banners don't work). This isn't the case in practice, so check for Vista explicitly and use the generic implementation on XP.

2013-12-02 18:45 VS, revision 75332

Backport r75319: support for localized help menus

2013-12-02 17:50 VZ, revision 75331

Try to use /proc/self instead of /dev/core in the unit test. /dev/core doesn't seem to exist on the machines running Travis CI builds, check if /proc/self can work there.

2013-12-02 17:34 VZ, revision 75330

Fix clicking on checkboxes in generic wxDataViewCtrl. Back port the fix of r75329 from the trunk but without changing GetEffectiveAlignment() visibility to avoid changing the ABI. See #15731.

2013-12-02 17:30 VZ, revision 75329

Use correct cell alignment in generic wxDataViewCtrl mouse handling code. Don't fall back to wxALIGN_CENTRE, even if the renderer doesn't specify its own alignment we still have to take the column alignment in consideration, so use GetEffectiveAlignment() (which had to be made public for this). This notably fixes (again) hit testing for wxDataViewToggleRenderer in the generic version. Closes #15731.

2013-12-02 13:58 VZ, revision 75328

Check if colour really changed in wxGenericListCtrl::SetBackgroundColour(). Call the base class version to update the colour stored in the base class and also to avoid changing the colour of the main window unnecessarily if the colour didn't really change. This is also consistent with the code in SetForegroundColour() just below.

2013-12-02 13:58 VZ, revision 75327

Don't change header window foreground colour in wxGenericListCtrl. As calling wxGenericListCtrl::SetBackgroundColour() doesn't change the header window background, don't change its foreground in SetForegroundColour() neither. Closes #15741.

2013-12-02 13:58 VZ, revision 75326

Add a missing string in Slovakian translations. Closes #15740.

2013-12-02 13:56 VZ, revision 75325

Don't change header window foreground colour in wxGenericListCtrl. As calling wxGenericListCtrl::SetBackgroundColour() doesn't change the header window background, don't change its foreground in SetForegroundColour() neither. Closes #15741.

2013-12-02 13:52 VZ, revision 75324

Add a missing string in Slovakian translations. Closes #15740.

2013-12-02 11:38 JS, revision 75323

Fixed #15717: wxRichTextStyleOrganiserDialog returns wxID_OK when closed with Escape key (ikamakj)

2013-12-02 11:38 JS, revision 75322

Fixed #15717: wxRichTextStyleOrganiserDialog returns wxID_OK when closed with Escape key (ikamakj)

2013-12-02 10:06 JS, revision 75321

Apply fix for #15734: wxRichTextCtrl: A floating wxRichTextTable's cells aren't drawn (dghart)

2013-12-02 10:06 JS, revision 75320

Apply fix for #15734: wxRichTextCtrl: A floating wxRichTextTable's cells aren't drawn (dghart)

2013-12-01 21:10 SC, revision 75319

support for localized help menus

2013-11-28 17:50 JS, revision 75318

Partial fix for #15714: Caret jumping problem in wxRichTextCtrl text selection

2013-11-28 17:50 JS, revision 75317

Partial fix for #15714: Caret jumping problem in wxRichTextCtrl text selection

2013-11-28 17:29 JS, revision 75316

Fix for #15716: wxRichTextCompositeObject::Dump() should also dump the object itself?

2013-11-28 17:29 JS, revision 75315

Fix for #15716: wxRichTextCompositeObject::Dump() should also dump the object itself?

2013-11-28 17:24 JS, revision 75314

Fix for #15718: wxSymbolPickerDialog crashes on ampersand character

2013-11-28 17:24 JS, revision 75313

Fix for #15718: wxSymbolPickerDialog crashes on ampersand character

2013-11-28 17:23 JS, revision 75312

Fix for #15715: NULL check required in wxRichTextBuffer::SetStyleSheetAndNotify()

2013-11-28 17:23 JS, revision 75311

Fix for #15715: NULL check required in wxRichTextBuffer::SetStyleSheetAndNotify()

2013-11-28 14:47 VZ, revision 75310

Fix wxCommandProcessor::IsDirty() for unsaved unmodified case. IsDirty() still returned true even after undoing all the commands which was wrong, as there was nothing to save in this case. Closes #15722.

2013-11-28 14:46 VZ, revision 75309

Fix wxCommandProcessor::IsDirty() for unsaved unmodified case. IsDirty() still returned true even after undoing all the commands which was wrong, as there was nothing to save in this case. Closes #15722.

2013-11-28 13:43 VZ, revision 75308

Fix unwanted focus events when deleting a wxTreeCtrl item in wxMSW. Disable setting focus in response to TVN_SELCHANGING when deleting an item in a single selection control too -- this was already done in multi selection case but not in this one, for some reason. Also refactor the code to avoid duplicating TreeView_DeleteItem() calls. Closes #15721.

2013-11-28 13:43 VZ, revision 75307

Round values in wxBitmap::CreateScaled() and GetScaledSize(). Do it for consistency with wxMSW and because rounding probably makes more sense than truncation here. Closes #15720.

2013-11-28 13:39 VZ, revision 75306

Fix unwanted focus events when deleting a wxTreeCtrl item in wxMSW. Disable setting focus in response to TVN_SELCHANGING when deleting an item in a single selection control too -- this was already done in multi selection case but not in this one, for some reason. See #15721.

2013-11-27 17:12 VZ, revision 75305

Fix wxCHECK_MINGW32_VERSION() definition. Include _mingw.h before testing for __MINGW32_MAJOR_VERSION as it's only defined in that header. Closes #15696.

2013-11-27 17:12 VZ, revision 75304

Fix wxCHECK_MINGW32_VERSION() definition. Include _mingw.h before testing for __MINGW32_MAJOR_VERSION as it's only defined in that header. Closes #15696.

2013-11-27 16:34 VS, revision 75303

Fix OS X startup to not hang if the application doesn't get focus. If the application launches while the parent process doesn't have an active window, [NSApp run] won't terminate immediately, as was assumed here. Instead, it blocks until some input arrives, e.g. clicking the Dock icon. Work around this by adding a dummy event to the queue.

2013-11-27 16:34 VS, revision 75302

Fix OS X startup to not hang if the application doesn't get focus. If the application launches while the parent process doesn't have an active window, [NSApp run] won't terminate immediately, as was assumed here. Instead, it blocks until some input arrives, e.g. clicking the Dock icon. Work around this by adding a dummy event to the queue.

2013-11-27 00:31 VZ, revision 75299

Fix wxWindow::SetSizeHints() documentation. Add the missing @overload. Closes #15707.

2013-11-27 00:30 VZ, revision 75298

Fix wxWindow::SetSizeHints() documentation. Add the missing @overload. Closes #15707.

2013-11-26 15:50 VZ, revision 75297

Yet another fix after wxMenu::Remove() refactoring. wxMenu::Remove() was still broken in wxMSW after r75250, even with the fix in r75290, as wxMSW code relied on the item still being present in wxMenu::m_items. Delay removing it from there until after DoRemove() call to fix this. See #3424.

2013-11-26 15:28 SC, revision 75296

correct behavior in case it is still used with ShowModal

2013-11-26 15:18 SC, revision 75295

fixing shadowed var

2013-11-26 15:16 SC, revision 75294

fixing shadowed var

2013-11-26 13:53 SC, revision 75293

correct behavior in case it is still used with ShowModal

2013-11-25 17:50 PC, revision 75292

always initialize m_statText

2013-11-25 15:21 SC, revision 75291

backporting r75289

2013-11-25 14:57 VZ, revision 75290

Fix menu item destruction broken by r75250. The menu items were not removed from the menu any longer when they were deleted or destroyed after the changes in this revision. Fix this by calling the public Remove(), which does the right thing, instead of the private DoRemove(), which only does part of the job of removing the item, in DoDelete() and DoDestroy(). See #3424.

2013-11-25 14:51 SC, revision 75289

making sure no pending deletes get executed while a modal loop is running, avoiding double deletes because the dialogs are mostly allocated on the stack.

2013-11-25 14:41 VZ, revision 75288

Fix multiple calls to wxSocket::Initialize() in wxMSW. Subsequent calls didn't initialize the hidden window correctly because wxSocket::Shutdown() unregistered the window class used for it, but wxSocket::Initialize() still kept a pointer to the previously registered class name. Don't remember it any longer, unlike in the other cases where we use wxCreateHiddenWindow(), this function is only ever going to be called once until the class is unregistered anyhow, so it doesn't have to be static. Closes #15701.

2013-11-25 14:40 VZ, revision 75287

Fix multiple calls to wxSocket::Initialize() in wxMSW. Subsequent calls didn't initialize the hidden window correctly because wxSocket::Shutdown() unregistered the window class used for it, but wxSocket::Initialize() still kept a pointer to the previously registered class name. Don't remember it any longer, unlike in the other cases where we use wxCreateHiddenWindow(), this function is only ever going to be called once until the class is unregistered anyhow, so it doesn't have to be static. Closes #15701.

2013-11-25 13:31 VZ, revision 75286

Correct the author of wxAuiToolBarXmlHandler. See #15686.

2013-11-25 13:12 VZ, revision 75285

Document the order in which event tables are examined. Static event tables are search top to bottom while dynamic event tables are searched in the most-recently-bound to the most-early-bound order.

2013-11-24 19:07 PC, revision 75284

avoid deprecated gtk_style_context_get_font(), closes #15697

2013-11-24 18:20 VS, revision 75283

fix GCC warning "logical ‘or’ applied to non-boolean constant"

2013-11-23 17:23 VZ, revision 75282

Remove never used ALL_WX_LIBS variable from configure. It wasn't up to date (e.g. aui, ribbon, propgrid, richtext were not included in it) and wasn't used anywhere anyhow.

2013-11-23 16:10 VS, revision 75281

Recognize Windows 8 and 8.1 in wxGetOsDescription().

2013-11-23 16:10 VS, revision 75280

Differentiate between WXK_UP etc. and WXK_NUMPAD_ variants in NSMenuItem code.

2013-11-23 16:10 VS, revision 75279

Don't add NSFunctionKeyMask to NSMenuItem modifiers. This code probably misunderstood NSEvent documentation, where this mask is mentioned, but setKeyEquivalentModifierMask: documentation doesn't list it as allowed. More importantly, it causes "fn" to appear in the menu item and the accelerator doesn't work.

2013-11-23 16:10 VS, revision 75278

Recognize Windows 8 and 8.1 in wxGetOsDescription().

2013-11-23 16:09 VS, revision 75277

Differentiate between WXK_UP etc. and WXK_NUMPAD_ variants in NSMenuItem code.

2013-11-23 16:09 VS, revision 75276

Don't add NSFunctionKeyMask to NSMenuItem modifiers. This code probably misunderstood NSEvent documentation, where this mask is mentioned, but setKeyEquivalentModifierMask: documentation doesn't list it as allowed. More importantly, it causes "fn" to appear in the menu item and the accelerator doesn't work.

2013-11-23 11:56 VS, revision 75275

Fix selection behavior on right-click in wxGTK wxDataViewCtrl. Select the item under the cursor even when right-clicking it, because it's expected behavior (Nautilus does it too). Fixes #13531.

2013-11-23 11:56 VS, revision 75274

Allow NULL model in wxGTK's wxDataViewCtrl. This is consistent with other ports. Fixes #14616.

2013-11-23 11:56 VS, revision 75273

Fix selection behavior on right-click in wxGTK wxDataViewCtrl. Select the item under the cursor even when right-clicking it, because it's expected behavior (Nautilus does it too). Fixes #13531.

2013-11-23 11:56 VS, revision 75272

Allow NULL model in wxGTK's wxDataViewCtrl. This is consistent with other ports. Fixes #14616.

2013-11-23 01:34 VZ, revision 75271

Add XRC handler for wxAuiToolBar. Also add the demonstration of AUI handlers (this one and the existing one for wxAuiNotebook) to the xrc sample. See #15686.

2013-11-23 01:34 VZ, revision 75270

More version change related changes to the generated files. Somehow not all files seem to have been regenerated after version.bkl change.

2013-11-23 01:33 VZ, revision 75269

Initialize wxAuiNotebookXmlHandler::m_isInside in ctor. Closes #15694.

2013-11-21 21:54 JS, revision 75268

Improved equality test to ignore invalid attributes

2013-11-21 21:54 JS, revision 75267

Improved equality test to ignore invalid attributes

2013-11-21 16:25 JS, revision 75266

Corrected bugs with text effects comparison and style removal

2013-11-21 16:25 JS, revision 75265

Corrected bugs with text effects comparison and style removal

2013-11-21 14:51 VS, revision 75264

Add symbols added in r75258 to version-script.in.

2013-11-21 14:49 VZ, revision 75263

Update version to 3.0.1. And regenerate everything.

2013-11-21 14:49 VZ, revision 75262

Correct the name of Doxyfile containing the version. Use the correct file name in the version update script and version update instructions, it is called just Doxyfile and not Doxyfile_inc now.

2013-11-21 14:47 VZ, revision 75261

Update version to 3.1.0. And regenerate everything.

2013-11-21 14:45 VZ, revision 75260

Correct the name of Doxyfile containing the version. Use the correct file name in the version update script and version update instructions, it is called just Doxyfile and not Doxyfile_inc now.

2013-11-21 14:13 VS, revision 75259

Override ClearColumns() in wxDataViewListCtrl. Without this, the associated store's columns would be out of sync, causing asserts next time a column is appended. Fixes #14952.

2013-11-21 14:11 VS, revision 75258

Override ClearColumns() in wxDataViewListCtrl. Without this, the associated store's columns would be out of sync, causing asserts next time a column is appended. Fixes #14952.

2013-11-21 01:08 VZ, revision 75257

Fix joystick detection in configure under OS X. Don't compare toolkit with OSX which is never used for it, compare it with OSX_COCOA instead. Closes #15692.

2013-11-21 01:08 VZ, revision 75256

Fix wrong printf() format specifiers in the joystick sample. Use "%ld" for the long values, not "%d", they are not the same under LP64 platforms. Closes #15691.

2013-11-21 01:07 VZ, revision 75255

Don't perform any tests for joystick in configure under OS X. The test for setEventCallout() was added in r34541 to work around some problem with OS X 10.1 SDK. As we don't support this version of OS X since a very long time, it shouldn't be needed any longer. See #15692.

2013-11-21 01:07 VZ, revision 75254

Fix joystick detection in configure under OS X. Don't compare toolkit with OSX which is never used for it, compare it with OSX_COCOA instead. Closes #15692.

2013-11-21 01:07 VZ, revision 75253

Fix wrong printf() format specifiers in the joystick sample. Use "%ld" for the long values, not "%d", they are not the same under LP64 platforms. Closes #15691.

2013-11-20 17:04 VZ, revision 75252

Don't process events handled in user code in generic scrolling code. Undo the change introduced, probably accidentally, by r11369 (12 years ago) and skip the default handling of all events except wxEVT_SIZE and wxEVT_PAINT, which are special for the reasons explained in the comments in the code, if the user code has already handled the event. This allows to customize scrolling by selectively handling some scrolling events only and generally makes sense. Closes #15684.

2013-11-20 13:01 VZ, revision 75251

Fix wxRegion::Offset() copy on write behaviour in wxMSW. Offset the correct, new and unshared, region handle instead of the old and possibly shared one. Closes #15690.

2013-11-20 13:01 VZ, revision 75250

Fix assert message when removing non-existent items from wxMenu. The assert complained about a bug in wxMenu code itself, but actually could be triggered by simply trying to remove a non-existent item from the menu. Fix this by checking for the item existence, and also removing it from the internal menu data structure, in wxMenuBase::Remove() and only dealing with the item itself in DoRemove(). Closes #3424.

2013-11-20 13:01 VZ, revision 75249

Fix wxRegion::Offset() copy on write behaviour in wxMSW. Offset the correct, new and unshared, region handle instead of the old and possibly shared one. Closes #15690.

2013-11-19 15:15 VZ, revision 75248

Fix swapping items client data in wxEditableListBox. Use wxUIntPtr, not long, and SetItemPtrData() instead of SetItemData(), to ensure that we preserve the values of client data pointers in 64 bit build, otherwise they were truncated to 32 bits. Closes #15687.

2013-11-19 15:15 VZ, revision 75247

Fix swapping items client data in wxEditableListBox. Use wxUIntPtr, not long, and SetItemPtrData() instead of SetItemData(), to ensure that we preserve the values of client data pointers in 64 bit build, otherwise they were truncated to 32 bits. Closes #15687.

2013-11-19 14:13 VZ, revision 75246

Don't allocate way too much memory in wxVector::reserve(). We multiplied the number of items by the size of each element twice, once in wxVector::reserve() itself and once in Ops::Realloc() it called, so we allocated much more memory than actually needed. Fix this by passing the number of elements to Ops::Realloc().

2013-11-19 14:12 VZ, revision 75245

Don't allocate way too much memory in wxVector::reserve(). We multiplied the number of items by the size of each element twice, once in wxVector::reserve() itself and once in Ops::Realloc() it called, so we allocated much more memory than actually needed. Fix this by passing the number of elements to Ops::Realloc().

2013-11-18 15:21 VZ, revision 75244

Fix replacing "Window" menu in wxMDIParentFrame in wxMSW. When setting a new "Window" menu (as opposed to just modifying the existing one which did work correctly), we shouldn't show it immediately in the menu bar if there are no MDI children, this results in wrong UI and assert failures. Closes #15663.

2013-11-18 15:20 VZ, revision 75243

Fix problem with inserting menus in wxMDIParentFrame menu bar. Account for the "Window" menu (and any other foreign windows lurking in our menu bar) correctly in wxMenuBar::Insert() instead of the old code which apparently tried to do something similar but didn't make much sense and didn't work when trying to insert the menu at the position actually occupied by the "Window" menu in the menu bar. Closes #15662, #1732.

2013-11-18 15:19 VZ, revision 75242

Fix replacing "Window" menu in wxMDIParentFrame in wxMSW. When setting a new "Window" menu (as opposed to just modifying the existing one which did work correctly), we shouldn't show it immediately in the menu bar if there are no MDI children, this results in wrong UI and assert failures. Closes #15663.

2013-11-18 15:19 VZ, revision 75241

Fix problem with inserting menus in wxMDIParentFrame menu bar. Account for the "Window" menu (and any other foreign windows lurking in our menu bar) correctly in wxMenuBar::Insert() instead of the old code which apparently tried to do something similar but didn't make much sense and didn't work when trying to insert the menu at the position actually occupied by the "Window" menu in the menu bar. Closes #15662, #1732.

2013-11-18 12:14 JS, revision 75240

Use % instead of percent in Size dialog; controls more legible on wxGTK

2013-11-18 12:14 JS, revision 75239

Use % instead of percent in Size dialog; controls more legible on wxGTK

2013-11-18 08:49 JS, revision 75238

Fixed refresh bug in border preview control when resizing

2013-11-18 08:49 JS, revision 75237

Fixed refresh bug in border preview control when resizing

2013-11-17 22:55 JS, revision 75236

Backported colour/color consistency

2013-11-17 22:50 JS, revision 75235

Applied #15681: wxRichTextCtrl: Crash when deleting a wxRichTextTable row or column (dghart)

2013-11-17 22:50 JS, revision 75234

Applied #15681: wxRichTextCtrl: Crash when deleting a wxRichTextTable row or column (dghart)

2013-11-17 19:03 VS, revision 75233

Fix Czech translation of "About %s". It is used for the app name, translate it in the commonly used way ("About application %s").

2013-11-17 19:03 VS, revision 75232

Put Services submenu into the Apple menu on OS X. Native applications have a Services submenu in the apple menu. wx applications didn't until now.

2013-11-17 19:03 VS, revision 75231

Add wxMenuBar::OSXGetAppleMenu(). Native OS X apps sometimes have certain app-wide comments in the Apple/app menu ("Check for Updates" is a typical example). Make it possible to write well-behaved OS X apps by exposing this menu to user code.

2013-11-17 19:02 VS, revision 75230

Fix i18n-unfriendly About menu code in wxOSX. The code didn't follow the golden rule of localization and broke user-visible string into separately translated substrings. Replace with the same _("About %s") string already used in wxAboutDialog.

2013-11-17 19:02 VS, revision 75229

Don't duplicate code for Apple menu creation. Have just one copy of the code, instead of two. Eliminate differences between the two versions. As a result, applications now properly have preferences and about items even if window-less.

2013-11-17 19:02 VS, revision 75228

Fix Czech translation of "About %s". It is used for the app name, translate it in the commonly used way ("About application %s").

2013-11-17 19:02 VS, revision 75227

Put Services submenu into the Apple menu on OS X. Native applications have a Services submenu in the apple menu. wx applications didn't until now.

2013-11-17 19:02 VS, revision 75226

Add wxMenuBar::OSXGetAppleMenu(). Native OS X apps sometimes have certain app-wide comments in the Apple/app menu ("Check for Updates" is a typical example). Make it possible to write well-behaved OS X apps by exposing this menu to user code.

2013-11-17 19:02 VS, revision 75225

Fix i18n-unfriendly About menu code in wxOSX. The code didn't follow the golden rule of localization and broke user-visible string into separately translated substrings. Replace with the same _("About %s") string already used in wxAboutDialog.

2013-11-17 19:02 VS, revision 75224

Don't duplicate code for Apple menu creation. Have just one copy of the code, instead of two. Eliminate differences between the two versions. As a result, applications now properly have preferences and about items even if window-less.

2013-11-17 13:43 JS, revision 75223

Removed GetId/GetId and changed span storage to be compatible with 3.0. Fixed border control style.

2013-11-17 11:37 JS, revision 75222

Backported part of r75124: Generalised wxRICHTEXT_CHANGE_OBJECT command so it can now apply to a paragraph as well as an object within a paragraph.

2013-11-17 11:32 JS, revision 75221

Backported r75109: Corrected multiple cell property editing

2013-11-17 11:28 JS, revision 75220

Backported r75108: Fixed print preview glitch and vertical cell alignment.

2013-11-17 11:23 JS, revision 75219

Backported r75107: Fixed selection bug.

2013-11-17 11:20 JS, revision 75218

Backported layout fixes portion of r75105

2013-11-17 10:43 JS, revision 75217

Don't delete composite objects when defragmenting (backport of r75099 from trunk)

2013-11-17 00:41 VZ, revision 75216

Don't eat TAB presses for wxComboBox with wxTE_PROCESS_ENTER in wxMSW. Still allow to use TAB for navigation even when a wxComboBox has wxTE_PROCESS_ENTER style. Use the same hack for wxTextCtrl, i.e. implement the navigation ourselves as we can't let IsDialogMessage() handle it but still get VK_ENTER key presses. Closes #12808.

2013-11-17 00:41 VZ, revision 75215

Add xh_auinotbk.{h,cpp} to the manually maintained VC10 project files. This file existed in automatically generated projects but not this one. Closes #15673.

2013-11-17 00:41 VZ, revision 75214

Allow changing the colour of wxInfoBarGeneric text. Override SetForegroundColour() to forward it to the text control. See #15671.

2013-11-17 00:41 VZ, revision 75213

Set wxInfoBarGeneric text colour correctly. For some reason SetOwnForegroundColour() was used, but we really need to set the colour of the child text control and not our own colour here (which is not used for anything). This makes the text visible even when using non default tooltip colours, which could previously result in black-on-black text. See #15671.

2013-11-17 00:40 VZ, revision 75212

Define SIZEOF_LONG_LONG for Windows. This is important not only for consistency with the other platforms but also because without SIZEOF_LONG_LONG being defined, "%lu" format specifier can't be used with size_t values under Win64, as Arg_Size_t is not defined correctly there if SIZEOF_LONG_LONG is unknown. Closes #15670.

2013-11-17 00:40 VZ, revision 75211

Fix wxSocket::WaitForAccept() in worker thread. This was broken because Select() never returned wxSOCKET_CONNECTION_FLAG which is supposed to be set when a connection is accepted. Closes #15669.

2013-11-17 00:37 VZ, revision 75210

Don't eat TAB presses for wxComboBox with wxTE_PROCESS_ENTER in wxMSW. Still allow to use TAB for navigation even when a wxComboBox has wxTE_PROCESS_ENTER style. Use the same hack for wxTextCtrl, i.e. implement the navigation ourselves as we can't let IsDialogMessage() handle it but still get VK_ENTER key presses. Closes #12808.

2013-11-17 00:37 VZ, revision 75209

Add xh_auinotbk.{h,cpp} to the manually maintained VC10 project files. This file existed in automatically generated projects but not this one. Closes #15673.

2013-11-17 00:37 VZ, revision 75208

Allow changing the colour of wxInfoBarGeneric text. Override SetForegroundColour() to forward it to the text control. See #15671.

2013-11-17 00:37 VZ, revision 75207

Set wxInfoBarGeneric text colour correctly. For some reason SetOwnForegroundColour() was used, but we really need to set the colour of the child text control and not our own colour here (which is not used for anything). This makes the text visible even when using non default tooltip colours, which could previously result in black-on-black text. See #15671.

2013-11-17 00:37 VZ, revision 75206

Define SIZEOF_LONG_LONG for Windows. This is important not only for consistency with the other platforms but also because without SIZEOF_LONG_LONG being defined, "%lu" format specifier can't be used with size_t values under Win64, as Arg_Size_t is not defined correctly there if SIZEOF_LONG_LONG is unknown. Closes #15670.

2013-11-17 00:37 VZ, revision 75205

Fix wxSocket::WaitForAccept() in worker thread. This was broken because Select() never returned wxSOCKET_CONNECTION_FLAG which is supposed to be set when a connection is accepted. Closes #15669.

2013-11-16 14:29 VZ, revision 75204

Make OSXIsGUIApplication() documentation more clear for non Mac people. Provide a more detailed explanation of what this function does and does not.

2013-11-16 14:28 VZ, revision 75203

Port OSXIsGUIApplication() documentation from trunk too. Now that it is implemented (see r75201), it should be documented as well.

2013-11-16 08:19 SC, revision 75202

non-unicode fixes

2013-11-16 08:19 SC, revision 75201

porting fix for non-bundled apps to 3.0.1

2013-11-16 08:11 SC, revision 75200

fixing non-unicode compile

2013-11-15 19:25 VS, revision 75199

Don't crash in wxWindowMac::OSXSimulateFocusEvents(). The code didn't properly account for the possibility of wxEVT_KILL_FOCUS handler deleting the focused window (as happens e.g. in wxListCtrl inline edit controls). E.g. rapidly clicking wxEditableListBox buttons could trigger a crash here when sending wxEVT_SET_FOCUS to an already-deleted window. Use wxWeakRef<> to check if the window is still alive.

2013-11-15 19:25 VS, revision 75198

Don't crash in wxWindowMac::OSXSimulateFocusEvents(). The code didn't properly account for the possibility of wxEVT_KILL_FOCUS handler deleting the focused window (as happens e.g. in wxListCtrl inline edit controls). E.g. rapidly clicking wxEditableListBox buttons could trigger a crash here when sending wxEVT_SET_FOCUS to an already-deleted window. Use wxWeakRef<> to check if the window is still alive.

2013-11-15 18:28 PC, revision 75197

Simplify mode matching test, and add actual mode (not function parameter) to modes list, in GetModes()

2013-11-15 16:26 VZ, revision 75196

Fix blank wxComboBox appearance broken by the changes of r75134. We didn't repaint the owner drawn combobox items any more because they were not found by MSWFindItem(). Fix this by restricting the check to the real windows with the same ID as the combobox, not the dropdown items which are not windows at all. See #15674.

2013-11-15 16:24 VZ, revision 75195

Fix blank wxComboBox appearance broken by the changes of r75134. We didn't repaint the owner drawn combobox items any more because they were not found by MSWFindItem(). Fix this by restricting the check to the real windows with the same ID as the combobox, not the dropdown items which are not windows at all. Closes #15674.

2013-11-15 14:40 VZ, revision 75194

Update the branches to use in the buildbot builds. Stable branch is 3.0 now and not 2.8 any more.

2013-11-15 14:35 VZ, revision 75193

Don't eat mouse wheel events if we can't handle them in wxGTK. The recent changes to mouse wheel scrolling broke it for the generic wxListCtrl and probably any other situation in which scrollbars don't scroll the window itself but some subwindow of it. In this case, the scroll wheel event handler doesn't have any scrollbar to adjust, so it simply does nothing and shouldn't return true, as it did since r74911. Just return false in case we are not doing anything to let the mouse wheel work as before.

2013-11-15 14:34 VZ, revision 75192

Fix assert due to incorrect format being used in listctrl sample. "%d" can't be used with long wxListEvent::GetIndex() value in 64 bit builds.

2013-11-15 14:33 VZ, revision 75191

Don't eat mouse wheel events if we can't handle them in wxGTK. The recent changes to mouse wheel scrolling broke it for the generic wxListCtrl and probably any other situation in which scrollbars don't scroll the window itself but some subwindow of it. In this case, the scroll wheel event handler doesn't have any scrollbar to adjust, so it simply does nothing and shouldn't return true, as it did since r74911. Just return false in case we are not doing anything to let the mouse wheel work as before.

2013-11-15 14:33 VZ, revision 75190

Start a new change log for the changes in wxWidgets 3.1 and later. Keep the old change log as docs/changes_30.txt, it will need to be updated with docs/changes.txt from the 3.0 branch in the future.

2013-11-15 14:33 VZ, revision 75189

Fix assert due to incorrect format being used in listctrl sample. "%d" can't be used with long wxListEvent::GetIndex() value in 64 bit builds.

2013-11-15 14:33 VZ, revision 75188

Add a few more post-release TODO items to the instructions. Announce the release at isocpp.org.

2013-11-15 07:16 PC, revision 75187

Introduce variables for the display and screen in the video mode functions. This cleans up the code somewhat, and prepares for some upcoming changes.

2013-11-14 13:15 VS, revision 75186

Grow text editor control to contain all text in generic wxDataViewCtrl. Implement the behavior that Explorer uses: if the column is too narrow to fit the current text of a cell into it, don't create a too-small text control for it, because it is annoying and confusing (typically, the beginning of the text would be hidden, which is disastrous if it happens to contain numbers). Instead, grow the text control to be larger than the column for more comfortable editing.

2013-11-14 13:14 VS, revision 75185

Cancel editing in generic wxDVC when clicking outside of the editor control. wxDataViewCtrl should behave as Explorer does on Windows: when an inline editor control is open, clicking outside of it should close the editor (preserving changes) in most cases - as a rule of thumb, when the subsequent action could interfere with the editor somehow. This was implemented by watching for focus change and so ignored clicks made on non-focusable controls outside of wxDVC's main window area. In particular, clicks on the list's header were ignored, even though they could result in modifications of the editor's position or size. Don't finish editing when the user right-clicks on the header, consistently with Explorer. Opening the menu likewise still doesn't finish editing, it is needed for access to editing operations. Fixes #15152.

2013-11-14 13:13 VS, revision 75184

Cancel editing in generic wxDVC when clicking outside of the editor control. wxDataViewCtrl should behave as Explorer does on Windows: when an inline editor control is open, clicking outside of it should close the editor (preserving changes) in most cases - as a rule of thumb, when the subsequent action could interfere with the editor somehow. This was implemented by watching for focus change and so ignored clicks made on non-focusable controls outside of wxDVC's main window area. In particular, clicks on the list's header were ignored, even though they could result in modifications of the editor's position or size. Don't finish editing when the user right-clicks on the header, consistently with Explorer. Opening the menu likewise still doesn't finish editing, it is needed for access to editing operations. Fixes #15152.

2013-11-14 13:13 VS, revision 75183

Grow text editor control to contain all text in generic wxDataViewCtrl. Implement the behavior that Explorer uses: if the column is too narrow to fit the current text of a cell into it, don't create a too-small text control for it, because it is annoying and confusing (typically, the beginning of the text would be hidden, which is disastrous if it happens to contain numbers). Instead, grow the text control to be larger than the column for more comfortable editing.

2013-11-13 19:03 PC, revision 75182

build fix for GTK+ 3.10, closes #15667

2013-11-13 18:43 JS, revision 75181

Fixed clashing attribute values

2013-11-13 13:53 VZ, revision 75180

Fix crash when setting invalid label with "&" at the end. We detected that the label was invalid and gave a debug warning message about it but then still proceeded to crash by accessing the data beyond the end of the string. Don't do this. Closes #15665.

2013-11-13 13:52 VZ, revision 75179

Fix crash when setting invalid label with "&" at the end. We detected that the label was invalid and gave a debug warning message about it but then still proceeded to crash by accessing the data beyond the end of the string. Don't do this. Closes #15665.

2013-11-12 19:06 VZ, revision 75178

Merge the changes from 3.0 branch.

2013-11-11 21:59 VZ, revision 75177

Update the checksums for the 3.0 release notes files. Also mention the binaries existence in the top level file.

2013-11-11 14:22 VZ, revision 75176

Tag 3.0.0 release.

2013-11-11 14:10 VZ, revision 75175

Remove "rc2" from the release notes. The hashes are still the old ones and will be updated later as the binaries are not ready yet.

2013-11-11 14:10 VZ, revision 75174

Update the version in wx/version.h and add an item for it to the docs. Mention the need to udpate this file in the release checklist.

2013-11-11 14:10 VZ, revision 75173

Fix the 3.0.0 release date and update the release announcement slightly.

2013-11-11 14:10 VZ, revision 75172

Update the README file to follow the manual introduction closer. It makes sense for the introduction to be a longer version of the README, not a completely different topic.

2013-11-11 13:37 VZ, revision 75171

Add the scripts used to build MSVS wxMSW binaries. Closes #14495.

2013-11-10 19:35 PC, revision 75170

don't need Pango workaround code with GTK+3

2013-11-10 19:26 PC, revision 75169

use gtk_combo_box_get_wrap_width(), we require GTK+ 2.6 now

2013-11-10 19:26 PC, revision 75168

fully initialize GTypeInfo structure

2013-11-10 19:25 VZ, revision 75167

Fix wxFileName compilation in Cygwin builds. Do define StatAny() helper calling either stat() or lstat() under Cygwin, it is available and should be used there even if __WIN32__ is defined.

2013-11-10 19:25 VZ, revision 75166

Add a comment explaining the need for a temporary NULL variable. Explain the changes of r75162 as they risk not being preserved otherwise. Also make this variable static and const because it's really a constant.

2013-11-10 19:25 VZ, revision 75165

Use Cocoa by default for --with-osx and --with-mac configure options. Even though Cocoa is now officially the default port, these options still selected Carbon.

2013-11-10 19:25 VZ, revision 75164

Update minimal required GTK+ version to 2.6 in another place. It really should only appear in a single place only, ideally, but currently we have it in several different documents inside and outside the manual.

2013-11-10 19:13 PC, revision 75163

use G_VALUE_INIT

2013-11-10 18:26 PC, revision 75162

avoid NULL casts, clang says casting nullptr_t is not allowed closes #15660

2013-11-10 16:56 JS, revision 75161

Corrected and tidied XML import/export of standard data members

2013-11-10 14:45 DS, revision 75160

spelling and styling fixes

2013-11-10 14:28 DS, revision 75159

Doc changes. Updated some wxOSX related information.

2013-11-10 10:09 DS, revision 75158

Spelling fixes. Changed "MacOS X" occurrences to "OS X" (in docs only).

2013-11-10 02:48 PC, revision 75157

spelling fixes

2013-11-10 01:33 VZ, revision 75156

Rewrite the introduction page of the manual and update its main page. Get rid of 20 year old information (it isn't that impressive that we offer to provide wxWidgets on a CD-ROM any more) and drastically compress the introduction page while, hopefully, making it more readable and useful for people new to wxWidgets. Update the main page to provide a short documentation walk-through and to organize the different links in order of their usefulness instead of whatever was used before (random?). Also add links to the alphabetical list of classes which is very useful but is not immediately apparent in the Doxygen menus.

2013-11-10 01:33 VZ, revision 75155

Change the titles of some pages for better appearance on the main page. Try to make the titles of the pages linked from the main page of the manual more clear and consistent.

2013-11-10 01:33 VZ, revision 75154

Emphasize the importance of reading the changes section. Mention that the changes since 2.8 could be useful to read even when not actually upgrading since 2.8.

2013-11-10 01:33 VZ, revision 75153

Update the date in the manual for 3.0 release. Use 2013-11-11 as the release date as we're -- gasp -- close to actually making it.

2013-11-10 01:32 VZ, revision 75152

Update the list of authors to put Vadim Zeitlin forward and add Stefan Csomor. Put myself (VZ) forward at Robert's expense and also add Stefan to a couple of places where he wasn't listed at all.

2013-11-09 23:08 VZ, revision 75151

No real changes, just remove an unused line from wxOSX wxListBox code. Don't create a wxEVT_LISTBOX event unnecessarily, this is done by the helper HandleLineEvent() function called from here.

2013-11-09 23:08 VZ, revision 75150

Compilation fix for wxOSX/Cocoa with wxOSX_USE_NATIVE_TOOLBAR==0. Don't use m_macToolbar when not using the native toolbar. Do compile GetToolBarFontEncoding() which is used in any case. Closes #15629.

2013-11-09 19:46 VZ, revision 75149

Fix positioning of radio buttons inside wxOSX radio boxes in some cases. If the previous radio box size was too small (notably (0,0) as it happened during AUI relayout), the buttons were positioned without taking the box margins into account, resulting in visually broken display. Recompute the full size after setting the new size but before positioning the buttons in wxRadioBox::DoSetSize() to avoid this. Closes #14087.

2013-11-09 19:46 VZ, revision 75148

Fix positioning of radio buttons inside wxOSX radio boxes in some cases. If the previous radio box size was too small (notably (0,0) as it happened during AUI relayout), the buttons were positioned without taking the box margins into account, resulting in visually broken display. Recompute the full size after setting the new size but before positioning the buttons in wxRadioBox::DoSetSize() to avoid this. Closes #14087.

2013-11-09 15:44 SC, revision 75147

updating the version to the number that carries the functionality

2013-11-09 14:37 VZ, revision 75146

Clarify the current OSXIsGUIApplication() status in comments. Mention that it doesn't work yet in 3.0 branch.

2013-11-09 14:31 VZ, revision 75145

Fix format specifiers used for event logging in the listctrl sample. Don't use "%ld" for int argument (this is harmless but unnecessary) and cast wxUIntPtr to long before using it with "%ld" as otherwise its size is greater than that of long in Win64 builds.

2013-11-09 11:00 SC, revision 75144

documenting fix for #15613

2013-11-09 08:27 SC, revision 75143

preparing fix for non-bundled osx apps, see #15613 with fix on trunk

2013-11-08 21:26 SC, revision 75142

fixes #15613

2013-11-08 18:45 JS, revision 75141

Added wxTEXT_ATTR_AVOID_PAGE_BREAK_AFTER, wxTEXT_ATTR_AVOID_PAGE_BREAK_BEFORE attributes

2013-11-08 16:24 VS, revision 75140

Show keyboard focus in generic wxDVC even with single editable column. Previously, keyboard focus indicator was only shown if there were multiple editable columns. This was confusing to the user in applications where the number of editable columns changes: somethings focus would work, sometimes not. (In reality, it worked in both cases, but wasn't visually indicated.) Just always show the indicator if there are any editable columns. Notice that the indicator is only painted after the user pressed left or right arrows, thus indicating interest in keyboard focus. Without that, only the regular indicator is shown (this is the same as before this commit).

2013-11-07 13:49 JS, revision 75139

Fixed border colour parsing typo.

2013-11-07 13:44 VZ, revision 75138

Set event object for wxEVT_DATAVIEW_SELECTION_CHANGED events in wxGTK. The event object was always NULL for these events before as we didn't set it at all. Closes #13478.

2013-11-07 12:26 JS, revision 75137

Improved multiple table cell selection, especially for empty cells.

2013-11-07 12:06 JS, revision 75136

Correct the double-clicked word selection when at the end of a paragraph.

2013-11-07 00:35 VZ, revision 75135

Update wxListEvent::GetData() documentation too. It returns wxUIntPtr and not long since r75000, see #15578.

2013-11-06 17:59 VZ, revision 75134

Fix behaviour of wxComboBox using ID=1000 in wxMSW. If a wxComboBox was created with ID=1000, clicking in its drop down didn't work. It turns out that the native combobox control always creates its dropdown listbox with the ID of 1000 and that when we were getting LBN_SELCHANGE from it we mishandled this message because our code mistakenly believed that all messages from the ID of the control itself were, in fact, coming from this control, which wasn't the case here. Fix this by adding a special check for this case in wxComboBox. Also virtualize the dynamic cast which was done in wxWindow::FindItem() as this makes the code simpler and allows to get rid of __WXUNIVERSAL__ #ifdef as well. Closes #15647.

2013-11-06 16:08 JS, revision 75133

Allow the style name to be edited in the style definition editor

2013-11-06 13:44 JS, revision 75132

Don't merge text objects if they have different identifiers

2013-11-05 18:00 VZ, revision 75131

Correct check for animating non-visible windows added in r75130. Check whether the parent is not shown instead of checking the window itself because the window is never shown when we're in process of showing it. We need to avoid animations in the case when it still won't be shown even after showing it, and this is achieved by checking its parent visibility. Closes #15643.

2013-11-05 15:39 VZ, revision 75130

Don't use animations when showing non-visible windows. This is useless anyhow but also results in artefacts when the window becomes visible later. Closes #15643.

2013-11-05 14:39 VZ, revision 75129

Reduce the extra space added to wxMSW wxStaticText to just 1 pixel. This seems to be still enough to align the static text label and the text control contents when they are positioned next to each other but reduces the amount of "lost" space when they are positioned under each other. Closes #15637.

2013-11-05 14:39 VZ, revision 75128

Ignore system colour change events in not yet initialized wxPropertyGrid. Handling these events before the initialization was over could result in a crash because m_categoryDefaultCell wasn't yet initialized when the window was created. Fix this by ignoring these events during initialization. Closes #15642.

2013-11-05 14:39 VZ, revision 75127

Fix wxOleConvertVariantFlags mentions in the documentation. In some case wxConvertVariantToOleFlags was used instead. Closes #15641.

2013-11-05 02:00 BP, revision 75126

Adjusted Romanian translator list by request from Catalin.

2013-11-04 20:24 BP, revision 75125

Updated reference manual translation status table.

2013-11-04 16:13 JS, revision 75124

Made column and row spans members so they don't interfere with app-defined properties. Added identifier to wxRichTextObject so objects can be addressed by name. Generalised wxRICHTEXT_CHANGE_OBJECT command so it can now apply to a paragraph as well as an object within a paragraph.

2013-11-03 23:28 JS, revision 75123

Fixed some wxRTC dialog layout issues, and added a couple of extra text effects flags.

2013-11-02 19:01 VS, revision 75122

Make wxTextEntry::SetHint() work with all derived controls in wxOSX. Previously, the method was only implemented in wxTextCtrl even though it used wxTextEntry code to do the actual work. Move the implementation into wxTextEntry.

2013-11-02 17:55 VZ, revision 75121

Basque translations update from Xabier Aramendi.

2013-11-02 17:36 PC, revision 75120

fix GCC warning "logical ‘or’ applied to non-boolean constant"

2013-11-02 17:29 PC, revision 75119

get correct best size for wxSpinButton

2013-11-02 00:59 VZ, revision 75118

Reset current item in generic virtual wxListCtrl when items count changes. This ensures that we don't end up with an invalid current item value, which resulted in the asserts (see http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/80341) and possibly worse.

2013-11-02 00:59 VZ, revision 75117

Don't include sys/unistd.h unnecessarily when using MinGW. This doesn't seem to be needed under Windows where <sys/unistd.h> is just a wrapper for <io.h> which is already included just below anyhow. And doing this seems to result in problems with Cygwin MinGW cross-compiler 4.7.3 which seems to ship with broken version of this file, see the problem described in http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/80322

2013-11-01 19:07 JS, revision 75116

Avoid invisible text in style list

2013-11-01 17:00 JS, revision 75115

Don't draw border if the width is zero.

2013-10-31 22:44 JS, revision 75114

Added corner radius to box attributes, and a control in the border properties page to edit it.

2013-10-31 17:03 VZ, revision 75113

Use proper accents in a contributor name.

2013-10-31 17:03 VZ, revision 75112

Fix light magenta definition in the colour database. Make it different from magenta itself, otherwise a colour constructed from "magenta" string was returning "light magenta" as its name. The exact value of this colour is not well-defined, another commonly used one seems to be 0xff80ff, but in a lot of places it is used as a synonym for fuchsia pink which is pretty unambiguously 0xff77ff. Closes #15628.

2013-10-31 13:05 VZ, revision 75111

Mention incompatible wxGridBagSizer::AddGrowable{Col,Row}() change. It now has no effect if called before adding the columns/rows to the sizer.

2013-10-31 12:56 VZ, revision 75110

Update contributor name to preferred variant.

2013-10-31 10:57 JS, revision 75109

Corrected multiple cell property editing

2013-10-31 10:40 JS, revision 75108

Fixed print preview glitch and vertical cell alignment.

2013-10-31 07:53 JS, revision 75107

Fixed selection bug.

2013-10-30 17:23 JS, revision 75106

Tidied up some file headers and fixed tooltip status accessors.

2013-10-30 16:15 JS, revision 75105

wxRTC: added spacing attribute and no-wrap behaviour for table cells.

2013-10-30 13:48 VZ, revision 75104

Minor Dutch translations update from Gideon van Melle.

2013-10-30 13:21 VZ, revision 75103

Fix wxMSW build with WXWIN_COMPATIBILITY_2_6==1. Avoid conflict between wxMSW symbol defined in wx/platinfo.h in this build configuration and wxMSW namespace by renaming the latter to wxMSWImpl, which is also consistent with the namespace name used elsewhere. Closes #15624.

2013-10-30 08:25 VS, revision 75102

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.

2013-10-29 23:54 VZ, revision 75101

Fix missing semicolon in wxFileName::SetPermissions() documentation. Closes #15623.

2013-10-29 20:20 VZ, revision 75100

Avoid pointer conversions to unsigned long in the samples. This results in errors when using g++ Win64 builds as sizeof(long) < sizeof(void*) in Win64.

2013-10-29 14:18 JS, revision 75099

Don't delete composite objects when defragmenting

2013-10-29 14:05 VZ, revision 75098

Remove accidentally committed testing "rem" from regen.bat. See #15620.

2013-10-29 13:17 VZ, revision 75097

Fix MeasureWidths() in wxSTC in non-Unicode build. Integer values must be converted to floats instead of just using memcpy(). Closes #15617.

2013-10-29 13:17 VZ, revision 75096

Fix wxSpinButton default width under GTK+ 3. The default GTK+2 width is so small as to make the control unusable under GTK+3, so use larger (but still hardcoded) width there. Closes #15619.

2013-10-29 13:17 VZ, revision 75095

Check for dot being available when building HTML documentation. This helps with ensuring that the generated CHM always has the inheritance diagrams as by default Doxygen creates it successfully even if dot is not found -- but without any graphs. Closes #15620.

2013-10-28 23:17 VZ, revision 75094

Initialize the number of items in wxSelectionStore. wxSelectionStore::m_count was somehow never initialized, and even although this seems harmless right now, don't leave it uninitialized if only to avoid Valgrind warnings about using this.

2013-10-28 21:38 VZ, revision 75093

Don't define _CRTBLD when using MSVC 12 or later. This results in fatal #errors from the standard <assert.h> which doesn't want to be included with _CRTBLD defined. Generally speaking, defining _CRTBLD looks like a very wrong thing to do and it's probably not necessary any more (considering that it was done in r25683 almost 10 years ago) but only avoid doing this with VC 12 for now to avoid breaking anything else before 3.0.

2013-10-28 16:04 VZ, revision 75092

Fix crash in wxCharBuffer if memory allocation fails. Handle memory allocation failure gracefully in wxCharTypeBuffer ctor. Closes #15616.

2013-10-28 12:24 VZ, revision 75091

Fix RC2 description in the announcement. It's second, not first.

2013-10-28 12:22 VZ, revision 75090

Update SHA1 sums of 3.0.0-rc2 binaries. Also mention the availability of two different architectures.

2013-10-28 08:48 VS, revision 75089

Fix wxWindowModalDialogEvent::GetReturnCode() on Windows. *Lots* of native dialogs don't call SetReturnCode() in their ShowModal() implementations in wxMSW. Rather than fixing them all - and having them accidentally broken again and again in the future - fix this just in the generic ShowWindowModal() implementation. This may not be the most elegant fix, but it is bullet-proof. Also revert previous attempt to fix just wxMessageDialog in r74776.

2013-10-27 21:36 VZ, revision 75088

Update SHA1 sums for the release files after remaking the release.

2013-10-27 21:21 VZ, revision 75087

Tag 3.0.0-rc2 release yet again.

2013-10-27 21:19 VZ, revision 75086
  • D /wxWidgets/tags/WX_3_0_0-rc2

Remove wrong 3.0.0-rc2 tag.

2013-10-27 21:17 VZ, revision 75085

Tag 3.0.0-rc2 release again.

2013-10-27 21:16 VZ, revision 75084

Update the version to 3.0.0-rc2 in wx/version.h as well.

2013-10-27 16:49 VZ, revision 75083

Tag 3.0.0-rc2 release

2013-10-27 16:48 VZ, revision 75082

Update checksums for the 3.0.0-rc2 release files.

2013-10-27 16:48 VZ, revision 75081

Prepare release notes and such for 3.0.0-rc2. No real changes, just change the RC number. Also update the release date.

2013-10-27 16:33 VZ, revision 75080

Simplify and update wxMSW build instructions. Keep the most important points, remove the obsolete stuff. Also get rid of 99% of the contents of BuildSVN.txt which simply duplicated the information from the other files.

2013-10-27 16:33 VZ, revision 75079

Add x64 platform to MSVS 10 solution and project files. Manually update VC10 projects to have both Win32 and x64 architectures, use "vc_x64" for the output directories and the DLL names under the latter. Closes #15568.

2013-10-26 23:40 VZ, revision 75076

Create 3.0 release branch.

2013-10-26 23:37 VZ, revision 75075

Update the binaries README for 3.0-rc2 and MinGW binaries. Also indicate that MSVS 2013 binaries are available and correct the name of the headers archive.

2013-10-26 22:29 VZ, revision 75074

Make windres command used in MinGW build configurable. This allows to pass extra arguments to windres, which is especially important when using 64 bit windres for building 32 bit applications as the generated .o file uses a wrong architecture unless "-F pe-i386" is explicitly specified. See #15601.

2013-10-26 22:29 VZ, revision 75073

Use UTF-8 for saving wxTextCtrl contents now. This ensures that the files created by wxTextCtrl::SaveFile() can be read back by wxTextCtrl::LoadFile() as previously the files were saved using the current locale encoding but read back using Latin1 (after first trying, and failing, to read them as UTF-8). This is a backwards incompatible change but it ensures that wxTextCtrl can load its own files and is also consistent with the use of UTF-8 by default in other places. Finally, and perhaps most importantly, this ensures that the file contents can always be saved, i.e. there is no risk of conversion errors any more. Closes #15611.

2013-10-26 20:51 PC, revision 75072

spelling fixes

2013-10-26 19:11 PC, revision 75071

Remove references to GTK+ 3 support being experimental

2013-10-26 18:25 PC, revision 75070

spelling fixes

2013-10-26 18:25 PC, revision 75069

minor updates to GTK-specific comments

2013-10-25 23:23 VZ, revision 75068

Fix special characters handling in wxSVGFileDC::DrawText(). Special XML characters need to be quoted before being saved in an SVG file (which is also an XML file). Closes #15602.

2013-10-25 19:51 VZ, revision 75067

Use correct contributor name for Jonathan Liu. Correct the changelog entry added by r73938, see #10625.

2013-10-25 19:51 VZ, revision 75066

Remove wxPropertyGrid colours not recognized by wxColour. Don't use colour names which can't be used to successfully initialize wxColour. This is not the best solution, we probably should add these names to the colour database instead, but for now it's better than getting errors when trying to use these colours for colour properties in wxPropertyGrid. See #15597.

2013-10-25 19:38 VZ, revision 75065

Don't draw the segment lines in wxGtkPrinterDC::DrawArc() unless it's filled. The segments should only be drawn if we're filling the arc, i.e. drawing a pie, but not if we're just drawing its outline. Add a test of this to the printing sample. Closes #15609.

2013-10-25 19:38 VZ, revision 75064

Fix DrawArc() implementation in wxGtkPrinterDC. It didn't count the angles correctly when they were equal to 90 degrees. Also simplify the code by avoiding special cases for 90 degrees anyhow, just call atan2() directly. And also avoid converting the angles to degrees just to convert them back to radians immediately afterwards. See #15609.

2013-10-25 18:16 VZ, revision 75063

Improve wxDC::DrawArc() documentation. The existing documentation was flat out wrong as it is simply impossible to pass a circle through any two arbitrary points while also fixing its centre, explain what this function really does and also use this as an opportunity to point people to DrawEllipticArc() which is much less confusing. Also clarify the segments drawing logic of DrawArc() as it is quite counterintuitive too as it depends on the brush being used and is also different from DrawEllipticArc() which uses a simpler logic. See #15609.

2013-10-25 17:17 VZ, revision 75062

Indonesian translations update from Andika Triwidada.

2013-10-25 14:17 VZ, revision 75061

Restore the check for wxTAB_TRAVERSAL in wxMSW wxWindow code. This check was replaced with a check for WS_EX_CONTROLPARENT in r74732 to avoid using ::IsDialogMessage() when WS_EX_CONTROLPARENT is not set, but it also resulted in using it when WS_EX_CONTROLPARENT is set but wxTAB_TRAVERSAL is not. Check for both of them now so that we only use IsDialogMessage() when we need it (wxTAB_TRAVERSAL) and when it is safe to do it (WS_EX_CONTROLPARENT). Closes #15565.

2013-10-25 14:17 VZ, revision 75060

Fix passing wxCStrData to a vararg function. This doesn't work with simple vararg functions and the real solution would be to use WX_DEFINE_VARARG_FUNC for wxCrashReport::Output() but for now just add a cast to make the code compile and work with minimal changes. Closes #15598.

2013-10-25 14:17 VZ, revision 75059

Fix wxMSW build when wxUSE_INTL==0. Don't use wxLocaleInfo in this case as it's not defined. Closes #15599.

2013-10-25 14:17 VZ, revision 75058

Fix wxGrid compilation in some wxUSE_XXX=0 configurations. This header uses wxScopedPtr<> but didn't include the corresponding header, do it now as we can't always rely on this happening via the other headers as it does in the default build config.

2013-10-24 09:00 JS, revision 75057

Use specified height in a text box, if there is one

2013-10-22 20:44 JS, revision 75056

Implemented editing all 4 borders at once in wxRTC borders page

2013-10-21 18:01 JS, revision 75055

Added wxEVT_RICHTEXT_CONSUMING_CHARACTER event to allow interception of character events

2013-10-21 15:12 JS, revision 75054

Fix selection drawing for table cells

2013-10-21 15:10 JS, revision 75053

Fix HasCharacter/PragraphAttributes to use the focus object

2013-10-20 19:42 JS, revision 75052

Corrected wxRTC IsDefault() implementations

2013-10-20 19:19 JS, revision 75051

Avoid crash when deleting range that includes the focus object.

2013-10-19 21:27 SC, revision 75050

CoreText is always available on 10.5+, so using all this code unconditionally, committing Vadim's suggestions with two extensions, see #15580

2013-10-19 14:05 VZ, revision 75049

Disable wxDataObject in wxDFB build at configure level. Otherwise we'd just get an error when compiling wx/dfb/chkconf.h later. Closes #15594.

2013-10-19 08:48 SC, revision 75048

turn off web wxWebView on iOS at the moment

2013-10-18 21:27 JS, revision 75047

Fixed some data transfer bugs

2013-10-18 20:15 VZ, revision 75046

Avoid sending wxEVT_CHAR events when text is inserted by the program in wxOSX. This should fix crashes due to infinite recursion in the code that calls wxTextCtrl::WriteText() from wxEVT_CHAR handler. Closes #15345.

2013-10-18 20:15 VZ, revision 75045

No real changes, just restrict wxMacEditHelper interface. There is no need to provide GetCurrentlyEditedView() when a simpler IsCurrentlyEditedView() suffices.

2013-10-18 20:15 VZ, revision 75044

Fix ItemDeleted() call in wxTreeListModel. While it doesn't matter when exactly do we call it with the generic or GTK native implementations, under OS X we must update the internal model first and call this method afterwards because it refreshes the control contents immediately and so was calling back to the model and getting the pointer to the item about to be deleted, which resulted in a crash when this pointer was dereferences later. Closes #15575.

2013-10-18 17:00 VS, revision 75043

XRC spec: say that all properties are optional. Provide defaults for all properties in the spec. In XRC schema, make all properties optional. The previously required ones are annotated as "important" (read: should be set unless you know what you're doing), but aren't enforced. The code already behaved like this, so this just synchronizes the specification with the reality.

2013-10-18 17:00 VS, revision 75042

XRC schema: Validate wxSizerItem flag property rigorously. Validating all style flags strictly would be unmaintainable mess of verbose regular expressions that would quickly get out of sync. But we can validate at least wxSizerItem flags, which are both stable and so frequently used that it is worth the effort.

2013-10-18 17:00 VS, revision 75041

XRC: File bugs in wxFileCtrl spec, schema and samples. Incredibly, there were bugs, inaccuracies or missing content in all three of them, but each one had its own unique problems. Fix them all to be in sync with the implementation.

2013-10-18 16:59 VS, revision 75040

Use wxHORIZONTAL default for wxWrapSizer in wxSizerXmlHandler. For consistency with all other wxSizer kinds, use the default of wxHORIZONTAL instead of 0 (which has no meaning here) for wxWrapSizer too.

2013-10-18 13:21 VZ, revision 75039

Add a simple README for the XRC schemas. Explain how they can be used.

2013-10-18 10:44 SC, revision 75038

adding web view files for building Xcode projects, fixes #15590

2013-10-18 10:43 SC, revision 75037

adding web view files for building Xcode projects, see #15590

2013-10-18 09:16 SC, revision 75036

fixing compile after cleanup

2013-10-18 07:13 SC, revision 75035

fixes #15591

2013-10-18 00:28 VZ, revision 75034

Revert changes to the drawing of the tree item buttons in the generic renderer. This reverts r74887 as this created problems when drawing them at standard size. See #15526.

2013-10-18 00:26 VZ, revision 75033

Fix syntax error in the dialogs sample after r75028. An extra "&&" was left in the preprocessor check, remove it. Also remove the check for __WXMAC_OSX__ as it's unneeded as USE_NATIVE_FONT_DIALOG_FOR_MACOSX is only defined as 1 under wxOSX and, actually, wrong, as __WXMAC_OSX__ is never defined anywhere and was probably a corruption of __WXOSX_MAC__ in the first place.

2013-10-18 00:26 VZ, revision 75032

Fix gcc architecture checks added to wx/msw/genrcdefs.h. Use "#if defined" instead of "#ifdef" for the checks involving "||".

2013-10-17 23:21 VZ, revision 75031

Update wxString Unicode documentation to reflect the default wchar_t use. And other minor fixes to Unicode-related documentation.

2013-10-17 18:37 PC, revision 75030

make m_modalShowing private

2013-10-17 18:00 PC, revision 75029

silence GCC warning "enumeral and non-enumeral type in conditional expression"

2013-10-17 14:34 VZ, revision 75028

Get rid of compile- and run-time checks for OS X < 10.5. As 10.5 is the minimal supported version, it doesn't make sense to check for it (or even earlier versions) during the build or run-time. Closes #15580.

2013-10-17 14:34 VZ, revision 75027

Fix wrong UMAGetSystemVersion() return value comparison in wxScreenDC. The return value of gestaltSystemVersion() represents the version as "four hexadecimal digits in the low-order word of the return value", to quote Apple documentation, not as a floating point number.

2013-10-17 14:34 VZ, revision 75026

No changes, just remove hard TABs from wxWebViewWebKit code. This will allow to commit other changes to this file without triggering svn hook checking for the TABs absence.

2013-10-17 14:33 VZ, revision 75025

Remove our own dlxxx() functions emulation for OS X <= 10.3. We don't support so old versions of OS X any more anyhow, so simplify the code by using dlopen() &c directly instead of using our own wx_dlopen() with custom implementation for OS X. See #15580.

2013-10-17 14:33 VZ, revision 75024

Always use standard mbstowcs() and wcstombs() functions. Don't provide our own (not fully functional) definitions of them and always use the system versions as we don't support OS X 10.2 which was the last platform where these functions didn't exist/work. See #15580.

2013-10-17 14:19 VZ, revision 75023

Mention -std=gnu++11 vs -std=c++11 in the build instructions. Unfortunately -std=c++11 doesn't work currently and almost certainly won't before 3.0, so at least document the workaround.

2013-10-17 14:19 VZ, revision 75022

Also add mention of TDM-GCC to the build instructions. This seems to be a very popular option for building wxWidgets too.

2013-10-17 14:19 VZ, revision 75021

Update Cygwin/MinGW build instructions. Remove very out of date information, mention MinGW-w64 and extend Cygwin explanations.

2013-10-17 14:19 VZ, revision 75020

Check for gcc architecture defines in wx/msw/genrcdefs.h too. This fixes the build for non-x86 architectures when using MinGW with makefiles (i.e. not using configure) as without this no WX_CPU_XXX was getting defined at all, resulting in failures when building any programs using wxWidgets that includes wx/msw/wx.rc (including our own minimal sample).

2013-10-17 11:49 JS, revision 75019

Include for wxSscanf

2013-10-16 22:23 JS, revision 75018

Added points to the units for editing border widths

2013-10-16 20:19 JS, revision 75017

Typo fix

2013-10-16 19:23 PC, revision 75016

remove GetMaskBitmap() declaration, should have been part of r73409

2013-10-16 19:09 PC, revision 75015

slight simplification: use another sed expression instead of running tr

2013-10-16 18:45 PC, revision 75014

Silence warnings in headers with MSC -W4

2013-10-16 18:22 JS, revision 75013

Added wxTEXT_ATTR_UNITS_HUNDREDTHS_POINT for more precise border sizes; used GetPixels() more; corrected collapsed borders implementation.

2013-10-15 22:00 SC, revision 75012

adjusting the visible items

2013-10-15 18:12 VZ, revision 75011

Include wx/defs.h before testing for wxUSE_CHOICEDLG. Fix compilation of this header if it's the first one to be included from user code.

2013-10-15 15:04 VZ, revision 75010

Simplify the code in wxTextFile::OnRead() slightly. No real changes, just use a self-explanatory "lastWasCR" variable instead of storing the last character read which wasn't used for anything except comparing it with '\r'.

2013-10-15 15:04 VZ, revision 75009

Fix reading of files with Mac EOLs in wxTextFile. The last CR-terminated line wasn't handled correctly. Fix this now and add unit tests to ensure that it stays fixed. Closes #15583.

2013-10-15 12:24 VZ, revision 75008

Italian translations update from Roberto Boriotti. Just mark a few translations non-fuzzy.

2013-10-14 17:08 VZ, revision 75007

Document that wxEVT_MENU_CLOSE can come before wxEVT_MENU. This is somewhat unexpected but is how both wxMSW and wxGTK work currently, so just document the current behaviour. See #15479.

2013-10-14 17:08 VZ, revision 75006

Don't undefine __WXMSW__ for console mode applications using wxWidgets. This partially undoes the changes of r73290 by keeping __WXMSW__ defined for the console mode user applications and only undefining it when building wxWidgets itself. This allows the existing code using __WXMSW__ to continue compiling correctly with wxWidgets 3.0. Closes #15579.

2013-10-14 17:08 VZ, revision 75005

Fix pointer truncation in wxListEvent::GetData() in LLP64 builds. We must use wxUIntPtr and not long here to avoid truncating the upper half of the pointer when sizeof(void*)>sizeof(long). Closes #15578.

2013-10-14 17:08 VZ, revision 75004

Add wxOleConvertVariant_ReturnSafeArrays flag for better SAFEARRAY handling. While we can't change the type of wxVariant to which SAFEARRAYs are converted by default, it's much more convenient to work with the variant objects of the correct type, i.e. using wxVariantDataSafeArray, when dealing with SAFEARRAYs, so add a flag which can be set to tell a wxAutomationObject to behave in this way. Closes #14700.

2013-10-14 17:08 VZ, revision 75003

Added a changelog section for 3.0-RC2. List the most important changes since 3.0-RC1 already done.

2013-10-14 17:08 VZ, revision 75002

Only auto-link wsock32.dll if net library is used. Otherwise linking with it can create problems with the code using other network libraries, which link with ws2_32.dll (Winsock 2). See #15562.

2013-10-14 17:08 VZ, revision 75001

Don't use owner drawn items under Win7 even when using larger bitmaps. The check for menu bitmaps size added in r58557 was apparently only needed for XP and earlier versions and doesn't seem to be necessary under Win7, so don't use it there, if only because it allows to retrieve the menu item text which is useful for automation/screen reader tools. Closes #13544.

2013-10-14 17:08 VZ, revision 75000

Document that autocompletion is not implemented for wxOSX wxComboBox. While the relevant methods are in wxTextEntry, they are only really implemented for wxTextCtrl in wxOSX, not wxComboBox, which also derives from wxTextEntry.

2013-10-14 17:08 VZ, revision 74999

Do define __VISUALC__ when using Intel compiler under Windows. This undoes r74888, r74913 and r74969 because all of them were still not enough to make ICC build work correctly. So instead of trying to find all the places where we need to test for __INTELC__ in addition to __VISUALC__, just revert to defining __VISUALC__ for ICC under Windows as it uses its CRT anyhow and in the vast majority of cases we are actually testing for the CRT and not the compiler anyhow. Closes #15359.

2013-10-14 17:08 VZ, revision 74998

Don't leave dangling comboboxes in the GUI unit test suite. Sort() and ReadOnly() tests created a new combobox without deleting the old one, and so these comboboxes were left on the screen for the duration of all the subsequent tests, subtly breaking them. E.g. this was responsible for spurious breakages in the event propagation test case because sometimes the context menu event showed the combobox context menu (why this didn't happen always is another question...). It would be great to find some way to ensure that nothing is left after a test terminates but I'm not sure about how to do this with cppunit. So for now just manually delete the extraneous comboboxes.

2013-10-14 17:07 VZ, revision 74997

Fix wxDataFormat comparison operators for wxDF_HTML under wxMSW. This format is special as it doesn't have a fixed value and is registered dynamically instead. So we need to call HtmlFormatFixup(), which checks if the given custom format is actually wxDF_HTML, before comparing formats to ensure that the real value assigned to this format compares correctly to the fixed wxDF_HTML value. Closes #15280.

2013-10-14 17:07 VZ, revision 74996

Update the year in the built-in wxWidgets version dialog. Simply s/2011/2013/

2013-10-14 17:07 VZ, revision 74995

Work around a failure in TreeCtrlTestCase::SelectionChange() unit test. We were getting an extra event under MSW if the control was initially unfocused, so do focus it. This is a work around as the extra event shouldn't occur but I'm too afraid of changing wxMSW code itself so close to 3.0.

2013-10-14 17:07 VZ, revision 74994

Avoid spurious errors when getting wxChoice or wxListBox client data in wxMSW. Even after the changes of r70415, we could still report an error when the item client data was set to -1 (== CB_ERR) as checking for GetLastError() was not enough, we need to also ensure that the last error is reset before trying to get the client data. Also apply the same fix to wxListBox and add the tests verifying that this does work correctly. Closes #13883. Also fix wxListBox::GetClientData().

2013-10-14 12:00 VZ, revision 74993

Fix wrong encoding of Polish translations. The file was somehow encoded in UTF-8 twice.

2013-10-13 12:30 VZ, revision 74992

Update the version in bakefile presets to 3.0 too. Also mention this file in the list of files to update when changing the version. Closes #15577.

2013-10-12 22:47 JS, revision 74991

Fixed calculation when cell widths are percentages.

2013-10-12 09:10 JS, revision 74990

Added back missing event.Skip() removed accidentally in r72302 disabling editing

2013-10-12 08:15 JS, revision 74989

Fixed image insertion in the wxRTC sample

2013-10-11 17:31 VS, revision 74988

Add schema validation to wxrc. Add --validate and --validate-only flags to wxrc that perform validation of the input files against the RELAX NG schema from misc/schema. Jing must be installed for this to work.

2013-10-11 17:31 VS, revision 74987

Fix incorrect wxExecute() use in wxrc.

2013-10-11 17:31 VS, revision 74986

XRC format: clarify that cols/rows are unsigned.

2013-10-11 17:31 VS, revision 74985

XRC schema: fix t_style to allow 0-9 in style names. Example: wxCHK_2STATE

2013-10-11 16:43 JS, revision 74984

wxRTC tables: improve collapsed border drawing by allowing cell borders at the edge if no overall border.

2013-10-11 13:13 JS, revision 74983

Corrected conversion of small dimensions to pixels

2013-10-11 10:04 JS, revision 74982

Added SetProperty with wxChar* argument

2013-10-10 22:55 VZ, revision 74981

Don't use long deprecated and now removed pangox library in wxX11 any more. Use pangoxft only now. Also remove the apparently unused src/x11/pangox11.cpp file, only src/x11/pango_x.cpp seems to be used (and this one only by being included in src/x11/dcclient.cpp). Closes #15482.

2013-10-10 18:05 PC, revision 74980

remove extraneous semicolon

2013-10-09 22:42 VZ, revision 74979

Fix wrong common_samples.bkl include path in animate sample bakefile. Surprisingly, the wrong path somehow worked all this time and still works in some installation, but not all of them. Using the correct path shouldn't hurt though. Closes #15570.

2013-10-09 21:44 VZ, revision 74978

Revert the change to wxGTK build slave configure arguments. Undo the temporary change of r74975 as it didn't help with fixing the problem with the failing unit test.

2013-10-09 20:07 PC, revision 74977

Window decoration fixes for Wayland. Allow setting no decorations, and an attempt to allow setting no title bar. closes #15553

2013-10-09 12:45 VS, revision 74976

Remove assert from wxStringOperationsUtf8::DecIter(). The assert prevented decrementing end() iterator, which is a valid operation. Fixes #15566.

2013-10-09 12:34 VZ, revision 74975

Change wxGTK build slave configuration to use built-in libpng. This is an attempt to debug the failure of ImageTestCase::ScaleCompare() unit test.

2013-10-09 12:34 VZ, revision 74974

Call SetErrorMode() for all Windows applications, not just wxMSW ones. This suppresses default system error message boxes when trying to load an invalid DLL in wxGTK/Windows. Closes #15559.

2013-10-09 12:34 VZ, revision 74973

Undo the changes to a sample message catalog by "$Id" removal. Revert the changes of r74602 to a binary file. Closes #15563.

2013-10-09 03:53 BP, revision 74972
  • D /wxWidgets/trunk/docs/doxygen/images/logo_gtk.png
  • D /wxWidgets/trunk/docs/doxygen/images/logo_motif.png
  • D /wxWidgets/trunk/docs/doxygen/images/logo_osxleopard.png
  • D /wxWidgets/trunk/docs/doxygen/images/logo_win.png
  • D /wxWidgets/trunk/docs/doxygen/images/logo_x11.png
  • M /wxWidgets/trunk/docs/doxygen/mainpages/platdetails.h

Removed unnecessary 3rd party copyrighted logos from the manual, see #15564.

2013-10-09 02:34 DS, revision 74971

Fixed wxFileDialog assertion failure under wxOSX Cocoa. Using wxFD_FILE_MUST_EXIST in combination with an extra panel in wxFileDialog wasn't working properly. Simply remove the unused flag under OS X. Caused problems with Cocoa only (not Carbon), and at least under 10.6 and 10.8.

2013-10-08 22:33 DS, revision 74970

Fixed Carbon compilation. Regression since r74855 and r74954.

2013-10-08 12:40 VZ, revision 74969

Check for __INTELC__ in a couple more places. See #15359.

2013-10-08 04:17 DS, revision 74968

Regenerated Xcode projects. Updated the Xcode projects to include src/common/threadinfo.cpp. Closes #15558.

2013-10-07 23:08 VZ, revision 74967

Some minor Tamil translations fixes from DINAKAR T.D.

2013-10-07 18:50 PC, revision 74966

update GLib version check

2013-10-07 18:14 PC, revision 74965

silence unused parameter warning

2013-10-07 18:06 PC, revision 74964

build fix for wxUSE_UNICODE==0

2013-10-07 15:04 VZ, revision 74963

Tag 3.0.0-rc1 release

2013-10-07 15:01 VZ, revision 74962

Update SF release notes for 3.0.0-rc1.

2013-10-07 15:01 VZ, revision 74961

Don't use capital "H" in the header archives names. This is inconsistent with "docs" and is just strange.

2013-10-07 14:55 JS, revision 74960

Apply #15557 to fix wxRichTextParagraphLayoutBox documentation (dghart)

2013-10-07 14:07 VZ, revision 74959

Update announcement and changelog for 3.0.0-RC1.

2013-10-07 14:07 VZ, revision 74958

Mention wxWebView in the list of major changes since 2.8. It's certainly no less important than propgrid or ribbon (and arguably much more so).

2013-10-07 13:43 VS, revision 74957

Workaround OS X crash when closing FDs in wxExecute. wxExecute() closes all file descriptors in the forked child process. This is a common practice, but it unfortunately breaks in combination with libdispatch on OS X, which - instead of gracefully handling the situation - intentionally(!) crashes when something closes its kevent file descriptor in OS X 10.8. There's doesn't seem to be a simple way to get this descriptor and there's no telling when libdispatch is pulled into the executable, so just leave the file descriptors be when running under Darwin, until a better fix is found.

2013-10-07 13:43 VS, revision 74956

Fix wxExecute() default priority if wxProcess is not used. The code mistakenly assigned the lowest possible priority (0, in wx's numbering), while the intention probably was to have the same default as wxProcess, which is 0 in POSIX numbering and 50== wxPRIORITY_DEFAULT in wx's. Fixes permission denied errors if lowering priority is not permitted.

2013-10-07 13:23 SC, revision 74955

adding getURL hook

2013-10-07 13:12 SC, revision 74954

completing OnInit rework for getURL and printFiles callback

2013-10-07 11:59 VZ, revision 74953

Fix unwanted ribbon expansion on focus loss. The ribbon unexpectedly showed itself on focus loss when it was minimized. Fix this and also use switch statement on m_ribbon_state to ensure that the compiler warns us if we forget to add the code for handling any new elements of wxRibbonDisplayMode enum. Closes #15381.

2013-10-07 11:59 VZ, revision 74952

Make the test for wxBUFFER_VIRTUAL_AREA in wxBufferedDC code more clear. While "!a & b" is the same as "!(a & b)" when "b" is a single bit, the latter is much more standard and more clear, so write this test (added in r71704) like this.

2013-10-07 11:58 VZ, revision 74951

Partially account for the shifted origin in wxBufferedDC. This change slightly improves wxBufferedDC and wxBufferedPaintDC behaviour when the origin of the DC is shifted, but they still don't work quite right in this case as they don't use the buffer area of correct size in this case, which results in cropping the final bitmap (as can be seen in the drawing sample, which was modified to show wxBufferedPaintDC in action). Closes #15497.

2013-10-07 11:58 VZ, revision 74950

Generate events with specific wxFSW_WARNING_OVERFLOW type if applicable. This allows the program to distinguish between some other, unspecified, warnings and this one which can and does happen whenever too many changes occur too quickly but which has a clearly defined work around: the state kept inside the program just needs to be refreshed by rescanning the directory anew. See #12847.

2013-10-07 11:58 VZ, revision 74949

Correct sorting order for doubles and wxDateTime in wxDataViewModel. They were compared inconsistently with the numbers and strings, -1 is supposed to be returned if the first element is less than the second one, not 1. Closes #15406.

2013-10-07 11:58 VZ, revision 74948

Handle comparisons of boolean and icon-text items in wxDataViewModel. For some reasons these types were not handled in wxDataViewModel::Compare(), unlike all the other standard ones. Closes #15407.

2013-10-06 23:12 SC, revision 74947

get OnInit with complete functionality without loosing sequence for MacOpenFile being called after OnInit

2013-10-06 01:30 VZ, revision 74946

Fix capturing non-ASCII output using wxExecute(). Explicitly use wxConvLibc with wxTextInputStream to make sure we correctly decode non-ASCII data in the subprocess output. This is a hack, the real solution would be to make wxTextInputStream work properly with wxConvAuto. See #14720.

2013-10-06 01:30 VZ, revision 74945

Improve handling of keyboard entry using IME. Pass the keyboard events to the IME before generating our events for them, the IME may need them for its own use. Closes #15384.

2013-10-05 21:50 JS, revision 74944

Use the correct attributes

2013-10-05 18:31 JS, revision 74943

wxRTC: fixed bug with columns with unspecified widths, and column spans, being sized too small

2013-10-05 18:20 PC, revision 74942

Fix default size of un-resizable windows, broken in r74685 see #14870 closes #15549

2013-10-05 18:15 JS, revision 74941

Provide a fallback text colour for text in wxRTC

2013-10-05 17:35 JS, revision 74940

Changed the capitalisation of 'span' of Set/GetRow/Colspan to be less jarring

2013-10-05 17:05 VZ, revision 74939

Don't skip handled mouse wheel events in wxVScrolledWindow. Make the code consistent with wxScrolledWindow and fix the problem with wheel events always being skipped by wxVScrolledWindow which could result in processing them multiple times, e.g. for the window itself and its parent as it happened with wxPGChoiceEditor cells in wxPropertyGrid. Closes #15547.

2013-10-05 17:05 VZ, revision 74938

Replace c_str() with t_str() in wxWinCE code. This should work correctly even in UTF-8 build, should someone want to use it under Windows CE.

2013-10-05 17:05 VZ, revision 74937

Don't call SetDllDirectory() when loading dynamic libraries in wxMSW. SetDllDirectory() modifies the per-process DLL loading behaviour which is already unexpected as it can affect other threads, running code completely unrelated to wxWidgets, but, even worse, we can't undo its effect as calling SetDllDirectory(NULL) as we used to discarded any changes to the DLL directory done by the program itself, while restoring the result of GetDllDirectory() would never restore the "compatible" algorithm for DLL search used by default. So the simplest, and the only 100% correct solution, is to not call this function at all from here and call it from some higher level code only, either in the user application or wxPython itself. Closes #15534.

2013-10-05 17:01 JS, revision 74936

Implemented collapsed borders for wxRTC

2013-10-05 02:05 VZ, revision 74935

Fix crash when accessing wxThreadInfo during global initialization time. We can't rely on our own globals being already constructed if we're called during another global initialization, so use the usual trick with wrapping them in accessor functions to ensure that they are.

2013-10-05 01:48 VZ, revision 74934

Work around g++ atomic builtins detection in configure when -Os is used. Assigning __sync_sub_and_fetch() result to an unused variable can result in it being optimized away and the function support is then not really tested for, see #4542. So do make sure this variable is kept by making it volatile. Closes #15555.

2013-10-05 01:48 VZ, revision 74933

Turkish translations update from Kaya Zeren.

2013-10-05 01:48 VZ, revision 74932

Remove unnecessary forward declarations from the docview sample. MyFrame doesn't exist at all and was just confusing; DrawingView does exist but is declared in view.h and is not needed in this header.

2013-10-04 14:34 JS, revision 74931

Added conversion from points

2013-10-04 09:57 JS, revision 74930

Corrected border drawing to avoid clipping

2013-10-04 07:51 JS, revision 74929

wxRTC table layout now uses cell content to calculate column widths if no other widths specified

2013-10-03 14:12 JS, revision 74928

Include wxWANTS_CHARS style unless wxTE_READONLY is specified

2013-10-03 13:08 VS, revision 74927

Add RELAX NG schema for XRC files.

2013-10-03 13:08 VS, revision 74926

Misc validity fixes to samples/xrc/rc/*.xrc. Fix invalid XRC markup.

2013-10-03 13:08 VS, revision 74925

XRC spec: document wxRibbon* XRC handler. Format documentation was nonexistent (the few words present were incorrect). Document my best guess about the intended usage.

2013-10-03 13:08 VS, revision 74924

XRC spec: relax requirements on some commonly omitted properties. Some properties documented as required, such as labels on wxStaticText or wxCheckBox or the size of wxSizer spacers, are frequently omitted in practice. Rather than strictly requiring them, forcing the markup to include dummy empty elements, loosen the restriction in the spec and make them optional. Nothing changes about actual acceptance of files by wxXmlResource: it would already silently deal with the lack of these properties.

2013-10-03 13:08 VS, revision 74923

XRC spec: document the "title" property for wxWizard.

2013-10-03 13:08 VS, revision 74922

XRC spec: document the "focused" window property.

2013-10-03 12:34 VZ, revision 74921

Fix install_name_tool calls in OS X "make install". Unfortunately the changes of r74909 (see #15452) don't seem to have been tested and broke "make install" completely as libraries were not found in the "bin" directory where the script was looking for them. Fix it to use "lib" subdirectory as intended. Closes #15551.

2013-10-03 12:34 VZ, revision 74920

Romanian translations fixes from Catalin Raceanu.

2013-10-03 01:32 VZ, revision 74919

Avoid dropping events in wxDocParentFrameAnyBase in some circumstances. The code trying to avoid forwarding duplicate events to wxDocManager was over eager and in some situations filtered out the events which hadn't been sent to it yet and were, in fact, not handled at all. This could be seen, for example, by running the docview sample with "--sdi" command line option, creating one child frame and then trying to create another one from the parent frame menu: this failed because the existence of a valid child was considered to be enough for the event to have been already processed in it which was false in this case. Unfortunately there is no obvious fix to this problem, notably because of the very roundabout way the toolbar events are processed in MDI windows: the toolbar itself is a child of the parent frame but the events from it are still sent to the currently active child frame by wxMDIParentFrameBase. So we can't rely on any kind of parent-of-originating-window checks. Instead, remember the last event handled in the child and avoid processing the same event in wxDocManager again. This should at least avoid the false positives (like the one fixed by this commit), although it could still result in false negatives (i.e. some duplicated events) if an event handler generated other events while skipping the original one. This is a lesser evil though and should be relatively rare in practice, so live with this ugliness until someone comes with another idea of fixing the bug described above.

2013-10-03 01:32 VZ, revision 74918

No changes, just fix a typo in a comment in wx/docview.h.

2013-10-03 01:32 VZ, revision 74917

No changes, just fix a typo in a comment in docview event handling code. This code is non-trivial enough without confusingly calling a view "new".

2013-10-03 00:55 VZ, revision 74916

A couple of fixes to Brazilian Portuguese translations from Felipe.

2013-10-02 18:25 VZ, revision 74915

Add wxActivateEvent::GetActivationReason(). This method is implemented for wxMSW-only currently and allows to check whether the window is being activated by a mouse click or in some other way there. Closes #15516.

2013-10-02 18:24 VZ, revision 74914

Fix incorrect event handler functions casts in wxRibbonPanel code. Use wxMouseEventHandler() instead of (wrongly) casting a method taking wxMouseEvent to wxEvent-taking wxObjectEventFunction. Closes #15550.

2013-10-02 01:04 VZ, revision 74913

Add more checks for Intel compiler. This should have been part of r74888. Closes #15359.

2013-10-01 19:09 VZ, revision 74912

Remove support for Gnome printing from wxGTK. It was replaced by GTK+ printing several years ago and is almost never used any longer anyhow, so any problems in this code (and there are some) would never be found and fixed. Also update the message catalogs to avoid having the strings not used any more, as they were only used in Gnome printing code. Closes #15517.

2013-10-01 18:33 PC, revision 74911

Go back to using a fixed value of 3 for lines/columns per action for mouse wheel event. The native value is too large. Reverts the effect of r74805. Closes #15527

2013-10-01 18:33 JS, revision 74910

Further refine of #15226: wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

2013-10-01 18:08 VZ, revision 74909

Install wxrc with proper library dependencies under OS X. In addition to changing the libraries themselves to point to the dependencies in their installed location, we also need to do the same thing for wxrc when installing it under OS X, otherwise it wouldn't run once the libraries are not available in their original location any more. Closes #15452.

2013-10-01 18:08 VZ, revision 74908
  • M /wxWidgets/trunk/build/bakefiles/make_dist.mk
  • M /wxWidgets/trunk/build/tools/create-archive.py
  • M /wxWidgets/trunk/build/tools/wxwidgets.iss
  • D /wxWidgets/trunk/debian/build_all
  • D /wxWidgets/trunk/debian/changelog
  • D /wxWidgets/trunk/debian/compat
  • D /wxWidgets/trunk/debian/control.in
  • D /wxWidgets/trunk/debian/copyright
  • D /wxWidgets/trunk/debian/libwxbase-dbg.postinst
  • D /wxWidgets/trunk/debian/libwxbase-dbg.prerm
  • D /wxWidgets/trunk/debian/libwxbase-dev.postinst
  • D /wxWidgets/trunk/debian/libwxbase-dev.prerm
  • D /wxWidgets/trunk/debian/libwxgtk-dbg.postinst
  • D /wxWidgets/trunk/debian/libwxgtk-dbg.prerm
  • D /wxWidgets/trunk/debian/libwxgtk-dev.postinst
  • D /wxWidgets/trunk/debian/libwxgtk-dev.prerm
  • D /wxWidgets/trunk/debian/libwxmsw-dbg.postinst
  • D /wxWidgets/trunk/debian/libwxmsw-dbg.prerm
  • D /wxWidgets/trunk/debian/libwxmsw-dev.postinst
  • D /wxWidgets/trunk/debian/libwxmsw-dev.prerm
  • D /wxWidgets/trunk/debian/lintian-override.in
  • D /wxWidgets/trunk/debian/pycrust.desktop
  • D /wxWidgets/trunk/debian/pyshell.desktop
  • D /wxWidgets/trunk/debian/python-wxgtk-dbg.postinst
  • D /wxWidgets/trunk/debian/python-wxgtk-dbg.prerm
  • D /wxWidgets/trunk/debian/python-wxgtk.docs
  • D /wxWidgets/trunk/debian/python-wxgtk.postinst
  • D /wxWidgets/trunk/debian/python-wxgtk.prerm
  • D /wxWidgets/trunk/debian/python-wxtools.menu
  • D /wxWidgets/trunk/debian/README.Debian
  • D /wxWidgets/trunk/debian/README.examples
  • D /wxWidgets/trunk/debian/README.HowToBuild.txt
  • D /wxWidgets/trunk/debian/rules
  • D /wxWidgets/trunk/debian/unpack_examples.sh.in
  • D /wxWidgets/trunk/debian/wx-config.1
  • D /wxWidgets/trunk/debian/wx-doc.doc-base
  • D /wxWidgets/trunk/debian/wx-doc.docs
  • D /wxWidgets/trunk/debian/wx-examples.examples
  • D /wxWidgets/trunk/debian/wxPython-tools.1
  • D /wxWidgets/trunk/debian/wxrc-tools.1
  • D /wxWidgets/trunk/debian/xrced.desktop
  • M /wxWidgets/trunk/Makefile.in

Remove unused debian subdirectory. All Debian-based distributions use their own files for creating their packages, so get rid of our own "debian" subdirectory to avoid confusing people and to not have to maintain them any more.

2013-10-01 18:08 VZ, revision 74907

Remove RPM .spec files from the repository. They were not really used for anything but still had to be updated and maintained. Get rid of them as all RPM-based distributions use their own spec files anyhow.

2013-10-01 18:08 VZ, revision 74906
  • D /wxWidgets/trunk/src/cwcopysetup.bat
  • D /wxWidgets/trunk/src/cwdcopysetup.bat

Remove obsolete CodeWarrior-related batch files. This compiler is not supported (and doesn't even exist, in fact) any more and these files should have been removed in r59493.

2013-10-01 18:08 VZ, revision 74905
  • D /wxWidgets/trunk/src/Wxwindll.icc
  • D /wxWidgets/trunk/src/wxJpeg.icc
  • D /wxWidgets/trunk/src/wxPng.icc
  • D /wxWidgets/trunk/src/wxTiff.icc
  • D /wxWidgets/trunk/src/wxWin.icc
  • D /wxWidgets/trunk/src/wxXpm.icc
  • D /wxWidgets/trunk/src/wxZlib.icc

Remove obsolete VisualAge-related files. These were used under OS/2 circa 2000.

2013-10-01 18:08 VZ, revision 74904

Define _CRT_NONSTDC_NO_WARNINGS for zlib compilation with MSVC. This avoids a bunch of harmless but annoying warnings due to the use of POSIX functions in zlib code.

2013-10-01 18:08 VZ, revision 74903

Upgrade bundled zlib to 1.2.8. No real changes from wxWidgets point of view. Closes #15314.

2013-10-01 17:47 JS, revision 74902

Applied #15226 wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

2013-10-01 17:25 VZ, revision 74901

Exclude zlib 3rd party sources from our checks too. zlib ChangeLog file is not in UTF-8 in 1.2.8 and so doesn't pass our checks.

2013-10-01 16:00 VZ, revision 74900

Tag zlib 1.2.8.

2013-10-01 15:59 VZ, revision 74899

Load zlib-1.2.8 into wxWidgets/vendor/zlib/current.

2013-10-01 15:54 VZ, revision 74898

Tag the currently used version of zlib.

2013-10-01 15:53 VZ, revision 74897

Importing unmodified zlib 1.2.3 sources.

2013-10-01 15:03 VZ, revision 74896

Add a few missing appearance screenshots for the manual. This fixes the last remaining Doxygen warnings. Closes #15346.

2013-10-01 15:03 VZ, revision 74895

Use generic appearance for wxSimpleHtmlListBox. It doesn't make much sense to have platform-specific screenshots for this generic control. See #15346.

2013-10-01 15:03 VZ, revision 74894

Make @genericAppearance Doxygen macro consistent with @appearance. Append ".png" extension automatically, just as @appearance does.

2013-10-01 15:03 VZ, revision 74893

Use wxListCtrl screenshots for wxListView as well. wxListView appears identically to wxListCtrl in report mode and the existing wxListCtrl screenshots show it exactly in this mode, so it doesn't make much sense to duplicate them. This also avoids Doxygen warnings about missing wxListView screenshots for MSW and OSX. See #15346.

2013-10-01 15:03 VZ, revision 74892

Document domain parameter of wxTranslations::GetTranslatedString(). This parameter needs to be documented, if only to avoid a Doxygen warning. See #15346.

2013-10-01 15:03 VZ, revision 74891

Fix wrong references to wxImageList description in XRC format docs. xrc_wximagelist reference didn't exist and resulted in Doxygen errors. See #15346.

2013-10-01 14:19 VS, revision 74890

Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p. Previously, the functor was kept in a helper event handler that was bound to wxEVT_WINDOW_MODAL_DIALOG_CLOSED and only marked as already called, but never unbound. Consequently, the functor object remained allocated for as long as the event table existed and was only freed with the dialog instance. Change the logic to destroy the functor object as soon as it was called and is no longer needed for anything. This is particularly important when used with C++11 lambdas that capture the dialog in a wxWindowPtr pointer, because the pointer would be retained forever otherwise.

2013-10-01 01:49 VZ, revision 74889

Fix crash when auto-sizing a wxDataViewCtrl column. The code was confused about the difference between the model and view columns indices and incorrectly used the former as the latter, which could result in an out of bound array access. Closes #15420.

2013-10-01 01:49 VZ, revision 74888

Do not define __VISUALC__ for Intel C++ compiler under Windows. This is confusing and makes it more difficult to test for the "real" MSVC, test for __INTELC__ explicitly wherever needed instead. Also document __INTELC__ in our list of compilers. Closes #15359.

2013-10-01 01:49 VZ, revision 74887

Improve drawing of the tree item buttons in the generic renderer. Draw the "-" and "+" signs always properly centered. Closes #15526.

2013-10-01 01:49 VZ, revision 74886

MinGW-w64 provides isfinite() in both 32 and 64 bit builds. So use __MINGW64_TOOLCHAIN__ to test for it and not __MINGW64__, which is only defined in 64 bits.

2013-10-01 01:49 VZ, revision 74885

Define __MINGW64_TOOLCHAIN__ and __MINGW32_TOOLCHAIN__ symbols. __MINGW64_TOOLCHAIN__ macro is more readable and shorter than the standard predefined __MINGW64_VERSION_MAJOR and __MINGW32_TOOLCHAIN__ is defined for the symmetry and also because it will make many tests simpler as we often need to test not so much for MinGW-w64 for its own sake but rather to disable the workarounds for MinGW32 when using it.

2013-10-01 01:48 VZ, revision 74884

Polish translations update from Grzegorz Zlotowicz.

2013-10-01 01:48 VZ, revision 74883

Fix problem with COMDLG_FILTERSPEC declaration with MinGW-w64 4.8. Forward declaring as a struct a symbol previously defined as a typedef results in an error when using MinGW-w64 4.8.1, so forward declare the struct itself instead.

2013-10-01 01:48 VZ, revision 74882

Don't check for tr1/type_traits in configure if type_traits was found. This is just an optimization: don't waste time checking for tr1 header if we already found the standard one that we're going to use if it's available.

2013-10-01 01:48 VZ, revision 74881

Avoid using wxHtmlTag::HasParam() unnecessarily. Use GetParamAsXXX() accessors instead as they combine the calls to HasParam() and GetParam() and make the code shorter and avoid the duplication of the tag name.

2013-10-01 01:48 VZ, revision 74880

Store HTML "id" parameter value in wxHtmlCell. Pass on the value of the ID to the cell object when adding a new cell. Closes #15535.

2013-10-01 01:48 VZ, revision 74879

Add wxHtmlTag::GetParamAsString() convenience method. This is more convenient to use than HasParam() + GetParam() and also slightly more efficient as we search for the tag name only once.

2013-10-01 01:48 VZ, revision 74878

No changes, just use "@since 3.0" consistently in the documentation. This was the only place where "@since 3.0.0" was used, replace it with just "3.0" for consistency with all the others.

2013-10-01 01:48 VZ, revision 74877

Brazilian Portuguese translations update from Felipe.

2013-10-01 01:48 VZ, revision 74876

Chinese translations update from Jiawei Huang.

2013-09-30 19:12 VS, revision 74875

Compilation fix for !wxUSE_OWNER_DRAWN.

2013-09-29 18:08 JS, revision 74874

Applied #15226 with modifications: wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

2013-09-29 16:01 JS, revision 74873

Don't redraw borders for cells that are hidden - fixes drawing glitch in sample

2013-09-29 15:35 JS, revision 74872

Added wxRichTextTableBlock class to help with table UI operations

2013-09-29 15:11 JS, revision 74871

Fixed capitalisation

2013-09-29 14:58 JS, revision 74870

Applied patch #15540: wxRichTextTable: crashes due to an invalid focus object (dghart)

2013-09-29 14:14 JS, revision 74869

Applied #15539: wxRichTextCtrl: demonstrate adding and deleting table rows and columns in the richtext sample (dghart)

2013-09-29 14:06 JS, revision 74868

wxRTC: save and load the 'shown' status in case there's a situation where layout doesn't restore it

2013-09-27 15:36 JS, revision 74866

wxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation in command labels; now sends text update event when an object is changed.

2013-09-26 14:55 VS, revision 74865

Misc XRC format docs corrections.

2013-09-26 14:55 VS, revision 74864

XRC: make wxStaticText's wrap property a dimension. Parse it as dimension type (including dlg units) and not just integer. This is backward compatible.

2013-09-26 14:55 VS, revision 74863

XRC: make wxSplitterWindow's sashpos and minpanesize dimensions. Parse them as dimension type (including dlg units) and not just integers. This is backward compatible.

2013-09-26 12:00 JS, revision 74862

Corrected disabling of controls in cell editor.

2013-09-26 08:31 SC, revision 74861

always use hw-accel, fixes #15536, applied with thanks

2013-09-24 14:05 JS, revision 74860

Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_CHANGE_OBJECT command.

2013-09-24 07:50 PC, revision 74859

avoid calling GetDefaultSize() twice

2013-09-23 11:07 JS, revision 74858

Make wxRichTextRectArray usable by other parts of wxRTC

2013-09-22 22:34 JS, revision 74857

Partial fix for #15196: wxRichTextCell caret issues (dghart)

2013-09-22 22:22 JS, revision 74856

Allow absent checkbox when transferring dimension data

2013-09-21 12:11 VS, revision 74855

Make public headers compatible with Objective-C++ with ARC. OSXGetViewOrWindow() virtual methods were defined in headers and were casting NSView*/NSWindow* to void*, which the compiler complains about with ARC enabled. Rather than writing conditional code in the header, move the implementations into .cpp files. They were virtual anyway, so this is no less efficient, and doesn't leave any problematic code in public headers.

2013-09-21 11:28 VS, revision 74854

Revert "using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere" This reverts commit r74656, because it breaks initialization order by calling OnInit() too late. See https://groups.google.com/d/topic/wx-dev/H5vgc2VO7K4/discussion

2013-09-21 11:28 VS, revision 74853

Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.

2013-09-21 11:28 VS, revision 74852

Fix wxOSX warnings about int-to-void* casts.

2013-09-21 11:28 VS, revision 74851

Set missing Language: headers in PO files.

2013-09-21 11:28 VS, revision 74850

Standardize Project-Id-Version in PO files. Set it to "wxWidgets 3.0". Add where missing.

2013-09-20 19:27 VS, revision 74849

Try loading even English translations if provided. Doing so has negligible cost and can be useful in some situations (e.g. when using symbolic msgids despite gettext best practices). Patch by tmsorensen. Fixes #15522.

2013-09-20 17:21 PC, revision 74848

fix vertical mouse wheel event rotation value, sign was reversed in r74805 fixes #15524

2013-09-20 13:34 JS, revision 74847

Added setters for table row and column count

2013-09-20 08:07 JJ, revision 74846

Update OpenVMS makefile

2013-09-19 20:23 JS, revision 74845

The alignment controls are now left-aligned if the floating controls are not shown.

2013-09-19 15:14 JS, revision 74844

Corrections to border placement

2013-09-19 13:09 JS, revision 74843

Second part of #15224 fix: AddRows, AddColumns (dghart)

2013-09-19 10:38 JS, revision 74842

Fix for #15224: wxRichTextTable: Setting a cell's text colour affects subsequent cells (dghart)

2013-09-19 09:48 JS, revision 74841

Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container (dghart)

2013-09-19 08:16 PC, revision 74840

fix building with WXWIN_COMPATIBILITY_2_8 == 0 wxPG_EX_DISABLE_TLP_TRACKING does nothing since r61779

2013-09-19 07:33 PC, revision 74839

fix wxSystemSettings::GetColour() for wxGTK3 closes #15519

2013-09-18 20:02 VZ, revision 74838

Add missing c_str() call to fix wxGTK ANSI+STL build. Closes #15518.

2013-09-18 19:30 VZ, revision 74837

Use std::isfinite() for wxFinite() for C++11 compilers. This should fix compilation with MinGW 4.8.1 cross-compiler in C++11 mode as it doesn't seem to provide finite() any more then. Also, only defined wxFinite() and wxIsNaN() for C++, not C. This makes the checks for __cplusplus >= 201103 simpler and is consistent with how wxIsSameDouble() and wxRound() were already only defined for C++ (this is also the source of most of the changes in this diff, viewing it ignoring whitespace will show the only real changes).

2013-09-18 18:03 VS, revision 74836

Add wxTranslations::GetTranslatedString(). Replace GetString(), which always returns something (possibly the original string) with GetTranslatedString() that returns either a pointer to translated string or NULL. This simplifies the code a bit, all handling of missing translations is now done in wxGetTranslation().

2013-09-18 18:03 VS, revision 74835

Remove unused wxLocale::GetUntranslatedString().

2013-09-18 18:03 VS, revision 74834

Deallocate wxThreadSpecificInfo when wxThread ends. Cleanup wxThreadSpecificInfo after wxThread::Entry returns to be more memory efficient.

2013-09-18 18:03 VS, revision 74833

Make _() and friends safe to call from any thread. The GetUntranslatedString() hack keeps a global copy of all strings, so that it can return a const reference as wxGetTranslation() return value. A global wxHashSet instance shared by all threads won't do, even guarded with a critical section, because it may internally copy values on any insert and thus invalidate pointers that may still be used on another thread.

2013-09-18 18:03 VS, revision 74832

Make storing non-trivial data in wxThreadSpecificInfo possible.

2013-09-18 17:12 SJL, revision 74831

Update vc10 build file versions to 3.0.0. See r74781.

2013-09-18 10:18 JS, revision 74830

Ensure that the overall table border doesn't get overdrawn by cell borders with a different colour

2013-09-17 19:35 VZ, revision 74829

Fix badly translated wildcard string in German message catalog. "*.*" should be "*.*" even in German.

2013-09-17 19:35 VZ, revision 74828

More German translations updates from Sebastian Walderich.

2013-09-17 17:25 VZ, revision 74827

Fix assorted typos in comments and other non-code. Closes #15509.

2013-09-17 17:25 VZ, revision 74826

Use mask when drawing bitmaps in generic wxDataViewCtrl. This allows to have bitmaps with transparent areas in them. Closes #15510.

2013-09-17 17:25 VZ, revision 74825

Add wxDataViewRendererBase::GetEffectiveAlignment() and use it. This helper method falls back on the alignment of the column if the renderer alignment is not specified. This is almost always what should be used instead of GetAlignment() to determine the alignment that really should be used in the drawing code. In particular, using GetEffectiveAlignment() in wxDataViewCustomRenderer fixes the problem with bitmap columns ignoring column alignment for their bitmaps. Closes #15498.

2013-09-16 17:47 PC, revision 74824

remove executable property from non-executable files, closes #15504

2013-09-16 17:15 VS, revision 74823

Fix wrong type information for {v,h}gap in XRC format docs.

2013-09-15 13:57 VZ, revision 74820

Revert "Make wxMSW stack walking methods work with Unicode identifiers." This reverts r74817 because it broke compilation with VC8 and it doesn't seem obvious to fix this. See #15138, closes #15500.

2013-09-15 02:16 VZ, revision 74819

Add code showing stereo support to the OpenGL cube sample. Show how WX_GL_STEREO attribute can be used, if available. See #15434.

2013-09-15 02:16 VZ, revision 74818

Show full screen windows with WS_POPUP style in wxMSW. This doesn't make any difference for most windows but fixes a problem with wxGLCanvas windows using stereo support of Nvidia cards and generally it does make sense to use WS_POPUP with full screen windows as they are definitely not overlapped, so just use this style unconditionally. Closes #15434.

2013-09-15 02:16 VZ, revision 74817

Make wxMSW stack walking methods work with Unicode identifiers. This allows to show the stack properly for e.g. Japanese programs. Closes #15138.

2013-09-15 02:15 VZ, revision 74816

Disable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK. Just for consistency with wxScrollHelperBase, not really sure what problem exactly does this solve. See #15357.

2013-09-15 02:15 VZ, revision 74815

Make default keyboard handling available in wxVarScrollHelperEvtHandler too. Factor out the keyboard handling code in wxAnyScrollHelperBase allowing its reuse in wxVarScrollHelperEvtHandler. Now wxVarScrollHelperBase handles cursor keys in a sane way by default too and also allows disabling their handling, just as wxScrolledWindow. See #15357.

2013-09-15 02:15 VZ, revision 74814

Propagate the event handling fixes to wxVarScrollHelperBase. Merge the fixes to wxScrollHelperBase::ProcessEvent() of r64358, r64370, r64464, r72939 and possibly a few more in wxVarScrollHelperBase to fix its behaviour too, as it wasn't generating the correct events any longer. Unfortunately the fix right now is to physically copy the code from one class to the other. This should be avoided, of course, and a more in depth refactoring should be done to move the code common to both classes into wxAnyScrollHelperBase after 3.0 release. But for now continuing to duplicate code is better than not having a working wxVarScrollHelperBase. See #15357.

2013-09-15 02:15 VZ, revision 74813

Add wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase. This is just a small refactoring to move some trivially common parts of wxScrollHelperBase and wxVarScrollHelperBase in a new common base class. This will make it possible to apply other corrections to wxVarScrollHelperBase without having to physically duplicate the code from wxScrollHelperBase in it. See #15357.

2013-09-15 02:15 VZ, revision 74812

Use wxGetTranslation() instead of _() in the public headers. This allows the code in them to compile even when WXINTL_NO_GETTEXT_MACRO is defined. Closes #15443.

2013-09-15 02:14 VZ, revision 74811

Fix flickering of wxStaticBox background in wxMSW. First of all, don't erase background in WM_ERASEBKGND at all if we erase it anyhow in WM_PAINT, this is totally useless and is what wxBG_STYLE_PAINT is for. Second, clip out not only the siblings of the static box but also its children when erasing the background to avoid painting over the controls created as the box children, which is the preferred way to create them now. Closes #15150.

2013-09-15 02:14 VZ, revision 74810

Don't crash when laying out wxGridBagSizer with only hidden elements. wxGridBagSizer lay out algorithm needs at least a single row and a single column to work, so simply don't run it at all if there is nothing to lay out. Closes #15475.

2013-09-15 02:14 VZ, revision 74809

Mention that wxSizer::Clear() always deletes child sizers. The existence of "delete_windows" argument could mislead people into thinking that sizers were not deleted neither when it had false value, see #15475.

2013-09-15 02:14 VZ, revision 74808

Improve composite flags handling in the property grid wxFlagsProperty. Don't consider that a flag is on just because one of its bits is enabled in the current flags, for the composite flags (e.g. something like "BOTH = ONE | TWO") all the bits composing the flag must be on for it to be enabled. Closes #15499.

2013-09-14 22:46 JS, revision 74807

Workaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost (Mac) (briceandre)

2013-09-14 20:15 PC, revision 74806

add support for GDK_SCROLL_SMOOTH mouse wheel event, introduced in GTK+ 3.4

2013-09-14 20:06 PC, revision 74805

use native lines/columns per action for mouse wheel event

2013-09-13 14:55 SJL, revision 74804

Handle WebKitWebView create-web-view. In some cases a new window is signalled using create-web-view rather than new-window-policy-decision-requested and so we need to handle it to emit the correct new window events. Fixes #15447.

2013-09-13 13:35 VZ, revision 74803

German translations update from Sebastian Walderich.

2013-09-12 22:49 VZ, revision 74802

Another Tamil translations update from Dinakar T.D.

2013-09-12 22:49 VZ, revision 74801

Polish translations update from Grzegorz Zlotowicz.

2013-09-12 22:49 VZ, revision 74800

Handle non-ASCII output from lsb_release in wxGetLinuxDistributionInfo(). Assume that lsb_release always output UTF-8 text as this seems to be the case right now for the only (common) Linux distribution which uses anything but ASCII for its code name (Fedora 19 "Schrödinger's Cat"). Closes #15492.

2013-09-12 22:49 VZ, revision 74799

Don't reset m_fp if wxFFile::Open() fails. This makes it behaviour consistent with wxFile::Open(). Also don't use Detach() in Close(), again for consistency with wxFile, even if this has no user-visible effects at all. See #15494.

2013-09-12 22:49 VZ, revision 74798

Return the old file descriptor/pointer from wx(F)File::Detach(). Make Detach() more convenient to use. Closes #15494.

2013-09-11 19:02 RD, revision 74792

Add missing Calc*Exposed methods

2013-09-11 17:20 VS, revision 74791

Don't lie about wxImageList in XRC format spec. The documentation for setting image lists on controls was a complete fabrication. It pretended that image lists were created as child <object>s, while in reality they are properties just as e.g. fonts are. Fix this and also better document the related 'image' property.

2013-09-11 17:20 VS, revision 74790

Minor corrections to XRC format description.

2013-09-11 17:20 VS, revision 74789

Fix incorrect XRC format docs for wxMenu(Bar)'s "style" property. It is not true that no standard properties are allowed, "style" is.

2013-09-11 17:20 VS, revision 74788

Better name for wxXmlResource::GetDirection() argument. 'dir' is not very descriptive (of course it's a direction!), it's better to include 'default' in the name to indicate this is the default value to use in absence of a specific one.

2013-09-11 17:20 VS, revision 74787

Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().

2013-09-11 17:06 VZ, revision 74786

Fix another crash when conversion fails in Unix PostScript code. Returning 0 length from GetTextExtent() is hardly ideal but it's better than crashing. Closes #15489.

2013-09-11 17:05 VZ, revision 74785

Tamil translations update from Dinakar T.D.

2013-09-11 17:05 VZ, revision 74784

Turkish translations update from Çağrı Doğan.

2013-09-11 14:03 SJL, revision 74783

Fix stc doxygen warnings and regen stc files. We need to manually escape a few parts of the autogenerated documentation. See #15346.

2013-09-11 12:10 SJL, revision 74782

Fix doxygen warnings. Using @since inside a style or event list causes doxygen warnings, replace with plain text. See #15346.

2013-09-11 03:46 VZ, revision 74781

Change version to 3.0.0. Keep "RC1" in the version string for now, but otherwise all version numbers should be updated.

2013-09-10 14:12 VZ, revision 74780

Fix wrong in wxListCtrl::SetItemColumnImage() in r74716. The check for "image == -1" was added to a wrong line. See #15421.

2013-09-10 14:12 VZ, revision 74779

Fix configure on GNU Hurd. Closes #15480.

2013-09-08 20:00 VZ, revision 74777

Consistently handle DST start time in wxDateTime::Set(). Always move the dates invalid due to DST (i.e. falling into the "missing" hour on the DST start date) forward, as GNU libc does, even when using a different CRT implementation, such as MSVC one which moves the invalid dates backwards. This seems more expected and also fixes an especially bad problem which happened due to moving the date backwards in Brazilian time zone where DST starts at midnight as doing this changed the day and totally broke ParseDate() assumption that setting wxDateTime to 00:00:00 at the given date really did set it to this date. Closes #15419.

2013-09-06 19:09 VS, revision 74776

wxMSW: return correct value from wxMessageDialog::GetReturnCode(). wxMessageDialog's native code didn't call SetReturnCode() as it should. As a result, it didn't work with ShowWindowModal().

2013-09-06 19:09 VS, revision 74775

Add lambda-friendly wxDialog::ShowWindowModalThenDo(). Add a convenience ShowWindowModalThenDo() variant of ShowWindowModal() that takes a functor argument and calls it when the dialog is closed. This is, of course, particularly useful when the argument is a C++11 lambda, especially when having more than one window-modal dialog invoked from the same window, which can get messy quickly with all the wxEVT_WINDOW_MODAL_DIALOG_CLOSED handlers.

2013-09-06 19:09 VS, revision 74774

Add wxWindowPtr smart pointer.

2013-09-06 19:09 VS, revision 74773

Add basic deleter support to wxSharedPtr<T>.

2013-09-06 19:09 VS, revision 74772

Document wxWindowModalDialogEvent.

2013-09-06 19:09 VS, revision 74771

Add wxCondition::Wait() overload that also tests the condition. Add Wait() overload that takes a functor argument and doesn't return until the condition is signaled _and_ the predicate returns true. This is useful for dealing with spurious wakeups and is modeled after C++11 std::condition_variable's corresponding method.

2013-09-06 19:09 VS, revision 74770

Fix outdated comment for wxCondition::Wait().

2013-09-06 14:27 VZ, revision 74769

Fix bug with not selecting wxAuiNotebook page when its child was focused. The code in OnChildFocusNotebook() handler only worked correctly if the page itself was focused but not if the focus was given to one of its children -- which should still make the page itself current. Closes #15471.

2013-09-06 11:50 SJL, revision 74768

Fix history storing in wxWebViewWebKit with custom schemes. When the history has just been cleared there is no existing item so we should add the new history item even in this case. Fixes #15446.

2013-09-06 02:20 VZ, revision 74764

Fix horizontal mouse wheel scrolling in wxGTK. Change the value of the appropriate adjustment instead of always using the vertical one. Closes #15469.

2013-09-05 16:10 VZ, revision 74763

Export recently added wxRichTextXMLHelper to fix link errors. This class is referenced from outside the library, see e.g. this build log: http://buildbot.tt-solutions.com/wx/builders/Linux x86 wxGTK trunk/builds/2961/steps/compile utils/logs/stdio and so must be exported, otherwise the build fails under Linux (and under Windows when using DLL). Perhaps it would be better to make it completely private to the library if it is not meant to be public, but this would require more changes.

2013-09-05 16:10 VZ, revision 74762

Revert wxDO_LOG_IF_ENABLED() change for MSVC6 in r74735. The old solution worked fine for that compiler and the new one fails when wxLogXXX() is used inside a switch statement to the wrong rules used by VC6 for the scope of the variables defined inside the for loop. Simply revert back to using the old version for it, this will be easy to re-revert after 3.0 by simply removing the check for it. See #11829.

2013-09-04 15:07 VZ, revision 74759

Just remove redundant wxDocument::SetDocumentTemplate() call. This is already done from InitDocument() called from wxDocTemplate::CreateDocument(). Closes #15467.

2013-09-04 02:14 VZ, revision 74758

Restore correct wx-config creation and work around MinGW lack of symlinks. This undoes the changes of r72205 and r72249 (see #14517) as using relative paths for wx-config symlink didn't work correctly if non-default values for $bindir and/or $libdir were used (i.e. if they were not siblings). Instead, fix the original problem of lack of symlinks when using MinGW directly: just use "cp -p" if "ln -s" fails. This should work everywhere and do the right thing. Closes #15463.

2013-09-04 02:14 VZ, revision 74757

Correct erasing of background behind controls in a toolbar in wxMSW. We need to handle WM_PRINTCLIENT in wxToolBar itself as the default handler for this message forwards to WM_ERASEBKGND of the parent window and our handler for that message only erases the client part of the window, in wx sense, i.e. including a relatively big vertical offset accounting for the toolbar. This means that when we get WM_PRINTCLIENT from the embedded control drawing code, we don't erase anything at all as the control rectangle height is smaller than the offset. This fix is not perfect as ideally the existing MSWGetBgBrushForChild() should be taken into account automatically by the default MSWPrintChild() implementation but at least it fixes the ugly visual artefacts. Closes #12307.

2013-09-04 02:14 VZ, revision 74756

Remove unnecessary wxHTML dependency from the notebook sample. r70321 added html library to the notebook sample, apparently accidentally as the commit message only mentioned aui one. Remove html and rebake.

2013-09-04 02:14 VZ, revision 74755

Add a test for a tooltip for a control inside a static box. Also create the controls as children of the static box, not its siblings, to make the tooltip work under wxGTK and because this is how we recommend doing things now. See #9859.

2013-09-04 02:14 VZ, revision 74754

Add wxDEPRECATED_MSG() and use it in a couple of places. This macro should be used instead of wxDEPRECATED() for the new deprecations as it allows to give a helpful explanatory message (if supported by the compiler) and also is simpler to use as it doesn't require wrapping the entire declaration in it but can be simply used before it. Also add wxDEPRECATED() support for clang as a side effect.

2013-09-04 02:14 VZ, revision 74753

Don't take hidden wxGrid row/columns into account when auto-sizing. The contents not shown to the user shouldn't affect the fitting width/height of the columns/rows that are shown. See #15464.

2013-09-04 02:14 VZ, revision 74752

Remove superfluous mouse capturing in wxGrid row/column labels windows. This code recaptured the mouse in the window which had already had it, thus triggering the (recently added, see r74677) asserts in CaptureMouse(). It also didn't preserve the invariant of m_winCapture always having the capture. And it was apparently completely unnecessary too. So simply remove it to fix the asserts while drag-resizing wxGrid rows/columns.

2013-09-04 02:14 VZ, revision 74751

Simplify wxGridCellAutoWrapStringRenderer::GetBestSize(). The code there was pretty wild, making clearly wrong assumptions (column size doesn't, and AFAICS never did, include 20 pixel margin) and also was clearly uncertain about what it was doing by trying to limit the number of iterations to some arbitrary cutoff when it is pretty clear that the loop increasing the width and decreasing the height on each iteration will reach the condition of "width >= height*1.68" sooner or later.

2013-09-04 02:14 VZ, revision 74750

Don't crash in wxGridCellAutoWrapStringRenderer when the column is hidden. Our methods should arguably not be called at all in this case, but if this does happen, at least don't crash. Closes #15464.

2013-09-03 18:47 JS, revision 74749

wxRTC: extracted XML utilities into a separate class for potential reuse.

2013-09-03 16:45 VS, revision 74748

Add missing XRC format docs for wxComboCtrl and wxEditableListBox.

2013-09-03 16:45 VS, revision 74747

Remove reduntant content from XRC format docs. Window styles are documented globally, no need for control-specific content for wxStatusBar. Also, it was outdated and incorrect.

2013-09-03 07:37 PC, revision 74746

Fix referencing of cairo_t returned from wxDCImpl::GetCairoContext(). It was assumed that all callers were going to unref the cairo_t, but that is not true, so callers that are going to unref it should ref it themselves. See #15455

2013-09-02 14:17 VS, revision 74742

Replace @since 2.9.6 with 3.0 in the docs.

2013-08-31 19:41 VZ, revision 74735

Rewrite wxLogXXX() macros to avoid "ambiguous else" warnings. Use a dummy for loop instead of an if statement to avoid all problems with the dangling else clauses: both the need for an artificially inversed "if" to make the code like if ( something ) wxLogError("..."); else something-else; to work as expected and to avoid warnings given by some versions of g++ and clang for the code above advising to add explicit braces. Closes #11829.

2013-08-31 19:41 VZ, revision 74734

Removed a method using wxColour from non-GUI benchmark code. No idea how could this work before but the presence of this code in the non-GUI benchmark project prevented it from building. As it's not used anyhow, just remove it.

2013-08-31 05:25 PC, revision 74733

Don't update position of widgets in a wxPizza from size_allocate handler. The values in m_{x,y} are not the same as client coordinates if the wxPizza is scrolled. Closes #15444

2013-08-31 01:32 VZ, revision 74732

Fix infinite loop in wxMSW with wxStaticBox inside non-wxTAB_TRAVERSAL parent. We didn't ensure that the parent of a (native) control with WS_EX_CONTROLPARENT had this style as well, unlike for our own windows. Fix this now to make certain that we never call ::IsDialogMessage() on a window whose parent doesn't have WS_EX_CONTROLPARENT as it simply hangs in this case, entering an infinite loop searching for the default button. Also try to reduce the possibility of such bugs in the future by checking for WS_EX_CONTROLPARENT and not wxTAB_TRAVERSAL before calling ::IsDialogMessage() even if this doesn't totally prevent them (it wasn't sufficient to fix even this particular bug). Closes #15458.

2013-08-31 01:32 VZ, revision 74731

Fix wxMenu::GetTitle() before the menu is appended to the menu bar. The mnemonics conversion was not done correctly when the menu title contained them but the menu hadn't been appended to the menu bar yet. Closes #15461.

2013-08-30 15:14 VS, revision 74730

Loosen the assert in IsScrollIncrement(). wxWindowGTK::GTKGetScrollEventType() tries to map GtkAdjustment's delta to either step or page increment by comparing it with the respective GtkAdjustment steps. Both of them can be 0, but this code is not expected to be called in such case. Yet, in practice, it occasionally is, see e.g. http://devel.aegisub.org/ticket/979GTKGetScrollEventType (wxWebView is prone to it as well). Check for >= 0 instead, to be more robust when faced with unexpected input from GTK+.

2013-08-29 22:44 VZ, revision 74729

Initialize wxImageFileProperty correctly when file is given in the ctor. Previously the file had to be specified later and the value passed to the ctor was ignored. Closes #15456.

2013-08-29 14:33 VZ, revision 74728

Don't define __STRICT_ANSI__, we should build both with and without it. For some reason, wxDialUpManager code defined __STRICT_ANSI__ itself, don't do it as __STRICT_ANSI__ can be predefined by the compiler resulting in the redefinition warnings and, in any case, our code should build both with and without it.

2013-08-29 13:41 JS, revision 74727

Crash fix for inserting text into a buffer without an associated control

2013-08-29 13:15 VZ, revision 74726

Only patch bk-deps in configure if dependency tracking is used. Otherwise we get (harmless) errors when trying to patch a non-existent file. See #15454.

2013-08-29 08:39 JJ, revision 74725

wxGTK1 : another msiing include file in evtloop.cpp

2013-08-28 22:52 VZ, revision 74724

Czech translations update from Zbyněk Schwarz.

2013-08-28 08:01 JJ, revision 74723

wxGTK1 : wx/private/eventloopsourcesmanager.h was missing in evtloop.cpp

2013-08-28 00:49 VZ, revision 74722

Don't enable dialog navigation inside wxFrame by default. This was done, apparently accidentally, by r68366 and resulted in cursor arrow keys not being sent by default to the wxFrame children under MSW any more as they were used for dialog navigation instead. So don't derive wxTopLevelWindow from wxNavigationEnabled<> any more and only derive from it at wxDialog level. Closes #15445.

2013-08-28 00:49 VZ, revision 74721

Don't recurse into top level children in wxWindow::FindWindow(). Finding a button in a child dialog when looking for it in the current window is totally unexpected and can result in subtle bugs, see #15442.

2013-08-28 00:49 VZ, revision 74720

Handle custom configurations in MSVC-specific setup.h. Account for wxCFG when building the paths used for MSVC autolinking. This variable should be defined to the same value as CFG during (command line) build. Closes #15431.

2013-08-28 00:49 VZ, revision 74719

Explicitly specify target names for all configurations in VC10 projects. The target names were not specified for the "Release" configuration in some projects, resulting in (harmless, but annoying) warnings during the build. Closes #15439.

2013-08-28 00:49 VZ, revision 74718

Use $(OutDir) instead of explicit directories in VC10 project files. This makes it simpler to use a different output directory as it only needs to be changed in one place. See #15439.

2013-08-28 00:49 VZ, revision 74717

Correct making the newly inserted menu item owner drawn in some cases. The item being inserted is not inserted yet when we call SetOwnerDrawnMenuItem() so we must call it separately for it after inserting it. Closes #15437.

2013-08-28 00:49 VZ, revision 74716

Don't use any icon for items inserted without one in wxMSW wxListCtrl. Previously we erroneously used the first icon in the image list for them instead. This was inconsistent with wxGTK and didn't make much sense, even if it is the default behaviour of the native control, so don't do this any more and explicitly specify I_IMAGENONE for the icon if it wasn't given. Closes #15421.

2013-08-27 15:12 VZ, revision 74714

Make wxWindow::HasScrollbar() respect wxScrolled::ShowScrollbars(). Override CanScroll() in wxScrolled to return the real state of the scrollbar instead of just relying on the wx[HV]SCROLL styles. Closes #15440.

2013-08-27 15:12 VZ, revision 74713

No real changes, just make wxWindow::CanScroll() virtual. This will allow overriding it in wxScrolled<>, see #15440.

2013-08-27 14:02 JJ, revision 74712

Update OpenVMS compile support

2013-08-27 13:46 JJ, revision 74711

revert nested event loop support for wxGTK1 because it causes applications hangs

2013-08-25 10:36 SC, revision 74710

correct base for carbon is 10.6 max

2013-08-25 10:28 SC, revision 74709

adding correct valid architectures

2013-08-24 21:20 SC, revision 74708

proper default for iphone

2013-08-24 21:05 SC, revision 74707

carbon sdk must be 10.7 max, 10.8 is not supported anymore

2013-08-24 21:00 SC, revision 74706

leave i386 compiler to default

2013-08-24 16:33 VZ, revision 74705

Add webviewarchivehandler.cpp to manually maintained VC10 project file. Closes #15427.

2013-08-24 16:33 VZ, revision 74704

Fix Doxygen warnings due to documenting overloaded functions together. Apparently we can't make @param statements apply just to some overloads, so document them separately now. See #15346.

2013-08-24 16:33 VZ, revision 74703

Move code removing "-psn_xxx" command line arguments to common code. We need to do this when using any port under OS X, not just wxOSX, e.g. the -psn_xxx arguments passed by the Finder when launching the application, must also be ignored when using wxGTK. Closes #15432.

2013-08-24 16:33 VZ, revision 74702

Fix DLL targets names in manually maintained VC10 project files. This takes care of annoying warning about "target name does not match linker output file name" when building the DLLs. Closes #15435.

2013-08-24 16:33 VZ, revision 74701

Fix recreating of wxBitmapComboBox using untyped client data. Use the correct array when restoring the client data, correcting a fatal typo in the changes of r73880. Closes #15436.

2013-08-24 07:11 PC, revision 74700

remove redundant initialization of base class member variables

2013-08-24 07:04 PC, revision 74699

wxDialogBase only has one ctor, so just do initialization in ctor instead of Init()

2013-08-24 03:03 VZ, revision 74698

Fix typo in wxConfig example in the documentation.

2013-08-24 03:02 VZ, revision 74697

Another Basque translations update from Xabier Aramendi.

2013-08-23 18:37 VZ, revision 74696

Fix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash. The path passed to this function is always a directory, so use wxFileName::AssignDir() instead of the default constructor of wxFileName which considers the name to be a name of a file unless it ends with a path separator.

2013-08-23 18:23 VZ, revision 74695

Update Basque translations after wxGetTranslation() strings addition.

2013-08-23 18:22 VZ, revision 74694

Basque translations update from Xabier Aramendi.

2013-08-23 18:22 VZ, revision 74693

Regenerated message catalogs with the strings inside wxGetTranslation(). We didn't extract the strings inside wxGetTranslation() in the message catalog when creating it using xgettext, do it now. This notably fixes the missing translations for the generic progress dialog elapsed/estimated/remaining time labels.

2013-08-21 17:50 RD, revision 74692

fix missing ;

2013-08-21 17:26 SJL, revision 74691

Fix various documentation warnings throughout core and base. See #15346.

2013-08-21 17:21 SJL, revision 74690

Fix ribbon documentation warnings. See #15346.

2013-08-21 17:20 SJL, revision 74689

Fix html documentation warnings. See #15346.

2013-08-21 15:24 SJL, revision 74688

Fix warnings in rich text documentation. See #15346.

2013-08-19 19:25 PC, revision 74685

Remove DoSetSizeHints() call from Create() The reason it was added does not seem to be reproducible anymore, and it interferes with wxRESIZE_BORDER on Ubuntu. Closes #14870

2013-08-19 18:58 PC, revision 74684

revert r74683, wxTLW has its own {Width,Height}Default() which are not the ones called by PreCreation()

2013-08-19 07:42 PC, revision 74683

Remove some old redundant code Default size stuff is done by PreCreation()

2013-08-18 18:00 PC, revision 74682

avoid setting initial position if it was not specified, broken in r70734

2013-08-18 17:01 PC, revision 74681

Move code that does not need realized GdkWinow out of realize handler These calls can be made much earlier, and it seems like a good idea to do so.

2013-08-18 15:28 VZ, revision 74680

Only give capture to wxPopupTransientWindow child if it's the only one. This removes the arbitrariness of using the first child which didn't make any sense when the popup had several controls inside it, e.g. in wxRichToolTip case this resulted in the mouse capture being given to wxStaticBitmap showing the tooltip icon even though it didn't need it at all. This probably doesn't really change the observable behaviour but seems more logical. See #15288.

2013-08-18 15:28 VZ, revision 74679

Use wxFindWindowAtPoint() for hit testing in wxPopupTransientWindow. This works even with irregularly shaped windows such as wxRichToolTip unlike the old naive test using wxRect::Contains() which didn't and resulted in us believing that the mouse was outside the window when it was still in it and (somehow, the details are not totally clear) recapturing the mouse again and again in the same window which resulted in assert failures with the new checks in wxWindowBase::CaptureMouse() or the capture stack corruption before this. Closes #15288.

2013-08-18 15:28 VZ, revision 74678

Return NULL from wxWindow::GetCapture() when the capture is being lost. Make GetCapture() return NULL during wxEVT_MOUSE_CAPTURE_{LOST,CHANGED} events processing in wxMSW to help their handlers to avoid calling ReleaseCapture(): this shouldn't be done as the mouse capture is being lost anyhow and results in reentrancy problems between NotifyCaptureLost() and ReleaseCapture() if it's called.

2013-08-18 15:28 VZ, revision 74677

Make mouse capture checking asserts stronger and more detailed. Verify not only that we don't destroy the window having the capture now but also that this window is not in the mouse capture stack at all, not necessarily on top. This is important as keeping a dangling pointer in the capture stack would result in difficult to diagnose bugs later. Also check that we don't recapture the mouse in the same window as this should never be necessary. Finally, give more details in the assert checking that the window does have capture in ReleaseMouse().

2013-08-18 15:28 VZ, revision 74676

Don't set even try to set focus to wxPopupWindow itself in wxMSW. This doesn't work anyhow with our popup window implementation (it's a child of the desktop and we can't set focus to it) and provokes error messages due to ::SetFocus() failures, so simply don't do this at all.

2013-08-18 15:28 VZ, revision 74675

No changes, just change data structures used by mouse capture code. Use a simple stack of windows instead of a separate singly linked list and a separate current capture pointer.

2013-08-18 15:28 VZ, revision 74674

No changes, just use wxRecursionGuard instead of manual boolean flag. Use wxRecursionGuard with the flag indicating whether the mouse capture is changing to ensure that we always reset it correctly and make the code slightly shorter.

2013-08-18 15:28 VZ, revision 74673

No changes, just move mouse capturing bookkeeping data out of wxWindow. All mouse capture-related data doesn't have to be declared in wxWindow itself and can just be global in wincmn.cpp, so move it there, this will facilitate further changes as they won't require recompiling everything any more.

2013-08-18 06:28 PC, revision 74672

should have been part of r74664: Avoid calling gtk_window_get_position() from "configure-event" handler

2013-08-17 18:38 PC, revision 74665

avoid duplicate move events

2013-08-17 18:25 PC, revision 74664

Avoid calling gtk_window_get_position() from "configure-event" handler, if possible. This avoids a round trip to the X server, which is expensive over a remote connection. Closes #15116

2013-08-16 20:17 BP, revision 74663

Fix typo in wxSingleInstanceChecker docs, props Lauri Nurmi.

2013-08-16 20:12 BP, revision 74662

Duplicate argument name fix, props Lauri Nurmi.

2013-08-16 17:43 PC, revision 74661

use names for gs_requestFrameExtentsStatus values

2013-08-16 13:04 VZ, revision 74660

Replace wxFONTFAMILY_DEFAULT with wxFONTFAMILY_SWISS when comparing fonts. Otherwise comparison always failed as no existing fonts had wxFONTFAMILY_DEFAULT as their family in all ports except wxOSX, which does keep wxFONTFAMILY_DEFAULT. Closes #15410.

2013-08-14 22:34 SC, revision 74659

forgotten commit :-( remove #if 0 if things work again

2013-08-14 17:47 VS, revision 74658

Fix wxComboCtrlBase::DoGetSizeFromTextSize() performance regression. r72935 introduced code that created a temporary wxComboBox control to take measurements. This is very expensive in MSW and adds noticeable delay when creating more than a few controls. Replace with equivalent wxMSW code that computes the height in the same way other wxMSW controls do. The wxGTK version cannot be eliminated in the same way, so at least add some basic caching there. It's much less of a problem, because GTK+ controls creation is much cheaper than MSW one.

2013-08-14 11:43 SC, revision 74657

using terminate: terminates prematurely, OnExit is not called anymore

2013-08-14 11:15 SC, revision 74656

using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere

2013-08-13 19:36 VZ, revision 74655

Don't hide the window in its dtor in wxGTK. This results in sending an unexpected wxShowEvent to an already half-destroyed (because the derived class dtor had been already executed) by now object which could provoke crashes. And it also seems to be completely unnecessary as the window is going to be destroyed anyhow -- and the other ports don't hide it before this happens (unless it's a TLW in which case it is already hidden in wxTopLevelWindowBase::Destroy()).

2013-08-12 18:24 PC, revision 74654

avoid setting pango matrix when not needed

2013-08-11 08:39 SC, revision 74653

using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere

2013-08-09 22:55 VZ, revision 74649

Tamil translations update from Dinakar T.D.

2013-08-09 22:55 VZ, revision 74648

Remove never implemented wxDateTime::IsGregorianDate(). This method was declared and even documented but never actually implemented, and GregorianAdoption enum used by it had many incorrectly defined elements. Just remove both the method and the enum instead of fixing/implementing them as they are not that important (as witnessed by the fact that nobody has complained about the method being missing since almost 15 years). Closes #15400.

2013-08-09 13:56 JS, revision 74647

Applied #15393 (dghart) fixing wxRichTextTable for percentage widths

2013-08-08 07:59 PC, revision 74646

add other known types for gdk_pixbuf_save()

2013-08-08 07:43 PC, revision 74645

Try native method first in LoadFile() and SaveFile() closes #15394

2013-08-07 19:33 VS, revision 74644

Make wxOwnerDrawnComboBox::DoGetBestSize() twice as fast. Don't call the very expensive wxComboCtrlBase::DoGetBestSize() method when not needed - it calls wxComboCtrlBase::DoGetSizeFromTextSize(), which is very expensive. Also fix the code so that it doesn't apply GetSizeFromTextSize() twice (once in the base class' DoGetBestSize(), once here).

2013-08-07 17:44 VZ, revision 74643

Compilation fix for wxMSW with wxUSE_MSGBOX_HOOK==0. Include wx/fontutil.h unconditionally, it's needed outside message box hook code. Closes #15395.

2013-08-07 14:08 VZ, revision 74642

Compilation fix to propgrid sample after r74628. Use wxMax() and wxMin() instead of std::max() and min(). Also work around wrong for loop scoping for VC6. See #15368.

2013-08-07 13:08 VZ, revision 74641

Document light grey colour handling in wxMSW wxBitmap::LoadFile(). For historical/compatibility reasons we handle this colour as transparent in wxMSW when loading the bitmaps from resources, but this is rather not obvious for the new users, so document it and provide a way of compensating for this in the documentation as well. Closes #15371.

2013-08-07 13:08 VZ, revision 74640

Define __VISUALC__ for ICC under Windows again. During the refactoring of r74496, the logic of the check for Intel compiler was slightly altered resulting in not defining __VISUALC__ for it any longer which broke compilation with it. Restore this definition now to fix it, even though it could admittedly be better to explicitly check for __INTELC__ in the places where we currently only check for __VISUALC__ and reserve the latter only for the case when we are really using MSVC. Closes #15359.

2013-08-07 13:08 VZ, revision 74639

Add wxFileName::SetPermissions(). This is a simple wrapper for the POSIX chmod(). Closes #12951.

2013-08-07 13:08 VZ, revision 74638

Update Travis configuration to run tests and build more configurations. Install libcppunit-dev in order to be able to run the unit tests (at least the non-GUI ones for now). Also build in several configurations: shared/static, multilib/monolithic and also STL. This should help to find problems appearing only in some specific build variants. Closes #15369.

2013-08-07 13:08 VZ, revision 74637

Don't document wxSortedArrayString as deriving from wxArrayString. This is no longer the case since quite some time. Closes #15374.

2013-08-07 13:08 VZ, revision 74636

Don't use DDEExec registry key in wxMSW wxExecute() if it's empty. Some file types have DDEExec subkey in the registry but no value for it, don't use DDE for launching the files of these types in this case as this only results in errors. Closes #15388.

2013-08-06 19:36 VZ, revision 74635

Fix column sorting UI in wxDataViewCtrl under wxOSX. Use -outlineView:didClickTableColumn: delegate method instead of mouseDownInHeaderOfTableColumn: one to ensure that: (a) We don't sort the column if it's being dragged/resized (closes #15340). (b) We sort the column on mouse up, not down (closes #15386).

2013-08-06 19:36 VZ, revision 74634

Fix a couple of spelling mistakes in the documentation. Closes #15382.

2013-08-06 19:00 VZ, revision 74633

Use RIAA wrapper for wxSpinCtrl event disabling in wxGTK. The use of wxSpinCtrlEventDisabler class ensures that we never forget to reenable the events after disabling them.

2013-08-06 19:00 VZ, revision 74632

Reflect changes in stc.cpp in stc.cpp.in from which it's generated. This should have been part of r74596, see #15353.

2013-08-06 19:00 VZ, revision 74631

Don't generate any events from wxSpinCtrl and wxSpinCtrlDouble methods. After the changes of r53758 wxMSW didn't generate any wxEVT_TEXT events but this was still the case for the generic version (and hence for wxSpinCtrlDouble under MSW too) and wasn't documented. Fix all versions to avoid sending events for programmatic actions, add unit tests checking this behaviour and document it.

2013-08-06 18:59 VZ, revision 74630

Add test for absence of events from wxSpinCtrlDouble ctor. Run the same NoEventsInCtor() test as we already had for wxSpinCtrl for wxSpinCtrlDouble as well. Unfortunately currently there is no way to reuse the tests between these two classes, we should refactor these test cases to use a common SpinCtrlTestCaseBase<T> base class. See #15375 which fixed the underlying bug.

2013-08-06 18:59 VZ, revision 74629

Document wxTreeCtrl::GetItemFont() behaviour for items without font. Explain that this method returns wxNullFont if no font was set for the item. Closes #15390.

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

Add wxPropertyGridPageState::GetColumnFullWidth(). This method allows to get the full width needed by wxPropertyGrid and is useful for determining the space to allocate for it, e.g. when creating a popup showing the property grid, as shown by the changes to the sample. Closes #15368.

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

Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed. Return the real height instead of -1. Closes #15367.

2013-08-06 14:31 VZ, revision 74626

Dutch translations update from Gideon van Melle.

2013-08-06 08:05 PC, revision 74625

Rewrite ConvertToGreyscale() and ConvertToDisabled() They do almost the same thing, so use almost the same code. Fixes ConvertToDisabled() modifying its own data. Closes #15389

2013-08-05 19:10 PC, revision 74624

prevent infinite loop if gtk_menu_popup() fails, fixes #15387

2013-08-05 10:59 SC, revision 74623

follow up parent chain to properly support modal dialog parents, see #15383

2013-08-04 09:58 JS, revision 74622

Comment-only update

2013-08-03 06:48 PC, revision 74621

remove ancient defines left over from GTK1 and some minor cleanup

2013-08-03 06:39 PC, revision 74620

remove obsolete check for GTK 2.6

2013-08-02 19:01 PC, revision 74619

fix Gtk-CRITICAL errors when deleting wxDirButton

2013-07-31 18:03 PC, revision 74618

defer calling SetCanFocus() on wxGTK until after creation

2013-07-31 12:47 JS, revision 74617

Applied #15375 to stop event-sending in generic wxSpinCtrl ctor (eco)

2013-07-31 07:56 PC, revision 74616

don't pass false as a wxWindowID

2013-07-31 07:35 PC, revision 74615

fix tab traversal of wxStaticBox children, closes #15376

2013-07-29 00:58 VZ, revision 74614

Turkish translations update from Kaya Zeren.

2013-07-28 19:36 SC, revision 74613

first attempt at adding the minimal set needed for dead-key support, see #15345

2013-07-28 16:52 SC, revision 74612

adapting to new event version

2013-07-28 16:37 SC, revision 74611

changing to allow for 2x ramping up NSApp run

2013-07-28 16:32 SC, revision 74610

using Run of base class

2013-07-28 15:08 VZ, revision 74609

Work around missing mode_t definition with ICC. Just handle it in the same way as MSVC. Closes #15361.

2013-07-27 22:22 SC, revision 74608

using Run of base class

2013-07-27 21:39 VS, revision 74607

Make wxComboCtrlBase::Set*groundColour() methods public. SetForegroundColour() and SetBackgroundColour() were -- presumably accidentally -- protected in wxComboCtrlBase, even though they are documented public virtual methods of wxWindow. This prevented their use from user code.

2013-07-27 21:21 SC, revision 74606

skip apple options

2013-07-27 21:19 SC, revision 74605

wiring event loop callbacks

2013-07-27 21:15 SC, revision 74604

bracketing for correct builds

2013-07-27 21:00 SC, revision 74603

OSX adaptions

2013-07-26 18:02 VZ, revision 74602

Remove all lines containing cvs/svn "$Id$" keyword. This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487.

2013-07-26 17:27 VZ, revision 74601

Remove wxUniversal configuration from the MSVC 10 project files. As these configurations are not present in the automatically generated files any more, remove them from the manually created ones too.

2013-07-26 12:38 VZ, revision 74600

Fix duplicate symbol link errors in wxMSW wxTextEntry code. Don't include <initguid.h> too soon, as this affects the headers included after it instead of just our own uses of DEFINE_GUID() as intended. This resulted in link errors because of duplicate definitions of the many standard GUIDs when using MinGW for which we include, for whatever reason, shlguid.h. This fixes the change of r67573.

2013-07-26 01:36 VZ, revision 74599

Disable tests in Travis configuration. As cppunit is not available, building tests fails. Also disable optimizations in an attempt to make the build faster as we risk being killed because it takes so long. Finally, test compilation of the minimal sample using the installed library for completeness.

2013-07-25 23:55 VZ, revision 74598

Add a configuration file for Travis CI system. Try to use Travis in addition to buildbot to see if it can be useful for us. Closes #15355.

2013-07-25 23:55 VZ, revision 74597

Allow using custom method names in wxHTTP. Add wxHTTP::SetMethod(). Also simplify the code by determining the method to use in Connect() instead of doing it in BuildRequest() itself. Get rid of the now unused wxHTTP_Req enum. Closes #15354.

2013-07-25 23:55 VZ, revision 74596

Fix build with wxUSE_FFILE=0. Add the missing "#if wxUSE_FFILE" checks and add fallbacks to wxFile if it's available. Closes #15353.

2013-07-25 23:54 VZ, revision 74595

Define wxLongLong_t for Intel compiler. It supports the same __int64 type and printf() format specifier for it as MSVC does under Windows. Closes #15359.

2013-07-25 23:54 VZ, revision 74594

Don't crash when creating wxStaticBox in wxGTK. Since r74585, wxWindow::SetCanFocus() is called from wxStaticBoxBase ctor, i.e. before the real window is created, and this results in a crash in wxGTK where SetCanFocus() needs a valid widget. Fix this simply by doing nothing in SetCanFocus() if the widget is not created yet as this should result in the same behaviour as before r74585. This doesn't seem like the right thing to do, however, and we should probably remove this call from wxStaticBoxBase ctor and do it in wxStaticBox implementation itself instead. Closes #15358.

2013-07-24 08:14 SC, revision 74592

wiring OnInit on osx to a later point in event processing

2013-07-23 22:11 SC, revision 74591

support for iPhone callbacks

2013-07-23 19:57 SC, revision 74590

adding OnLaunched

2013-07-23 16:41 PC, revision 74589

use GTK-specific method to delete selection

2013-07-23 15:18 VZ, revision 74588

Compilation fix for PCH-less build after r74586. Don't use wxWindow methods in wx/container.h, move AcceptsFocus() implementation to containr.cpp.

2013-07-23 14:44 VZ, revision 74587

Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW. wxKill(wxSIGTERM) doesn't work if the child process has no open windows as it doesn't have anything to post the WM_QUIT message to. Document this and point out that wxKill(wxSIGKILL) still works in this case. Closes #15356.

2013-07-23 14:44 VZ, revision 74586

Fix tab navigation bug with radio boxes without enabled items. There was a bug similar to the one in the preceding commit with radio boxes under wxMSW too: if all radio box buttons were disabled (or hidden, although this should be much more rare in practice, unlike the disabled case which was deemed to be rare in r74583 commit message but turned out to actually happen), the radio box still pretended to accept focus but didn't really do it. Fix this by allowing to override wxWindow::CanBeFocused() and do it in wxRadioBox to check whether we have any enabled visible items. Also add a check for CanBeFocused() to wxControlContainer code.

2013-07-23 14:44 VZ, revision 74585

Fix tab navigation bug with static boxes without enabled children. wxControlContainer::AcceptsFocusFromKeyboard() returned true even if the control didn't have any currently enabled -- and hence accepting focus -- children. This resulted in strange wxEVT_NAVIGATION_KEY propagation as it unexpectedly wasn't handled in the control which pretended to accept focus and instead bubbled up back into the parent, resulting in the focus returning to the first child of the parent instead of skipping the static box with disabled children and going to the next enabled child. Fix this by checking that we have children that can be focused right now and not only children that are focusable. Notice that this doesn't take care of calling wxWindow::SetCanFocus() correctly when the children enabled/disabled state changes so there might still be other problems, notably under wxGTK where SetCanFocus() does something non-trivial, but it at least improves things under wxMSW.

2013-07-23 07:13 PC, revision 74584

merge DoDrawText() and DoDrawRotatedText() into one function

2013-07-23 02:43 VZ, revision 74583

Fix tab navigation into radio boxes in wxMSW. Radio boxes refused to take focus from keyboard as their wxControlContainer::AcceptsFocusFromKeyboard() always returned false because the base wxStaticBox class disabled setting the focus to the control itself and wxRadioBox doesn't have any children at wx level in wxMSW. Fix this by reenabling "self focus" in wxRadioBox to make it possible to accept focus from keyboard. This is not ideal as it doesn't take into account e.g. radio boxes without any items or with all items disabled or hidden, but this should be rare and would require virtualizing all children access at wxControlContainer level, i.e. would be quite non-trivial so don't do this for now as this, at least, fixes the navigation in common/normal case. Also remove the unnecessary AcceptsFocus() override from wxRadioBox as this is now done at wxControlContainer level.

2013-07-23 02:43 VZ, revision 74582

No real changes, just refactor wxControlContainer code a little. Extract the call to wxWindow::SetCanFocus() into a separate UpdateParentCanFocus() function as it can be necessary to do it from places other than UpdateCanFocusChildren() too.

2013-07-23 01:37 VZ, revision 74581

Rearrange Windows checks in wx/platform.h to be more logical. Use __WINDOWS__ symbol as the primary symbol indicating Windows instead of using all of _WIN32, __WIN32__ and __WINDOWS__. Also automatically define __WINDOWS__ if __WXMSW__ is defined as this port only can be used under Windows and doing it like this fixes compilation in the case when the platform ends up being not defined at all, closes #15342. Finally, don't assume Windows by default but give an error if we can't detect the platform. This shouldn't happen in practice but seems a safer thing to do if it ever does happen.

2013-07-22 20:33 SC, revision 74580

further routing into wxApp

2013-07-22 18:18 SC, revision 74579

cocoa wiring

2013-07-22 18:17 SC, revision 74578

wiring osx native notification during launch

2013-07-22 17:32 PC, revision 74577

use pango_matrix_scale() to scale text

2013-07-21 12:30 SJL, revision 74575

Fix wxWebView documentation warnings. See #15346.

2013-07-21 12:05 VS, revision 74574

Add functor-taking overload of CallAfter(). This is a generalization of the existing method-calling overloads.

2013-07-18 12:07 VZ, revision 74573

Don't assume that KeySym is always defined as long in wxGTK. Apparently this is not the case when using Wayland and using "%ld" to print it out results in an assert failure. Closes #15351.

2013-07-17 21:25 RD, revision 74572

Fix interface definition of GetMouseCursorAt

2013-07-17 19:27 VZ, revision 74571

Just forward Stricmp() in wx/string.h to wxCRT_StricmpA(). Don't redo the tests already done in wx/wxcrtbase.h in wx/string.h too, especially as they were not done correctly there (they didn't take into account the case of MinGW in strict ANSI mode). Just call wxCRT_StricmpA(). This also allows us to get rid of HAVE_STRCASECMP_IN_STRING[S]_H tests in configure. Closes #15349.

2013-07-17 19:27 VZ, revision 74570

Set mouse cursor correctly over image map links in wxHTML. The cursor didn't change to a link one when the mouse was over link areas in an image map. Fix this by generalizing wxHtmlCell::GetMouseCursor() into GetMouseCursorAt(). Closes #15350.

2013-07-17 19:27 VZ, revision 74569

Check the number of points in the image map in wxHTML. Don't crash if an <area> element is incorrect and doesn't have the required number of coords attributes. Closes #15348.

2013-07-17 19:27 VZ, revision 74568

No changes, just remove an extra pair of braces in wxHTML code. See #15348.

2013-07-17 19:27 VZ, revision 74567

Handle wxALWAYS_SHOW_SB in wxOSX. Initialize m_[hv]ScrollBarAlwaysShown to true if this flag is given when creating the window. Closes #15344.

2013-07-17 14:57 VZ, revision 74566

Mention more announcement channels in the release making instructions.

2013-07-17 14:57 VZ, revision 74565

Remove more exclusions from Inno Setup file. Some excluded entries were not-existent anyhow (.cvsignore, wxPython, *.pch) while others could be useful to have (misc).

2013-07-17 14:57 VZ, revision 74564

Don't exclude tests from wxMSW-Setup.exe. The tests are useful to have to be able to check some functionality.

2013-07-17 14:57 VZ, revision 74563

Exclude "osx" files, not "mac" ones, from Inno Setup file. "mac" subdirectories don't exist any more.

2013-07-17 14:57 VZ, revision 74562

Remove redundant lines from Inno Setup file. We don't need to handle the documentation files separately when they are already taken care of together with everything else anyhow.

2013-07-17 14:57 VZ, revision 74561

Document the release scripts really used for making releases. End the polite fiction that build/tools/create-archive.py is used to build the release because it isn't and all the last releases were built using different scripts. Document their use in more details.

2013-07-17 14:57 VZ, revision 74560

Remove Inno Setup file dependency on c:\daily path. Generate the output file in the parent of the sources directory and take care of copying it to c:\daily in bld_chm_exe.bat itself. This allows to use wxwidgets.iss without that batch file and also on systems without c:\ drive at all.

2013-07-17 14:57 VZ, revision 74559

Use "INNO" env var in Inno Setup script only if it's defined. Just use the sources directory itself if %INNO% is not defined. In fact, I think we could always use the source directory, actually, but just in case there was some reason to do it like this, keep using %INNO% if it is defined. Also check that WXW_VER environment variable that we use is, in fact, defined. FIX: Use relative path, not %WXWIN% in ISS script.

2013-07-17 14:57 VZ, revision 74558

Update binaries release notes for 2.9.5. Correct the compiler versions used and update the checksums.

2013-07-17 14:57 VZ, revision 74557

Update SHA1 sums for 2.9.5 release files. Add CHM and wxMSW setup, remove Headers.7z which is in binaries subdirectory.

2013-07-17 14:57 VZ, revision 74556

Add a test for eol-native file existence in the release script. Otherwise it could silently create a distribution with the files with wrong EOLs.

2013-07-17 14:57 VZ, revision 74555

Mention that wxWidgets-x.y.z_Headers.7z must be uploaded to binaries subdir. This file goes with the binaries, not the sources. Also fix its extension.

2013-07-17 14:57 VZ, revision 74554

Make it possible to use svn-find-native-eols script without svn checkout. This should make it simpler to use it for other people.

2013-07-17 12:48 JS, revision 74553

Backport fix from 2.9 for allowing context menus in hierarchies containing wxHtmlWindow

2013-07-17 12:46 SC, revision 74552

fixing parameter name

2013-07-16 21:16 VZ, revision 74551

Updated release notes for 2.9.5. Change the version and update sha1sums.

2013-07-16 18:19 VZ, revision 74550

Create tag WX_2_9_5

2013-07-16 17:47 VZ, revision 74549

Add manually created VC10 project and solution files for the library. These files were obtained by importing the VC9 files and then setting up the dependencies correctly in the solution. This is just a temporary solution and we'll hopefully generate them with bakefile-1 for the 3.0 release but for now this is better than nothing.

2013-07-16 16:10 VZ, revision 74548

Fix insertion of radio menu items in wxOSX wxMenu. Deal correctly with updating the indices when a radio item is inserted into an existing radio group (which wasn't done previously and resulted in a unit test failure in MenuTestCase::RadioItems()) and also with inserting the normal items before an existing radio group as the stored indices were not updated correctly. The code is still ugly and it probably wouldn't be a bad idea to reuse wxMenuRadioItemsData used in wxMSW for similar purposes, but at least the unit tests pass now.

2013-07-16 16:10 VZ, revision 74547

Allow unsetting wxMenuItem as start of radio group too. This must be called if another radio item is inserted before the current starting one.

2013-07-16 16:10 VZ, revision 74546

No changes, just fix some comments in wxOSX wxMenu header. Mostly clarify DoInsertOrAppend() comment, the "is"/"if" typo made it rather unclear.

2013-07-16 16:10 VZ, revision 74545

No changes, just renamed "pItem" to "item" in wxOSX menu code. Get rid of this pseudo-Hungarian notation and make the naming of the variables consistent across the whole file.

2013-07-16 16:10 VZ, revision 74544

Get rid of wxMenu::m_startRadioGroup in wxOSX. This code was probably copied from wxUniv but was wrong as we can't rely on the items being always inserted in order. This commit on its own fixes removing the first radio group menu item but it also makes possible to properly implement the insertion of new items in the middle of an existing radio group which couldn't be done with m_startRadioGroup approach at all.

2013-07-16 16:10 VZ, revision 74543

Fix harmless unused parameter warning in wxOSX. We don't use the timestamp in wxNonOwnedWindow::HandleResized().

2013-07-16 16:10 VZ, revision 74542

Add wxMenuItem::IsCheck() and IsRadio() accessors. The latter will be convenient to use in the upcoming changes to wxOSX radio items management code and add the former for the symmetry.

2013-07-16 16:10 VZ, revision 74541

Use [DOMRange markupString] to get selection source. This DOMRange method, previously used in GetSelectedText(), seems to provide exactly what we need so there doesn't seem to be any reason to use JS to get the selection text, especially as it didn't even work under OS X 10.8 and returned an empty string in the unit test. The unit test still needs adjustment to pass because we don't get back exactly the same HTML as we used originally, but with more relaxed matching it does pass now.

2013-07-16 16:10 VZ, revision 74540

Return raw text, not markup, from wxWebViewWebKit::GetSelectedText(). Under OS X the markup string was returned, unlike in all the other ports, resulting in a unit test failure, fix this.

2013-07-16 16:10 VZ, revision 74539

No changes, just get rid of some wxT()s in wxString unit test. They were unnecessary and cluttered the code too much.

2013-07-16 07:13 SC, revision 74538

never return negative client sizes, fixes #15338

2013-07-16 00:37 VZ, revision 74537

Really fix wxUSE_PREFERENCES_EDITOR requirements check. The changes of r74532 were incomplete/wrong and the fix of r74536 didn't entirely fix the logic here, so try to do it again, hopefully correctly this time.

2013-07-15 20:04 RD, revision 74536

Only disable wxUSE_PREFERENCES_EDITOR if wxUSE_NOTEBOOK is False, not if it's True.

2013-07-15 19:31 SC, revision 74535

keeping selected page, fixes #15334

2013-07-15 18:42 VZ, revision 74534

Move HAVE_WCSXXX from wx/osx/config_xcode.h to wx/osx/chkconf.h. The latter file is also used when building from the command line while the former is only used in Xcode build, as its name indicates (which didn't help me to notice it, however). Also restore the test for wcsftime() in configure as it is available even on older systems but do not test for strnlen() -- as it is not. These changes amend those of r74523.

2013-07-15 18:36 SC, revision 74533

making sure images are in synch with the pages

2013-07-15 17:14 VZ, revision 74532

Add wxUSE_PREFERENCES_EDITOR and the corresponding configure option. This was somehow forgotten when wxPreferencesEditor was added.

2013-07-15 17:14 VZ, revision 74531

Fix new wxExecute() code compilation with wxUSE_CONSOLE_EVENTLOOP==0. Nothing is going to work without the console apps/base traits support for the event loop but at least make it compile.

2013-07-15 17:14 VZ, revision 74530

Fix wxGTK compilation in wxUSE_MENUS==0 case. Add missing check for it to wxWindow::DoFindFocus().

2013-07-15 17:14 VZ, revision 74529

Avoid including pipe stream headers when streams are disabled. Fixes compilation with wxUSE_STREAMS==0.

2013-07-15 03:49 VZ, revision 74528

Romanian translations update from Cătălin Răceanu.

2013-07-15 03:48 VZ, revision 74527

Don't hard code "2.9.3" in the release preparation instructions.

2013-07-15 03:32 VZ, revision 74526

Don't use images in wxToolBar with wxTB_NOICONS in wxOSX. This results in asserts when adding items without bitmaps, but this should be allowed when using wxTB_NOICONS.

2013-07-15 03:32 VZ, revision 74525

Disable wxFont::SetStrikethrough() test under wxOSX. Strike through support is not available in wxFont under this platform, as documented.

2013-07-15 03:31 VZ, revision 74524

Support using GetTextExtent() with empty string to get descent in wxOSX. Allow measuring the descent and external leading of an empty string by measuring just a space instead in wxOSX. This makes the behaviour more consistent with wxMSW and makes the unit test added in r74464 pass under OS X too.

2013-07-15 03:31 VZ, revision 74523

Don't test for wide character functions in configure under OS X. The tests for these functions may succeed on the system we're running under but the functions may not be actually available on the system the application is going to run under (if it's < 10.7). So use our own replacements for these functions unless 10.7 was explicitly chosen as the minimal possible version. An alternative solution could have been to use weak linking but this is more difficult and there is no real gain (performance would need to be measured first).

2013-07-15 03:31 VZ, revision 74522

Fix totally broken LocaleSetter class in the test suite. It was based on a completely erroneous assumption that setlocale() returns the locale that had been previously active when it actually returns the newly set locale. This fixes unit test failures in StringTestCase under OS X, as the locale wasn't correctly restored by DateTimeTestCase that used this class.

2013-07-15 03:31 VZ, revision 74521

Fix harmless Clang warning about unused class member in a test. The m_i field is only used in the currently commented out debugging messages, suppress a warning about it being unused.

2013-07-15 03:31 VZ, revision 74520

Fix harmless Clang warning about an unused function. GlobalOnAnotherEvent() is not used in normal testing.

2013-07-15 03:31 VZ, revision 74519

Suppress harmless clang 3.3 warning about unused wxMessageOutputBest field. Clang detects that a class member is unused (under non-Windows systems) which is quite impressive but not really useful in this particular case, so suppress this warning by "using" it.

2013-07-15 03:31 VZ, revision 74518

Fix error checking in wxFileSystemWatcher::Remove() under OS X. The boolean return value was compared with -1 which was always false.

2013-07-14 19:12 VZ, revision 74517

Disable wxUSE_ENH_METAFILE for wxGTK builds. This can happen to be defined in wxGTK builds under Windows. Closes #15332.

2013-07-14 17:45 VZ, revision 74516

Make wxMSW wxSpinCtrl "not enough space" messages more helpful. And also less annoying: remove the messages from DoMoveWindow() which could be given during resizing but not necessarily corresponded to the final control size. And give more details about which control is not being given enough space when a too small size is given in the ctor.

2013-07-14 17:26 VZ, revision 74515

Fix crash in docview code if view initialization failed. The change of r71371 resulted in using the already destroyed (implicitly, done as part of destroying the wxView that failed to initialize) wxDocument in wxScopeGuard destructor. Avoid this and make the old (i.e. pre-r71371) code exception safe while keeping its semantics exactly, i.e. only delete all views if the document still exists. Also add a comment explaining what's going on here because the ownership rules in docview code are frankly crazy.

2013-07-14 16:22 VZ, revision 74514

Swedish translations update from Jonas Rydberg.

2013-07-14 13:34 VZ, revision 74513

Don't use wxCriticalSection in wxWakeUpPipeMT if wxUSE_THREADS==0. In fact, don't define wxWakeUpPipeMT class at all when not using threads.

2013-07-14 13:32 VZ, revision 74512

Don't build tex2rtf and HelpGen utils in non-GUI buildbot builds. Both of those are obsolete and don't exist in 2.9 any longer.

2013-07-14 13:16 SC, revision 74511

support for @2x notation for wxBITMAP_TYPE_PNG (non-resource) on retina displays

2013-07-14 01:35 VZ, revision 74510

Better fix for wxX11 linking problems than r74499. Fix wxX11 without breaking wxGTK/Windows makefiles generation. Closes #15327.

2013-07-14 01:23 VZ, revision 74509

Restore embedding manifest when using MinGW. The changes of r73483 broke inclusion of the manifest in the programs built using MinGW because wxUSE_RC_MANIFEST was never defined. Somehow nobody complained about it but this resulted in using comctl32.dll 5.80 instead of 6.0 and e.g. problems with toolbar appearance (see #13512). Do use the manifest by default with MinGW and, in fact, all the other compilers if any other ones still work, as only MSVC is known to embed the manifest automatically and we take care of it separately.

2013-07-14 01:23 VZ, revision 74508

Remove some completely unused variables from configure. RESFLAGS, RESPROGRAMOBJ, WIN32INSTALL and AFMINSTALL were not used anywhere so don't bother defining them.

2013-07-14 01:23 VZ, revision 74507

Remove the long obsolete and unused since 2.7.0 __WIN95__ define. Don't confuse things by defining it unnecessarily.

2013-07-14 01:23 VZ, revision 74506

Move wx/msw/gccpriv.h inclusion back to wx/platform.h from wx/compiler.h. Do keep compiler-specific wxCHECK_MINGW32_VERSION() in wx/compiler.h as it's needed by wx/cpp.h which includes wx/compiler.h only. But put the rest of the stuff in gccpriv.h in its old place as including it before wx/setup.h didn't work correctly and was unnecessary anyhow.

2013-07-14 01:23 VZ, revision 74505

Use wxNotebook background colour for the tab row background in wxMSW. The free space near the tabs was always filled with the default light grey colour, use wxNotebook background colour itself to fill it now. Do it by changing the code in wxNotebook::OnPaint() to use the background colour brush and ExtFloodFill() to paint over the default grey, instead of the patterned background brush which is supposed to be used for the pages area only and not for the tabs and which was not even taken into account anyhow as the default window proc erases the entire contents of the DC we pass to it anyhow (at least in the default top-aligned tabs case). Also inherit the background colour from parent by default now, this ensures that wxNotebook blends with its parent when its background colour has been explicitly set by default, without the need to call its SetBackgroundColour() explicitly. See #13745.

2013-07-14 01:23 VZ, revision 74504

Add a possibility to change the layout direction in the widgets sample. This allows to test whether a widget is drawn correctly in RTL variant as well as the default LTR one easily.

2013-07-13 23:59 DS, revision 74503

Regenerated Xcode projects. Updated the Xcode projects to include wakeuppipe.cpp. Also fixes the wxiphone project which appeared to have 2 source file references concatenated (stattext.mm and slider.mm) since the last commit. This unfortunately happens sometimes when running makeprojects.applescript.

2013-07-13 22:07 VZ, revision 74502

Use "MSW" and "Windows" more accurately to avoid confusion. "MSW" is used as the name of toolkit using the standard Windows UI while "Windows" is the name of the OS under which wxGTK can be now used too (in addition to wxMSW). This terminology is not perfect but at least let's keep it unambiguous. Closes #15328.

2013-07-13 18:28 DS, revision 74501

deleted svn:executable property from src/expat/ files that don't need it

2013-07-13 16:58 VZ, revision 74500

Use Cocoa by default under OS X in configure. Carbon is deprecated.

2013-07-13 15:03 VZ, revision 74499

Do include src/generic/animateg.cpp in wxUniv/X11 sources. This fixes linking of the widgets sample when using wxUniv/X11. It partially reverts the changes of r73290 which only included this file in some selected ports instead of all of them for some reason. Closes #15327.

2013-07-13 13:41 DS, revision 74498

Set svn properties on new files. In the majority of cases set the svn:eol-style property (mostly to native for sources and LF for m4 files) and svn:keywords to Id. Applied for files that were added since r72503.

2013-07-13 04:33 VZ, revision 74497

Rebake all the samples and others makefiles too. The samples makefiles were not regenerated after the recent Scintilla changes (see r74425), do it now. There are no real changes for most of them (except stc sample), but it ensures that rerunning bakefile doesn't change anything.

2013-07-13 04:30 VZ, revision 74496

Extract compiler-specific macro definitions in a new wx/compiler.h. This solves the problem with wx/defs.h -> wx/platform.h -> wx/setup.h which resolves to msvc/wx/setup.h -> wx/version.h -> wx/cpp.h include path which resulted in __VISUALC__ not being defined in wx/cpp.h. This problem was not new but went unnoticed for a long time and was only discovered when wxCHECK_VISUALC_VERSION() started being used in wx/cpp.h too as now the compiler started warning about wrong #if syntax due to it being undefined. Putting the compiler-specific definitions in a separate file allows this file to be included from wx/cpp.h to ensure that these symbols are always defined in it and also makes things a little better organized.

2013-07-12 16:12 VZ, revision 74495

Fix harmless MinGW warning in wxMSW wxListCtrl code. Add an explicit cast to WPARAM because MinGW headers don't do it for us (even though they should).

2013-07-12 16:12 VZ, revision 74494

Fix harmless unused parameter warning in !wxUSE_GRAPHICS_CONTEXT build. Rich tooltip tip kind is unused as no tip is drawn in this case.

2013-07-12 16:12 VZ, revision 74493

Fix wrong return value from wxWebViewIE::Find() in 64 bit build. Using wxNOT_FOUND and an unsigned size() return value in the same operator ?: resulted in wxNOT_FOUND being converted to an unsigned size_t type and while converting it back to (signed) long worked in 32 bit builds where long and size_t have the same size, it was broken in 64 bit builds where their sizes are different. Thanks g++ for catching this one.

2013-07-12 16:12 VZ, revision 74492

Make destructors of COM interface classes virtual. This is needed to at least silence g++ warnings but may actually even fix a real problem as these classes can be inherited from and are deleted via a pointer (to "this" itself, in Release() implementation).

2013-07-12 16:12 VZ, revision 74491

Fix warnings about implicit float or double to int conversions in wxMSW. Make the conversions explicit as these warnings are harmless.

2013-07-12 13:20 VZ, revision 74490

Mention that wxGTK can be built with Wayland backend too. It is supported just as well as the already Broadway is.

2013-07-12 00:40 VZ, revision 74489

Reconcile HAVE_VARIADIC_MACROS and wxHAS_VARIADIC_MACROS definitions. The main user-visible effect of this change is that giving configure --disable-vararg-macros argument now really disables the use of variadic macros whereas it didn't disable them in wx/cpp.h before. It is, of course, also less confusing to not have two very similar but different symbols.

2013-07-11 21:46 SC, revision 74488

adapting to new x wheel behavior, see #15269

2013-07-11 21:31 SC, revision 74487

adapt to wx conventions for scroll wheel differences between horizontal and vertical directions, fixes #15269

2013-07-11 09:53 VS, revision 74486

Use int instead of wxWindowID in wxNewId() and friends. The functions are available in wxBase builds too, but wx/windowid.h isn't. Rather than always including that header, just use int, for which wxWindowID is a typedef. This keeps the functions available in wxBase for compatibility and is consistent with how IDs are handled in other parts of wxBase, particularly wxEvent.

2013-07-11 08:58 VS, revision 74485

Use wxWindowID in wxNewId() and related functions. wxNewId(), wxRegisterId() and wxGetCurrentId() functions all work with window IDs, so they should use the dedicated type. Previously, they worked with long, which is not even the same type (wxWindowID is int), causing implicit type conversion warnings.

2013-07-11 03:28 RD, revision 74484

Comment out the CIAbot script, the site has been dead a long time.

2013-07-11 01:43 VZ, revision 74480

Implement monitoring of file descriptors in wxMotif event loop. This allows applications using wxMotif to link again after the changes of r74350 -- and wxExecute() unit tests actually pass, too. Closes #15305.

2013-07-10 23:29 VZ, revision 74479

Recognize VC12 (a.k.a. MSVS 2013) and define __VISUALC12__ for it. Closes #15320.

2013-07-10 23:18 VZ, revision 74478

Fix typo in wxGUIEventLoop::ScheduleExit() in wxMotif. This was broken in r74335. See #15305.

2013-07-10 23:15 VZ, revision 74477

Add wxX11EventLoopSourcesManager stub implementation to fix wxX11 linking. Asynchronous wxExecute() still doesn't work in wxX11 but at least the programs using the library can be linked now. See #15305.

2013-07-10 23:12 VZ, revision 74476

Add default ctors and Create() to wxDirDialog and wxFileDialog in wxOSX. Allow two-step creation of these classes. Closes #15316.

2013-07-10 22:48 VZ, revision 74475

Fix checking for GTK+ 3.0 in configure. Update gtk-3.0.m4 to work correctly with gthread module and regenerate configure using the new version of this file. Closes #15319.

2013-07-10 22:35 VZ, revision 74474

Ukrainian translations update from Yuri Chornoivan.

2013-07-10 18:41 VS, revision 74473

Fix lots of warnings reported by Clang. Mostly potentially lossy implicit conversions in headers (long->int). Also dangling else warnings. Struct/class mismatches.

2013-07-10 18:38 VS, revision 74472

Only return -1,0,1 from wxXmlResource::CompareVersion(). In other words, do as the comment says. Also fixes an implicit conversion warning.

2013-07-10 18:35 VS, revision 74471

Define WXBUILDING in Xcode projects.

2013-07-10 15:17 PC, revision 74470

non-pch build fix

2013-07-10 15:08 VZ, revision 74469

Add documentation for building wxGTK under Windows. Closes #15318.

2013-07-10 14:28 VZ, revision 74468

Fix restoring the status bar help message after closing MSW menu from keyboard. Add a hack to ignore WM_MENUSELECT messages we get for the top level menu items: we must not clear the status bar help message when we get those because it had just been restored to the original message that was there before the menu was opened from the base class wxEVT_MENU_CLOSE handler, but this message comes after it when keyboard is used to close the menu. Closes #15315.

2013-07-10 14:24 VZ, revision 74467

Ignore WM_MENUSELECT messages indicating that the menu was closed. Don't update the help string in this case, this is not necessary and can clear the help string set elsewhere. See #15315.

2013-07-10 14:00 VZ, revision 74466

Vietnamese translations update from Trần Ngọc Quân.

2013-07-10 13:57 VZ, revision 74465

Update translations template for 2.9.5 release. No real changes, just removed a one character string that is not marked as translated any longer.

2013-07-10 03:28 VZ, revision 74464

Allow retrieving the descent and external leading of empty strings. This used to work before wxTextMeasure changes so make it work again instead of optimizing the case of empty string away and not returning anything in the descent and externalLeading output parameters in this case.

2013-07-09 19:29 VS, revision 74461

Fix VC++ warnings about __has_include(). The compiler warns about content after defined(__has_included), so avoid the issue by putting these Clang tests inside one big #ifdef __has_included block.

2013-07-09 18:44 VZ, revision 74460

Check axis number in the received joystick messages. Closes #15313.

2013-07-09 18:12 VS, revision 74459

Compilation fix for r74457. Remove stray #endif from incorrectly merged changes.

2013-07-09 17:55 SC, revision 74458

fixing forced link of quicktime backend on osx_cocoa

2013-07-09 17:47 VS, revision 74457

Fix OS X compilation in C++11 mode with libc++.

2013-07-09 17:44 VS, revision 74456

Work around wxFinite() definition conflict with <cmath>. Using the GNU libstdc++ or Clang's libc++ implementations of the standard library, <cmath> inclusion undefines the isfinite macro, resulting in compilation errors when wxFinite() is used. <cmath> can be included unintentionally, e.g. wx/hashmap.h may result in its inclusion when using STD containers. Work around this mess by checking if one of these <cmath> implementations were already included and using std::isfinite() in that case.

2013-07-08 23:44 VZ, revision 74455

Check for buffer being big enough in wxPathOnly(). Just return NULL or empty string if the input path is too long. This is probably not ideal but it fixes a buffer overflow and all this code needs to be rewritten to use wxFileName() anyhow so it's not worth doing anything more at this moment. Closes #15302.

2013-07-07 19:44 VZ, revision 74451

Merge libpng 1.6.2 into the trunk. Add pngprefix.h file generated by libpng configure/make process (which we don't run during wxWidgets build, so this is something that will need to be redone manually whenever libpng is upgraded, the procedure for doing this is documented in docs/tech/tn0025.txt) in order to use "wx_" prefix for all libpng public symbols. This should avoid at least some problems due to the conflicts between the built-in libpng and shared libpng loaded into the process as GTK+ libraries dependency under Unix. Also rename wx_png_{warning,error} to use upper case PNG for consistency with wx_PNG_stream_{reader,writer} and to avoid conflict with png_{warning,error}() which we now rename to have "wx_" prefix. Closes #14157.

2013-07-07 19:35 VZ, revision 74450

Add instructions for upgrading third party libraries. Describe the process for upgrading the libraries for which we already use svn vendor branches.

2013-07-07 18:35 VZ, revision 74449

Regenerate configure after libwxscintilla linking changes. This should have been done together with the changes of r74425, as autoconf_inc.m4 had changed, configure should have been regenerated too.

2013-07-07 17:40 VZ, revision 74448

Tagging libpng 1.6.2.

2013-07-07 17:39 VZ, revision 74447

Update libpng sources to 1.6.2.

2013-07-07 16:44 VZ, revision 74446

Define XML_STATIC in Expat header instead of Expat projects. This reverts r74444 and defines XML_STATIC unconditionally in Expat sources themselves as we always use the built-in Expat as a static library, so this solution is simpler and more portable.

2013-07-07 16:13 VS, revision 74445

Compilation fix for r74440 and STL builds.

2013-07-07 15:58 VZ, revision 74444

Define XML_STATIC for Expat build to fix linking of Windows DLLs. The new Expat assumes it's built as a DLL by default, define XML_STATIC to indicate that this is not the case as we always build it as a static library.

2013-07-07 15:47 VZ, revision 74443

Correct typo in a link in i18n documentation page. See r74442.

2013-07-07 15:43 VS, revision 74442

Clarify .mo deployment in i18n overview. Fixes #15253.

2013-07-07 15:42 VS, revision 74441

Don't look for catalogs in AddCatalogLookupPathPrefix() path directly. Previously, the prefix directory itself for searched for catalogs, in addition to prefix/lang/LC_MESSAGES and prefix/lang. This never made much sense, because only one catalog could be in such place, instead of multiple catalogs for more languages. It also prevented successful identification of catalog's language and didn't work with GetAvailableLanguages(). Remove this misfeature and update the documentation accordingly. Update OS X-specific code so that it continues to work (it previously depended on this behavior). As a side effect, *.lproj directories are now recognized in all search prefixes, not just in Resources. See #12498, #15253.

2013-07-07 15:42 VS, revision 74440

Improve translations lookup logging. Log match directory in GetAvailableTranslations(). Log search paths with one directory per line, for better readability when debugging.

2013-07-07 15:42 VS, revision 74439

Correct wxTranslations docs: CWD is not searched. The documentation incorrectly stated that the current working directory is searched for translations. This isn't the case (and wouldn't be a good thing to do). See #12498.

2013-07-07 14:58 VZ, revision 74438

Remove the TOOLKIT test from msvc-headers-setuo-h definition. This is unnecessary now that TOOLKIT is back to being a constant again and results in errors if GTK TOOLKIT is enabled. Closes #14965.

2013-07-07 14:47 VZ, revision 74437

Add files necessary to run Expat configure. This should have been part of the previous commit (r74436).

2013-07-07 14:45 VZ, revision 74436

Update the version of Expat used to 2.1.0. Merge with the latest version, mostly discarding our changes to 1.95.6 as they seem to be unnecessary any longer, keep just bakefile-specific addition to configure. Also update our own makefile to define HAVE_EXPAT_CONFIG_H which is now needed by Unix build. Closes #11677.

2013-07-07 13:47 VS, revision 74435

Use wxConvAuto() in wxStyledTextCtrl::DoLoadFile(). This is both more reasonable than the current runtime encoding (the input file is from unknown source) and more robust (it can handle UTF-* encoded files transparently).

2013-07-07 13:46 VS, revision 74434

Use wxConvAuto in wxFile::Write(). For consistency with wxFFile. No real change, as wxConvAuto will default to UTF-8 when writing.

2013-07-07 02:39 VZ, revision 74430

Don't pretend that wxAnyButton::SetBitmap() supports invalid bitmaps. Because it doesn't under MSW. See #13569.

2013-07-07 02:38 VZ, revision 74429

Avoid using buffer of already deallocated string in wxHTMLDataObject. Ensure that the temporary string inside which the pointer returned by utf8_str() may point remains alive for long enough. Closes #15279.

2013-07-07 01:14 VZ, revision 74428

Forbid creation of wxStandardPaths object directly. This happens to work under MSW and Unix where there is only one wxStandardPaths class for both the console and the GUI applications but doesn't return the correct result under OS X where the Core Foundation version, returned by wxStandardPaths::Get(), has to be used for the GUI programs. And historically this confused a lot of people, so just ensure that they can't accidentally create an object of the wrong type any more. Closes #13537.

2013-07-07 00:57 VZ, revision 74427

Reuse wxMessageOutputStderr for wxLogStderr implementation. In addition to avoiding (tiny) code duplication, this ensures that both places use the stream in the same orientation, i.e. either both use the narrow functions or the wide ones. Thus, it fixes a problem with output simply disappearing if wxLogStderr and wxMessageOutputStderr were both used: the one used first disabled any output by the other one. Closes #14782.

2013-07-07 00:48 VZ, revision 74426

Correctly restore the originally used C locale in wxLocale dtor. Save the original locale used before we changed it instead of "restoring" the same locate that this wxLocale object was using. Add a unit test to verify that this does work as expected. Closes #14873.

2013-07-06 21:14 VZ, revision 74425

Only link with libwxscintilla if using Scintilla is enabled. Correct the changes of r74408 to avoid using libwxscintilla if we don't build it at all. See #13837.

2013-07-06 21:14 VZ, revision 74424

Disable test for setting the creation time under Unix. Also document that this doesn't work there.

2013-07-06 20:21 VZ, revision 74423

Fix FILETIME <-> wxDateTime conversions while DST is in effect in wxMSW. The result was (consistently, so the tests still passed) off by an hour when the program was ran while DST was in effect. Fix this by avoiding the use of FileTimeToLocalFileTime() and LocalFileTimeToFileTime() and just directly converting FILETIME values to wxDateTime. Not only this is more correct but it's also simpler and more efficient as well. Also add a unit test for wxFileName::SetTimes() too. Closes #13098.

2013-07-06 20:20 VZ, revision 74422

Explicitly mention that wxDateTime ticks origin is in UTC. Make it clear that the number of ticks is counted since the same moment in all time zones. See #13098.

2013-07-06 19:27 PC, revision 74421

avoid GTK+ prefixes for our tree entry code, it is not part of GTK+, should have been part of r74420

2013-07-06 18:35 PC, revision 74420

avoid GTK+ prefixes for our tree entry code, it is not part of GTK+

2013-07-06 18:04 PC, revision 74419

remove symbol exports, this code is private to the library

2013-07-06 17:58 PC, revision 74418

remove empty GtkTreeEntryClass

2013-07-06 17:50 PC, revision 74417

remove instance init function, memory is already zeroed

2013-07-06 17:44 PC, revision 74416

move treeentry_gtk.h to include/wx/gtk/private/

2013-07-06 17:34 PC, revision 74415

create collate_key on demand

2013-07-06 16:46 VZ, revision 74414

Exclude expat files from pre commit hook checks too. All the other 3rd party libraries were already excluded but not this one, for some reason -- do exclude it now as upcoming Expat 2.1.0 sources contain some files with TABs.

2013-07-06 16:46 VZ, revision 74413

Update announcement and readme files for 2.9.5 release. Fill in the release date and update the changes description in the announcement.

2013-07-06 15:46 VZ, revision 74412

Tagging Expat 2.1.0.

2013-07-06 15:45 VZ, revision 74411

Update Expat sources to 2.1.0.

2013-07-06 15:39 VZ, revision 74410

Tagging Expat 1.95.6.

2013-07-06 15:38 VZ, revision 74409

Importing unmodified Expat 1.95.6 sources.

2013-07-06 14:41 VZ, revision 74408

Always add libwxscintilla in monolithic mode. The library was already present in the makefiles but came before the monolithic library itself, which broke the linking of the samples when using GNU ld as the dependent libraries must come after the libraries using them. Closes #13837.

2013-07-06 14:32 VZ, revision 74407

Rebake the rest of the files after TOOLKIT change in MSW bakefile. This should have been part of r74406 but I only rebaked wxWidgets make/project files themselves and not the samples/utils/demos files in it.

2013-07-06 13:59 VZ, revision 74406

Make TOOLKIT variable constant in MSW makefiles. This fixes duplicate lines defining rules for generic files for more than one port in the makefiles. Closes #14979.

2013-07-06 02:28 VZ, revision 74405

Fix potential buffer overflow in wxSTC DefaultFont() function. Use safe(r) wxStrlcpy() instead of strcpy() to copy the font name. Closes #15296.

2013-07-06 02:27 VZ, revision 74404

Fix test for Windows in the new wxExecute() unit test. TestOverlappedSyncExecute() doesn't currently pass under Windows and was supposed to not be executed there but was, in console test, as __WXMSW__ is not defined in this case, only __WINDOWS__ is (as there is no GUI toolkit in the console applications). See #10258.

2013-07-05 19:12 JS, revision 74363

Caret blink time and blink on/off are now also reflected in GTK+ widgets

2013-07-05 19:11 JS, revision 74362

Caret blink time and blink on/off are now also reflected in GTK+ widgets

2013-07-05 18:26 JS, revision 74361

Use wxRTC text colour if possible for caret

2013-07-05 18:25 JS, revision 74360

Use wxRTC text colour if possible for caret

2013-07-05 15:33 JS, revision 74359

Don't flash wxRTC caret if blink time is zero, and also take colour from window text colour to avoid invisibility.

2013-07-05 15:32 JS, revision 74358

Don't flash wxRTC caret if blink time is zero, and also take colour from window text colour to avoid invisibility.

2013-07-04 00:18 VZ, revision 74357

Prevent duplicate menu event processing in MDI windows. Record the object propagating the given event upwards in the event object itself and use it in wxMDIParentFrame to determine whether the event being handled is already coming from wxMDIChildFrame and avoid sending it back for processing it there again in this case. This is ugly and makes wx event processing even more complex but this is the only way I could find to ensure that (a) Both the child and the parent frames get the events from the toolbar (even though the toolbar parent is the parent frame and hence normally the child wouldn't get notified about them at all and so the forwarding at wxMDIParentFrame level is required to make this work). (b) The child gets the event only once, whether it comes from a toolbar (and hence indirectly via the parent frame) or from the child menu (and hence directly to the child, at least in wxMSW). This commit fixes the event propagation unit test case, at least under MSW and GTK. See #14314.

2013-07-04 00:18 VZ, revision 74356

Test handling of events from the toolbar in an MDI parent frame. These events must be received by the currently active child.

2013-07-04 00:17 VZ, revision 74355

Ensure that the MDI child is active in event propagation test. Call wxMDIChildFrame::Activate() explicitly as the behaviour was different under MSW (where the activation happened too late for the test) and GTK where the child did become active because of the hacks in place to ensure it.

2013-07-03 13:03 VZ, revision 74354

Make AsyncExecLoopExitEnum enum in the wxExecute() test public. This fixes VC6 build as the nested class couldn't access a private enum inside the enclosing class.

2013-07-03 05:12 PC, revision 74353

fix wxCHECK_MSG() return value

2013-07-03 02:33 VZ, revision 74352

Don't ignore child process output if it exits with -1 exit code. While this code is used by us if the program couldn't be launched at all, it doesn't mean that it didn't run as -1 could also be returned by the child process to indicate an error after outputting something, so we should still read its output in this case. Closes #15205.

2013-07-03 02:32 VZ, revision 74351

Run wxExecute() unit test in the GUI test suite too. The same code works differently in console and GUI applications, so build this test case as part of both of them. See #10258.

2013-07-03 02:32 VZ, revision 74350

Rewrite wxExecute() implementation under Unix. This commit changes wxExecute() to handle SIGCHLD to be notified about the child process termination instead of detecting when the file descriptor corresponding to the other end of a pipe opened in the parent process was closed in the child as this was not reliable and could (and did) result in not detecting the termination of the child processes that closed all their file descriptors before exiting. This commit also removes a lot of platform-specific code duplicating the generic event loop sources support and reuses it for wxExecute() purposes too. Final big change is that wxEndProcessData was merged into wxExecuteData and we don't have two similar but quite different classes any more but just one, which is used both to pass the information from wxExecute() to wxAppTraits methods and to store this information until the child termination. Closes #10258.

2013-07-03 02:31 VZ, revision 74349

Add a helper wxApp::GetValidTraits() method. This method always returns some valid traits, even if we don't have wxTheApp (which is possible in the console applications) or if its GetTraits() was overridden to return NULL (which shouldn't be, but still guard against this).

2013-07-03 02:31 VZ, revision 74348

Treat G_IO_HUP as read, not error, event because EOF is not exceptional. When EOF is reached on a file descriptor, call the handler OnReadWaiting() because this is not really different from getting to the EOF while reading data in the same function. Only call OnExceptionWaiting() for the real errors. See #10258.

2013-07-03 02:31 VZ, revision 74347

Make Unix wxAppConsole signal handling more flexible. Instead of hardcoding the call to WakeUpIdle() in the signal handler itself, just wake up the event loop when we catch a signal. This will still result in WakeUpIdle() being called, before the next event loop iteration, but it will also allow us to do other things on wakeup from signal as it will be done in the upcoming wxExecute() changes to support wxEXEC_NOEVENTS in console applications. See #10258.

2013-07-03 02:30 VZ, revision 74346

Change wxWakeUpPipe to be a wxEventLoopSourceHandler. No real changes but use wxEventLoopSource::AddSourceForFD() instead of wxFDIODispatcher::RegisterFD() for this pipe because this is the preferred way and because it will allow reusing this class for wxExecute() purposes later. See #10258.

2013-07-03 02:30 VZ, revision 74345

Include wx/evtloop.h from wx/evtloopsrc.h. This is necessary to ensure that wxUSE_EVENTLOOP_SOURCE which wraps the entire contents of this header is defined if it's included directly and not after already including wx/evtloop.h. See #10258.

2013-07-03 02:29 VZ, revision 74344

Include <fcntl.h> from a header using fcntl(). No real changes, just make the header self-containing instead of relying on the file including it to include <fcntl.h> itself.

2013-07-03 02:29 VZ, revision 74343

Add wxStreamTempInputBuffer::ReadAll() helper. This just reads everything remaining in the stream in a blocking way and will be used to get the data remaining in the stream buffers after the child process had been already closed (and hence can't write any more to it and there is no risk of deadlock). See #10258.

2013-07-03 02:29 VZ, revision 74342

Use CFSocket instead of CFFileDescriptor in wxCFEventLoopSource. Use OS X socket APIs for monitoring file descriptors. They are more flexible than CFFileDescriptor functions and can be used with any descriptors, not necessarily the socket ones. See #10258.

2013-07-03 02:28 VZ, revision 74341

Make wxEventLoop::AddSourceForFD() static. Any event sources should be registered with all the event loops, including the ones that will be started in the future, and not only the current (and potentially not even existing yet) one. So make AddSourceForFD() method static. To still allow it to do different things in console and GUI applications, as it must, virtualize it via the new wxEventLoopSourcesManager class which has different implementations in the two cases, returned via wxAppTraits as usual. Notice that this required moving the implementation of this method from src/osx/core/evtloop_cf.cpp to src/osx/core/utilsexc_cf.cpp as the former file is base-only and didn't have access to wxGUIAppTraits. See #10258.

2013-07-03 02:28 VZ, revision 74340

Extract wxFDIOEventLoopSourceHandler in its own header. No real changes, this is just in preparation for the further refactoring. See #10258.

2013-07-03 02:27 VZ, revision 74339

Split wxWakeUpPipe class in MT-unsafe and MT-safe parts. This class can also be useful when it's used in the main thread only, so leave the lock-less part of the code in wxWakeUpPipe and derive a separate wxWakeUpPipeMT from it for the use in wxConsoleEventLoop where it can be used by multiple threads. See #10258.

2013-07-03 02:27 VZ, revision 74338

Extract PipeIOHandler class into a header and rename to wxWakeUpPipe. No real changes to the class, just make it possible to reuse it outside of Unix wxEventLoop code. See #10258.

2013-07-03 02:27 VZ, revision 74337

No changes, move wxStreamTempInputBuffer to a header file. Get rid of the surprising src/common/execcmn.cpp which had a .cpp extension but was supposed to be used as an included file only and move its contents to a new private header to make using wxStreamTempInputBuffer class simpler. See #10258.

2013-07-03 02:26 VZ, revision 74336

Extract wxPipeInputStream and wxPipeOutputStream in a header. No real changes, just put these classes in a private header. They're still not part of the public API but at least it will be easier to reuse them inside the library itself in the upcoming commits. See #10258.

2013-07-03 02:26 VZ, revision 74335

Add wxEventLoop::ScheduleExit(). This method allows to request exiting from the given event loop even if it's not the currently active one, unlike Exit() which would assert in this case. With it, it becomes possible to ask the loop to terminate as soon as possible even if a nested loop is currently running. See #10258.

2013-07-03 02:25 VZ, revision 74334

Use normal event loop in GUI test program. Don't create an event loop manually, let the port-specific code do it and run it as usual in the GUI unit tests. This has several advantages: - No need to manage the event loop manually in the test. - No need for Mac-specific code in the test itself. - Code being tested runs in the same context as in a normal GUI program, which is especially important for event-loop related tests under wxOSX as the main event loop is special there.

2013-07-03 02:25 VZ, revision 74333

Add wxEventLoopBase::DoRun(). Call it from public Run() after setting the loop as active and resetting m_shouldExit flag. No real changes, just cut down on the code duplication among the ports and make it easier to implement the upcoming changes. see #10258.

2013-07-03 02:24 VZ, revision 74332

Move wxEventLoopManual::m_shouldExit to wxEventLoopBase. No real changes, just make this flag available to the other event loop implementations as they will need it soon. See #10258.

2013-07-03 02:24 VZ, revision 74331

Add "OSX" prefix to wxCFEventLoop::DoRun() and DoStop() methods. Just rename these methods to avoid clashes with DoRun() that will be added to the base class soon, no real changes. This is done in preparation for improving nested event loops support, see #10258.

2013-07-03 02:24 VZ, revision 74330

Add wxTimer::StartOnce(). This is a simple wrapper for wxTimer::Start(timeout, wxTIMER_ONE_SHOT) but is often more readable and is definitely better than Start(timeout, true) which many people still use in spite of wxTIMER_ONE_SHOT existence.

2013-07-02 22:24 VZ, revision 74329

Better fix for duplicate wxContextMenuEvent generation under MSW. Fix the bug with multiple wxContextMenuEvent being generated for a single WM_CONTEXTMENU without breaking context menus for wxTextCtrl (and all the other native controls). Do this by ensuring that WM_CONTEXTMENU is still passed to DefWindowProc() if we don't process it instead of just being eaten completely in any case. Also add a unit test checking for this bug to ensure it stays fixed. See #13683.

2013-07-02 22:23 VZ, revision 74328

Avoid forcing wxYield() after wxUIActionSimulator::MouseMove() in wxGTK. Yield (for input events only) inside this function itself instead of forcing all the code using this function to call wxYield() after it as otherwise the mouse position change is not taken into account by the subsequent simulated events.

2013-07-02 19:15 PC, revision 74327

chain up to parent in dispose handler

2013-07-02 19:09 PC, revision 74326

use correct signature for class init function

2013-07-02 18:56 PC, revision 74325

use existing helper to remove inconvenient additional reference added by gtk_tree_model_get()

2013-07-02 18:35 PC, revision 74324

remove unused function GTKSetItem()

2013-07-02 18:29 PC, revision 74323

preserve checkbox status in SetString()

2013-07-01 16:58 VZ, revision 74322

Don't append extension if it contains wildcards in wxGTK wxFileDialog. Restore the test for wildcards erroneously removed in r74307. Closes #15285.

2013-07-01 16:48 VZ, revision 74321

Optimize wxImage::Scale() by pre-calculating the values used. Precompute the values used by various resampling algorithms once instead of doing it for each pixel. This dramatically speeds them up: more than 3 times faster in wxImage benchmark with the small images and up to 5 times faster with larger images. Closes #15281.

2013-07-01 16:48 VZ, revision 74320

Add wxImage::Scale() benchmarks. Measure the time taken to rescale the image to a bigger or smaller size using normal or high quality. See #15281.

2013-07-01 16:47 VZ, revision 74319

Add benchmarks for wxImage methods. Build a GUI version of the benchmark program too and use it to benchmark wxImage loading methods for now (more will be added later).

2013-07-01 16:47 VZ, revision 74318

Add a unit test for wxImage::Scale() method. Check that resizing the test horse image produces the same results in the future as it does now, by saving the current results in files and verifying that images resized directly and loaded from these files are the same. See #15281.

2013-07-01 07:10 PC, revision 74317

Use gtk_list_store_insert_with_values() to set entry at same time item is inserted. This should ensure that the entry is always valid, removing the need for r74315. Also simplify DoInsertItems() by using DoInsertItemsInLoop().

2013-07-01 02:49 VZ, revision 74316

Fix missing documentation for several GDI functions. The documentation for wxGetClientDisplayRect(), wxGetDisplayPPI(), wxGetDisplaySize() and wxGetDisplaySizeMM() didn't appear in the output because they were documented as "overloads" of the corresponding functions without "Get" prefix inside an @addtogroup Doxygen macro and apparently this is not supported. Simply document them separately to fix this.

2013-06-29 19:16 PC, revision 74315

fix assertion failure when string transform is requested before entry is set

2013-06-29 14:53 VZ, revision 74314

Forward events to active child in wxMDIParentFrameBase, not only wxMSW. Menu, toolbar and update UI events should be forwarded to the active child under all platforms in MDI applications and not only MSW, so move TryBefore() overload from wxMSW wxMDIParentFrame to wxMDIParentFrameBase. This should make things more consistent in general and notably fixes the lack of toolbar events in wxDocChildFrame since the changes of r73928.

2013-06-29 14:53 VZ, revision 74313

Fix VC6 compilation of wxRichTextTable code. In addition to breaking VC6 build, the code also rather strangely declared "row" inside a for loop first and then declared it in the function scope. Leave just the second declaration.

2013-06-29 14:52 VZ, revision 74312

Add support for horizontal mouse wheel scrolling in wxSTC. Handle horizontal mouse wheel scrolling events in a similar (but simpler, as they always scroll and never change the font size) way to the vertical ones in wxStyledTextCtrl. Closes #15266.

2013-06-29 14:52 VZ, revision 74311

Use more readable wxListCtrl::AppendColumn() in the samples. Call this function instead of InsertColumn() with incrementing indices. See #15265.

2013-06-29 14:52 VZ, revision 74310

Use wxListColumnFormat for wxListCtrl::AppendColumn() format argument. This is safer than using just an untyped int. Closes #15265.

2013-06-29 14:51 VZ, revision 74309

Fix wxIMAGE_QUALITY_HIGH definition. Embarrassingly, wxIMAGE_QUALITY_HIGH was never used as it had the same value as wxIMAGE_QUALITY_BILINEAR due to the changes to these constants in r67203. After fixing its value in the enum, also change the switch on this enum elements to avoid g++ warnings about unhandled enum values. See #12845, #15281.

2013-06-29 14:51 VZ, revision 74308

Fix dnd events in generic wxDataViewCtrl when moving out of the window. The wxEVT_DATAVIEW_ITEM_BEGIN_DRAG event wasn't triggered if the mouse moved below the last item or beyond the last column of a control or left the window completely. Fix this by checking for the beginning of the drag before checking for the mouse being out of items area and also force the drag to start if the mouse is leaving the window as we would never do it otherwise. Closes #15258.

2013-06-29 14:51 VZ, revision 74307

Don't append just a dot in wxGTK wxFileDialog if no default extension. We always appended the default extension (for the currently selected pattern) to the file name but this was the wrong thing to do if there was no extension at all as this resulted in appending just a dot to the filename. So only do it if there is an extension to append. Closes #15285.

2013-06-29 14:50 VZ, revision 74306

Allow resetting background colour of wxHtmlContainerCell. Don't use m_UseBkColour flag which remained always set once SetBackgroundColour() had been called, but just rely on m_BkColour itself being valid to determine whether we should use it. This allows to reset the background colour after setting it. Closes #15287.

2013-06-29 13:00 VZ, revision 74305

Italian translations update from Roberto Boriotti.

2013-06-29 12:06 JS, revision 74304

Applied patch #15286: documentation and col/rowspan demo by dghart

2013-06-28 15:24 SC, revision 74303

support getting device resolution on all osx ports

2013-06-28 12:41 SC, revision 74302

new method for contentScaleFactor on main screen

2013-06-27 14:48 SC, revision 74301

new method for contentScaleFactor on main screen

2013-06-27 09:24 SC, revision 74300

native bitmap scaling codes

2013-06-27 07:54 SC, revision 74299

use correct scale when drawing

2013-06-25 19:37 SC, revision 74298

adding impls to wxBitmap on msw as this doesn't inherit from base - Thanks Vaclav!

2013-06-25 19:15 SC, revision 74297

adding default for Create with dc

2013-06-25 18:28 SC, revision 74296

incomplete paste error

2013-06-25 18:25 SC, revision 74295

adding default impl for CreateScaled

2013-06-25 17:41 SC, revision 74294

virtual method hiding in GTK, so add direct implementation

2013-06-25 17:38 JS, revision 74293

Applied rowspan patch #15276 (dghart)

2013-06-25 17:30 JS, revision 74292

Applied colspan corrections, #15274 and #15275 (dghart)

2013-06-25 17:11 SC, revision 74291

support retina display

2013-06-25 16:57 SC, revision 74290

using dc Create for bitmap, for retina support

2013-06-25 16:55 JS, revision 74289

Allow for older GTK+ versions

2013-06-25 16:19 SC, revision 74288

support for scaled bitmaps in wxMemoryDC

2013-06-25 16:02 SC, revision 74287

native scaling support for bitmap

2013-06-25 15:54 SC, revision 74286

fixing naming to GetScaleFactor, adding default Create with a dc parameter

2013-06-25 15:21 SC, revision 74285

default implementation for scaled bitmaps properties

2013-06-25 14:43 SC, revision 74284

supporting native content scaling on OSX

2013-06-25 14:26 SC, revision 74283

formatting

2013-06-25 14:24 SC, revision 74282

adding ContentScaleFactor support to dc - defaulting to 1.0

2013-06-25 09:23 JS, revision 74281

Removed 3D style for splitter on Mac since it looks bad

2013-06-25 09:23 JS, revision 74280

Removed 3D style for splitter on Mac since it looks bad

2013-06-23 18:39 VZ, revision 74279

Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook. This fixes the wrong handling of the selection in wxSimplebook when the currently selected page was deleted. Also extend the unit tests to check for this bug. Closes #15188.

2013-06-23 18:39 VZ, revision 74278

No real changes, just simplify wxBookCtrlBase unit test a little. Add Realize() virtual function that can be overridden in ToolbookTestCase instead of using explicit wxDynamicCasts.

2013-06-23 18:38 VZ, revision 74277

Add a minimal unit test for wxSimplebook. This is just a test running the common wxBookCtrlBase tests for wxSimplebook. See #15188.

2013-06-23 15:08 VZ, revision 74276

Also propagate wxEVT_UPDATE_UI to the child MDI frame. It seems to make sense to handle wxEVT_UPDATE_UI in the same way as wxEVT_MENU as they are often used together. This allows to handle e.g. toolbar buttons entirely in the child MDI frame, without any involvement from the parent. See #14314.

2013-06-23 15:08 VZ, revision 74275

Use child MDI frame menu items in preference to the parent frame ones. Look for the item with the given ID in the child frame menu bar first, before looking in the parent frame menu bar. This ensures that if an item is disabled by the parent frame but then reenabled by the child one, it still generates commands as expected instead of being completely ignored. See #14314.

2013-06-23 15:07 VZ, revision 74274

Undo "Forward events to active child at MSW, not wx, level in wxMDIParentFrame." Unfortunately, forwarding MSW messages only takes care of the menu events but not the toolbar ones -- which should be handled in the same way but were not. So restore the old behaviour, the problem with menu items disabled in the parent frame but enabled in the child one will be fixed differently. This reverts r73927. See #14314.

2013-06-23 13:10 VZ, revision 74273

Add --without-libjbig and --without-liblzma configure switches. They can be used to disable the use of the corresponding libraries by the built-in libtiff.

2013-06-23 02:53 VZ, revision 74272

Add WX_ATTRIBUTE_UNUSED and use it for typedefs to avoid g++ 4.8 warnings. g++ 4.8 warns about unused typedef's in local scope resulting in hundreds of warnings when building wx, suppress them by using WX_ATTRIBUTE_UNUSED for these typedefs. Closes #15137.

2013-06-21 11:21 VZ, revision 74271

Fix Unix build with libSDL 2 in debug mode. SDL_AudioDriverName() was replaced with SDL_GetCurrentAudioDriver() in SDL v2. Closes #15271.

2013-06-20 16:40 SJL, revision 74270

Not not pass debug messages on from wxLogWindow.

2013-06-20 09:22 SC, revision 74269

partial revert, as we still need Xcode 3.1 for 10.5, Xcode 3.2 is 10.6+ only

2013-06-20 09:13 SC, revision 74268

update Xcode format

2013-06-20 09:09 SC, revision 74267

common schemes, Xcode 4/5 updates

2013-06-20 09:08 SC, revision 74266

common schemes

2013-06-20 08:54 SC, revision 74265

updated project files

2013-06-20 03:02 RD, revision 74260

GetMagnificationFactor --> GetContentScaleFactor

2013-06-20 03:02 RD, revision 74259

Add flags for SendSizeEvent

2013-06-20 03:01 RD, revision 74258

Document wxWindow::GetMagnificationFactor

2013-06-19 22:30 SC, revision 74257

fixing iPhone build

2013-06-19 22:29 SC, revision 74256

using common GetContentScaleFactor throughout part 2/2

2013-06-19 22:28 SC, revision 74255

using common GetContentScaleFactor throughout part 1

2013-06-19 18:35 SC, revision 74254

update project files

2013-06-19 18:02 VS, revision 74253

Fix GetMsgCatalogSubdirs() to do as documentation says. Due to a typo, the prefix/lang path wasn't considered when opening a domain catalog.

2013-06-19 18:02 VS, revision 74252

Be case insensitive when looking for language catalogs on Windows.

2013-06-18 21:54 SJL, revision 74251

Ensure that the default wxWebView backends are registered. Fixes #15261

2013-06-17 22:21 JS, revision 74250

Fixed loading of whole file:... specification of a page

2013-06-17 22:20 JS, revision 74249

Fixed loading of whole file:... specification of a page

2013-06-17 21:43 SC, revision 74248

fixing sdk compilo

2013-06-17 19:41 SC, revision 74247

adding magnification API into the wxWindow classes for best retina support

2013-06-16 13:51 VS, revision 74246

Remove superfluous call in wxTranslations::LoadCatalog(). This call to GetAvailableTranslations() did nothing, it's value was ignored, and it was done before m_loader was checked for != NULL. Probably some leftover debugging code.

2013-06-16 12:50 VZ, revision 74245

Improve wxGrid cell wrapping in wxGridCellAutoWrapStringRenderer. Wrap the words too long to be shown on one line on several lines. Also take the line breaks and TABs into account. Closes #15249.

2013-06-15 23:49 VZ, revision 74244

Document that wxDC::FloodFill() is not implemented under wxOSX. wxOSX uses wxGCDC for its wxDC functionality and wxGCDC doesn't implement this operation, even not using the horribly inefficient wxGTK fallback. See #15151.

2013-06-15 23:49 VZ, revision 74243

Restore case-insensitivity for file name matching under Windows. This was broken by the changes of r73790, see #3432. Fix this by converting both the file name and the wildcard mask to the upper case before checking whether the former matches the latter. Closes #15243.

2013-06-15 23:49 VZ, revision 74242

Fix formatting of the local time zone when DST is in effect. We must add DST offset manually as wxGetTimeZone() doesn't take DST into account. This fixes the handling of "%z" in format strings. Closes #15250.

2013-06-15 18:29 SC, revision 74241

adding new constructor for best dc-compatibility of bitmaps

2013-06-15 16:45 SC, revision 74240

use common bottleneck

2013-06-14 15:10 VZ, revision 74239

Don't crash in wxWebView under OS X if custom URI is invalid. Don't assume that wxWebViewHandler::GetFile() always returns a valid pointer, it may fail and return NULL, e.g. for a non-existent VFS location. Closes #15254.

2013-06-14 15:06 VZ, revision 74238

Handle NULL flags argument in wxOSX wxNotebook::HitTest(). Don't crash if flags are not specified, this parameter is optional. Closes #15256.

2013-06-13 16:12 SC, revision 74237

fixing correct delete key

2013-06-13 16:09 SC, revision 74236

fixes to pass tests

2013-06-13 16:06 SC, revision 74235

reusing existing API

2013-06-13 16:04 SC, revision 74234

reusing existing API

2013-06-13 15:58 VZ, revision 74233

Remove the unused code instead of commenting it out. Just clean up the fixes of r74197.

2013-06-13 15:57 VZ, revision 74232

Check wxListCtrl::GetItemRect() origin in the unit tests. Verify that the top item is _not_ at (0, 0) when the header is present in the control, as the control client coordinates should not take the header into account. This test passes when using wxGenericListCtrl since r74197, add it to ensure that it doesn't get broken again later.

2013-06-13 15:57 VZ, revision 74231

Use two step creation of wxListHeaderWindow to avoid reentrancy under OSX. This improves the solution of the problem already solved in r74197 by separating setting of m_headerWin variable from the window creation instead of using an explicit recursion check.

2013-06-13 09:26 RD, revision 74228

Add some missing wxGraphicsContext methods

2013-06-13 09:26 RD, revision 74227

Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target, and which can be used for measuring text, etc.

2013-06-13 02:42 SC, revision 74198

make methods available to all ports

2013-06-13 02:38 SC, revision 74197

fixing reentrancy which happened in tests, bringing client coordinates origins in synch

2013-06-13 02:19 SC, revision 74196

slight adaption, shorter max wait

2013-06-13 02:15 SC, revision 74195

wait for the frame window to be really done on OSX before starting

2013-06-13 02:11 SC, revision 74194

using Destroy, as otherwise the remnants get into the way for some other tests

2013-06-13 02:08 SC, revision 74193

adding exceptions for OSX

2013-06-13 01:48 SC, revision 74192

adding missing include

2013-06-13 00:04 SC, revision 74191

supporting max len event

2013-06-12 23:30 SC, revision 74190

osx needs a refocus

2013-06-12 23:23 SC, revision 74189

quite ugly workaround, but even the engineers at WWDC couldn't give me a better alternative, fixes #14968

2013-06-12 23:18 SC, revision 74188

guarding open combo box against AppDefined NSEvents issued by wxEventLoop::WakeUp, fixes 15115

2013-06-12 22:45 SC, revision 74187

guarding open combo box against AppDefined NSEvents issued by wxEventLoop::WakeUp, fixes #15115

2013-06-12 22:44 SC, revision 74186

guarding open combo box against AppDefined NSEvents issued by wxEventLoop::WakeUp, fixes #15115

2013-06-12 22:41 SC, revision 74185

exposing useful typedefs

2013-06-12 20:52 SC, revision 74184

adding check for invalid date

2013-06-12 19:55 SC, revision 74183

as the native control doesn't check the min max values, we do it ourselves

2013-06-12 15:55 VZ, revision 74182

French translations update from Xaviou. Closes #15247.

2013-06-12 15:54 VZ, revision 74181

Don't translate closing single quote in the font face name. This is completely unnecessary and just creates extra work for the translators. See #15247.

2013-06-12 11:52 JS, revision 74180

Backported fix to not give focus to the search control buttons

2013-06-12 11:51 JS, revision 74179

The style listbox now takes into account the style background colour if specified.

2013-06-12 11:51 JS, revision 74178

The style listbox now takes into account the style background colour if specified.

2013-06-12 08:51 SC, revision 74177

adding hook, but unfortunately no solution yet for wxComboBox::SetEditable

2013-06-12 07:46 SC, revision 74176

now working on cocoa as well

2013-06-12 07:45 SC, revision 74175

cocoa needs a special implementation for read-only combo box

2013-06-12 07:25 SC, revision 74174

Clear is also expected to clear the text

2013-06-12 01:14 SC, revision 74173

missing commit

2013-06-12 00:33 SC, revision 74172

disable tests depending on a focusable slider control

2013-06-12 00:27 SC, revision 74171

draghino explicitly

2013-06-12 00:26 SC, revision 74170

adding default impl

2013-06-12 00:25 SC, revision 74169

add more high-level event concepts, fixing native button number

2013-06-12 00:21 SC, revision 74168

moving click point sightly more inside, #ifndef tests failing with the generic implementation

2013-06-12 00:19 SC, revision 74167

fixing typo

2013-06-12 00:18 SC, revision 74166

fixing include styles

2013-06-11 19:56 SC, revision 74163

notify the event loop that synthesized events are on the queue, wait for them to be available, also on OSX a double click has to be synthesized slightly differently

2013-06-11 19:54 SC, revision 74162

better support for ui action simulation

2013-06-11 18:46 VS, revision 74161

Use correct extensions in wxDynamicLibrary::CanonicalizeName() on OS X. Contrary to the documentation, this function incorrectly appended the .bundle extension on OS X for libraries as well as modules. Fixed to use .dylib for libraries (wxDL_LIBRARY) and continue to use .bundle for loadable modules (wxDL_MODULE). Change GetDllExt() to take optional wxDynamicLibearyCategory argument.

2013-06-11 16:01 JS, revision 74160

Untranslated strings now won't be overwritten by regenerating the dialog.

2013-06-11 14:25 VZ, revision 74159

Fix wrong use of EVT_COMMAND in the example in wxThread documentation. As the event being defined is a wxThreadEvent, EVT_THREAD must be used. Also rename wxEVT_COMMAND_MYTHREAD_UPDATE to myEVT_THREAD_UPDATE to avoid using "wxEVT_" prefix reserved by wx itself.

2013-06-11 12:20 JS, revision 74158

Fixed a refresh bug due to the optimized refresh rect being calculated incorrectly.

2013-06-10 17:53 VZ, revision 74156

Add wxMouseEvent::GetColumnsPerAction(). This is similar to the existing GetLinesPerAction() but is for, surprise, columns. Also change the documentation to say that the value returned by both of these methods is 3 under "most platforms" as some wxOSX currently uses 1 and not 3. Closes #15239.

2013-06-10 17:53 VZ, revision 74155

Avoid problems when reparenting a TLW under a child in wxGTK. Don't use a TLW with gtk_fixed_put(). Closes #15237.

2013-06-10 17:52 VZ, revision 74154

Fix crash when undoing the deletion of a nested table column in wxRTC. Fix the object parent when applying the actions. Closes #15186.

2013-06-10 17:52 VZ, revision 74153

Link with libjbig when using built-in libtiff under Unix. If libjbig is available, the built-in libtiff build process picks it up and uses it, requiring all the code linking with libtiff to link with it too, so add it to the list of the libraries in this case. This is the same change as was already done for liblzma dependency in r74033, see #14963. Closes #15244.

2013-06-10 17:51 VZ, revision 74152

Updated all the message catalogs with the latest translations. No real changes, just the result of running "make -C locale allpo".

2013-06-10 17:51 VZ, revision 74151

Don't mark the strings "1", "2", ... "10" as translatable. They are the same in all the languages, don't create extra work for the translators.

2013-06-09 01:24 RD, revision 74130

More docs cleanup and fixes for richtextbuffer

2013-06-09 01:23 RD, revision 74129

Remove some wxT()'s in the docs

2013-06-09 01:23 RD, revision 74128

More richtext fixes for Phoenix

2013-06-08 15:31 TIK, revision 74127

C++11 requires a space between adjacent string literals. This change prevents recent GCC to emit a warning every time wx/defs.h is included.

2013-06-08 04:29 VZ, revision 74126

Exclude src/msw/version.rc from svn pre-commit hook checks. This file must be remain in CP1252 encoding and not UTF-8 because this is what Windows uses for showing the strings in it, so exclude it from this check.

2013-06-08 04:27 VZ, revision 74125

Undo MIME type change of r74120. Undo the temporary hack which was required to commit the non-UTF-8 file. In the future the commit hook will be updated to relax the check for this file so it won't be necessary any longer.

2013-06-08 04:23 VZ, revision 74124

Use library-specific description in their version resources for MSW DLLs. Reusing the same description for all files wasn't especially useful, make it more informative.

2013-06-08 04:23 VZ, revision 74123

Remove duplicate WXMAKINGDLL_RIBBON-related code. For some reason both the definition of and test for WXMAKINGDLL_RIBBON was duplicated.

2013-06-08 04:23 VZ, revision 74122

Simplify the version information resource definition a little. Put the correct data into FileVersion and InternalName fields and remove LegalTrademarks, PrivateBuild and SpecialBuild completely as they are optional and shouldn't be present if the corresponding flags are not set, see http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx

2013-06-08 04:23 VZ, revision 74121

Add back the copyright symbol to the version information resource. It has somehow disappeared in r62054 (see #10659).

2013-06-08 04:22 VZ, revision 74120

Set MIME type of Windows resource file to non-text. This is just a hack to allow this file to be in non-UTF-8 as the commit hook currently checks that UTF-8 is used for all text files.

2013-06-08 04:08 VZ, revision 74119

Update copyright year in the version information resource.

2013-06-04 18:18 SC, revision 74109

associate the outline view with the impl, fixes #13748

2013-06-04 09:22 SC, revision 74107

refactoring focus handling

2013-06-04 09:06 SC, revision 74106

exposing wxOSXGetViewFromResponder

2013-06-04 08:54 SC, revision 74105

adding a more extensive version to arrive at the impl when given a native control, taking into account eg the composited controls of a scrollview

2013-06-04 08:27 SC, revision 74102

adding comment

2013-06-03 19:54 SC, revision 74101

avoiding reentrancy problems and congestion

2013-06-03 19:49 SC, revision 74100

avoiding focus lost events when a different subview gets focused, see #14042

2013-06-03 16:57 SC, revision 74099

make sure we don't execute pending deletes either when in runModel, otherwise reentrancy problems occur

2013-06-03 15:21 SC, revision 74098

using ordinary Show for popup windows as on MSW which activates it as well, I'll rewire ShowWithoutActivating for the other use case, fixes #15008

2013-06-03 15:01 SC, revision 74097

refactoring SizeEvent sending

2013-06-03 14:58 SC, revision 74096

refactoring SizeEvent sending

2013-06-03 13:47 SC, revision 74095

forgot to commit ...

2013-06-03 12:37 SC, revision 74094

attempt to get the 'new focus' window parameter of a focus kill event set correctly

2013-06-03 11:40 SC, revision 74093

deal with Cocoa as we do with Carbon, see #15008

2013-06-03 10:34 SC, revision 74092

deal with Cocoa as we do with Carbon, see #15008

2013-06-03 10:32 SC, revision 74091

make sure mouse moved events are always delivered, see #15008

2013-06-03 10:30 SC, revision 74090

make sure button clicks etc. on a popup window don't lead to a dismissal because their GetWindow()/parent = popup check didn't work

2013-06-02 20:03 VZ, revision 74089

Turkish translations update from Kaya Zeren.

2013-06-02 17:02 SC, revision 74088

updated Xcode project files

2013-06-02 11:57 SC, revision 74087

don't take resize indicators into account if we are at 10.7 or higher, they don't exist anymore … see #15187

2013-06-02 11:33 SC, revision 74086

propagate scroll wheel events to parent, fixes #15187

2013-06-01 20:29 SC, revision 74076

fixes potential crash under gatekeeper

2013-06-01 20:28 SC, revision 74075

only set native window level, when not using a wrapped native window, see #14739

2013-06-01 19:06 PC, revision 74074

update position for widgets in native containers, fixes #15231

2013-06-01 01:21 VZ, revision 74073

Document that wxRadioBox::SetSelection() doesn't accept wxNOT_FOUND. A radio box always has selection and it can't be unset (at least not under all platforms), so document that the item passed to its SetSelection() must be valid, unlike with SetSelection() methods in some other classes. Closes #15233.

2013-06-01 01:21 VZ, revision 74072

Change wxMSW wxTreeCtrl::DoFreeze() to not hide the tree any more. Hiding the tree when it's frozen, as done in r72665, results in its own problems, e.g. loss of focus. So don't do this but resize the control to a very small size when freezing it and restore it to its old size afterwards. Closes #15166.

2013-06-01 01:21 VZ, revision 74071

Add wxFileDialog::GetCurrentlySelectedFilename(). Also send wxEVT_UPDATE_UI events for the extra controls in wxFileDialog. The combination of these changes allows extra controls to update their state depending on the current selection in the dialog. Show a simple example of doing it in the dialogs sample. Closes #15235.

2013-06-01 01:21 VZ, revision 74070

Don't create multiple parent-less top level frames in layout sample. This resulted in unexpected behaviour if the main frame was closed while the other ones were still shown as they remained shown and had to be hunted and closed one by one to make the application exit. Fix this simply by creating all the other frames as children of the main one. This also results in better UI when minimizing and restoring the main frame. Also get rid of unused position parameters in child frame constructors and get rid of the title parameter which is not really needed as it's always the same too. See #11923.

2013-06-01 01:21 VZ, revision 74069

Fix wxStyledTextCtrl::SetInsertionPointEnd(). This relied on SetInsertionPoint(-1) working like in wxTextCtrl but it didn't. Add an explicit check to it for consistency with the other classes and to make SetInsertionPointEnd() work. Closes #15234.

2013-06-01 01:21 VZ, revision 74068

Improve horizontal scrolling in wxRibbonControl. Scroll by entire "sections", i.e. panes of the ribbon, instead of scrolling by a fixed number of pixels as it's much more useful and user-friendly to uncover the next section entirely instead of asking the user to press on the arrow several times before being able to use it. Closes #15232.

2013-06-01 01:21 VZ, revision 74067

Use deferred window positioning in wxWindow::Layout() in wxMSW. Ensure that {Begin,End}RepositioningChildren() are called before/after changing the positions of multiple children, whether we're using sizers or constraints. This fixes display corruption which could happen under Windows 7 and a child resized first became bigger, pushing off the children resized later. Closes #15214.

2013-06-01 01:21 VZ, revision 74066

Add wxWindow::BeginRepositioningChildren() and EndRepositioningChildren(). This is just a refactoring of wxMSW code to make it possible to use deferred window positioning from other places in subsequent commits.

2013-06-01 01:20 VZ, revision 74065

Make wxSharedPtr::Release() really MT-safe. Using wxAtomicDec() is not enough, its result also must be checked as it will return 0 only in one of the threads if multiple threads call it in parallel, while the old test for m_count==0 could pass for more than one thread, resulting in deleting the same pointer more than once. Closes #15227.

2013-06-01 01:20 VZ, revision 74064

Fix for special characters in Doxygen comments. Escape "-" characters in the beginning of the paragraph as they are not handled properly by Doxygen otherwise. Escape the space after "i.e." to prevent the brief doc string from being terminated by it. Escape "--" which is translated to a dash by Doxygen otherwise. Closes #15228.

2013-06-01 01:20 VZ, revision 74063

Fix assert when adding columns to wxGrid using native header. Change the order of updating m_colWidths array and the native header control in wxGird::Redimension() to ensure that we can test whether the column is shown (which results in accessing m_colWidths element at this column index) from the wxGridHeaderCtrl::SetColumnCount(). Closes #15225.

2013-05-31 20:19 SC, revision 74062

using an empty default menu bar when no menubar is available, see #12402

2013-05-31 20:18 SC, revision 74061

make sure we have a default handling the quit command, see #12402

2013-05-31 19:33 SC, revision 74060

avoiding reshow of hidden windows when app is brought forward #12402

2013-05-26 17:32 JS, revision 74058

Applied patch for #15189 - avoid crash when deleting focused cell (dghart)

2013-05-26 15:14 VZ, revision 74057

Reset row and columns count in wxRichTextTable::ClearTable(). No real changes, just update the internal variables in ClearTable() to avoid inconsistent internal state, even if this doesn't seem to result in any problems for now. Closes #15190.

2013-05-26 15:14 VZ, revision 74056

Ensure that detached menus don't keep focus grab in wxGTK. A widget being hidden must remove its focus grab with GTK+, otherwise GTK+ would continue sending all input messages to it but fail to process them because the widget is not realized any more, resulting in a complete freeze of the entire program. Do it when detaching menus from menubar and menubar from the frame to fix just such a problem in case SetMenuBar() was called while the previous menubar was opened. Closes #15221.

2013-05-26 15:14 VZ, revision 74055

Fix printing multiple copies in wxMSW. If wxPrinterDC was created by the native "Print" dialog for a printer that supports printing multiple copies, we must not manually print multiple copies ourselves as this results in too many copies being printed. However we still need to loop explicitly for wxPrinterDC objects created manually or for the printers without support for multiple copies (supposing they still exist). Closes #10323.

2013-05-26 15:14 VZ, revision 74054

Use C locale representation for floating point numbers in wxAny. Always use the decimal point, regardless of the current locale. This completes the changes of r74019.

2013-05-26 13:55 VZ, revision 74053

Tamil translations update from DINAKAR T.D.

2013-05-24 19:05 SC, revision 74052

adding x server license terms for polygon methods

2013-05-24 19:04 SC, revision 74051

adding x server license terms for polygon methods

2013-05-24 19:01 SC, revision 74050

adding x server license terms for polygon methods

2013-05-24 18:54 SC, revision 74049

using scan-line polygon conversion for constructing wxregion

2013-05-24 18:05 RD, revision 74048

Add wxRTTI for the wxFileSystemWatcherEvent class

2013-05-24 16:38 SJL, revision 74047

Correctly link to wxWebViewNavigationError from wxWebViewEvent.

2013-05-24 16:04 SJL, revision 74046

Document the unused baseURL parameter in wxWebViewIE. See #15223.

2013-05-22 16:13 VZ, revision 74045

Add ctor and assign() taking an iterator range to wxVector<>. Do it for consistency with wxArray and std::vector<>, even if the current implementation is suboptimal. See #15216.

2013-05-22 16:13 VZ, revision 74044

Add ctor from two input iterators to wxArray in STL build too. This ctor already existed in non-STL build but was omitted from the STL version. Closes #15216.

2013-05-22 15:36 VZ, revision 74043

Fix regression in wxGTK wxFilePickerCtrl due to wxFileDialog changes. Revert the changes of r72979 and fix wxFileDialog::GetDirectory() return value bug (see #14786) differently to avoid breaking wxFilePickerCtrl which relies on getting wxEVT_BUTTON event when the associated dialog is dismissed. Closes #15218.

2013-05-22 15:36 VZ, revision 74042

Fix GTK+ errors during wxFilePickerCtrl destruction after recent changes. We do need to destroy the dialog (see #15156), but we must not destroy its GtkWidget as it is owned by GtkFileChooserButton itself, so amend the changes of r74030 to only destroy the C++ object, not GTK+ one.

2013-05-22 01:47 VZ, revision 74041

Use the best instead of current page size in OS X preferences dialog. The page, which is typically just a wxPanel, is usually not created with the correct size, so resize it to its best size before showing it in the preferences dialog. This makes OS X behaviour consistent with MSW and GTK and is generally more useful.

2013-05-22 01:17 VZ, revision 74040

Fit modeless preferences dialog to its contents too. When a preferences dialog is shown non-modally, it should still fit to the contents of its pages, so move the code added for the modal case in r73624 to the base wxGenericPreferencesEditorImplBase class.

2013-05-21 14:02 VZ, revision 74039

Turkish translations update from Kaya Zeren.

2013-05-20 17:26 VZ, revision 74038

Fix last count value after ReadAll() and WriteAll(). This corrects the bugs introduced when applying the patch adding these functions in r74034: we can't simply use m_lastcount directly in them because it's also modified by each call to Read() and Write(), so do use the temporary variable. See #12056.

2013-05-20 15:15 VZ, revision 74037

Add a public wxModalDialogHook class for intercepting modal dialogs. Extract wxModalDialogHook from wx/testing.h into its own wx/modalhook.h, extend it to allow to be notified not only about showing modal dialogs but also about dismissing them and document it and show its use in the dialogs sample. Also replace all the WX_TESTING_SHOW_MODAL_HOOK macros occurrences with WX_HOOK_MODAL_DIALOG.

2013-05-20 15:15 VZ, revision 74036

Fix return value of wxCountingOutputStream::LastWrite(). Don't reuse m_lastcount in wxCountingOutputStream to store the stream length, this doesn't make any sense and results in LastWrite() returning completely wrong results as it expects m_lastcount to be the number of bytes written by the last operation. Add m_lastPos member to store the stream length instead. Also correct wxCountingOutputStream documentation. Closes #15215.

2013-05-20 15:15 VZ, revision 74035

Make code reading BMP files more robust. Check that we did correctly read the requested amount of data instead of blindly assuming that the needed (from the point of view of BMP format specification) number of bytes are always available -- this doesn't work so well with corrupted or truncated files. Closes #12056.

2013-05-20 15:15 VZ, revision 74034

Add wxInputStream::ReadAll() and wxOutputStream::WriteAll(). Unlike Read() and Write(), these functions always transfer exactly the specified number of bytes or fail. See #12056.

2013-05-19 19:26 VZ, revision 74033

Link with liblzma when using built-in libtiff if it's available. New version of libtiff includes code using liblzma if it's available, so we need to link with it in this case. Closes #14963.

2013-05-19 14:47 VZ, revision 74032

Propagate wxEVT_COMMAND_TEXT_UPDATED renaming to the real stc.cpp. wxEVT_COMMAND_TEXT_UPDATED was renamed to wxEVT_TEXT in the generated stc.cpp but not in stc.cpp.in it was generated from. Do it there too to prevent the correct version in stc.cpp from being overwritten during the next regeneration. See #10661.

2013-05-19 14:38 VZ, revision 74031

Trigger wxLog auto-creation when getting old logger in wxLogChain ctor. This ensures that a program that uses wxLogChain or one of the classes deriving from it, such as wxLogWindow, can do it directly without worrying about the standard logging being completely suppressed if the default log target hadn't been instantiated yet.

2013-05-19 14:38 VZ, revision 74030

Delete the associated dialog in wxGTK wx{File,Dir}Button. The code seemed to rely on Destroy() being called for deleting the dialog, but it's actually not used for child windows, so do it in dtor instead. Closes #15156.

2013-05-19 14:38 VZ, revision 74029

Add conversions to/from long long to wxUniChar. Allow conversions to/from long long and unsigned long long values in wxUniChar for consistency with the other integral types. Also make the code shorter by using helper wxDO_FOR_INT_TYPES() and wxDO_FOR_CHAR_INT_TYPES() macros to avoid duplicating the same code for all of the integral types and having to handle wchar_t (and wxLongLong_t now) specially because sometimes we may need to overload on it and sometimes not. Finally, add more tests to check that all the wxUniChar methods compile and work with all the different types. Closes #15206.

2013-05-19 14:38 VZ, revision 74028

Disable menu event test case in wxGTK buildbot slaves. This test sporadically fails for unknown reason and I don't know what to do about it, so disable it for now to let the test suite pass consistently and be notifed about any new failures.

2013-05-18 16:07 SJL, revision 74020

Use wxCOMPtr throughout the wxWebViewIE Find code. As well as making the code a bit neater this seems to fix some memory issues. See #15207.

2013-05-17 22:00 VZ, revision 74019

Test using wxString::ToCDouble() in wxAny. Apparently the heap corruption problems in wxOSX/PPC build are due to using wxString::ToDouble() and not anything done specifically in wxAny at all.

2013-05-17 13:53 VZ, revision 74017

Try using wxString::ToCDouble() instead of ToDouble() in wxAny case. Apparently enabling the call to ToDouble() in the test is enough to corrupt the heap in wxOSX PPC build. No idea how can this be possible but try to check if using ToCDouble() helps...

2013-05-17 13:53 VZ, revision 74016

Make wxPreferencesEditor dtor virtual. Mainly just to suppress g++ warnings about a class with virtual functions but non-virtual dtor, this class isn't really supposed to be used polymorphically.

2013-05-16 20:00 RD, revision 74014

Add richtext event types.

2013-05-16 20:00 RD, revision 74013

More richtext fixes and cleanup for Phoenix

2013-05-16 19:57 RD, revision 74012

Add docs for SetMin and SetMax

2013-05-16 16:43 VZ, revision 74011

Initialize wxXmlResourceHandler members in its ctor. Not sure if this results in any real problems but at the very least memory checking tools give errors about reading uninitialized memory in wxXmlResourceHandlerImpl::CreateResource() if we leave them uninitialized, so do initialize all the pointers.

2013-05-16 16:43 VZ, revision 74010

Allow wxPreferencesEditor::Dismiss() to work when using modal dialogs too. The modal dialog case is not really different, the dialog may still need to be dismissed if the associated object doesn't exist any longer.

2013-05-16 16:43 VZ, revision 74009

Add wxPreferencesEditor::ShownModally(). While this is not necessary to use wxPreferencesEditor in normal scenario, it can be useful if the program needs to handle modal dialogs in some special way.

2013-05-16 16:43 VZ, revision 74008

Make wxPreferencesEditor::Show() virtual. This allows derived classes to override it to do something before/after showing the dialog, which can be useful on the platforms where modal dialogs are used for wxPreferencesEditor implementation.

2013-05-16 16:42 VZ, revision 74007

Use "<Application> Preferences" as generic wxPreferencesEditor dialog title. This is more appropriate than just "Preferences" under MSW and GTK which use the generic wxPreferencesEditor, OS X has its own native version which continues to correctly use "Preferences" for the title.

2013-05-16 16:42 VZ, revision 74006

Allow to specify the title used by wxPreferencesEditor window. Customize the title is useful for "Settings"-style windows which are used for editing the properties of the given object, that should be identified in the window title, as opposed to the global program preferences.

2013-05-16 16:42 VZ, revision 74005

Open generic wxPreferencesEditor at last shown page. This is very convenient under systems using a modal dialog for the preferences editor implementation (such as MSW), as it allows to do several changes in the same page without having to select it manually every time.

2013-05-16 16:42 VZ, revision 74004

Rename CreateWindow() to CreateDialog() in generic wxPreferencesEditor code. No real changes, just rename a method to avoid confusion with wxPreferencesPage::CreateWindow(). Also return the concrete type of the dialog, not a base wxDialog, as it will be useful for future changes.

2013-05-16 16:33 VZ, revision 74003

Add wxEVT_DIRCTRL_FILEACTIVATED wxDirCtrl event. Allow processing double clicks on the files in the directory control. Closes #15208.

2013-05-16 16:33 VZ, revision 74002

Rename wxEVT_DIRCTRL_CHANGED to wxEVT_DIRCTRL_SELECTIONCHANGED. This is more consistent with the existing wxEVT_FILECTRL_SELECTIONCHANGED. Closes #15209.

2013-05-16 16:32 VZ, revision 74001

Allow associating a validator with wxGridCellTextEditor. Add wxGridCellTextEditor::SetValidator() for finer control over text input in wxGrid. Closes #15176.

2013-05-16 16:32 VZ, revision 74000

Re-enable yet another hopefully harmless test in wxAny test case.

2013-05-16 16:15 VS, revision 73999

Call wxThread::Create() from Run() automatically. In the common case, when Run() is called immediately after Create() and default stack size is used, it's unnecessarily verbose. Just create the thread in Run() if it wasn't done explicitly yet.

2013-05-16 16:15 VS, revision 73998

Move POSIX implementation of wxThread::Create() to wxThreadInternal. No real changes, just refactoring to follow the same pattern as other implementations use.

2013-05-16 16:15 VS, revision 73997

Lock m_critsect in POSIX wxThread::Create(). This is the documented behavior: all methods accessing m_internal should lock it.

2013-05-16 13:40 VZ, revision 73996

Re-enable wxAny<double>::GetAs<wxString>() test.

2013-05-16 08:18 JJ, revision 73995

m_useExtendedPrecision is only used if the macro wxUSE_APPLE_IEEE is defined

2013-05-16 03:45 VZ, revision 73994

Enable wxAny<double>::GetAs<unsigned long>() test.

2013-05-15 23:45 VZ, revision 73993

Re-enable a single m_anyDoubleDouble1 test in wxAny test case.

2013-05-15 23:45 VZ, revision 73992

Fix wxXmlNode self-assignment. Don't lose the node contents if it's assigned to itself.

2013-05-15 22:02 VZ, revision 73991

Reenable m_anyBool1 tests in wxAny test case too.

2013-05-15 22:01 VZ, revision 73990

Fix memory leak in wxXmlNode::operator=(). We must delete all children and attributes in the node being overwritten and not just the first one of each. Add a unit test exercising this code to be able to check that valgrind doesn't report memory leak any more after the fix.

2013-05-15 15:05 VZ, revision 73989

Re-enable conversions of wxAny to boolean tests.

2013-05-15 15:05 VZ, revision 73988

Restore ability to parse hours only with wxDateTime::ParseTime(). This was accidentally removed in r51059, but worked in 2.8 and so should continue to work. Also add a unit test to ensure that this doesn't get broken again in the future. Closes #15204.

2013-05-15 15:05 VZ, revision 73987

Fix crash in wxGTK wxPopupWindow when creating it without parent. Popup windows don't necessarily have a parent, so don't crash if parent pointer is NULL in wxPopupWindow::Create(). Closes #15173.

2013-05-15 15:05 VZ, revision 73986

Allow shrinking the array with wxArray::resize(). This method did nothing if its argument was less than the current array size, as it was just a synonym for SetSize() which was documented to behave like this, but this was inconsistent with std::vector and wxVector resize() which does shrink the array, so change wxArray version to shrink it too. Closes #15195.

2013-05-15 15:05 VZ, revision 73985

Fix typo in a closing "#endif" comment in the test. Closes #15203.

2013-05-14 18:58 VS, revision 73984

Move wxTransform2D methods' bodies to geometry.cpp. They are all virtual and so cannot be inlined anyway and having them in the header like this confuses the g++ linker into always pulling some of the methods in merely because geometry.h was included.

2013-05-14 13:07 VZ, revision 73982

Reenable some wxAny tests back.

2013-05-14 13:07 VZ, revision 73981

Add more echo trace statements to runtests.bat script. Try to make the output a bit more organized.

2013-05-13 19:09 VZ, revision 73976

Disable more wxAny tests again.

2013-05-13 15:25 VZ, revision 73975

Try to find another wxAny test that results in heap corruption. Conversion to float is not the only problem...

2013-05-13 13:05 VZ, revision 73974

Disable more tests in wxOSX/PPC build. Also added a #warning to make it more apparent what we're doing here.