Qt:Документация 4.3.2/qundoview
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
QUndoView Class Reference
[модуль QtGui ]
The QUndoView class displays the contents of a QUndoStack. More...
#include <QUndoView>
Inherits QListView.
This class was introduced in Qt 4.2.
Свойства
- cleanIcon : QIcon
- emptyLabel : QString
- 13 свойства унаследованных от QListView
- 14 свойства унаследованных от QAbstractItemView
- 2 свойства унаследованных от QAbstractScrollArea
- 6 свойства унаследованных от QFrame
- 56 свойства унаследованных от QWidget
- 1 свойство унаследованное от QObject
Открытые функции
- QUndoView ( QWidget * parent = 0 )
- QUndoView ( QUndoStack * stack, QWidget * parent = 0 )
- QUndoView ( QUndoGroup * group, QWidget * parent = 0 )
- ~QUndoView ()
- QIcon cleanIcon () const
- QString emptyLabel () const
- QUndoGroup * group () const
- void setCleanIcon ( const QIcon & icon )
- void setEmptyLabel ( const QString & label )
- QUndoStack * stack () const
- 29 открытых функций унаследованных от QListView
- 52 открытых функций унаследованных от QAbstractItemView
- 15 открытых функций унаследованных от QAbstractScrollArea
- 13 открытых функций унаследованных от QFrame
- 201 открытых функций унаследованных от QWidget
- 29 открытых функций унаследованных от QObject
- 12 открытых функций унаследованных от QPaintDevice
Открытые слоты
- 9 открытых слотов унаследованных от QAbstractItemView
- 19 открытых слотов унаследованных от QWidget
- 1 открытый слот унаследованный от QObject
Дополнительные унаследованные члены
- 1 сигнал унаследованный от QListView
- 6 сигнала унаследованных от QAbstractItemView
- 1 сигнал унаследованный от QWidget
- 1 сигнал унаследованный от QObject
- 4 статических открытых члена унаследованных от QWidget
- 5 статических открытых члена унаследованных от QObject
- 2 защищенных функций унаследованных от QListView
- 33 защищенных функций унаследованных от QAbstractItemView
- 16 защищенных функций унаследованных от QAbstractScrollArea
- 38 защищенных функций унаследованных от QWidget
- 7 защищенных функций унаследованных от QObject
- 1 защищенная функция унаследованна от QPaintDevice
- 8 защищенных слотов унаследованных от QAbstractItemView
- 1 защищенный слот унаследованный от QAbstractScrollArea
- 1 защищенный слот унаследованный от QWidget
Подробное описание
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.
Описание свойств
cleanIcon : QIcon
This property holds the icon used to represent the clean state.
A stack may have a clean state set with 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.
Функции доступа:
- QIcon cleanIcon () const
- void setCleanIcon ( const QIcon & icon )
emptyLabel : QString
This property holds the label used for the empty state.
The empty label is the topmost element in the list of commands, which represents the state of the document before any commands were pushed on the stack. The default is the string "<empty>".
Функции доступа:
- QString emptyLabel () const
- void setEmptyLabel ( const QString & label )
Описание функций-членов
QUndoView::QUndoView ( QWidget * parent = 0 )
Constructs a new view with parent parent.
QUndoView::QUndoView ( QUndoStack * stack, QWidget * parent = 0 )
Constructs a new view with parent parent and sets the observed stack to stack.
QUndoView::QUndoView ( QUndoGroup * group, QWidget * parent = 0 )
Constructs a new view with parent parent and sets the observed group to group.
The view will update itself autmiatically whenever the active stack of the group changes.
QUndoView::~QUndoView ()
Destroys this view.
QUndoGroup * QUndoView::group () const
Returns the group displayed by this view.
If the view is not looking at group, this function returns 0.
See also setGroup() and setStack().
void QUndoView::setGroup ( QUndoGroup * group ) [slot]
Sets the group displayed by this view to group. If group is 0, the view will be empty.
The view will update itself autmiatically whenever the active stack of the group changes.
See also group() and setStack().
void QUndoView::setStack ( QUndoStack * stack ) [slot]
Sets the stack displayed by this view to stack. If stack is 0, the view will be empty.
If the view was previously looking at a QUndoGroup, the group is set to 0.
See also stack() and setGroup().
QUndoStack * QUndoView::stack () const
Returns the stack currently displayed by this view. If the view is looking at a QUndoGroup, this the group's active stack.
See also setStack() and setGroup().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|