Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Private Attributes
SCRIBUS_API::UndoItem Class Reference

UndoItem provides a custom QListBoxItem for the undo history view. More...

Inheritance diagram for SCRIBUS_API::UndoItem:
Inheritance graph
[legend]
Collaboration diagram for SCRIBUS_API::UndoItem:
Collaboration graph
[legend]

List of all members.

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)
 Create an UndoItem instance.
 ~UndoItem ()
void paint (QPainter *painter)
int height (const QListBox *) const
int width (const QListBox *) const
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 278 of file undogui.h.


Constructor & Destructor Documentation

Create an empty UndoItem object.

Create a copy of another UndoItem instance.

Parameters:
anotherUndoItem instance to copy
SCRIBUS_API::UndoItem::UndoItem ( const QString &  targetName,
const QString &  actionName,
const QString &  actionDescription,
QPixmap *  targetPixmap,
QPixmap *  actionPixmap,
bool  isUndoAction 
)

Create an UndoItem instance.

Parameters:
targetNameName of the target. Will appear on the first row of the item.
actionNameName of the state (action). Will appear on the second row of the item.
actionDescriptionThis description of the action will be used as a tooltip when the mouse cursor is over the item.
actionPixmapIcon for the state (action). Will appear on front of the text parts.
targetPixmapAn icon for the undo target

Member Function Documentation

int SCRIBUS_API::UndoItem::height ( const QListBox *  ) const
void SCRIBUS_API::UndoItem::paint ( QPainter *  painter)
int SCRIBUS_API::UndoItem::width ( const QListBox *  ) const

Member Data Documentation

QString SCRIBUS_API::UndoItem::action [private]

Undo action's name.

Definition at line 288 of file undogui.h.

An icon for the undo state (action)

Definition at line 284 of file undogui.h.

Description of the action.

Definition at line 290 of file undogui.h.

Does this item describe an undo action if false it's a redo action.

Definition at line 292 of file undogui.h.

QString SCRIBUS_API::UndoItem::target [private]

Name of the target of the state (action)

Definition at line 286 of file undogui.h.

An icon for the undo target.

Definition at line 282 of file undogui.h.


The documentation for this class was generated from the following file: