UndoPalette::UndoItem Class Reference
UndoItem provides a custom QListBoxItem for the undo history view. More...
Public Member Functions | |
| UndoItem () | |
| Create an empty UndoItem object. | |
| UndoItem (const UndoItem &another) | |
Create a copy of another UndoItem instance. | |
| UndoItem (const QString &targetName, const QString &actionName, const QString &actionDescription, QPixmap *targetPixmap, QPixmap *actionPixmap, bool isUndoAction, QListWidget *parent=0) | |
| Create an UndoItem instance. | |
| ~UndoItem () | |
| QString | getDescription () |
| bool | isUndoAction () |
| void | setUndoAction (bool isUndo) |
Private Attributes | |
| QPixmap * | targetpixmap |
| An icon for the undo target. | |
| QPixmap * | actionpixmap |
| An icon for the undo state (action). | |
| QString | target |
| Name of the target of the state (action). | |
| QString | action |
| Undo action's name. | |
| QString | description |
| Description of the action. | |
| bool | isUndoAction_ |
| Does this item describe an undo action if false it's a redo action. | |
Detailed Description
UndoItem provides a custom QListBoxItem for the undo history view.Definition at line 273 of file undogui.h.
Constructor & Destructor Documentation
| UndoPalette::UndoItem::UndoItem | ( | ) |
Create an empty UndoItem object.
Definition at line 476 of file undogui.cpp.
References action, actionpixmap, description, isUndoAction_, target, and targetpixmap.
| UndoPalette::UndoItem::UndoItem | ( | const UndoItem & | another | ) |
Create a copy of another UndoItem instance.
- Parameters:
-
another UndoItem instance to copy
Definition at line 486 of file undogui.cpp.
References action, actionpixmap, description, isUndoAction_, target, and targetpixmap.
| UndoPalette::UndoItem::UndoItem | ( | const QString & | targetName, | |
| const QString & | actionName, | |||
| const QString & | actionDescription, | |||
| QPixmap * | targetPixmap, | |||
| QPixmap * | actionPixmap, | |||
| bool | isUndoAction, | |||
| QListWidget * | parent = 0 | |||
| ) |
Create an UndoItem instance.
- Parameters:
-
targetName Name of the target. Will appear on the first row of the item. actionName Name of the state (action). Will appear on the second row of the item. actionDescription This description of the action will be used as a tooltip when the mouse cursor is over the item. actionPixmap Icon for the state (action). Will appear on front of the text parts. targetPixmap An icon for the undo target
Definition at line 496 of file undogui.cpp.
References p.
| UndoPalette::UndoItem::~UndoItem | ( | ) |
Definition at line 604 of file undogui.cpp.
Member Function Documentation
| QString UndoPalette::UndoItem::getDescription | ( | ) |
Definition at line 586 of file undogui.cpp.
References description.
Referenced by UndoPalette::showToolTip().
| bool UndoPalette::UndoItem::isUndoAction | ( | ) |
| void UndoPalette::UndoItem::setUndoAction | ( | bool | isUndo | ) |
Definition at line 596 of file undogui.cpp.
References isUndoAction_.
Referenced by UndoPalette::updateList().
Member Data Documentation
QPixmap* UndoPalette::UndoItem::targetpixmap [private] |
QPixmap* UndoPalette::UndoItem::actionpixmap [private] |
An icon for the undo state (action).
Definition at line 279 of file undogui.h.
Referenced by UndoItem().
QString UndoPalette::UndoItem::target [private] |
Name of the target of the state (action).
Definition at line 281 of file undogui.h.
Referenced by UndoItem().
QString UndoPalette::UndoItem::action [private] |
QString UndoPalette::UndoItem::description [private] |
Description of the action.
Definition at line 285 of file undogui.h.
Referenced by getDescription(), and UndoItem().
bool UndoPalette::UndoItem::isUndoAction_ [private] |
Does this item describe an undo action if false it's a redo action.
Definition at line 287 of file undogui.h.
Referenced by isUndoAction(), setUndoAction(), and UndoItem().
The documentation for this class was generated from the following files:
