diff options
Diffstat (limited to 'sip/qt/qtextedit.sip')
-rw-r--r-- | sip/qt/qtextedit.sip | 226 |
1 files changed, 113 insertions, 113 deletions
diff --git a/sip/qt/qtextedit.sip b/sip/qt/qtextedit.sip index 3576bf3..4d2362c 100644 --- a/sip/qt/qtextedit.sip +++ b/sip/qt/qtextedit.sip @@ -1,30 +1,30 @@ -// This is the SIP interface definition for QTextEdit. +// This is the SIP interface definition for TQTextEdit. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QTextEdit (Qt v3+)</Title> +<Sect2><Title>TQTextEdit (TQt v3+)</Title> <FuncSynopsis> <FuncDef>int <Function>charAt</Function></FuncDef> - <ParamDef>const QPoint &<Parameter>pos</Parameter></ParamDef> + <ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef> <ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef> </FuncSynopsis> <Para> @@ -42,7 +42,7 @@ This has been renamed <Literal>delChar</Literal> in Python. <FuncSynopsis> <FuncDef>virtual bool <Function>find</Function></FuncDef> - <ParamDef>const QString &<Parameter>expr</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>expr</Parameter></ParamDef> <ParamDef>bool <Parameter>cs</Parameter></ParamDef> <ParamDef>bool <Parameter>wo</Parameter></ParamDef> <ParamDef>bool <Parameter>forward</Parameter> = TRUE</ParamDef> @@ -83,16 +83,16 @@ the <Literal>paraFrom</Literal>, <Literal>indexFrom</Literal>, %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -// These aren't part of the public API in the Qt3 beta, so define them as +// These aren't part of the public API in the TQt3 beta, so define them as // opaque for the moment. -class QTextDocument; -class QTextCursor; +class TQTextDocument; +class TQTextCursor; -class QTextEdit : QScrollView +class TQTextEdit : TQScrollView { %TypeHeaderCode #include <qtextedit.h> @@ -110,12 +110,12 @@ public: AtWordBoundary, Anywhere, AtWhiteSpace, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) AtWordOrDocumentBoundary %End }; -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) enum AutoFormatting { AutoNone, AutoBulletList, @@ -128,7 +128,7 @@ public: ActionDelete, ActionReturn, ActionKill, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) ActionWordBackspace, ActionWordDelete %End @@ -155,7 +155,7 @@ public: AlignSubScript }; -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) enum TextInsertionFlags { RedoIndentation, CheckNewLines, @@ -163,24 +163,24 @@ public: }; %End - QTextEdit(const QString &,const QString & = QString::null, - QWidget * /TransferThis/ = 0,const char * = 0); - QTextEdit(QWidget * /TransferThis/ = 0,const char * = 0); + TQTextEdit(const TQString &,const TQString & = TQString::null, + TQWidget * /TransferThis/ = 0,const char * = 0); + TQTextEdit(TQWidget * /TransferThis/ = 0,const char * = 0); - void setPalette(const QPalette &); + void setPalette(const TQPalette &); - QString text() const; - QString text(int) const; + TQString text() const; + TQString text(int) const; TextFormat textFormat() const; - QString context() const; - QString documentTitle() const; + TQString context() const; + TQString documentTitle() const; void getSelection(int *,int *,int *,int *,int = 0) const; // We implement find() as two separate methods as it's the easiest way - // to handle the somewhat strange Qt interface. - virtual bool find(const QString &,bool,bool,bool = 1); - virtual bool find(const QString &,bool,bool,bool,int * /In,Out/, + // to handle the somewhat strange TQt interface. + virtual bool find(const TQString &,bool,bool,bool = 1); + virtual bool find(const TQString &,bool,bool,bool,int * /In,Out/, int * /In,Out/); int paragraphs() const; @@ -188,17 +188,17 @@ public: int linesOfParagraph(int) const; int lineOfChar(int,int); int length() const; - QRect paragraphRect(int) const; - int paragraphAt(const QPoint &) const; + TQRect paragraphRect(int) const; + int paragraphAt(const TQPoint &) const; // Note that this is handwritten code because the generated code would // return the values in the (correct but) reverse order. - SIP_PYTUPLE charAt(const QPoint &) const; + SIP_PYTUPLE charAt(const TQPoint &) const; %MethodCode int para, index; Py_BEGIN_ALLOW_THREADS - index = sipCpp -> QTextEdit::charAt(*a0,¶); + index = sipCpp -> TQTextEdit::charAt(*a0,¶); Py_END_ALLOW_THREADS sipRes = sipBuildResult(&sipIsErr,"(ii)",para,index); @@ -206,16 +206,16 @@ public: int paragraphLength(int) const; - QStyleSheet *styleSheet() const; - QMimeSourceFactory *mimeSourceFactory() const; + TQStyleSheet *styleSheet() const; + TQMimeSourceFactory *mimeSourceFactory() const; - QBrush paper() const; + TQBrush paper() const; bool linkUnderline() const; int heightForWidth(int) const; bool hasSelectedText() const; - QString selectedText() const; + TQString selectedText() const; bool isUndoAvailable() const; bool isRedoAvailable() const; @@ -225,12 +225,12 @@ public: int tabStopWidth() const; - QString anchorAt(const QPoint &); -%If (Qt_3_1_0 -) - QString anchorAt(const QPoint &,AnchorAttribute); + TQString anchorAt(const TQPoint &); +%If (TQt_3_1_0 -) + TQString anchorAt(const TQPoint &,AnchorAttribute); %End - QSize sizeHint() const; + TQSize sizeHint() const; bool isReadOnly() const; @@ -240,33 +240,33 @@ public: bool italic() const; bool bold() const; bool underline() const; - QString family() const; + TQString family() const; int pointSize() const; - QColor color() const; - QFont font() const; -%If (Qt_3_1_0 -) - QFont currentFont() const; + TQColor color() const; + TQFont font() const; +%If (TQt_3_1_0 -) + TQFont currentFont() const; %End int alignment() const; int undoDepth() const; // These are undocumented and marked as "don't use". - //virtual bool getFormat(int,int,QFont *,QColor *,VerticalAlignment *); - //virtual bool getParagraphFormat(int,QFont *,QColor *, + //virtual bool getFormat(int,int,TQFont *,TQColor *,VerticalAlignment *); + //virtual bool getParagraphFormat(int,TQFont *,TQColor *, // VerticalAlignment *,int *, - // QStyleSheetItem::DisplayMode *, - // QStyleSheetItem::ListStyle *, + // TQStyleSheetItem::DisplayMode *, + // TQStyleSheetItem::ListStyle *, // int *); bool isOverwriteMode() const; - QColor paragraphBackgroundColor(int) const; + TQColor paragraphBackgroundColor(int) const; bool isUndoRedoEnabled() const; - bool eventFilter(QObject *,QEvent *); -%If (Qt_3_1_0 -) + bool eventFilter(TQObject *,TQEvent *); +%If (TQt_3_1_0 -) bool tabChangesFocus() const; - // Qt defines the following as uint rather than int because it uses the + // TQt defines the following as uint rather than int because it uses the // AutoFormatting enum as a set of flags. Because SIP implements enums // as a subclass of int they are always signed. AutoAll is defined as // 0xffffffff which Python converts to -1 and then fails to convert it @@ -275,16 +275,16 @@ public: void setAutoFormatting(int); int autoFormatting() const; %End -%If (Qt_3_3_0 -) - QSyntaxHighlighter *syntaxHighlighter() const; +%If (TQt_3_3_0 -) + TQSyntaxHighlighter *syntaxHighlighter() const; %End public slots: void setEnabled(bool); - virtual void setMimeSourceFactory(QMimeSourceFactory *); - virtual void setStyleSheet(QStyleSheet *); - virtual void scrollToAnchor(const QString &); - virtual void setPaper(const QBrush &); + virtual void setMimeSourceFactory(TQMimeSourceFactory *); + virtual void setStyleSheet(TQStyleSheet *); + virtual void scrollToAnchor(const TQString &); + virtual void setPaper(const TQBrush &); virtual void setLinkUnderline(bool); virtual void setWordWrap(WordWrap); @@ -292,10 +292,10 @@ public slots: virtual void setWrapPolicy(WrapPolicy); virtual void copy(); - virtual void append(const QString &); + virtual void append(const TQString &); - void setText(const QString &); - virtual void setText(const QString &,const QString &); + void setText(const TQString &); + virtual void setText(const TQString &,const TQString &); virtual void setTextFormat(TextFormat); virtual void selectAll(bool = 1); @@ -313,61 +313,61 @@ public slots: virtual void redo(); virtual void cut(); virtual void paste(); - virtual void pasteSubType(const QCString &); + virtual void pasteSubType(const TQCString &); virtual void clear(); virtual void del() /PyName=delChar/; virtual void indent(); virtual void setItalic(bool); virtual void setBold(bool); virtual void setUnderline(bool); - virtual void setFamily(const QString &); + virtual void setFamily(const TQString &); virtual void setPointSize(int); - virtual void setColor(const QColor &); - virtual void setFont(const QFont &); + virtual void setColor(const TQColor &); + virtual void setFont(const TQFont &); virtual void setVerticalAlignment(VerticalAlignment); virtual void setAlignment(int); - virtual void setParagType(QStyleSheetItem::DisplayMode, - QStyleSheetItem::ListStyle); + virtual void setParagType(TQStyleSheetItem::DisplayMode, + TQStyleSheetItem::ListStyle); virtual void setCursorPosition(int,int); virtual void setSelection(int,int,int,int,int = 0); - virtual void setSelectionAttributes(int,const QColor &,bool); + virtual void setSelectionAttributes(int,const TQColor &,bool); virtual void setModified(bool); virtual void resetFormat(); virtual void setUndoDepth(int); -// Marked as internal in the Qt3 beta. -// virtual void setFormat(QTextFormat *,int); +// Marked as internal in the TQt3 beta. +// virtual void setFormat(TQTextFormat *,int); virtual void ensureCursorVisible(); - virtual void placeCursor(const QPoint &,QTextCursor * = 0); + virtual void placeCursor(const TQPoint &,TQTextCursor * = 0); virtual void moveCursor(CursorAction,bool); virtual void doKeyboardAction(KeyboardAction); virtual void removeSelectedText(int = 0); virtual void removeSelection(int = 0); - virtual void setCurrentFont(const QFont &); + virtual void setCurrentFont(const TQFont &); virtual void setOverwriteMode(bool); virtual void scrollToBottom(); -%If (Qt_3_1_0 -) - void insert(const QString &,uint = CheckNewLines | RemoveSelected); - virtual void insert(const QString &,bool,bool = 1,bool = 1); +%If (TQt_3_1_0 -) + void insert(const TQString &,uint = CheckNewLines | RemoveSelected); + virtual void insert(const TQString &,bool,bool = 1,bool = 1); %End -%If (- Qt_3_1_0) - virtual void insert(const QString &,bool = 0,bool = 1,bool = 1); +%If (- TQt_3_1_0) + virtual void insert(const TQString &,bool = 0,bool = 1,bool = 1); %End - virtual void insertAt(const QString &,int,int); + virtual void insertAt(const TQString &,int,int); virtual void removeParagraph(int); - virtual void insertParagraph(const QString &,int); + virtual void insertParagraph(const TQString &,int); - virtual void setParagraphBackgroundColor(int,const QColor &); + virtual void setParagraphBackgroundColor(int,const TQColor &); virtual void clearParagraphBackground(int); virtual void setUndoRedoEnabled(bool); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void setTabChangesFocus(bool); void polish(); %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) void setMaxLogLines(int); int maxLogLines(); %End @@ -378,15 +378,15 @@ signals: void copyAvailable(bool); void undoAvailable(bool); void redoAvailable(bool); - void currentFontChanged(const QFont &); - void currentColorChanged(const QColor &); + void currentFontChanged(const TQFont &); + void currentColorChanged(const TQColor &); void currentAlignmentChanged(int); void currentVerticalAlignmentChanged(VerticalAlignment); - void cursorPositionChanged(QTextCursor *); + void cursorPositionChanged(TQTextCursor *); void cursorPositionChanged(int,int); void returnPressed(); void modificationChanged(bool); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void clicked(int,int); void doubleClicked(int,int); %End @@ -394,43 +394,43 @@ signals: protected: void repaintChanged(); void updateStyles(); - void drawContents(QPainter *,int,int,int,int); - bool event(QEvent *); - void keyPressEvent(QKeyEvent *); - void resizeEvent(QResizeEvent *); - void viewportResizeEvent(QResizeEvent *); - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); - void contentsWheelEvent(QWheelEvent *); - void imStartEvent(QIMEvent *); - void imComposeEvent(QIMEvent *); - void imEndEvent(QIMEvent *); - void contentsDragEnterEvent(QDragEnterEvent *); - void contentsDragMoveEvent(QDragMoveEvent *); - void contentsDragLeaveEvent(QDragLeaveEvent *); - void contentsDropEvent(QDropEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); + void drawContents(TQPainter *,int,int,int,int); + bool event(TQEvent *); + void keyPressEvent(TQKeyEvent *); + void resizeEvent(TQResizeEvent *); + void viewportResizeEvent(TQResizeEvent *); + void contentsMousePressEvent(TQMouseEvent *); + void contentsMouseMoveEvent(TQMouseEvent *); + void contentsMouseReleaseEvent(TQMouseEvent *); + void contentsMouseDoubleClickEvent(TQMouseEvent *); + void contentsWheelEvent(TQWheelEvent *); + void imStartEvent(TQIMEvent *); + void imComposeEvent(TQIMEvent *); + void imEndEvent(TQIMEvent *); + void contentsDragEnterEvent(TQDragEnterEvent *); + void contentsDragMoveEvent(TQDragMoveEvent *); + void contentsDragLeaveEvent(TQDragLeaveEvent *); + void contentsDropEvent(TQDropEvent *); + void contentsContextMenuEvent(TQContextMenuEvent *); bool focusNextPrevChild(bool); - QTextDocument *document() const; - QTextCursor *textCursor() const; - void setDocument(QTextDocument *); - virtual QPopupMenu *createPopupMenu(const QPoint &) /Factory/; - virtual QPopupMenu *createPopupMenu() /Factory/; + TQTextDocument *document() const; + TQTextCursor *textCursor() const; + void setDocument(TQTextDocument *); + virtual TQPopupMenu *createPopupMenu(const TQPoint &) /Factory/; + virtual TQPopupMenu *createPopupMenu() /Factory/; void drawCursor(bool); void windowActivationChange(bool); protected slots: virtual void doChangeInterval(); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void sliderReleased(); %End private: -%If (Qt_3_1_0 -) - QTextEdit(const QTextEdit &); +%If (TQt_3_1_0 -) + TQTextEdit(const TQTextEdit &); %End }; |