All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QUndoStack Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Stack of QUndoCommand objects

*

Java wrapper for Qt class QUndoStack

*/ public class QUndoStack extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QUndoStack.class); /** *

See QUndoStack::canRedoChanged(bool)

*/ @QtPropertyNotify(name="canRedo") public final @NonNull Signal1 canRedoChanged = new Signal1<>(); /** *

See QUndoStack::canUndoChanged(bool)

*/ @QtPropertyNotify(name="canUndo") public final @NonNull Signal1 canUndoChanged = new Signal1<>(); /** *

See QUndoStack::cleanChanged(bool)

*/ @QtPropertyNotify(name="clean") public final @NonNull Signal1 cleanChanged = new Signal1<>(); /** *

See QUndoStack::indexChanged(int)

*/ public final @NonNull Signal1 indexChanged = new Signal1<>(); /** *

See QUndoStack::redoTextChanged(QString)

*/ @QtPropertyNotify(name="redoText") public final @NonNull Signal1 redoTextChanged = new Signal1<>(); /** *

See QUndoStack::undoTextChanged(QString)

*/ @QtPropertyNotify(name="undoText") public final @NonNull Signal1 undoTextChanged = new Signal1<>(); /** *

See QUndoStack::QUndoStack(QObject*)

*/ public QUndoStack(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QUndoStack instance, io.qt.core.QObject parent); /** *

See QUndoStack::beginMacro(QString)

*/ @QtUninvokable public final void beginMacro(java.lang.@NonNull String text){ beginMacro_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native void beginMacro_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QUndoStack::canRedo()const

*/ @QtPropertyReader(name="canRedo") @QtUninvokable public final boolean canRedo(){ return canRedo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean canRedo_native_constfct(long __this__nativeId); /** *

See QUndoStack::canUndo()const

*/ @QtPropertyReader(name="canUndo") @QtUninvokable public final boolean canUndo(){ return canUndo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean canUndo_native_constfct(long __this__nativeId); /** *

See QUndoStack::cleanIndex()const

*/ @QtUninvokable public final int cleanIndex(){ return cleanIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int cleanIndex_native_constfct(long __this__nativeId); /** *

See QUndoStack::clear()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QUndoStack::command(int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QUndoCommand command(int index){ return command_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.gui.QUndoCommand command_native_int_constfct(long __this__nativeId, int index); /** *

See QUndoStack::count()const

*/ @QtUninvokable public final int count(){ return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int count_native_constfct(long __this__nativeId); /** *

See QUndoStack::createRedoAction(QObject*,QString)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction createRedoAction(io.qt.core.@Nullable QObject parent, java.lang.@NonNull String prefix){ return createRedoAction_native_QObject_ptr_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), prefix); } @QtUninvokable private native io.qt.gui.QAction createRedoAction_native_QObject_ptr_cref_QString_constfct(long __this__nativeId, long parent, java.lang.String prefix); /** *

See QUndoStack::createUndoAction(QObject*,QString)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction createUndoAction(io.qt.core.@Nullable QObject parent, java.lang.@NonNull String prefix){ return createUndoAction_native_QObject_ptr_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), prefix); } @QtUninvokable private native io.qt.gui.QAction createUndoAction_native_QObject_ptr_cref_QString_constfct(long __this__nativeId, long parent, java.lang.String prefix); /** *

See QUndoStack::endMacro()

*/ @QtUninvokable public final void endMacro(){ endMacro_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void endMacro_native(long __this__nativeId); /** *

See QUndoStack::index()const

*/ @QtUninvokable public final int index(){ return index_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int index_native_constfct(long __this__nativeId); /** *

See QUndoStack::isActive()const

*/ @QtPropertyReader(name="active") @QtUninvokable public final boolean isActive(){ return isActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isActive_native_constfct(long __this__nativeId); /** *

See QUndoStack::isClean()const

*/ @QtPropertyReader(name="clean") @QtUninvokable public final boolean isClean(){ return isClean_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isClean_native_constfct(long __this__nativeId); /** *

See QUndoStack::push(QUndoCommand*)

*/ @QtUninvokable public final void push(io.qt.gui.@Nullable QUndoCommand cmd){ push_native_QUndoCommand_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cmd)); } @QtUninvokable private native void push_native_QUndoCommand_ptr(long __this__nativeId, long cmd); /** *

See QUndoStack::redo()

*/ public final void redo(){ redo_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void redo_native(long __this__nativeId); /** *

See QUndoStack::redoText()const

*/ @QtPropertyReader(name="redoText") @QtUninvokable public final java.lang.@NonNull String redoText(){ return redoText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String redoText_native_constfct(long __this__nativeId); /** *

See QUndoStack::resetClean()

*/ public final void resetClean(){ resetClean_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void resetClean_native(long __this__nativeId); /** *

See QUndoStack::setActive(bool)

*/ @QtPropertyWriter(name="active") public final void setActive(boolean active){ setActive_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), active); } private native void setActive_native_bool(long __this__nativeId, boolean active); /** *

See QUndoStack::setClean()

*/ public final void setClean(){ setClean_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setClean_native(long __this__nativeId); /** *

See QUndoStack::setIndex(int)

*/ public final void setIndex(int idx){ setIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), idx); } private native void setIndex_native_int(long __this__nativeId, int idx); /** *

See QUndoStack::setUndoLimit(int)

*/ @QtPropertyWriter(name="undoLimit") @QtUninvokable public final void setUndoLimit(int limit){ setUndoLimit_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), limit); } @QtUninvokable private native void setUndoLimit_native_int(long __this__nativeId, int limit); /** *

See QUndoStack::text(int)const

*/ @QtUninvokable public final java.lang.@NonNull String text(int idx){ return text_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), idx); } @QtUninvokable private native java.lang.String text_native_int_constfct(long __this__nativeId, int idx); /** *

See QUndoStack::undo()

*/ public final void undo(){ undo_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void undo_native(long __this__nativeId); /** *

See QUndoStack::undoLimit()const

*/ @QtPropertyReader(name="undoLimit") @QtUninvokable public final int undoLimit(){ return undoLimit_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int undoLimit_native_constfct(long __this__nativeId); /** *

See QUndoStack::undoText()const

*/ @QtPropertyReader(name="undoText") @QtUninvokable public final java.lang.@NonNull String undoText(){ return undoText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String undoText_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QUndoStack(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QUndoStack(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QUndoStack instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QUndoStack(io.qt.core.QObject)} * with parent = null.

*/ public QUndoStack() { this((io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #canRedo()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getCanRedo() { return canRedo(); } /** * @hidden *

Kotlin property getter. In Java use {@link #canUndo()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getCanUndo() { return canUndo(); } /** *

Overloaded function for {@link #createRedoAction(io.qt.core.QObject, java.lang.String)} * with prefix = (String)null.

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction createRedoAction(io.qt.core.@Nullable QObject parent) { return createRedoAction(parent, (String)null); } /** *

Overloaded function for {@link #createUndoAction(io.qt.core.QObject, java.lang.String)} * with prefix = (String)null.

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction createUndoAction(io.qt.core.@Nullable QObject parent) { return createUndoAction(parent, (String)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #isActive()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getActive() { return isActive(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isClean()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getClean() { return isClean(); } /** * @hidden *

Kotlin property getter. In Java use {@link #redoText()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getRedoText() { return redoText(); } /** *

Overloaded function for {@link #setActive(boolean)} * with active = true.

*/ public final void setActive() { setActive((boolean)true); } /** * @hidden *

Kotlin property getter. In Java use {@link #undoLimit()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getUndoLimit() { return undoLimit(); } /** * @hidden *

Kotlin property getter. In Java use {@link #undoText()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getUndoText() { return undoText(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy