This merges in the latest sources from GSoC 2014 wxQt project with just a few minor corrections, mostly undoing wrong changes to common files in that branch (results of a previous bad merge?) and getting rid of whitespace-only changes. Also remove debug logging from wxGrid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/qt/converter.h
|
|
// Purpose: Converter utility classes and functions
|
|
// Author: Peter Most, Kolya Kosenko
|
|
// Created: 02/28/10
|
|
// Copyright: (c) Peter Most
|
|
// (c) 2010 Kolya Kosenko
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_QT_CONVERTER_H_
|
|
#define _WX_QT_CONVERTER_H_
|
|
|
|
#include "wx/defs.h"
|
|
#include <QtCore/Qt>
|
|
|
|
// Rely on overloading and let the compiler pick the correct version, which makes
|
|
// them easier to use then to write wxQtConvertQtRectToWxRect() or wxQtConvertWxRectToQtRect()
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxPoint;
|
|
class QPoint;
|
|
wxPoint wxQtConvertPoint( const QPoint &point );
|
|
QPoint wxQtConvertPoint( const wxPoint &point );
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxRect;
|
|
class QRect;
|
|
wxRect wxQtConvertRect( const QRect &rect );
|
|
QRect wxQtConvertRect( const wxRect &rect );
|
|
|
|
class WXDLLIMPEXP_FWD_BASE wxString;
|
|
class QString;
|
|
wxString wxQtConvertString( const QString &str );
|
|
QString wxQtConvertString( const wxString &str );
|
|
|
|
#if wxUSE_DATETIME
|
|
|
|
class WXDLLIMPEXP_FWD_BASE wxDateTime;
|
|
class QDate;
|
|
|
|
wxDateTime wxQtConvertDate(const QDate& date);
|
|
QDate wxQtConvertDate(const wxDateTime& date);
|
|
|
|
#endif // wxUSE_DATETIME
|
|
|
|
class WXDLLIMPEXP_FWD_BASE wxSize;
|
|
class QSize;
|
|
wxSize wxQtConvertSize( const QSize &size );
|
|
QSize wxQtConvertSize( const wxSize &size );
|
|
|
|
Qt::Orientation wxQtConvertOrientation( long style, wxOrientation defaultOrientation );
|
|
wxOrientation wxQtConvertOrientation( Qt::Orientation );
|
|
|
|
wxKeyCode wxQtConvertKeyCode( int key, const Qt::KeyboardModifiers modifiers );
|
|
void wxQtFillKeyboardModifiers( Qt::KeyboardModifiers modifiers, wxKeyboardState *state );
|
|
int wxQtConvertKeyCode( int keyCode, int modifiers, Qt::KeyboardModifiers &qtmodifiers );
|
|
|
|
#endif // _WX_QT_CONVERTER_H_
|
|
|