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.
149 lines
5.2 KiB
149 lines
5.2 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.trinitydesktop.koala;
|
|
|
|
import org.trinitydesktop.qt.Qt;
|
|
import org.trinitydesktop.qt.TQMetaObject;
|
|
import org.trinitydesktop.qt.QtSupport;
|
|
import org.trinitydesktop.qt.TQPopupMenu;
|
|
import org.trinitydesktop.qt.TQPoint;
|
|
import org.trinitydesktop.qt.TQFocusEvent;
|
|
import org.trinitydesktop.qt.TQKeyEvent;
|
|
import org.trinitydesktop.qt.TQWidget;
|
|
import org.trinitydesktop.qt.TQPalette;
|
|
import org.trinitydesktop.qt.TQWheelEvent;
|
|
import org.trinitydesktop.qt.TQTextEdit;
|
|
|
|
/**
|
|
|
|
This is just a little subclass of TQTextEdit, implementing
|
|
some standard KDE features, like Cursor auto-hiding, configurable
|
|
wheelscrolling (fast-scroll or zoom) and deleting of entire
|
|
words with Ctrl-Backspace or Ctrl-Delete.
|
|
Basic rule: whenever you want to use TQTextEdit, use KTextEdit!
|
|
@author Carsten Pfeiffer <pfeiffer@kde.org>
|
|
|
|
@short A KDE'ified TQTextEdit.
|
|
@see org.trinitydesktop.qt.TQTextEdit
|
|
|
|
*/
|
|
public class KTextEdit extends TQTextEdit {
|
|
protected KTextEdit(Class dummy){super((Class) null);}
|
|
public native TQMetaObject metaObject();
|
|
public native String className();
|
|
/**
|
|
Constructs a KTextEdit object. See TQTextEdit.TQTextEdit
|
|
for details.
|
|
@short Constructs a KTextEdit object.
|
|
*/
|
|
public KTextEdit(String text, String context, TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKTextEdit(text,context,parent,name);
|
|
}
|
|
private native void newKTextEdit(String text, String context, TQWidget parent, String name);
|
|
public KTextEdit(String text, String context, TQWidget parent) {
|
|
super((Class) null);
|
|
newKTextEdit(text,context,parent);
|
|
}
|
|
private native void newKTextEdit(String text, String context, TQWidget parent);
|
|
public KTextEdit(String text, String context) {
|
|
super((Class) null);
|
|
newKTextEdit(text,context);
|
|
}
|
|
private native void newKTextEdit(String text, String context);
|
|
public KTextEdit(String text) {
|
|
super((Class) null);
|
|
newKTextEdit(text);
|
|
}
|
|
private native void newKTextEdit(String text);
|
|
/**
|
|
Constructs a KTextEdit object. See TQTextEdit.TQTextEdit
|
|
for details.
|
|
@short Constructs a KTextEdit object.
|
|
*/
|
|
public KTextEdit(TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKTextEdit(parent,name);
|
|
}
|
|
private native void newKTextEdit(TQWidget parent, String name);
|
|
public KTextEdit(TQWidget parent) {
|
|
super((Class) null);
|
|
newKTextEdit(parent);
|
|
}
|
|
private native void newKTextEdit(TQWidget parent);
|
|
public KTextEdit() {
|
|
super((Class) null);
|
|
newKTextEdit();
|
|
}
|
|
private native void newKTextEdit();
|
|
/**
|
|
Reimplemented to set a proper "deactivated" background color.
|
|
@short Reimplemented to set a proper "deactivated" background color.
|
|
*/
|
|
public native void setReadOnly(boolean readOnly);
|
|
/**
|
|
Reimplemented for tracking custom palettes.
|
|
@short Reimplemented for tracking custom palettes.
|
|
*/
|
|
public native void setPalette(TQPalette palette);
|
|
/**
|
|
Turns spell checking for this text edit on or off.
|
|
@short Turns spell checking for this text edit on or off.
|
|
@see #checkSpellingEnabled
|
|
*/
|
|
public native void setCheckSpellingEnabled(boolean check);
|
|
/**
|
|
Returns true if spell checking is enabled for this text edit.
|
|
@ see setCheckSpellingEnabled()
|
|
@short Returns true if spell checking is enabled for this text edit.
|
|
*/
|
|
public native boolean checkSpellingEnabled();
|
|
public native void highLightWord(int length, int pos);
|
|
/**
|
|
Create a modal dialog to check the spelling. This slot will not return
|
|
until spell checking has been completed.
|
|
@short Create a modal dialog to check the spelling.
|
|
*/
|
|
public native void checkSpelling();
|
|
/**
|
|
Reimplemented to catch "delete word" key events.
|
|
@short Reimplemented to catch "delete word" key events.
|
|
*/
|
|
protected native void keyPressEvent(TQKeyEvent arg1);
|
|
/**
|
|
Reimplemented to instantiate a KDictSpellingHighlighter, if
|
|
spellchecking is enabled.
|
|
@short Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.
|
|
*/
|
|
protected native void focusInEvent(TQFocusEvent arg1);
|
|
/**
|
|
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel
|
|
or zoom.
|
|
@short Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.
|
|
*/
|
|
protected native void contentsWheelEvent(TQWheelEvent arg1);
|
|
/**
|
|
Deletes a word backwards from the current cursor position,
|
|
if available.
|
|
@short Deletes a word backwards from the current cursor position, if available.
|
|
*/
|
|
protected native void deleteWordBack();
|
|
/**
|
|
Deletes a word forwards from the current cursor position,
|
|
if available.
|
|
@short Deletes a word forwards from the current cursor position, if available.
|
|
*/
|
|
protected native void deleteWordForward();
|
|
/**
|
|
Reimplemented from TQTextEdit to add spelling related items
|
|
when appropriate.
|
|
@short Reimplemented from TQTextEdit to add spelling related items when appropriate.
|
|
*/
|
|
protected native TQPopupMenu createPopupMenu(TQPoint pos);
|
|
/** 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();
|
|
}
|