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.
263 lines
11 KiB
263 lines
11 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
11 years ago
|
package org.trinitydesktop.qt;
|
||
15 years ago
|
|
||
11 years ago
|
import org.trinitydesktop.qt.Qt;
|
||
15 years ago
|
|
||
|
/**
|
||
13 years ago
|
See {@link TQTextEditSignals} for signals emitted by TQTextEdit
|
||
15 years ago
|
*/
|
||
13 years ago
|
public class TQTextEdit extends TQScrollView {
|
||
|
protected TQTextEdit(Class dummy){super((Class) null);}
|
||
15 years ago
|
public static final int NoWrap = 0;
|
||
|
public static final int WidgetWidth = 1;
|
||
|
public static final int FixedPixelWidth = 2;
|
||
|
public static final int FixedColumnWidth = 3;
|
||
|
|
||
|
public static final int AtWordBoundary = 0;
|
||
|
public static final int AtWhiteSpace = AtWordBoundary;
|
||
|
public static final int Anywhere = 1;
|
||
|
public static final int AtWordOrDocumentBoundary = 2;
|
||
|
|
||
|
public static final int AutoNone = 0;
|
||
|
public static final int AutoBulletList = 0x00000001;
|
||
|
public static final int AutoAll = 0xffffffff;
|
||
|
|
||
|
public static final int ActionBackspace = 0;
|
||
|
public static final int ActionDelete = 1;
|
||
|
public static final int ActionReturn = 2;
|
||
|
public static final int ActionKill = 3;
|
||
|
public static final int ActionWordBackspace = 4;
|
||
|
public static final int ActionWordDelete = 5;
|
||
|
|
||
|
public static final int MoveBackward = 0;
|
||
|
public static final int MoveForward = 1;
|
||
|
public static final int MoveWordBackward = 2;
|
||
|
public static final int MoveWordForward = 3;
|
||
|
public static final int MoveUp = 4;
|
||
|
public static final int MoveDown = 5;
|
||
|
public static final int MoveLineStart = 6;
|
||
|
public static final int MoveLineEnd = 7;
|
||
|
public static final int MoveHome = 8;
|
||
|
public static final int MoveEnd = 9;
|
||
|
public static final int MovePgUp = 10;
|
||
|
public static final int MovePgDown = 11;
|
||
|
|
||
|
public static final int AlignNormal = 0;
|
||
|
public static final int AlignSuperScript = 1;
|
||
|
public static final int AlignSubScript = 2;
|
||
|
|
||
|
public static final int RedoIndentation = 0x0001;
|
||
|
public static final int CheckNewLines = 0x0002;
|
||
|
public static final int RemoveSelected = 0x0004;
|
||
|
|
||
13 years ago
|
public native TQMetaObject metaObject();
|
||
15 years ago
|
public native String className();
|
||
13 years ago
|
public TQTextEdit(String text, String context, TQWidget parent, String name) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(text,context,parent,name);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(String text, String context, TQWidget parent, String name);
|
||
|
public TQTextEdit(String text, String context, TQWidget parent) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(text,context,parent);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(String text, String context, TQWidget parent);
|
||
|
public TQTextEdit(String text, String context) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(text,context);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(String text, String context);
|
||
|
public TQTextEdit(String text) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(text);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(String text);
|
||
|
public TQTextEdit(TQWidget parent, String name) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(parent,name);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(TQWidget parent, String name);
|
||
|
public TQTextEdit(TQWidget parent) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit(parent);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit(TQWidget parent);
|
||
|
public TQTextEdit() {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQTextEdit();
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQTextEdit();
|
||
|
public native void setPalette(TQPalette arg1);
|
||
15 years ago
|
public native String text();
|
||
|
public native String text(int para);
|
||
|
public native int textFormat();
|
||
|
public native String context();
|
||
|
public native String documentTitle();
|
||
|
public native void getSelection(int[] paraFrom, int[] indexFrom, int[] paraTo, int[] indexTo, int selNum);
|
||
|
public native void getSelection(int[] paraFrom, int[] indexFrom, int[] paraTo, int[] indexTo);
|
||
|
public native boolean find(String expr, boolean cs, boolean wo, boolean forward, int[] para, int[] index);
|
||
|
public native boolean find(String expr, boolean cs, boolean wo, boolean forward, int[] para);
|
||
|
public native boolean find(String expr, boolean cs, boolean wo, boolean forward);
|
||
|
public native boolean find(String expr, boolean cs, boolean wo);
|
||
|
public native int paragraphs();
|
||
|
public native int lines();
|
||
|
public native int linesOfParagraph(int para);
|
||
|
public native int lineOfChar(int para, int chr);
|
||
|
public native int length();
|
||
13 years ago
|
public native TQRect paragraphRect(int para);
|
||
|
public native int paragraphAt(TQPoint pos);
|
||
|
public native int charAt(TQPoint pos, int[] para);
|
||
15 years ago
|
public native int paragraphLength(int para);
|
||
13 years ago
|
public native TQStyleSheet styleSheet();
|
||
|
public native TQMimeSourceFactory mimeSourceFactory();
|
||
|
public native TQBrush paper();
|
||
15 years ago
|
public native boolean linkUnderline();
|
||
|
public native int heightForWidth(int w);
|
||
|
public native boolean hasSelectedText();
|
||
|
public native String selectedText();
|
||
|
public native boolean isUndoAvailable();
|
||
|
public native boolean isRedoAvailable();
|
||
|
public native int wordWrap();
|
||
|
public native int wrapColumnOrWidth();
|
||
|
public native int wrapPolicy();
|
||
|
public native int tabStopWidth();
|
||
13 years ago
|
public native String anchorAt(TQPoint pos);
|
||
|
public native String anchorAt(TQPoint pos, int a);
|
||
|
public native TQSize sizeHint();
|
||
15 years ago
|
public native boolean isReadOnly();
|
||
|
public native void getCursorPosition(int[] parag, int[] index);
|
||
|
public native boolean isModified();
|
||
|
public native boolean italic();
|
||
|
public native boolean bold();
|
||
|
public native boolean underline();
|
||
|
public native String family();
|
||
|
public native int pointSize();
|
||
13 years ago
|
public native TQColor color();
|
||
|
public native TQFont font();
|
||
|
public native TQFont currentFont();
|
||
15 years ago
|
public native int alignment();
|
||
|
public native int undoDepth();
|
||
13 years ago
|
public native boolean getFormat(int para, int index, TQFont font, TQColor color, int verticalAlignment);
|
||
|
public native boolean getParagraphFormat(int para, TQFont font, TQColor color, int verticalAlignment, int[] alignment, int displayMode, int listStyle, int[] listDepth);
|
||
15 years ago
|
public native boolean isOverwriteMode();
|
||
13 years ago
|
public native TQColor paragraphBackgroundColor(int para);
|
||
15 years ago
|
public native boolean isUndoRedoEnabled();
|
||
13 years ago
|
public native boolean eventFilter(TQObject o, TQEvent e);
|
||
15 years ago
|
public native boolean tabChangesFocus();
|
||
|
public native void setAutoFormatting(int features);
|
||
|
public native int autoFormatting();
|
||
13 years ago
|
public native TQSyntaxHighlighter syntaxHighlighter();
|
||
15 years ago
|
public native void setEnabled(boolean arg1);
|
||
13 years ago
|
public native void setMimeSourceFactory(TQMimeSourceFactory factory);
|
||
|
public native void setStyleSheet(TQStyleSheet styleSheet);
|
||
15 years ago
|
public native void scrollToAnchor(String name);
|
||
13 years ago
|
public native void setPaper(TQBrush pap);
|
||
15 years ago
|
public native void setLinkUnderline(boolean arg1);
|
||
|
public native void setWordWrap(int mode);
|
||
|
public native void setWrapColumnOrWidth(int arg1);
|
||
|
public native void setWrapPolicy(int policy);
|
||
|
public native void copy();
|
||
|
public native void append(String text);
|
||
|
public native void setText(String txt);
|
||
|
public native void setText(String txt, String context);
|
||
|
public native void setTextFormat(int f);
|
||
|
public native void selectAll(boolean select);
|
||
|
public native void selectAll();
|
||
|
public native void setTabStopWidth(int ts);
|
||
|
public native void zoomIn(int range);
|
||
|
public native void zoomIn();
|
||
|
public native void zoomOut(int range);
|
||
|
public native void zoomOut();
|
||
|
public native void zoomTo(int size);
|
||
|
public native void sync();
|
||
|
public native void setReadOnly(boolean b);
|
||
|
public native void undo();
|
||
|
public native void redo();
|
||
|
public native void cut();
|
||
|
public native void paste();
|
||
|
public native void pasteSubType(String subtype);
|
||
|
public native void clear();
|
||
|
public native void del();
|
||
|
public native void indent();
|
||
|
public native void setItalic(boolean b);
|
||
|
public native void setBold(boolean b);
|
||
|
public native void setUnderline(boolean b);
|
||
|
public native void setFamily(String f);
|
||
|
public native void setPointSize(int s);
|
||
13 years ago
|
public native void setColor(TQColor c);
|
||
|
public native void setFont(TQFont f);
|
||
15 years ago
|
public native void setVerticalAlignment(int a);
|
||
|
public native void setAlignment(int a);
|
||
|
public native void setParagType(int dm, int listStyle);
|
||
|
public native void setCursorPosition(int parag, int index);
|
||
|
public native void setSelection(int parag_from, int index_from, int parag_to, int index_to, int selNum);
|
||
|
public native void setSelection(int parag_from, int index_from, int parag_to, int index_to);
|
||
13 years ago
|
public native void setSelectionAttributes(int selNum, TQColor back, boolean invertText);
|
||
15 years ago
|
public native void setModified(boolean m);
|
||
|
public native void resetFormat();
|
||
|
public native void setUndoDepth(int d);
|
||
13 years ago
|
// void setFormat(TQTextFormat* arg1,int arg2); >>>> NOT CONVERTED
|
||
15 years ago
|
public native void ensureCursorVisible();
|
||
13 years ago
|
// void placeCursor(const TQPoint& arg1,TQTextCursor* arg2); >>>> NOT CONVERTED
|
||
|
public native void placeCursor(TQPoint pos);
|
||
15 years ago
|
public native void moveCursor(int action, boolean select);
|
||
|
public native void doKeyboardAction(int action);
|
||
|
public native void removeSelectedText(int selNum);
|
||
|
public native void removeSelectedText();
|
||
|
public native void removeSelection(int selNum);
|
||
|
public native void removeSelection();
|
||
13 years ago
|
public native void setCurrentFont(TQFont f);
|
||
15 years ago
|
public native void setOverwriteMode(boolean b);
|
||
|
public native void scrollToBottom();
|
||
|
public native void insert(String text, int insertionFlags);
|
||
|
public native void insert(String text);
|
||
|
public native void insert(String text, boolean arg2, boolean arg3, boolean arg4);
|
||
|
public native void insert(String text, boolean arg2, boolean arg3);
|
||
|
public native void insert(String text, boolean arg2);
|
||
|
public native void insertAt(String text, int para, int index);
|
||
|
public native void removeParagraph(int para);
|
||
|
public native void insertParagraph(String text, int para);
|
||
13 years ago
|
public native void setParagraphBackgroundColor(int para, TQColor bg);
|
||
15 years ago
|
public native void clearParagraphBackground(int para);
|
||
|
public native void setUndoRedoEnabled(boolean b);
|
||
|
public native void setTabChangesFocus(boolean b);
|
||
|
public static native String tr(String arg1, String arg2);
|
||
|
public static native String tr(String arg1);
|
||
|
protected native void repaintChanged();
|
||
|
protected native void updateStyles();
|
||
13 years ago
|
protected native void drawContents(TQPainter p, int cx, int cy, int cw, int ch);
|
||
|
public native boolean event(TQEvent e);
|
||
|
protected native void keyPressEvent(TQKeyEvent e);
|
||
|
protected native void resizeEvent(TQResizeEvent e);
|
||
|
protected native void viewportResizeEvent(TQResizeEvent arg1);
|
||
|
protected native void contentsMousePressEvent(TQMouseEvent e);
|
||
|
protected native void contentsMouseMoveEvent(TQMouseEvent e);
|
||
|
protected native void contentsMouseReleaseEvent(TQMouseEvent e);
|
||
|
protected native void contentsMouseDoubleClickEvent(TQMouseEvent e);
|
||
|
protected native void contentsWheelEvent(TQWheelEvent e);
|
||
|
protected native void imStartEvent(TQIMEvent arg1);
|
||
|
protected native void imComposeEvent(TQIMEvent arg1);
|
||
|
protected native void imEndEvent(TQIMEvent arg1);
|
||
|
protected native void contentsDragEnterEvent(TQDragEnterEvent e);
|
||
|
protected native void contentsDragMoveEvent(TQDragMoveEvent e);
|
||
|
protected native void contentsDragLeaveEvent(TQDragLeaveEvent e);
|
||
|
protected native void contentsDropEvent(TQDropEvent e);
|
||
|
protected native void contentsContextMenuEvent(TQContextMenuEvent e);
|
||
15 years ago
|
protected native boolean focusNextPrevChild(boolean next);
|
||
13 years ago
|
// TQTextDocument* document(); >>>> NOT CONVERTED
|
||
|
// TQTextCursor* textCursor(); >>>> NOT CONVERTED
|
||
|
// void setDocument(TQTextDocument* arg1); >>>> NOT CONVERTED
|
||
|
protected native TQPopupMenu createPopupMenu(TQPoint pos);
|
||
|
protected native TQPopupMenu createPopupMenu();
|
||
15 years ago
|
protected native void drawCursor(boolean visible);
|
||
|
protected native void windowActivationChange(boolean arg1);
|
||
|
protected native void doChangeInterval();
|
||
|
protected native void sliderReleased();
|
||
|
/** 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();
|
||
|
}
|