You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytqt/sip/tqt/tqmultilinedit.sip

135 lines
4.0 KiB

// This is the SIP interface definition for TQMultiLineEdit.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
// 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
<Sect2><Title>TQMultiLineEdit</Title>
<FuncSynopsis>
<FuncDef>void <Function>cursorPosition</Function> const</FuncDef>
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>del</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>delChar</Literal> in Python. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>getCursorPosition</Function> const</FuncDef>
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>getMarkedRegion</Function></FuncDef>
<ParamDef>int *<Parameter>line1</Parameter></ParamDef>
<ParamDef>int *<Parameter>col1</Parameter></ParamDef>
<ParamDef>int *<Parameter>line2</Parameter></ParamDef>
<ParamDef>int *<Parameter>col2</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the bool result and the
<Literal>line1</Literal>, <Literal>col1</Literal>, <Literal>line2</Literal> and
<Literal>col2</Literal> values.
</Para>
</Sect2>
%End
class TQMultiLineEdit : TQTextEdit
{
%TypeHeaderCode
#include <tqmultilineedit.h>
%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 &);
};