Commit Graph

62568 Commits

Author SHA1 Message Date
Vadim Zeitlin
f6b91ad143 Mention wxStandardPaths::SetFileLayout() in the change log 2017-03-09 18:08:23 +01:00
Vadim Zeitlin
3ad54f2852 Iterate over wxTextFile without using indices
Using iterator methods is less error-prone (there is no danger of using an
invalid index) and slightly shorter and more clear too.
2017-03-09 18:06:33 +01:00
Vadim Zeitlin
058f8c3c0f Use wxFileName instead of manipulating strings directly
Prefer to use wxFileName ctor to string concatenation.
2017-03-09 18:04:44 +01:00
Vadim Zeitlin
214aac6fd6 Avoid calling wxGetenv() twice unnecessarily
Use wxGetEnv() helper function which allows to write the code in more natural
and (slightly) more efficient way.

No real changes.
2017-03-09 18:02:14 +01:00
Vadim Zeitlin
41fe019f3b Refactor: extract GetXDGConfigHome() into a separate function
No real changes, just avoid doing the same thing in 2 different places and do
it in a single helper function instead.
2017-03-09 18:00:29 +01:00
Vadim Zeitlin
a44b61e976 Revert incompatible change to Unix wxStandardPaths::GetUserDir()
There is no reason to break the behaviour of the existing code, which doesn't
call SetFileLayout(FileLayout_XDG), by not returning the correct directories
from GetUserDir(Dir_Downloads) and similar any longer.
2017-03-09 17:56:45 +01:00
Vadim Zeitlin
5cf9fcbb1a Add wxStandardPaths::ConfigFileConv enum for clarity and safety
Use an enum instead of type-unsafe "int" for the second parameter of the
recently added wxStandardPaths::MakeConfigFileName().

This also avoids unnatural dependency of wxStandardPaths on
wxCONFIG_USE_SUBDIR constant defined in a higher level wxFileConfig class.

No real changes, but just make things a bit more robust and hopefully more
clear.
2017-03-09 17:53:14 +01:00
Vadim Zeitlin
4bf6ae8d7c Make FileLayout_XXX elements of an enum
Slight improvement to the previous commit: make FileLayout_Classic and
FileLayout_XDG elements of an enum instead of using an untyped "int" for them
which didn't really make any sense because these values are not bit masks but
exclusive choices for the layout.

Also rewrite the checks for them to use "switch" instead of "if" to be warned
by the compiler if we ever add another enum value but forget to update the
code to handle it.

Finally, improve the documentation (add missing "@since") and comments.
2017-03-09 17:23:20 +01:00
Martin Koegler
d56d127d3f Implement XDG file layout 2017-03-08 22:30:21 +01:00
Martin Koegler
8d5d00db9d Implement MakeConfigFileName 2017-03-08 22:29:55 +01:00
New Pagodi
1bcb30f6d7 Add wxStyledTextCtrl::AutoCompGetCurrentText()
Added support for SCI_AUTOCGETCURRENTTEXT API.

Closes #16263.
2017-03-07 19:15:46 +01:00
New Pagodi
f33da324c0 Don't use deprecated function in stc sample
Call to deprecated wxStyledTextCtrl::SetStyleBits() function can be omitted because underlying SCI_SETSTYLEBITS API is not operational anymore.

See #17671.
2017-03-07 19:07:38 +01:00
Tim S
d88e110256 Added samples to test to wxGTK MSys2 directions.
Also, added option "--disable-precomp-headers".
And, changed MSys2 packages to install.
2017-03-07 12:47:35 -05:00
Tim S
ee0525386a Added MSys2 wxMSW configure build directions. 2017-03-07 12:47:34 -05:00
Tim S
a6f5a45cad Do NOT have method GetIconFromMimeType except under Unix. 2017-03-07 12:47:33 -05:00
Artur Wieczorek
da66e81fb9 Update bounding box when drawing gradients in drawing sample
Advanced gradients are drawn using wxGraphicsContext and hence bounding box for underlying wxDC is not updated automatically. We need to update bounding box with extents of all used graphics paths.
2017-03-06 18:48:49 +01:00
Artur Wieczorek
92b64ff997 Set background colour of saved image in drawing sample
Initialize background colour prior to actual drawing to make it uniform for all kinds of drawing operations.
2017-03-06 18:47:02 +01:00
New Pagodi
15ee1ebd12 Improve generating wxSTC code and documentation
Several new features were implemented in gen_iface.py and accompanying '.in' files:
1. Added an option to parse provisional section in Scintilla.iface. When global variable GENERATE_PROVISIONAL_ITEMS is set to 1, methods and values in this section receive corresponding wxSTC items.
2. Deprecated section in Scintilla.iface is not skipped, but parsed and corresponding wxSTC items are created (marked as deprecated in the code and documentation).
3. Added a set 'notMappedSciValues' that can be used to prevent the creation of specific wxSTC values which are intended to be handled manually.
4. For deprecated constants there is generated a code to raise respective warnings during the compilation.

Closes #17671.
2017-03-06 18:38:56 +01:00
Tim S
2a64f15c17 Edited dnl comment in "configure.in". 2017-03-05 23:49:01 -05:00
Tim S
2bde0f4b9e Edited when setting wxUSE_CHECKLISTBOX to 0 under MSW port. 2017-03-05 21:41:05 -05:00
Catalin
8e82435d70 Keep NIN_BALLOONxxx checks and definitions.
Apparently some gcc flavors (like g++ (GCC) 5.3.0 from AppVeyor) do not define these symbols. FWIW tdm-gcc-5.1.0 does not need them.

This partially reverts commit 299a06c86e.
2017-03-06 00:40:18 +02:00
Catalin
b8ced83a6c Keep SHACF_FILESYS_XXX checks and definitions.
Apparently some gcc flavors (like g++ (GCC) 5.3.0 from AppVeyor) do not define these symbols. FWIW tdm-gcc-5.1.0 does not need them.

This partially reverts commit 2f5f5caf99.
2017-03-05 22:25:34 +02:00
Catalin
79256c2fe3 Revert "Remove check for TTTOOLINFO_V1_SIZE"
Apparently some gcc flavors (like g++ (GCC) 5.3.0 from AppVeyor) do not define TTTOOLINFO_V1_SIZE, so keep the check for it. FWIW tdm-gcc-5.1.0 does not need it.

This reverts commit e38762bc55.
2017-03-05 21:17:02 +02:00
Cătălin Răceanu
bbc4b3659a Drop compile and run-time Win9x support in wxFileDialog
All relatively recent SDK versions have the up-to-date definition of struct
OPENFILENAME, so we don't need to provide our own one.

Also, wxWidgets applications don't run under Win9x any longer, so there is no
need to fall back to comdlg32.dll v4 which was used there during run-time.
2017-03-05 17:06:19 +01:00
Cătălin Răceanu
e950e4a129 Remove MONITOR-related declarations not needed any more
Don't define MONITOR-related structs and messages ourselves in wxMSW code,
this shouldn't be needed any more as they're present in all remotely recent
versions of the SDK.

No real changes, just minor clean up.
2017-03-05 17:01:22 +01:00
Catalin
e81c460808 Keep defining ACDD_VISIBLE because shobjidl.h header is not included since it is missing from MinGW and Cygwin. 2017-03-05 15:49:14 +02:00
Catalin
f6b1a6bc16 Remove check for ATTACH_PARENT_PROCESS.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms681952(v=vs.85).aspx>
2017-03-05 15:40:30 +02:00
Catalin
511ec44743 Remove old checks
AW_XXX <https://msdn.microsoft.com/en-us/library/windows/desktop/ms632669(v=vs.85).aspx>
MAPVK_VK_TO_CHAR <https://msdn.microsoft.com/en-us/library/windows/desktop/ms646307(v=vs.85).aspx>
TME_LEAVE <https://msdn.microsoft.com/en-us/library/windows/desktop/ms645604(v=vs.85).aspx>
WM_MOUSELEAVE <https://msdn.microsoft.com/en-us/library/windows/desktop/ms645615(v=vs.85).aspx>
2017-03-05 15:39:31 +02:00
Catalin
7b26050fb6 Remove checks for NIN_XXX.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms632643(v=vs.85).aspx>
2017-03-05 15:36:24 +02:00
Catalin
e38762bc55 Remove check for TTTOOLINFO_V1_SIZE.
<https://msdn.microsoft.com/en-us/library/windows/desktop/hh298349(v=vs.85).aspx>
2017-03-05 15:35:14 +02:00
Catalin
2f5f5caf99 Remove checks for ACO_UPDOWNKEYDROPSLIST, SHACF_FILESYS_XXX, ACDD_VISIBLE.
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb762479(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb759862(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb776285(v=vs.85).aspx>
2017-03-05 15:34:03 +02:00
Catalin
299a06c86e Remove checks for NIN_XXX, NIM_SETVERSION, NIF_INFO, NOTIFYICONDATA_V2_SIZE.
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb762159(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb773352(v=vs.85).aspx>
2017-03-05 15:31:44 +02:00
Catalin
d7ce8c023f Remove checks for CSIDL_XXX and SHGFP_TYPE_XXX.
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx>
2017-03-05 15:28:33 +02:00
Catalin
45818cd90b Remove check for SPI_GETFLATMENU.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx>
2017-03-05 15:26:30 +02:00
Catalin
fefe380b53 Remove check for DFCS_HOT.
<https://msdn.microsoft.com/en-us/library/dd162480(v=vs.85).aspx>
2017-03-05 15:25:25 +02:00
Catalin
35b2270a4a Remove checks for HKEY_XXX.
<https://msdn.microsoft.com/en-us/library/ms724836.aspx>
2017-03-05 15:23:25 +02:00
Catalin
bdba8559cb Remove check for VT_TYPEMASK.
<https://msdn.microsoft.com/en-us/library/windows/desktop/aa380072(v=vs.85).aspx>
2017-03-05 15:22:13 +02:00
Catalin
743810cf68 Remove check for CHILDID_SELF.
<https://msdn.microsoft.com/en-us/library/windows/desktop/dd318473(v=vs.85).aspx>
2017-03-05 15:20:28 +02:00
Catalin
b8ba653ef0 Remove check for SPI_GETKEYBOARDCUES.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx>
2017-03-05 15:19:27 +02:00
Catalin
f3cda45ced Remove checks for MNS_CHECKORBMP, MIM_STYLE.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms647575(v=vs.85).aspx>
2017-03-05 15:17:54 +02:00
Catalin
73210723cd Remove checks for PBS_XXX.
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb760820(v=vs.85).aspx>
2017-03-05 15:15:55 +02:00
Catalin
5d3cf28022 Remove check for HANGUL_CHARSET.
<https://msdn.microsoft.com/en-us/library/windows/desktop/dd318126(v=vs.85).aspx>
2017-03-05 15:12:08 +02:00
Catalin
b53a62a970 Remove check for SM_CXCURSOR. 2017-03-05 15:10:52 +02:00
Catalin
0ff8012c4a Remove checks for BIF_XXX
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb773205(v=vs.85).aspx>
2017-03-05 15:08:40 +02:00
Catalin
bda4c48271 Remove checks for INTERNET_CONNECTION_XXX
<https://msdn.microsoft.com/en-us/library/windows/desktop/aa384702(v=vs.85).aspx>
2017-03-05 15:05:53 +02:00
Catalin
fbf8f2b237 Remove checks for AC_SRC_ALPHA and LAYOUT_RTL
<https://msdn.microsoft.com/en-us/library/dd183393(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/dd162979(v=vs.85).aspx>
2017-03-05 15:04:34 +02:00
Catalin
7bfbbf7e83 Remove check for __TWIN32__ symbol 2017-03-05 03:30:31 +02:00
Catalin
8d387fafe5 Remove checks for MM_JOY1MOVE, VK_APPS, ENDSESSION_LOGOFF, PBT_APMRESUMEAUTOMATIC, JOY_BUTTON1, SM_SWAPBUTTON.
<https://msdn.microsoft.com/en-us/library/dd757352(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/aa376890(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/windows/desktop/aa372718(v=vs.85).aspx>
<https://msdn.microsoft.com/en-us/library/dd757110(v=vs.85).aspx>
2017-03-05 03:12:14 +02:00
Catalin
66d48500c5 Remove checks for SM_XXX system metrics symbols.
<https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx>
2017-03-05 03:07:21 +02:00
Catalin
eb1d11607c Remove check for BFFM_SETSELECTION
<https://msdn.microsoft.com/en-us/library/windows/desktop/bb762598(v=vs.85).aspx>
2017-03-05 03:04:51 +02:00