|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QFrame
com.trolltech.qt.gui.QAbstractScrollArea
com.trolltech.qt.gui.QAbstractItemView
com.trolltech.qt.gui.QListView
com.trolltech.qt.gui.QUndoView
public class QUndoView
The QUndoView
class displays the contents of a QUndoStack
. QUndoView
is a QListView
which displays the list of commands pushed on an undo stack. The most recently executed command is always selected. Selecting a different command results in a call to QUndoStack::setIndex()
, rolling the state of the document backwards or forward to the new command.
The stack can be set explicitly with setStack()
. Alternatively, a QUndoGroup
object can be set with setGroup()
. The view will then update itself automatically whenever the active stack of the group changes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QListView |
---|
QListView.Flow, QListView.LayoutMode, QListView.Movement, QListView.ResizeMode, QListView.ViewMode |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAbstractItemView |
---|
QAbstractItemView.CursorAction, QAbstractItemView.DragDropMode, QAbstractItemView.DropIndicatorPosition, QAbstractItemView.EditTrigger, QAbstractItemView.EditTriggers, QAbstractItemView.ScrollHint, QAbstractItemView.ScrollMode, QAbstractItemView.SelectionBehavior, QAbstractItemView.SelectionMode, QAbstractItemView.State |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QFrame |
---|
QFrame.Shadow, QFrame.Shape, QFrame.StyleMask |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.gui.QListView |
---|
indexesMoved |
Fields inherited from class com.trolltech.qt.gui.QAbstractItemView |
---|
activated, clicked, doubleClicked, entered, pressed, viewportEntered |
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Constructor Summary | |
---|---|
QUndoView()
Constructs a new view with parent parent. |
|
QUndoView(QUndoGroup group)
Constructs a new view with parent parent and sets the observed group to group. |
|
QUndoView(QUndoGroup group,
QWidget parent)
Constructs a new view with parent parent and sets the observed group to group. |
|
QUndoView(QUndoStack stack)
Constructs a new view with parent parent and sets the observed stack to stack. |
|
QUndoView(QUndoStack stack,
QWidget parent)
Constructs a new view with parent parent and sets the observed stack to stack. |
|
QUndoView(QWidget parent)
Constructs a new view with parent parent. |
Method Summary | |
---|---|
QIcon |
cleanIcon()
This property holds the icon used to represent the clean state. |
java.lang.String |
emptyLabel()
This property holds the label used for the empty state. |
static QUndoView |
fromNativePointer(QNativePointer nativePointer)
|
QUndoGroup |
group()
Returns the group displayed by this view. |
void |
setCleanIcon(QIcon icon)
This property holds the icon used to represent the clean state. |
void |
setEmptyLabel(java.lang.String label)
This property holds the label used for the empty state. |
void |
setGroup(QUndoGroup group)
Sets the group displayed by this view to group. |
void |
setStack(QUndoStack stack)
Sets the stack displayed by this view to stack. |
QUndoStack |
stack()
Returns the stack currently displayed by this view. |
Methods inherited from class com.trolltech.qt.gui.QListView |
---|
batchSize, clearPropertyFlags, flow, gridSize, isRowHidden, isSelectionRectVisible, isWrapping, layoutMode, modelColumn, movement, rectForIndex, resizeMode, setBatchSize, setFlow, setGridSize, setLayoutMode, setModelColumn, setMovement, setPositionForIndex, setResizeMode, setRowHidden, setSelectionRectVisible, setSpacing, setUniformItemSizes, setViewMode, setWordWrap, setWrapping, spacing, uniformItemSizes, viewMode, wordWrap |
Methods inherited from class com.trolltech.qt.gui.QFrame |
---|
frameRect, frameShadow, frameShape, frameStyle, frameWidth, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QUndoView(QUndoGroup group)
The view will update itself autmiatically whenever the active stack of the group changes.
public QUndoView(QUndoGroup group, QWidget parent)
The view will update itself autmiatically whenever the active stack of the group changes.
public QUndoView(QUndoStack stack)
public QUndoView(QUndoStack stack, QWidget parent)
public QUndoView()
public QUndoView(QWidget parent)
Method Detail |
---|
public final QIcon cleanIcon()
QUndoStack::setClean()
. This is usually the state of the document at the point it was saved. QUndoView
can display an icon in the list of commands to show the clean state. If this proprety is a null icon, no icon is shown. The default value is the null icon.
public final java.lang.String emptyLabel()
public final QUndoGroup group()
If the view is not looking at group, this function returns 0.
setGroup()
, and setStack()
.
public final void setCleanIcon(QIcon icon)
QUndoStack::setClean()
. This is usually the state of the document at the point it was saved. QUndoView
can display an icon in the list of commands to show the clean state. If this proprety is a null icon, no icon is shown. The default value is the null icon.
public final void setEmptyLabel(java.lang.String label)
public final void setGroup(QUndoGroup group)
The view will update itself autmiatically whenever the active stack of the group changes.
group()
, and setStack()
.
public final void setStack(QUndoStack stack)
If the view was previously looking at a QUndoGroup
, the group is set to 0.
stack()
, and setGroup()
.
public final QUndoStack stack()
QUndoGroup
, this the group's active stack. setStack()
, and setGroup()
.
public static QUndoView fromNativePointer(QNativePointer nativePointer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |