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.
tdebindings/kdejava/koala/org/kde/koala/KEdit.java

194 lines
6.9 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPopupMenu;
import org.kde.qt.QPaintEvent;
import org.kde.qt.QPoint;
import org.kde.qt.QDragEnterEvent;
import org.kde.qt.QDragMoveEvent;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QCursor;
import org.kde.qt.QDropEvent;
import org.kde.qt.QTextStream;
import org.kde.qt.QWidget;
import org.kde.qt.QMultiLineEdit;
/**
A simple text editor for the %KDE project.
See {@link KEditSignals} for signals emitted by KEdit
@author Bernd Johannes Wuebben <wuebben@math.cornell.edu>, Waldo Bastian <bastian@kde.org>
@short A simple text editor for the %KDE project.
*/
public class KEdit extends QMultiLineEdit {
protected KEdit(Class dummy){super((Class) null);}
/**
Search directions.
@short Search directions.
*/
public static final int NONE = 0;
public static final int FORWARD = 1;
public static final int BACKWARD = 2;
public native QMetaObject metaObject();
public native String className();
/**
The usual constructor.
@short The usual constructor.
*/
public KEdit(QWidget _parent, String name) {
super((Class) null);
newKEdit(_parent,name);
}
private native void newKEdit(QWidget _parent, String name);
public KEdit(QWidget _parent) {
super((Class) null);
newKEdit(_parent);
}
private native void newKEdit(QWidget _parent);
public KEdit() {
super((Class) null);
newKEdit();
}
private native void newKEdit();
/**
Insert text from the text stream into the edit widget.
@short Insert text from the text stream into the edit widget.
*/
public native void insertText(QTextStream arg1);
/**
Save text from the edit widget to a text stream.
If <code>softWrap</code> is false soft line wrappings are replaced with line-feeds
If <code>softWrap</code> is true soft line wrappings are ignored.
@short Save text from the edit widget to a text stream.
*/
public native void saveText(QTextStream arg1, boolean softWrap);
public native void saveText(QTextStream arg1);
/**
Let the user select a font and set the font of the textwidget to that
selected font.
@short Let the user select a font and set the font of the textwidget to that selected font.
*/
public native void selectFont();
/**
Present a search dialog to the user
@short Present a search dialog to the user
*/
public native void search();
/**
Repeat the last search specified on the search dialog.
If the user hasn't searched for anything until now, this method
will simply return without doing anything.
@return <code>true</code> if a search was done. <code>false</code> if no search was done.
@short Repeat the last search specified on the search dialog.
*/
public native boolean repeatSearch();
/**
Present a Search and Replace Dialog to the user.
@short Present a Search and Replace Dialog to the user.
*/
public native void replace();
/**
Present a "Goto Line" dialog to the user.
@short Present a "Goto Line" dialog to the user.
*/
public native void doGotoLine();
/**
Clean up redundant whitespace from selected text.
@short Clean up redundant whitespace from selected text.
*/
public native void cleanWhiteSpace();
/**
Install a context menu for KEdit.
The Popup Menu will be activated on a right mouse button press event.
@short Install a context menu for KEdit.
*/
public native void installRBPopup(QPopupMenu arg1);
/**
Retrieve the current line number.
The current line is the line the cursor is on.
@short Retrieve the current line number.
*/
public native int currentLine();
/**
Retrieve the actual column number the cursor is on.
This call differs
from QMultiLineEdit.getCursorPosition() in that it returns the actual cursor
position and not the character position. Use currentLine() and currentColumn()
if you want to display the current line or column in the status bar for
example.
@short Retrieve the actual column number the cursor is on.
*/
public native int currentColumn();
/**
Start spellchecking mode.
@short Start spellchecking mode.
*/
public native void spellcheck_start();
/**
Exit spellchecking mode.
@short Exit spellchecking mode.
*/
public native void spellcheck_stop();
/**
Allow the user to toggle between insert mode and overwrite mode with
the "Insert" key. See also toggle_overwrite_signal();
The default is false: the user can not toggle.
@short Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.
*/
public native void setOverwriteEnabled(boolean b);
public native String selectWordUnderCursor();
public native QPopupMenu createPopupMenu(QPoint pos);
public native void setAutoUpdate(boolean b);
/**
@short
*/
public native void corrected(String originalword, String newword, int pos);
/**
@short
*/
public native void misspelling(String word, String[] arg2, int pos);
protected native void computePosition();
protected native int doSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col);
protected native int doReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace);
/**
Sets line and col to the position pos, considering word wrap.
@short Sets line and col to the position pos, considering word wrap.
*/
protected native void posToRowCol(int pos, int line, int col);
/**
Reimplemented for internal reasons, the API is not affected.
@short Reimplemented for internal reasons, the API is not affected.
*/
protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
protected native void create(long arg1, boolean initializeWindow);
protected native void create(long arg1);
protected native void create();
/**
Reimplemented for internal reasons, the API is not affected.
@short Reimplemented for internal reasons, the API is not affected.
*/
public native void ensureCursorVisible();
public native void setCursor(QCursor arg1);
protected native void viewportPaintEvent(QPaintEvent arg1);
protected native void keyPressEvent(QKeyEvent arg1);
protected native void dragMoveEvent(QDragMoveEvent e);
protected native void dragEnterEvent(QDragEnterEvent e);
protected native void dropEvent(QDropEvent e);
protected native void contentsDragMoveEvent(QDragMoveEvent e);
protected native void contentsDragEnterEvent(QDragEnterEvent e);
protected native void contentsDropEvent(QDropEvent e);
/** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */
public native void dispose();
/** Has the wrapped C++ instance been deleted? */
public native boolean isDisposed();
}