Scribus
Open source desktop publishing at your fingertips
ScItemsState Class Reference
Inheritance diagram for ScItemsState:
Collaboration diagram for ScItemsState:

Public Member Functions

 ScItemsState (const QString &name, const QString &description=0, QPixmap *pixmap=0)
 
void insertItem (QString itemname, void *item)
 
void * getItem (QString itemname) const
 
- Public Member Functions inherited from SimpleState
 SimpleState (const QString &name, const QString &description=0, QPixmap *pixmap=0)
 Creates a new SimpleState instance. More...
 
bool contains (const QString &key)
 Returns true if parameter key exists in the map. More...
 
QString get (const QString &key, const QString &def="")
 Returns the QString value attached to the key. More...
 
int getInt (const QString &key, int def=0)
 Returns the int value attached to the key. More...
 
uint getUInt (const QString &key, uint def=0)
 Returns the uint value attached to the key. More...
 
double getDouble (const QString &key, double def=0.0)
 Returns the double value attached to the key. More...
 
bool getBool (const QString &key, bool def=false)
 Returns the boolean value attached to the key. More...
 
void set (const QString &key, const QString &value)
 Set a value for the key. More...
 
void set (const QString &key, int value)
 Set a value for the key. More...
 
void set (const QString &key, uint value)
 Set a value for the key. More...
 
void set (const QString &key, double value)
 Set a value for the key. More...
 
void set (const QString &key, bool value)
 Set a value for the key. More...
 
- Public Member Functions inherited from UndoState
 UndoState (const QString &name, const QString &description=0, QPixmap *pixmap=0)
 Creates a new UndoState instance. More...
 
virtual QString getName ()
 Returns name of the state (action). More...
 
virtual void setName (const QString &newName)
 Set the name for this UndoState. More...
 
virtual QString getDescription ()
 Returns description of the state. More...
 
virtual void setDescription (const QString &newDescription)
 Set the description for this UndoState. More...
 
virtual QPixmap * getPixmap ()
 Returns a pointer to the icon attached to the state. More...
 
virtual void setPixmap (QPixmap *newPixmap)
 Set the icon for this UndoState. More...
 
virtual void undo ()
 undo the state described by this UndoState, More...
 
virtual void redo ()
 redo the state described by this UndoState, More...
 
virtual bool isTransaction ()
 To know if the state is a transaction.
 
virtual void setUndoObject (UndoObject *object)
 Set the UndoObject this state belongs to.
 
virtual UndoObjectundoObject ()
 return the UndoObject this state belongs to
 

Public Attributes

QList< QPair< void *, int > > insertItemPos
 
- Public Attributes inherited from UndoState
int transactionCode
 

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