7 #ifndef CHARTABLEMODEL_H
8 #define CHARTABLEMODEL_H
10 #include <QAbstractTableModel>
11 #include <QStringList>
14 #include "scribusapi.h"
18 class QItemSelectionModel;
22 typedef QList<uint> CharClassDef;
37 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
38 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
41 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
43 void setFontInUse(QString font);
48 void setCharacters(CharClassDef ch);
49 void setCharactersAndFonts(CharClassDef ch, QStringList fonts);
50 void addCharacter(QString ch);
51 CharClassDef characters() {
55 QStringList fonts() {
return m_fonts; }
58 bool removeCharacter(
int index);
62 void setViewWidth(
int w) {
74 void appendUnicode(
const QString & s, uint base = 16);
80 void selectionChanged(QItemSelectionModel * model);
92 CharClassDef m_characters;
96 QItemSelectionModel * m_selectionModel;
101 Qt::ItemFlags flags(
const QModelIndex &index)
const;
102 Qt::DropActions supportedDropActions()
const;
103 QStringList mimeTypes()
const;
104 QMimeData * mimeData(
const QModelIndexList &indexes)
const;
105 bool dropMimeData(
const QMimeData * data, Qt::DropAction action,
int row,
int column,
const QModelIndex & parent);
A model (MVC) to handle unicode characters map. It's a backend for CharTableView - its GUI representa...
Definition: chartablemodel.h:30
the Document Class
Definition: scribusdoc.h:90
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73