summaryrefslogtreecommitdiffstats
path: root/sip/qt/qwidget.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qwidget.sip')
-rw-r--r--sip/qt/qwidget.sip254
1 files changed, 0 insertions, 254 deletions
diff --git a/sip/qt/qwidget.sip b/sip/qt/qwidget.sip
index 07ceda7..30c3af9 100644
--- a/sip/qt/qwidget.sip
+++ b/sip/qt/qwidget.sip
@@ -68,9 +68,7 @@ public:
WId winId() const;
bool isTopLevel() const;
-%If (TQt_3_0_0 -)
bool isDialog() const;
-%End
bool isPopup() const;
bool isDesktop() const;
bool isModal() const;
@@ -104,42 +102,27 @@ public:
TQPoint mapFromGlobal(const TQPoint &) const;
TQPoint mapToParent(const TQPoint &) const;
TQPoint mapFromParent(const TQPoint &) const;
-%If (TQt_2_2_0 -)
TQPoint mapTo(TQWidget *,const TQPoint &) const;
TQPoint mapFrom(TQWidget *,const TQPoint &) const;
-%End
TQWidget *topLevelWidget() const;
BackgroundMode backgroundMode() const;
-%If (- TQt_3_0_0)
- const TQColor &backgroundColor() const;
- virtual void setBackgroundColor(const TQColor &);
- const TQPixmap *backgroundPixmap();
- virtual void setBackgroundPixmap(const TQPixmap &);
-%End
const TQColor &foregroundColor() const;
-%If (TQt_3_0_0 -)
const TQColor &eraseColor() const;
virtual void setEraseColor(const TQColor &);
const TQPixmap *erasePixmap() const;
virtual void setErasePixmap(const TQPixmap &);
-%End
const TQColorGroup &colorGroup() const;
const TQPalette &palette() const;
-%If (TQt_2_2_0 -)
bool ownPalette() const;
-%End
virtual void setPalette(const TQPalette &);
-%If (TQt_2_1_0 -)
void unsetPalette();
-%End
-%If (TQt_3_0_0 -)
const TQColor &paletteForegroundColor() const;
void setPaletteForegroundColor(const TQColor &);
@@ -150,38 +133,18 @@ public:
virtual void setPaletteBackgroundPixmap(const TQPixmap &);
const TQBrush &backgroundBrush() const;
-%End
-%If (TQt_2_2_0 -)
bool ownFont() const;
-%End
virtual void setFont(const TQFont &);
TQFontMetrics fontMetrics() const;
TQFontInfo fontInfo() const;
-%If (- TQt_3_0_0)
- enum PropagationMode
- {
- NoChildren,
- AllChildren,
- SameFont,
- SamePalette = SameFont
- };
-
- PropagationMode fontPropagation() const;
- PropagationMode palettePropagation() const;
-%End
-
const TQCursor &cursor() const;
-%If (TQt_2_2_0 -)
bool ownCursor() const;
-%End
virtual void setCursor(const TQCursor &);
const TQPixmap *icon() const;
bool hasMouseTracking() const;
-%If (TQt_3_0_0 -)
bool hasMouse() const;
-%End
void clearMask();
bool isActiveWindow() const;
@@ -191,10 +154,8 @@ public:
static void setTabOrder(TQWidget *,TQWidget *);
TQWidget *focusProxy() const;
-%If (TQt_3_2_0 -)
void setInputMethodEnabled(bool);
bool isInputMethodEnabled() const;
-%End
void grabMouse();
void grabMouse(const TQCursor &);
@@ -208,95 +169,27 @@ public:
bool isVisibleTo(TQWidget *) const;
bool isVisibleToTLW() const;
virtual TQSize sizeHint() const;
-%If (- TQt_3_1_0)
- virtual void adjustSize();
-%End
void erase();
void erase(int,int,int,int);
void erase(const TQRect &);
void scroll(int,int);
TQWidget *focusWidget() const;
bool acceptDrops() const;
-%If (- TQt_3_0_0)
- TQWidget *parentWidget() const;
- bool testWFlags(WFlags) const;
-%End
-%If (TQt_3_0_0 -)
TQWidget *parentWidget(bool = 0) const;
WState testWState(WState) const;
WFlags testWFlags(WFlags) const;
-%End
static TQWidget *find(WId);
-%If (TQt_3_0_0 -)
TQWidget *childAt(int,int,bool = 0) const;
TQWidget *childAt(const TQPoint &,bool = 0) const;
-%End
-%If (TQt_3_3_0 -)
void setWindowOpacity(double);
double windowOpacity() const;
-%End
-
-%If (- TQt_2_00)
- GUIStyle style() const;
- virtual void setStyle(GUIStyle);
- const TQRect &frameGeometry() const;
- void setMinimumSize(int,int);
- void setMaximumSize(int,int);
- void setSizeIncrement(int,int);
-
- enum BackgroundMode
- {
- FixedColor,
- FixedPixmap,
- NoBackground,
- PaletteForeground,
- PaletteBackground,
- PaletteLight,
- PaletteMidlight,
- PaletteDark,
- PaletteMid,
- PaletteText,
- PaletteBase
- };
-
- void setBackgroundMode(BackgroundMode);
- const TQFont &font() const;
- void setFontPropagation(PropagationMode);
- void setPalettePropagation(PropagationMode);
- const char *caption() const;
- const char *iconText() const;
- void setMask(TQBitmap);
- void setMask(const TQRegion &);
- enum FocusPolicy
- {
- NoFocus = 0,
- TabFocus = 1,
- ClickFocus = 2,
- StrongFocus = 3
- };
-
- void setActiveWindow();
- void setFocusPolicy(FocusPolicy);
- void setFocus();
- void clearFocus();
- void setFocusProxy(TQWidget *);
- virtual bool close(bool = 0);
- void recreate(TQWidget *,WFlags,const TQPoint &,bool = 0);
- void drawText(int,int,const char *);
- void drawText(const TQPoint &,const char *);
- void setAcceptDrops(bool);
-%End
-
-%If (TQt_2_00 -)
void setName(const char *);
TQStyle &style() const;
void setStyle(TQStyle *);
-%If (TQt_3_0_0 -)
TQStyle *setStyle(const TQString &);
-%End
TQRect frameGeometry() const;
TQSize frameSize() const;
TQRegion childrenRegion() const;
@@ -311,62 +204,9 @@ public:
void setBaseSize(const TQSize &);
void setBaseSize(int,int);
-%If (- TQt_2_2_0)
- enum BackgroundMode
- {
- FixedColor,
- FixedPixmap,
- NoBackground,
- PaletteForeground,
- PaletteButton,
- PaletteLight,
- PaletteMidlight,
- PaletteDark,
- PaletteMid,
- PaletteText,
- PaletteBrightText,
- PaletteBase,
- PaletteBackground,
- PaletteShadow,
- PaletteHighlight,
- PaletteHighlightedText
- };
-%End
-%If (TQt_2_2_0 - TQt_3_0_0)
- enum BackgroundMode
- {
- FixedColor,
- FixedPixmap,
- NoBackground,
- PaletteForeground,
- PaletteButton,
- PaletteLight,
- PaletteMidlight,
- PaletteDark,
- PaletteMid,
- PaletteText,
- PaletteBrightText,
- PaletteBase,
- PaletteBackground,
- PaletteShadow,
- PaletteHighlight,
- PaletteHighlightedText,
- PaletteButtonText,
- X11ParentRelative
- };
-%End
-
virtual void setBackgroundMode(BackgroundMode);
-%If (TQt_3_0_0 -)
void setBackgroundMode(BackgroundMode,BackgroundMode);
-%End
TQFont font() const;
-%If (- TQt_3_0_0)
- void setPalette(const TQPalette &,bool);
- void setFont(const TQFont &,bool);
- virtual void setFontPropagation(PropagationMode);
- virtual void setPalettePropagation(PropagationMode);
-%End
virtual void unsetCursor();
TQString caption() const;
TQString iconText() const;
@@ -391,35 +231,20 @@ public:
bool isMinimized() const;
virtual TQSize minimumSizeHint() const;
virtual TQSizePolicy sizePolicy() const;
-%If (TQt_2_2_0 -)
bool isHidden() const;
bool isMaximized() const;
-%End
-%If (TQt_3_1_0 -)
bool isShown() const;
bool isFullScreen() const;
-%End
-%If (TQt_3_3_0 -)
uint windowState() const;
void setWindowState(uint);
-%End
-%If (TQt_3_0_0 -)
virtual void setSizePolicy(TQSizePolicy);
-%End
-%If (TQt_3_1_0 -)
void setSizePolicy(TQSizePolicy::SizeType,TQSizePolicy::SizeType,
bool = 0);
-%End
-%If (TQt_2_2_0 - TQt_3_0_0)
- void setSizePolicy(TQSizePolicy);
-%End
virtual int heightForWidth(int) const;
-%If (TQt_3_2_0 -)
TQRegion clipRegion() const;
-%End
TQLayout *layout() const;
void updateGeometry();
@@ -440,7 +265,6 @@ public:
Py_END_ALLOW_THREADS
%End
-%If (TQt_2_1_0 -)
void reparent(TQWidget * /GetWrapper/,const TQPoint &,bool = 0);
%MethodCode
if (sipCpp -> parent() != a0)
@@ -455,7 +279,6 @@ public:
sipCpp->reparent(a0, *a1, a2);
Py_END_ALLOW_THREADS
%End
-%End
void erase(const TQRegion &);
void scroll(int,int,const TQRect &);
@@ -465,51 +288,26 @@ public:
virtual void setAutoMask(bool);
bool autoMask() const;
virtual bool customWhatsThis() const;
-%If (- TQt_3_0_0)
- bool testWState(uint) const;
-%End
-%End
-%If (TQt_2_1_0 -)
TQRect microFocusHint() const;
void unsetFont();
-%End
-%If (TQt_2_1_0 -)
enum BackgroundOrigin {
WidgetOrigin,
ParentOrigin,
-%If (TQt_3_0_0 -)
WindowOrigin,
-%End
-%If (TQt_3_1_0 -)
AncestorOrigin,
-%End
};
-%End
-%If (TQt_2_1_0 - TQt_3_0_0)
- void setBackgroundOrigin(BackgroundOrigin);
-%End
-%If (TQt_3_0_0 -)
virtual void setBackgroundOrigin(BackgroundOrigin);
-%End
-%If (TQt_2_1_0 -)
BackgroundOrigin backgroundOrigin() const;
-%End
-%If (TQt_3_1_0 -)
TQPoint backgroundOffset() const;
-%End
public slots:
-%If (TQt_3_1_0 -)
virtual void adjustSize();
-%End
virtual void setEnabled(bool);
-%If (TQt_2_2_0 -)
void setDisabled(bool);
-%End
void update();
void update(int,int,int,int);
void update(const TQRect &);
@@ -517,10 +315,8 @@ public slots:
void repaint(const TQRect &,bool = 1);
virtual void show();
virtual void hide();
-%If (TQt_3_1_0 -)
void setShown(bool);
void setHidden(bool);
-%End
void raise() /PyName=raiseW/;
void lower() /PyName=lowerW/;
virtual void move(int,int);
@@ -529,18 +325,6 @@ public slots:
void resize(const TQSize &);
virtual void setGeometry(int,int,int,int);
-%If (- TQt_2_00)
- void setCaption(const char *);
- void setIcon(const TQPixmap &);
- void setIconText(const char *);
- void setMouseTracking(bool);
- void setUpdatesEnabled(bool);
- void repaint(bool = 1);
- void iconify();
- void setGeometry(const TQRect &);
-%End
-
-%If (TQt_2_00 -)
virtual void setCaption(const TQString &);
virtual void setIcon(const TQPixmap &);
virtual void setIconText(const TQString &);
@@ -557,18 +341,13 @@ public slots:
virtual void polish();
bool close();
virtual void setGeometry(const TQRect &);
-%End
-%If (TQt_2_1_0 -)
void showFullScreen();
void constPolish() const;
-%End
-%If (TQt_3_0_0 -)
// This was added before v3 but I can't be bothered to work out exactly
// when.
void stackUnder(TQWidget *);
-%End
protected:
bool event(TQEvent *);
@@ -586,42 +365,22 @@ protected:
virtual void moveEvent(TQMoveEvent *);
virtual void resizeEvent(TQResizeEvent *);
virtual void closeEvent(TQCloseEvent *);
-%If (TQt_3_0_0 -)
virtual void contextMenuEvent(TQContextMenuEvent *);
virtual void imStartEvent(TQIMEvent *);
virtual void imComposeEvent(TQIMEvent *);
virtual void imEndEvent(TQIMEvent *);
virtual void tabletEvent(TQTabletEvent *);
-%End
virtual void enabledChange(bool);
-%If (- TQt_3_0_0)
- virtual void backgroundColorChange(const TQColor &);
- virtual void backgroundPixmapChange(const TQPixmap &);
-%End
virtual void paletteChange(const TQPalette &);
virtual void fontChange(const TQFont &);
-%If (TQt_3_0_0 -)
virtual void windowActivationChange(bool);
void resetInputContext();
-%End
WFlags getWFlags() const;
void clearWFlags(WFlags);
virtual bool focusNextPrevChild(bool);
// TQWExtra *extraData();
// TQFocusData *focusData();
-%If (- TQt_2_00)
- virtual void styleChange(GUIStyle);
- void create(WId);
- void create(WId,bool,bool);
- void destroy(bool,bool);
- void setWFlags(WFlags);
- void setFRect(const TQRect &);
- void setCRect(const TQRect &);
- void setSizeGrip(bool);
-%End
-
-%If (TQt_2_00 -)
virtual void wheelEvent(TQWheelEvent *);
%If (TQt_DRAGANDDROP)
virtual void dragEnterEvent(TQDragEnterEvent *);
@@ -631,10 +390,7 @@ protected:
%End
virtual void showEvent(TQShowEvent *);
virtual void hideEvent(TQHideEvent *);
-%If (- TQt_3_0_0)
virtual void customEvent(TQCustomEvent *);
-%End
-
virtual void updateMask();
@@ -646,18 +402,8 @@ protected:
virtual void setWState(uint);
void clearWState(uint);
virtual void setWFlags(WFlags);
-%If (- TQt_3_0_0)
- virtual void setFRect(const TQRect &);
- virtual void setCRect(const TQRect &);
-%End
virtual void setKeyCompression(bool);
-%If (- TQt_3_0_0)
- virtual void setMicroFocusHint(int,int,int,int,bool = 1);
-%End
-%If (TQt_3_0_0 -)
virtual void setMicroFocusHint(int,int,int,int,bool = 1,TQFont * = 0);
-%End
-%End
private:
TQWidget(const TQWidget &);