• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

Public Types | Public Slots | Public Member Functions | List of all members
CatalogTreeModel Class Reference

#include <catalogmodel.h>

Inheritance diagram for CatalogTreeModel:
Inheritance graph
[legend]

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

enum CatalogTreeModel::CatalogModelColumns
Enumerator
Key 
Source 
Target 
Notes 
TranslationStatus 
Empty 
State 
Modified 
ColumnCount 
DisplayedColumnCount 

Definition at line 46 of file catalogmodel.h.

enum CatalogTreeModel::Roles
Enumerator
StringFilterRole 

Definition at line 60 of file catalogmodel.h.

Constructor & Destructor Documentation

CatalogTreeModel::CatalogTreeModel ( QObject *  parent,
Catalog *  catalog 
)

Definition at line 41 of file catalogmodel.cpp.

CatalogTreeModel::~CatalogTreeModel ( )
inline

Definition at line 66 of file catalogmodel.h.

Member Function Documentation

Catalog* CatalogTreeModel::catalog ( ) const
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.

void CatalogTreeModel::fileLoaded ( )
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.

void CatalogTreeModel::reflectChanges ( DocPosition  pos)
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.

void CatalogTreeModel::setIgnoreAccel ( bool  n)
inline

Definition at line 77 of file catalogmodel.h.


The documentation for this class was generated from the following files:
  • catalogmodel.h
  • catalogmodel.cpp
This file is part of the KDE documentation.
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.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal