Fixes for wxQt build under Cygwin
Include the missing headers, notable QtGui/QFont from wx/fontutil.h which uses a QFont object. Closes #16750.
This commit is contained in:
committed by
Vadim Zeitlin
parent
db966da330
commit
fb5d1a002c
@@ -25,6 +25,10 @@
|
||||
#include "wx/msw/wrapwin.h"
|
||||
#endif
|
||||
|
||||
#if defined(__WXQT__)
|
||||
#include <QtGui/QFont>
|
||||
#endif
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxArrayString;
|
||||
struct WXDLLIMPEXP_FWD_CORE wxNativeEncodingInfo;
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#include "wx/defs.h"
|
||||
#include <QtCore/Qt>
|
||||
|
||||
#include "wx/kbdstate.h"
|
||||
|
||||
// Rely on overloading and let the compiler pick the correct version, which makes
|
||||
// them easier to use then to write wxQtConvertQtRectToWxRect() or wxQtConvertWxRectToQtRect()
|
||||
|
||||
|
@@ -11,6 +11,7 @@
|
||||
#ifndef _WX_QT_EVENTSIGNALFORWARDER_H_
|
||||
#define _WX_QT_EVENTSIGNALFORWARDER_H_
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
|
@@ -10,6 +10,7 @@
|
||||
#ifndef _WX_QT_TOOLBAR_H_
|
||||
#define _WX_QT_TOOLBAR_H_
|
||||
|
||||
class QActionGroup;
|
||||
class wxQtToolBar;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxToolBar : public wxToolBarBase
|
||||
|
@@ -8,16 +8,25 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/rawbmp.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QBitmap>
|
||||
#include <QtWidgets/QLabel>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/icon.h"
|
||||
#include "wx/image.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/rawbmp.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
|
||||
|
||||
static wxImage ConvertImage( QImage qtImage )
|
||||
{
|
||||
bool hasAlpha = qtImage.hasAlphaChannel();
|
||||
|
@@ -8,8 +8,16 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/button.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/bitmap.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/button.h"
|
||||
#include "wx/stockitem.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
|
||||
|
@@ -8,12 +8,18 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
|
||||
#include "wx/clipbrd.h"
|
||||
#include "wx/scopedarray.h"
|
||||
#include "wx/scopeguard.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
#include <QClipboard>
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxClipboard ctor/dtor
|
||||
|
@@ -9,12 +9,18 @@
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/colour.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/qt/private/utils.h"
|
||||
|
||||
|
||||
int wxColour::GetPixel() const
|
||||
{
|
||||
wxMISSING_IMPLEMENTATION( "wxColour::GetPixel" );
|
||||
|
@@ -9,8 +9,9 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtCore/QRect>
|
||||
#include <QtCore/QString>
|
||||
@@ -22,6 +23,11 @@
|
||||
#include <QtCore/QDate>
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
#include "wx/kbdstate.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
|
||||
wxPoint wxQtConvertPoint( const QPoint &point )
|
||||
{
|
||||
if (point.isNull())
|
||||
|
@@ -7,11 +7,21 @@
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QApplication>
|
||||
#include <QBitmap>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/bitmap.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/cursor.h"
|
||||
|
||||
|
||||
void wxSetCursor(const wxCursor& cursor)
|
||||
{
|
||||
if (cursor.m_qtCursor.shape() == Qt::ArrowCursor)
|
||||
|
@@ -8,6 +8,12 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/dataobj.h"
|
||||
|
@@ -8,12 +8,22 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dc.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QBitmap>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/icon.h"
|
||||
#include "wx/log.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dc.h"
|
||||
#include "wx/qt/dc.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include <QtGui/QBitmap>
|
||||
|
||||
|
||||
static void SetPenColour( QPainter *qtPainter, QColor col )
|
||||
{
|
||||
|
@@ -8,12 +8,21 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/qt/dcclient.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QPicture>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/qt/dcclient.h"
|
||||
|
||||
|
||||
//##############################################################################
|
||||
|
||||
wxWindowDCImpl::wxWindowDCImpl( wxDC *owner )
|
||||
|
@@ -8,13 +8,18 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QFont>
|
||||
#include <QtGui/QFontInfo>
|
||||
|
||||
#include "wx/font.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
#include <QtGui/QFont>
|
||||
#include <QtGui/QFontInfo>
|
||||
|
||||
static QFont::StyleHint ConvertFontFamily(wxFontFamily family)
|
||||
{
|
||||
|
@@ -8,6 +8,12 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QFont>
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/encinfo.h"
|
||||
|
||||
|
@@ -8,12 +8,21 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/frame.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtWidgets/QScrollArea>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/menu.h"
|
||||
#include "wx/toolbar.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
#include <QtWidgets/QScrollArea>
|
||||
|
||||
|
||||
class wxQtMainWindow : public wxQtEventSignalHandler< QMainWindow, wxFrame >
|
||||
|
@@ -8,12 +8,20 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QHeaderView>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/bitmap.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/listctrl.h"
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
|
||||
|
||||
class wxQtTreeWidget : public wxQtEventSignalHandler< QTreeWidget, wxListCtrl >
|
||||
{
|
||||
|
@@ -8,8 +8,16 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/tglbtn.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/bitmap.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/stockitem.h"
|
||||
#include "wx/tglbtn.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
|
||||
|
@@ -8,14 +8,23 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/toolbar.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_TOOLBAR
|
||||
|
||||
#include <QActionGroup>
|
||||
#include <QtWidgets/QToolButton>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/menu.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/toolbar.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
class wxQtToolButton;
|
||||
class wxToolBarTool : public wxToolBarToolBase
|
||||
{
|
||||
|
@@ -8,6 +8,14 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/window.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
|
||||
|
@@ -8,12 +8,17 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtTest/QtTestGui>
|
||||
|
||||
#include "wx/qt/defs.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/uiaction.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
#include <QtTest/QtTestGui>
|
||||
|
||||
#if wxUSE_UIACTIONSIMULATOR
|
||||
|
||||
|
@@ -8,11 +8,9 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QCursor>
|
||||
#include <QtWidgets/QApplication>
|
||||
@@ -20,6 +18,17 @@
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtCore/QUrl>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/window.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
|
||||
|
||||
void wxMissingImplementation( const char fileName[], unsigned lineNumber,
|
||||
const char feature[] )
|
||||
{
|
||||
|
@@ -8,14 +8,9 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/scrolbar.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <QtGui/QPicture>
|
||||
#include <QtGui/QPainter>
|
||||
@@ -24,6 +19,20 @@
|
||||
#include <QtWidgets/QWidget>
|
||||
#include <QtWidgets/QScrollArea>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/scrolbar.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/qt/private/utils.h"
|
||||
#include "wx/qt/private/converter.h"
|
||||
#include "wx/qt/private/winevent.h"
|
||||
|
||||
|
||||
#define VERT_SCROLLBAR_POSITION 0, 1
|
||||
#define HORZ_SCROLLBAR_POSITION 1, 0
|
||||
|
Reference in New Issue
Block a user