Commit Graph

62417 Commits

Author SHA1 Message Date
Vadim Zeitlin
41045df7ea Remove extraneous semicolons after wxDECL_FOR_STRICT_MINGW32()
This generated -Wpedantic warning about the duplicate semicolons when
compiling applications using wxWidgets in pedantic mode with gcc.
2017-02-20 15:55:47 +01:00
Vadim Zeitlin
2b7248c444 Don't use confusing variable name in wxMSW wxSpinCtrl code
Another small refactoring after 05b980aba1,
avoid using "effectiveBtnWidth" variable as the effective button width is
actually always its real width, it's just the text effective width that is
smaller due to the overlap.

See #12297.
2017-02-20 15:36:22 +01:00
Vadim Zeitlin
618c752541 Small cleanup in wxMSW wxSpinCtrl code
Remove an extra pair of braces accidentally introduced when applying
05b980aba1

See #12297.
2017-02-20 15:20:16 +01:00
Martin Srebotnjak
617a14873c Complete Slovenian translations 2017-02-19 19:03:52 +01:00
Vadim Zeitlin
0d73253111 Support proportions for wxFlexGridSizer growables in XRC schema
The value of "growablerows" and "growablecols" elements is not just a
list of numbers, but a list of numbers with optional weights, specified
after a colon.

Update the XRC schema to account for the weights too.

Closes #17802.
2017-02-19 15:47:01 +01:00
Artur Wieczorek
37b7d0e594 Fix calculating bounding box in wxPostScriptDC::DrawText and DrawRotatedText
Calculate bounding box bearing in mind that drawn text can be a multi-line text.

Closes #17801.
2017-02-19 10:18:52 +01:00
New Pagodi
7a88b05882 Fill gaps in documentation of wxSTC events
Completed "Todo" items for wxStyledTextEvent, added a section describing what each of the event types do, documented the event methods.

Closes #17800.
2017-02-19 08:28:07 +01:00
New Pagodi
9f8ae27d0a Add missing comments
In e68cafaf94 some comments were added to stc.h but not to stc.h.in so at next run of gen_iface.py those changes would be undone. We need to synchronize stc.h.in with stc.h.

See #17688.
2017-02-19 08:28:06 +01:00
Paul Cornett
b6fea21140 Use spaces to avoid pasting arguments together
Don't rely on variables starting with a space, it's too fragile
2017-02-18 16:22:24 -08:00
Paul Cornett
38a7c40d83 Remove unused includes 2017-02-18 11:42:16 -08:00
Paul Cornett
95ae67d1f4 Avoid using negative width 2017-02-18 11:38:56 -08:00
Paul Cornett
dae545ed29 Make quantization implementation private to the translation unit
And don't compile the part we don't use
2017-02-18 11:36:42 -08:00
Paul Cornett
ff98fddaf8 Update tracker URL 2017-02-18 11:31:37 -08:00
Paul Cornett
e8ab498a99 Avoid shadowed variable warning 2017-02-18 11:30:40 -08:00
Paul Cornett
6169ced23f Remove returns of wxEmptyString 2017-02-18 11:26:40 -08:00
Paul Cornett
32535f5bf6 Remove redundant return of wxEmptyString 2017-02-18 11:16:38 -08:00
Paul Cornett
99858d4628 Use wxString::empty() instead of comparison to wxEmptyString 2017-02-18 11:11:21 -08:00
Paul Cornett
9d22fbf57e Use wxString::clear() instead of assignment to wxEmptyString 2017-02-18 11:04:30 -08:00
Paul Cornett
96826d80d2 Use wxString::clear() instead of assignment to wxEmptyString 2017-02-18 11:00:26 -08:00
Paul Cornett
4821bb4072 Use ctor initializer for non-trivial data members 2017-02-18 10:48:27 -08:00
Paul Cornett
d886f8cce9 Remove initializations of wxString with wxEmptyString
An empty string is the default
2017-02-18 10:32:56 -08:00
Paul Cornett
5e7db7c0f1 Fix wxLaunchDefault{Application,Browser}() for arguments containing spaces
See #16581
2017-02-18 10:17:42 -08:00
Paul Cornett
c64a4c3224 make wxExecute() argv parameter fully const-qualified 2017-02-18 10:14:25 -08:00
stahta01
c9fad20b7b Fix checks for wxUSE_WEBVIEW in MSW config checks
This fixes -Wundef warnings about "wxUSE_WEB" being not defined when OLE
support is disabled.
2017-02-17 22:02:17 +01:00
New Pagodi
bac4d24bf9 Don't handle deprecated event in stc sample
EVT_STC_KEY is not generated and there is no reason to handle it.

See #17688.
2017-02-16 18:19:16 +01:00
New Pagodi
e68cafaf94 Remove references to never generated wxSTC events
EVT_STC_KEY and EVT_STC_URIDROPPED events are never generated so there is no need to reference them in the code and documentation. For backwards compatibility reasons their declarations are not entirely removed but marked as deprecated.

Closes #17688.
2017-02-16 18:18:13 +01:00
Václav Slavík
889b406b0e Fix sizing in wxMarkupParserRenderItemOutput::OnText
Pass the text without mnemonics to GetTextExtent().
2017-02-14 12:12:35 +01:00
New Pagodi
8af97d8db3 Add reference to the new header file in the MSVS project files
Since 572db9c0a1, files.bkl instructs to create in the pre-MSVS2010 wx_*_base.vcproj files references to the winver.h header file so we need to regenerate these project files in the repository.
MSVS2010+ project files also have to be updated to reflect this change.
2017-02-12 19:56:21 +01:00
New Pagodi
68888ca0a2 Upgrade Scintilla component to 3.7.2
Closes #17705.

Closes https://github.com/wxWidgets/wxWidgets/pull/409
2017-02-12 19:56:21 +01:00
Martin Srebotnjak
785983d895 Another Slovenian translations update 2017-02-12 17:16:04 +01:00
Raul Tambre
779276d854 Fix STC samples being compiled when USE_STC=0 2017-02-12 15:17:22 +02:00
Raul Tambre
801b0b1c30 Fix the richtext sample being compiled when USE_RICHTEXT=0 2017-02-12 15:17:22 +02:00
Raul Tambre
314d3adbee Fix ribbon samples being compiled when USE_RIBBON=0 2017-02-12 15:17:22 +02:00
Raul Tambre
cbd516c52f Fix the propgrid sample being compiled when USE_PROPGRID=0 2017-02-12 15:17:22 +02:00
Raul Tambre
3ad61b9005 Fix media samples being compiled when USE_MEDIA=0 2017-02-12 15:17:22 +02:00
Raul Tambre
5d3ef67019 Fix the except sample being compiled when USE_EXCEPTIONS=0 2017-02-12 15:17:22 +02:00
Raul Tambre
8d345a6201 Fix HTML-dependent samples being compiled when USE_HTML=0
Fixes #17780
2017-02-12 15:17:22 +02:00
Artur Wieczorek
25b0c48e0c Update changelog
To reflect changes introduced in 8e47b3ca97.
2017-02-12 09:32:21 +01:00
Vadim Zeitlin
e16d899f6b Merge branch 'no-unsafe-impl-conv'
Allow disabling unsafe implicit conversions in wxString.

Closes https://github.com/wxWidgets/wxWidgets/pull/411
2017-02-12 03:07:13 +01:00
Vadim Zeitlin
e125c3b657 Allow disabling unsafe implicit conversions in wxString
While we have to keep these conversions enabled by default, they are very
dangerous as they can result in silent data loss on any system not using a
locale with UTF-8 encoding, i.e. always under MSW.

Allow mitigating this by defining wxNO_UNSAFE_WXSTRING_CONV when compiling the
application code using the library, which makes these conversions invisible to
the user code, and so can be used without recompiling the library.

Also add wxUSE_UNSAFE_WXSTRING_CONV which can be set to 0 when compiling the
library to disable these conversions globally for all applications using it.

Closes #11830.
2017-02-12 02:29:30 +01:00
Vadim Zeitlin
4cc45797a1 Fix wxUSE_DC_TRANSFORM_MATRIX comment in wx/setup_inc.h
Propagate the change done in 49000defcf to the
generated include/wx/msw/setup0.h file to wx/setup_inc.h, so that this change
won't be lost during future regenerations.
2017-02-12 02:27:22 +01:00
Vadim Zeitlin
3d17d9409f Regenerate setup.h.in using build/update-setup-h
Undo the apparently manual change to setup.h.in in
8b5387bc3d by regenerating it.

Notice that this doesn't actually change anything as wxUSE_ACCESSIBILITY will
be correctly set to 1 by configure by default, but doing this avoids having
unrelated changes in the future commits.
2017-02-12 02:24:53 +01:00
Vadim Zeitlin
dbc4e4dc52 Add a section with compatibility-related macros to the documentation
Although WXWIN_COMPATIBILITY_x_y macros were mentioned in the backwards
compatibility overview, it seems appropriate to also document them with all
the other macros on the page dedicated to them.
2017-02-12 00:27:26 +01:00
Lauri Nurmi
e36aa64752 Set proper level also for non-modal dialogs in wxOSX
Fixes #4355
2017-02-12 00:44:49 +02:00
Lauri Nurmi
2e2881f4de Use NS* window levels rather than kCG*
The NS* names are available since OS X 10.0.
2017-02-12 00:44:49 +02:00
Lauri Nurmi
246fa6aa98 Use a lower level for wxSTAY_ON_TOP frames in wxOSX
Use NSModalPanelWindowLevel instead of kCGUtilityWindowLevel. This
prevents dialogs parented to stay-on-top frames from ending up behind their
parent.
2017-02-12 00:44:48 +02:00
Lauri Nurmi
a9a980a71b Set proper level for modal dialogs of float-on-parent frames on wxOSX
This prevents the dialog from getting hidden behind its parent after
task switching the application into background and back to front.

Related to #4355, but not a fix.
2017-02-12 00:44:47 +02:00
Cătălin Răceanu
05b980aba1 Fix wxMSW wxSpinCtrl appearance: show arrows inside the control
As recommended in the "Spin Controls" MSDN documentation (see
https://msdn.microsoft.com/en-us/library/windows/desktop/dn742439.aspx), put
the spin control inside the associated "buddy" edit control and not near it.

Closes #12297.

Closes https://github.com/wxWidgets/wxWidgets/pull/410
2017-02-11 23:39:31 +01:00
Artur Wieczorek
8e47b3ca97 Support multiline strings in wxPostScriptDC::DrawText() and DrawRotatedText()
'show' operator in PostScript doesn't support printing newlines, so we need to split the string into lines manually and print each line separately.

Closes #17798.
2017-02-11 23:05:37 +01:00
Artur Wieczorek
506b51cae5 Add drawing a multi-line text to the printing sample
This can be helpful in testing API to draw multi-line texts.

See #17798.
2017-02-11 21:52:51 +01:00