Commit Graph

62293 Commits

Author SHA1 Message Date
Catalin
e21c82f2fe Remove check for DTS_SHORTDATECENTURYFORMAT
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb761728(v=vs.85).aspx>
2017-03-05 03:03:11 +02:00
Catalin
3b97482dbc Remove wxFileDialog related symbols already present since Win2k
<https://msdn.microsoft.com/en-us/library/ms646839(vs.85).aspx>
2017-03-05 02:05:32 +02:00
mgimenez
52130e43ab Minor documentation fix
'heightLine" parameter is not applicable to the function being described.

Closes #17806.
2017-02-25 18:52:23 +01:00
New Pagodi
ee609de199 Fix names for some wxSTC constants
Generally, Scintilla constants which names beginning with 'SCXX' are mapped to wxSTC names by by stripping out the 'SC' before prepending 'wxSTC_', for example SCWS_INVISIBLE gets mapped to wxSTC_WS_INVISIBLE. Unfortunately, this common rule of mapping the names is not applied to the (legacy) names beginning with 'SCVS_' and 'SCMOD_'.
For the sake of consistency, also these names should conform to the common naming convention, so gen_iface.py is updated to generate conformant names for all affected prefixes. Legacy names are preserved for backward compatibility but commented deprecated and no longer referenced in the documentation.

Closes #17808.
2017-02-25 18:05:59 +01:00
VZ
217941e9c3 Merge pull request #423 from MaartenBent/resolve-warnings
Resolve -Wsuggest-override and -Wmisleading-indentation warnings.
2017-02-25 03:23:11 +01:00
Maarten Bent
87308746be Resolve -Wsuggest-override warnings. 2017-02-24 23:37:44 +01:00
Maarten Bent
f6f72449fe Resolve -Wmisleading-indentation warnings. 2017-02-24 23:37:38 +01:00
Cătălin Răceanu
e8207c8c59 Fix building tests with wxUSE_UNSAFE_WXSTRING_CONV==0
Avoid relying on implicit conversions to std::string in the tests code.
2017-02-24 15:37:37 +01:00
Cătălin Răceanu
3a02672de8 Use MIIM_FTYPE rather than MIIM_TYPE in wxMSW
There is no need to use the old symbol any more now that we don't support
Windows 9x any longer.
2017-02-24 15:36:46 +01:00
Jouk
af70755124 Correction on the prious update of this file 2017-02-24 14:13:35 +01:00
VZ
bb8a7dc931 Merge pull request #420 from catalinr/fix_charset_comments
Fix a couple of charset-related comments.

No real changes.
2017-02-24 02:26:18 +01:00
New Pagodi
98720ee7a4 Fix names of newly introduced wxSTC constants
In 68888ca0a2 there were introduced new wxSTC constants representing Scintilla SCTD_* parameters. Unfortunately, their names don't conform to naming convention of other constants and therefore should be changed. For the sake of consistency, Scintilla SCTD_* names should be mapped to wxSTC_TD_* ones.

Closes #17807.
2017-02-23 23:03:40 +01:00
Artur Wieczorek
c6e4507c07 Add unit tests for wxHexToDec()
See #12814.
2017-02-23 20:50:18 +01:00
Artur Wieczorek
71305cff62 Add sanity checks for input string in wxHexToDec()
Check if the length of the string is appropriate and if it contains hexadecimal characters.
Also document this function.

Closes #12814.
2017-02-23 20:49:59 +01:00
Artur Wieczorek
2ecd4a07ba Add unit tests for wxDecToHex() 2017-02-23 20:48:28 +01:00
Artur Wieczorek
2934f77660 Fix and document wxDecToHex()
1. Integer instead of floating point arithmetic should be used in calculations.
2. Because this function always returns 2 hexadecimal characters, its parameter type should be changed from 'int' to 'unsigned char' to avoid misunderstandings and prevent misuses.

Closes #12612.
2017-02-23 20:48:03 +01:00
Artur Wieczorek
bfa2b2896b Use wxDecToHex() to convert integer value to hex string 2017-02-23 19:32:18 +01:00
Catalin
456eb42a92 Removed irrelevant comment about MSW charset in OSX code. 2017-02-23 19:23:35 +02:00
Catalin
882e109ed5 Improved description of charset values under MSW. 2017-02-23 19:20:20 +02:00
Cătălin Răceanu
933e3e6fc5 Remove compile-time checks for always defined WM_XXX in wxMSW
The symbols in question are present at least since XP, and most of them since
Windows 2000, so remove preprocessor checks for them, they shouldn't be needed
when any remotely current compiler/SDK.
2017-02-22 23:17:56 +01:00
Kvaz1r
f9f5f9770a Update a few Ukrainian translations 2017-02-22 23:14:50 +01:00
Artur Wieczorek
74ab36c125 Simplify PostScript code generated by wxPostScriptDC to draw elliptic arc
Optimize procedure 'ellipticarc' by doing all operations on the operand stack instead of creating local dictionary and temporary variables.
2017-02-22 21:23:44 +01:00
Artur Wieczorek
8a45881e44 Simplify PostScript code generated by wxPostScriptDC to draw elliptic contour
Optimize procedure 'ellipse' (to draw elliptic contour) by doing all operations on the operand stack instead of creating local dictionary and temporary variables.
2017-02-22 21:15:21 +01:00
Artur Wieczorek
f49528cc2f Fix DrawArc() implementation in wxPostScriptDC
Draw pie, not arc, if current brush is not transparent.
Also simplify the code by invoking PostScript 'arc' operator only once if pie is drawn.

Closes #17805.
2017-02-22 21:09:17 +01:00
Jouk
685ab869ae OpenVMS does not have stdint.h 2017-02-22 16:49:09 +01:00
Jouk
ce08759b3b Update OpenVMS compile support 2017-02-22 16:47:02 +01:00
Cătălin Răceanu
1a1519bd68 Don't check if WM_XBUTTONxxx are defined in wxMSW code
This is not necessary any longer, we don't support Windows CE any more and
these constants are available since Windows 2000 in the desktop Windows SDKs.
2017-02-21 14:55:27 +01:00
New Pagodi
6bf083857f Update wxStyledTextCtrl documentation
Table of contents is added to the documentation for wxSTC and the brief list of methods is broken into categories corresponding to this table. Documentation of several methods is rearranged and edited.

Closes #17803.
2017-02-21 00:32:55 +01:00
Artur Wieczorek
9035a65d17 Use wxString::empty() to check if wxString is empty 2017-02-20 21:57:16 +01:00
Artur Wieczorek
b37884b2cb Optimize PostScript code generated by wxPostScriptDC
PostScript code to register (and re-encode) given font should be emitted only once. Once registered, the font is available in the entire document and there is no need to register it again.
2017-02-20 21:56:34 +01:00
Vadim Zeitlin
ef3c0c83af Merge branch 'osx-fix-dialog-level-on-floating-frames-master' of https://github.com/lanurmi/wxWidgets
Closes #4355.
2017-02-20 17:56:50 +01:00
Lauri Nurmi
b8192cb8e1 Allow hiding command line arguments from Usage()
Add wxCMD_LINE_HIDDEN wxCmdLineParser flag allowing to hide options and/or
parameters.

A hidden/unlisted argument is processed as usual, but not shown in the output
given by Usage(). A use case for such could be diagnostics switches that
should exist but are not useful to the end user.

Closes https://github.com/wxWidgets/wxWidgets/pull/390
2017-02-20 17:53:04 +01:00
Vadim Zeitlin
d15bbcacd2 Merge branch 'rmv_symbols_3' of https://github.com/catalinr/wxWidgets
Remove obsolete mentions of Windows 9x, Windows CE and OS/2.
2017-02-20 17:46:45 +01:00
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