// This is the SIP interface definition for TQMultiLineEdit. // // Copyright (c) 2007 // Riverbank Computing Limited // // This file is part of PyTQt. // // 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. // // 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 // 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 TQMultiLineEdit void cursorPosition const int *line int *col This takes no parameters and returns a tuple of the line and col values. (TQt v1.x, TQt v2.x) virtual void del This has been renamed delChar in Python. (TQt v1.x, TQt v2.x) void getCursorPosition const int *line int *col This takes no parameters and returns a tuple of the line and col values. (TQt v1.x, TQt v2.x) bool getMarkedRegion int *line1 int *col1 int *line2 int *col2 This takes no parameters and returns a tuple of the bool result and the line1, col1, line2 and col2 values. %End class TQMultiLineEdit : TQTextEdit { %TypeHeaderCode #include %End public: TQMultiLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0); TQString textLine(int) const; int numLines() const; virtual void insertLine(const TQString &,int = -1); virtual void insertAt(const TQString &,int,int); virtual void insertAt(const TQString &,int,int,bool); virtual void removeLine(int); virtual void setCursorPosition(int,int); virtual void setCursorPosition(int,int,bool); bool atBeginning() const; bool atEnd() const; void setAlignment(int); int alignment() const; void setEdited(bool); bool edited() const; bool hasMarkedText() const; TQString markedText() const; void cursorWordForward(bool); void cursorWordBackward(bool); bool autoUpdate() const; virtual void setAutoUpdate(bool); int totalWidth() const; int totalHeight() const; int maxLines() const; void setMaxLines(int); public slots: void deselect(); protected: TQPoint cursorPoint() const; virtual void insertAndMark(const TQString &,bool); virtual void newLine(); virtual void killLine(); virtual void pageUp(bool = 0); virtual void pageDown(bool = 0); virtual void cursorLeft(bool = 0,bool = 1); virtual void cursorRight(bool = 0,bool = 1); virtual void cursorUp(bool = 0); virtual void cursorDown(bool = 0); virtual void backspace(); virtual void home(bool = 0); virtual void end(bool = 0); bool getMarkedRegion(int *,int *,int *,int *) const; int lineLength(int) const; private: TQMultiLineEdit(const TQMultiLineEdit &); };