io.qt.gui.QUndoCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* The base class of all commands stored on a QUndoStack
* Java wrapper for Qt class QUndoCommand
*/
public class QUndoCommand extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QUndoCommand:: QUndoCommand(QString, QUndoCommand*)
*/
public QUndoCommand(java.lang.@NonNull String text, io.qt.gui.@Nullable QUndoCommand parent){
super((QPrivateConstructor)null);
initialize_native(this, text, parent);
}
private native static void initialize_native(QUndoCommand instance, java.lang.String text, io.qt.gui.QUndoCommand parent);
/**
* See QUndoCommand:: QUndoCommand(QUndoCommand*)
*/
public QUndoCommand(io.qt.gui.@Nullable QUndoCommand parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QUndoCommand instance, io.qt.gui.QUndoCommand parent);
/**
* See QUndoCommand:: actionText()const
*/
@QtUninvokable
public final java.lang.@NonNull String actionText(){
return actionText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String actionText_native_constfct(long __this__nativeId);
/**
* See QUndoCommand:: child(int)const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QUndoCommand child(int index){
return child_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.gui.QUndoCommand child_native_int_constfct(long __this__nativeId, int index);
/**
* See QUndoCommand:: childCount()const
*/
@QtUninvokable
public final int childCount(){
return childCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int childCount_native_constfct(long __this__nativeId);
/**
* See QUndoCommand:: isObsolete()const
*/
@QtUninvokable
public final boolean isObsolete(){
return isObsolete_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isObsolete_native_constfct(long __this__nativeId);
/**
* See QUndoCommand:: setObsolete(bool)
*/
@QtUninvokable
public final void setObsolete(boolean obsolete){
setObsolete_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), obsolete);
}
@QtUninvokable
private native void setObsolete_native_bool(long __this__nativeId, boolean obsolete);
/**
* See QUndoCommand:: setText(QString)
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
*
*/
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public int id(){
return id_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int id_native_constfct(long __this__nativeId);
/**
* See QUndoCommand:: mergeWith(const QUndoCommand*)
*/
@QtUninvokable
public boolean mergeWith(io.qt.gui.@Nullable QUndoCommand other){
return mergeWith_native_const_QUndoCommand_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean mergeWith_native_const_QUndoCommand_ptr(long __this__nativeId, long other);
/**
*
*/
@QtUninvokable
public void redo(){
redo_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void redo_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public void undo(){
undo_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void undo_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QUndoCommand(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QUndoCommand(java.lang.String, io.qt.gui.QUndoCommand)}
* with parent = null
.
*/
public QUndoCommand(java.lang.@NonNull String text) {
this(text, (io.qt.gui.QUndoCommand)null);
}
/**
* Overloaded constructor for {@link #QUndoCommand(io.qt.gui.QUndoCommand)}
* with parent = null
.
*/
public QUndoCommand() {
this((io.qt.gui.QUndoCommand)null);
}
}