lokalize
#include <catalogmodel.h>

Public Types | |
enum | CatalogModelColumns { Key =0, Source, Target, Notes, TranslationStatus, Empty, State, Modified, ColumnCount, DisplayedColumnCount =TranslationStatus+1 } |
enum | Roles { StringFilterRole =Qt::UserRole+1 } |
Public Slots | |
void | fileLoaded () |
void | reflectChanges (DocPosition) |
Public Member Functions | |
CatalogTreeModel (QObject *parent, Catalog *catalog) | |
~CatalogTreeModel () | |
Catalog * | catalog () const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &, int role=Qt::DisplayRole) const |
QVariant | headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | setIgnoreAccel (bool n) |
Detailed Description
MVC wrapper for Catalog.
Definition at line 41 of file catalogmodel.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Key | |
Source | |
Target | |
Notes | |
TranslationStatus | |
Empty | |
State | |
Modified | |
ColumnCount | |
DisplayedColumnCount |
Definition at line 46 of file catalogmodel.h.
Enumerator | |
---|---|
StringFilterRole |
Definition at line 60 of file catalogmodel.h.
Constructor & Destructor Documentation
Definition at line 41 of file catalogmodel.cpp.
|
inline |
Definition at line 66 of file catalogmodel.h.
Member Function Documentation
|
inline |
Definition at line 75 of file catalogmodel.h.
int CatalogTreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 73 of file catalogmodel.cpp.
QVariant CatalogTreeModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 128 of file catalogmodel.cpp.
|
slot |
Definition at line 79 of file catalogmodel.cpp.
QVariant CatalogTreeModel::headerData | ( | int | section, |
Qt::Orientation | , | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 112 of file catalogmodel.cpp.
QModelIndex CatalogTreeModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 63 of file catalogmodel.cpp.
QModelIndex CatalogTreeModel::parent | ( | const QModelIndex & | ) | const |
Definition at line 68 of file catalogmodel.cpp.
|
slot |
Definition at line 84 of file catalogmodel.cpp.
int CatalogTreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 105 of file catalogmodel.cpp.
|
inline |
Definition at line 77 of file catalogmodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.