PythonQtWrapper_QInputContext.h
77 lines
| 2.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QINPUTCONTEXT_H | ||
#define PYTHONQTWRAPPER_QINPUTCONTEXT_H | ||||
#include <qinputcontext.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QTextFormat> | ||
#include <QVariant> | ||||
#include <qaction.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qinputcontext.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qtextformat.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QInputContext : public QInputContext | ||
{ | ||||
public: | ||||
PythonQtShell_QInputContext(QObject* parent = 0):QInputContext(parent),_wrapper(NULL) {}; | ||||
virtual QList<QAction* > actions(); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual bool filterEvent(const QEvent* event); | ||||
virtual QFont font() const; | ||||
virtual QString identifierName(); | ||||
virtual bool isComposing() const; | ||||
virtual QString language(); | ||||
virtual void mouseHandler(int x, QMouseEvent* event); | ||||
virtual void reset(); | ||||
virtual void setFocusWidget(QWidget* w); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void update(); | ||||
virtual void widgetDestroyed(QWidget* w); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QInputContext : public QInputContext | ||
{ public: | ||||
inline void promoted_widgetDestroyed(QWidget* w) { QInputContext::widgetDestroyed(w); } | ||||
inline bool promoted_filterEvent(const QEvent* event) { return QInputContext::filterEvent(event); } | ||||
inline QFont promoted_font() const { return QInputContext::font(); } | ||||
inline void promoted_mouseHandler(int x, QMouseEvent* event) { QInputContext::mouseHandler(x, event); } | ||||
inline void promoted_update() { QInputContext::update(); } | ||||
florianlink
|
r73 | inline QList<QAction* > promoted_actions() { return QInputContext::actions(); } | ||
florianlink
|
r28 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QInputContext : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(StandardFormat ) | ||||
enum StandardFormat{ | ||||
PreeditFormat = QInputContext::PreeditFormat, SelectionFormat = QInputContext::SelectionFormat}; | ||||
public slots: | ||||
florianlink
|
r24 | QInputContext* new_QInputContext(QObject* parent = 0); | ||
florianlink
|
r13 | void delete_QInputContext(QInputContext* obj) { delete obj; } | ||
florianlink
|
r24 | void widgetDestroyed(QInputContext* theWrappedObject, QWidget* w); | ||
florianlink
|
r13 | QWidget* focusWidget(QInputContext* theWrappedObject) const; | ||
florianlink
|
r24 | bool filterEvent(QInputContext* theWrappedObject, const QEvent* event); | ||
florianlink
|
r13 | QFont font(QInputContext* theWrappedObject) const; | ||
void mouseHandler(QInputContext* theWrappedObject, int x, QMouseEvent* event); | ||||
void update(QInputContext* theWrappedObject); | ||||
florianlink
|
r73 | QList<QAction* > actions(QInputContext* theWrappedObject); | ||
void sendEvent(QInputContext* theWrappedObject, const QInputMethodEvent& event); | ||||
QTextFormat standardFormat(QInputContext* theWrappedObject, QInputContext::StandardFormat s) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QINPUTCONTEXT_H | ||||