Scribus
Open source desktop publishing at your fingertips
GuidesModel Class Reference

A model for guides lists. It holds guides as a double QList (it will be expanded later because of RFEs) and it handles its values editing too. The editor from GuidesDelegate is used. See Qt4 documentation for more info about its methods. FIXME: unit conversions for dipslay vs. internal. More...

#include <guidesmodel.h>

Inheritance diagram for GuidesModel:
Collaboration diagram for GuidesModel:

Signals

void valueChanged ()
 Signal emmitted when the user finish the editation of one value.
 

Public Member Functions

 GuidesModel (QObject *parent=0)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
void removeValues (const Guides &v)
 
void insertRow ()
 
void setValues (Guides values)
 Set new values into the model.
 
Guides values ()
 Get values back to the app.
 
void unitChange (int docUnitIndex, int docUnitDecimals, double offset)
 

Detailed Description

A model for guides lists. It holds guides as a double QList (it will be expanded later because of RFEs) and it handles its values editing too. The editor from GuidesDelegate is used. See Qt4 documentation for more info about its methods. FIXME: unit conversions for dipslay vs. internal.

Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

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