summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/kernel/tqwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqwidget.h')
-rw-r--r--tqtinterface/qt4/src/kernel/tqwidget.h54
1 files changed, 51 insertions, 3 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqwidget.h b/tqtinterface/qt4/src/kernel/tqwidget.h
index c027464..65b424e 100644
--- a/tqtinterface/qt4/src/kernel/tqwidget.h
+++ b/tqtinterface/qt4/src/kernel/tqwidget.h
@@ -64,6 +64,10 @@
#endif // TQFONTENGINE_P_H
#endif // USE_QT4
+#if defined(TQ_WS_X11) && !defined(TQT_NO_IM)
+class TQInputContext;
+#endif
+
class TQLayout;
#ifdef USE_QT4
@@ -980,7 +984,19 @@ public:
CGContextRef macCGContext(bool clipped=TRUE) const;
#endif
#endif
-
+#if defined(TQ_WS_X11)
+ enum X11WindowType {
+ X11WindowTypeSelect,
+ X11WindowTypeCombo,
+ X11WindowTypeDND,
+ X11WindowTypeTooltip,
+ X11WindowTypeMenu, // torn-off
+ X11WindowTypeDropdown,
+ X11WindowTypePopup
+ };
+ void x11SetWindowType( X11WindowType type = X11WindowTypeSelect );
+ void x11SetWindowTransient( TQWidget* tqparent );
+#endif
void setWindowOpacity(double level);
double windowOpacity() const;
@@ -1051,6 +1067,18 @@ protected:
int metric( int ) const;
+#if defined(TQ_WS_X11)
+#if !defined(TQT_NO_IM_EXTENSIONS)
+ virtual TQWidget *icHolderWidget();
+#else
+ TQWidget *icHolderWidget();
+#endif
+ TQInputContext *getInputContext();
+ void changeInputContext( const TQString & );
+ void sendMouseEventToInputContext( int x, TQEvent::Type type,
+ TQt::ButtonState button,
+ TQt::ButtonState state );
+#endif
void resetInputContext();
virtual void create( WId = 0, bool initializeWindow = TRUE,
@@ -1082,14 +1110,25 @@ protected:
private Q_SLOTS:
void focusProxyDestroyed();
+#if defined(TQ_WS_X11)
+ void destroyInputContext();
+#endif
private:
void setFontSys( TQFont *f = 0 );
#if defined(TQ_WS_X11)
void createInputContext();
- void destroyInputContext();
void focusInputContext();
+ void unfocusInputContext();
void checkChildrenDnd();
+
+#ifndef TQT_NO_XSYNC
+ void createSyncCounter();
+ void destroySyncCounter();
+ void incrementSyncCounter();
+ void handleSyncRequest( void* ev );
+#endif
+
#elif defined(TQ_WS_MAC)
uint own_id : 1, macDropEnabled : 1;
EventHandlerRef window_event;
@@ -1160,6 +1199,9 @@ private:
#ifndef TQT_NO_LAYOUT
TQLayout *lay_out;
#endif
+#if defined(TQ_WS_X11) && !defined(TQT_NO_IM) && !defined(TQT_NO_IM_EXTENSIONS)
+ TQInputContext *ic; // Input Context
+#endif
TQWExtra *extra;
#if defined(TQ_WS_TQWS)
TQRegion req_region; // Requested region
@@ -1471,7 +1513,13 @@ struct TQ_EXPORT TQTLWExtra {
uint dnd : 1; // DND properties installed
uint uspos : 1; // User defined position
uint ussize : 1; // User defined size
- void *xic; // XIM Input Context
+#if defined(TQT_NO_IM_EXTENSIONS)
+ void *xic; // Input Context
+#endif
+#ifndef TQT_NO_XSYNC
+ ulong syncCounter;
+ uint syncRequestValue[2];
+#endif
#endif
#if defined(TQ_WS_MAC)
WindowGroupRef group;