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

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

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

import io.qt.*;


/**
 * 

Group of QUndoStack objects

*

Java wrapper for Qt class QUndoGroup

*/ public class QUndoGroup extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private java.util.Collection __rcStacks; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QUndoGroup.class); /** *

See QUndoGroup::activeStackChanged(QUndoStack*)

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

See QUndoGroup::canRedoChanged(bool)

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

See QUndoGroup::canUndoChanged(bool)

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

See QUndoGroup::cleanChanged(bool)

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

See QUndoGroup::indexChanged(int)

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

See QUndoGroup::redoTextChanged(QString)

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

See QUndoGroup::undoTextChanged(QString)

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

See QUndoGroup::QUndoGroup(QObject*)

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

See QUndoGroup::activeStack()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QUndoStack activeStack(){ return activeStack_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QUndoStack activeStack_native_constfct(long __this__nativeId); /** *

See QUndoGroup::addStack(QUndoStack*)

*/ @QtUninvokable public final void addStack(io.qt.gui.@Nullable QUndoStack stack){ addStack_native_QUndoStack_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stack)); if (stack != null) { if(__rcStacks==null) __rcStacks = QtJambi_LibraryUtilities.internal.newRCList(); __rcStacks.add(stack); } } @QtUninvokable private native void addStack_native_QUndoStack_ptr(long __this__nativeId, long stack); /** *

See QUndoGroup::canRedo()const

*/ @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 QUndoGroup::canUndo()const

*/ @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 QUndoGroup::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 QUndoGroup::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 QUndoGroup::isClean()const

*/ @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 QUndoGroup::redo()

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

See QUndoGroup::redoText()const

*/ @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 QUndoGroup::removeStack(QUndoStack*)

*/ @QtUninvokable public final void removeStack(io.qt.gui.@Nullable QUndoStack stack){ removeStack_native_QUndoStack_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stack)); if (stack != null) { while (__rcStacks != null && __rcStacks.remove(stack)) ; } } @QtUninvokable private native void removeStack_native_QUndoStack_ptr(long __this__nativeId, long stack); /** *

See QUndoGroup::setActiveStack(QUndoStack*)

*/ public final void setActiveStack(io.qt.gui.@Nullable QUndoStack stack){ setActiveStack_native_QUndoStack_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stack)); } private native void setActiveStack_native_QUndoStack_ptr(long __this__nativeId, long stack); /** *

See QUndoGroup::stacks()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList stacks(){ return stacks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList stacks_native_constfct(long __this__nativeId); /** *

See QUndoGroup::undo()

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

See QUndoGroup::undoText()const

*/ @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 QUndoGroup(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QUndoGroup(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QUndoGroup instance, QDeclarativeConstructor constructor); /** *

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

*/ public QUndoGroup() { this((io.qt.core.QObject)null); } /** *

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); } }