Commit Graph

62752 Commits

Author SHA1 Message Date
Stefan Csomor
6a3b936d0f use built-in that exists since 10.6 2017-06-01 15:10:09 +02:00
Stefan Csomor
ad96f4be55 fixing header button to properly use native themed arrows 2017-06-01 11:30:59 +02:00
Stefan Csomor
e8333ebe71 switching to 10.7 deployment minimum, adding required frameworks 2017-06-01 11:26:30 +02:00
Vadim Zeitlin
c93b35931c Merge branch 'non-ole-clipboard-funcs'
Closes https://github.com/wxWidgets/wxWidgets/pull/491
2017-06-01 00:43:21 +02:00
Vadim Zeitlin
3d6334f0f1 Mention wxGetOsDescription() removal in the change log
Even though this function was private and not available in the default build
(in which wxUSE_OLE==1, while this function was only defined with
wxUSE_OLE==0), still mention its removal for completeness.
2017-06-01 00:40:49 +02:00
Vadim Zeitlin
60d9f403a2 Only declare wxSetClipboardData() in wxMSW when it's defined
This is only the case when full OLE support is disabled.

See https://github.com/wxWidgets/wxWidgets/pull/491
2017-06-01 00:38:08 +02:00
Adrian DC
9b97be52c6 wx/msw/clipbrd.h: Remove unreferenced wxGetClipboardData prototype
* wxGetClipboardData was removed through commit
    b375d81499 "Use wxDataObject methods..."
    but former usages will break with unreferenced
    function as the header still advertises the function

Change-Id: I77e756d2b7d0db7c3833578d2846f4e922a55262
2017-05-31 16:56:09 +02:00
John Roberts
9e83d415ed Remove unused global variable left over from Carbon
This "g_MacLastWindow" was only used in Carbon code and should have been removed
in 5ba67c67e4.
2017-05-31 13:13:21 +02:00
JulianSmart
f14d702e4a Limit LOCALE_SNAME avoidance to VS2010 2017-05-30 19:23:32 +01:00
Vadim Zeitlin
9af43c8c06 Merge branch 'xml-eol'
Add a possibility to change the line endings used in the files generated by
wxXmlDocument.
2017-05-30 19:40:49 +02:00
Vadim Zeitlin
0d8a386c9b Add "@since" tags to the newly added wxXmlDocument methods
Also document the default file type.
2017-05-30 19:40:09 +02:00
Vadim Zeitlin
f8b3ecbb0e Fix bug due to undefined g_wxAnyValueTypeGlobals initialization order
This fixes the changes of commit 3543ae0177
which didn't work if any of the globals using wxPreRegisterAnyToVariant() were
instantiated before g_wxAnyValueTypeGlobals itself.

Wrap the global inside a function to ensure that we initialized it before it
is used by wxPreRegisterAnyToVariant() and not after.
2017-05-30 19:18:53 +02:00
Paul Cornett
4ffb9d342c Fix use of PANGO_VERSION_CHECK macro
PANGO_VERSION_CHECK is not available before Pango version 1.16
2017-05-30 09:50:03 -07:00
Paul Cornett
d7b616d507 Fix crash when notification is closed.
"closed" signal callback function had incorrect signature. See #17876
2017-05-30 09:43:23 -07:00
Adrian DC
11e5413558 wx/xml: Implement line-ending modes for xml saves
* Add 'wxTextFileType m_fileType' to hold the type
 * Add 'wxString m_eol' to hold the end of lines string

 * Add SetFileType() and GetFileType() to set and get the type
 * Add GetEOL() to get the end of lines wxString

 * Backwards compatibility preserved by using wxTextFileType_Unix

Change-Id: I3e8547b377e2c4060a3a2d97c299a08ea2c0a376
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-05-30 14:31:59 +02:00
Dimitri Schoolwerth
e6928077e2 Fix wxOSX/Cocoa Xcode compilation
Define NO_CXX11_REGEX to be able to compile Scintilla after it was
updated to 3.6.6.

Regression since c03ce59b86 .
2017-05-30 16:02:29 +04:00
Artur Wieczorek
2afd8bfcaf Use faster function to retrieve a line from the paragraph
Because contents of the retrieved line is not going to be modified, faster
read-only function can be used for retrieval.
2017-05-29 20:31:42 +02:00
Artur Wieczorek
136f909f58 Free object representing font description in wxGtkPrinterDC dtor
Closes #14233.
2017-05-29 20:30:22 +02:00
Artur Wieczorek
ab6bdb94be Release temporary object representing page setup
See #14233.
2017-05-29 20:28:01 +02:00
Artur Wieczorek
fe7854933a Release old print settings object prior to storing a new one
Old GtkPrintSettings object should be released before copying its new
instance.

See #14233.
2017-05-29 20:25:33 +02:00
Artur Wieczorek
de047e1ad9 Delete temporary device context used in wxGtkPrinter
Lifetime of wxPrinterDC created in BeginPrint() handler (associated with
"begin-print" signal) is limited to the current print job and therefore
this object should be destroyed when the actual printing is finished.

See #14233.
2017-05-29 20:23:03 +02:00
Artur Wieczorek
79a7fa0330 Create new instance of wxPrintDC in wxGtkPrintDialog
GetPrintDC() should return a new device context created by the print
dialog, not the duplicate of existing context passed from the caller
(e.g. from wxGtkPrinter) through SetPrintDC(). Therefore SetPrintDC() is
no longer useful and can be removed.
2017-05-29 20:17:19 +02:00
JulianSmart
91cb0b4875 Restore previous GetLocaleName behaviour except for Norwegian Bokmål since wxLocale::Init fails otherwise for VS2010 2017-05-29 13:18:13 +01:00
Paul Cornett
c1f2bbce5d Use wxString::empty() instead of comparison to wxEmptyString 2017-05-29 00:05:52 -07:00
Paul Cornett
d16afbd3c1 Use const reference for wxPoint parameter 2017-05-28 23:56:46 -07:00
Paul Cornett
01909a20c8 Remove initializations of wxString with wxEmptyString
An empty string is the default
2017-05-28 23:53:44 -07:00
Paul Cornett
7358202d29 Use ctor initializer for non-trivial data members 2017-05-28 23:49:55 -07:00
Paul Cornett
1532afcb2f Use ctor initializer for non-trivial data members 2017-05-28 23:40:34 -07:00
Paul Cornett
d35e516fd5 Use compiler-generated copy ctor and assignment operator for wxHtmlLinkInfo 2017-05-28 23:29:10 -07:00
Paul Cornett
3fe9d59651 Fix build with wxNO_RTTI, see #17781 2017-05-28 23:14:26 -07:00
Paul Cornett
5feb43c8a2 Fix accidental use of comma operator 2017-05-28 22:42:13 -07:00
Paul Cornett
33f21c8244 Fix building with WebKitGTK+
Duplicate conditionals don't work in bakefiles.
Broken since support was added for WebKit2GTK+ in cbe0a1f
See #17865
2017-05-28 22:40:56 -07:00
Vadim Zeitlin
de47af2f0f Merge branch 'configure-enhance'
Miscellaneous enhancements to configure
2017-05-28 16:21:21 +02:00
Vadim Zeitlin
e2dfa8e477 Regenerate comments in setup.h headers
Update the generated files after 338629e314.

The only changes are in the comments.
2017-05-28 16:20:19 +02:00
Vadim Zeitlin
5283fa14a7 Fix wxUSE_XTEST location in include/wx/osx/setup.h
Move it out from the auto-generated section to avoid losing it during the next
build/update-setup-h execution (see e24bc249e4
which added this option in the wrong place).
2017-05-28 16:18:12 +02:00
tm
7ce3693956 Add support for bitmaps to wxToggleButton XRC handler
Handle "bitmap" and "bitmapposition" attributes in wxToggleButton XRC handler,
just as it's already done for wxBitmap and wxBitmapToggleButton.

Closes #17850.
2017-05-28 16:05:38 +02:00
tm
0a3720beff Handle wxST_ELLIPSIZE_XXX styles in wxStaticText XRC handler
Add forgotten/missing styles.

See #17850.
2017-05-28 16:05:31 +02:00
Vadim Zeitlin
2f8a343b22 Add an option for reproducible library builds
This can be useful to the library packagers, notably under Debian.

Closes #17000.
2017-05-27 19:03:32 +02:00
Vadim Zeitlin
a7ae3de703 Don't accept nonsensical --without-<toolkit> options in configure
Only --with-<toolkit> options make sense, something like --without-x11
couldn't possibly be useful and was actually actively harmful as it set
wxUSE_UNIVERSAL to 1 as a side effect.

Closes #2306.
2017-05-27 19:03:32 +02:00
Vadim Zeitlin
aa7e10bb09 Check --enable-xxx and --with-xxx options in configure by default
Give an error if an unknown option is specified because this is very helpful
for catching typos which happen quite frequently in practice, considering the
number of options that we have.

To explicitly allow unknown options, i.e. restore the old behaviour,
--disable-option-checking can be used.
2017-05-27 19:03:31 +02:00
Vadim Zeitlin
1c4071a3cb Remove obsolete and useless --enable_no_deps configure option
This option didn't do anything for the last 14 years, ever since the switch to
bakefile-generated makefiles in fe0895cf82, so
remove it from configure and stop mentioning it in documentation.

Use --disable-dependency-tracking to do what this option used to be doing 15
years ago.
2017-05-27 19:03:31 +02:00
Scott Furry
3414fde5f6 Work around signed/unsigned comparison warnings in regex code
Make various NUM_XXX constants signed to avoid numerous -Wsign-compare clang
warnings when comparing with them.

Closes #17869.
2017-05-27 18:36:24 +02:00
Vadim Zeitlin
545bec0bac Revert "Remove last vestiges of Carbon-related tools from the makefile"
This reverts commit 2a3721bf98 because it
requires further changes in bakefile itself to really work under Mac, where
the build would be broken as soon as configure would be regenerated (which was
forgotten by that commit due to another error, and so the two errors finally
cancelled out).
2017-05-27 18:27:26 +02:00
Dimitri Schoolwerth
a0d1a6fa83 MSW tests build fix: forgotten part of a previous commit
Add missing function declaration. This should have been part of a963edc.
2017-05-27 03:48:38 +04:00
Artur Wieczorek
b99f4d9327 Fix drawing shapes with transparent borders in wxGtkPrinterDC
Stroke the path of the shape only if pen using in drawing is
non-transparent. Otherwise, the shape would have a visible border even for
transparent pen.
2017-05-26 00:32:58 +02:00
Artur Wieczorek
ef3863a71e Implement GetPartialTextExtents() in wxGtkPrinterDC
Generic implementation from wxDCImpl doesn't work well with wxPrinterDC
under wxGTK.
(This implementation is adopted from wxCairoContext::GetPartialTextExtents.)
2017-05-26 00:32:49 +02:00
Artur Wieczorek
528c559953 Fix pagination in stc sample
1. Fix setting page size if printing is done in the landscape mode.
2. Store ranges of printed characters for all pages (not only recent page)
while doing pagination (in GetPageInfo) to allow printing pages (with
OnPrintPage) in any order (not only sequentially).

Closes #17107.
2017-05-26 00:29:05 +02:00
Artur Wieczorek
8f8534361c Set default print data in stc sample
Basic paper parameters should be initialized with default values to allow
paginating a document even if paper settings are not yet explicitly set by
invoking "Print Setup" dialog.

See #17107.
2017-05-26 00:28:33 +02:00
Vadim Zeitlin
3543ae0177 Avoid memory leaks when wxWidgets is not used by the application
It can happen that an application using wxWidgets doesn't actually use it,
e.g. because it runs in the console mode and doesn't need the GUI stuff. In
this case, g_wxAnyValueTypeGlobals was leaked because the cleanup function of
the module, which is supposed to clean it up, was never executed.

Fix this by making this pointer a smart pointer, thus making sure that the CRT
cleans it up even if we don't. We still do it from the module OnExit() to
account for the possibility of initializing and shutting down the library more
than once.
2017-05-26 00:19:53 +02:00
Julian Smart
b573c6a79f A border around a wxChoice is not appropriate. 2017-05-25 18:12:06 +01:00