• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

KVTTableModel Class Reference

#include <kvttablemodel.h>

Inheritance diagram for KVTTableModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

The model for the big table in the main window.

Here the vocabulary can be edited directly.

Author:
Peter Hedlund <peter.hedlund@kdemail.net>

Definition at line 41 of file kvttablemodel.h.


Public Types

enum  KVTItemDataRole {
  LessonsRole = Qt::UserRole + 1, LessonRole, StateRole, GradeRole,
  LocaleRole
}

Public Slots

void dataChangedFromOutside (const QModelIndex &topLeft, const QModelIndex &bottomRight)
void appendEntry ()
void loadLanguageSettings ()

Public Member Functions

 KVTTableModel (QObject *parent=0)
void setDocument (KEduVocDocument *doc)
KEduVocDocument * document () const
bool insertRows (int row, int count=1, const QModelIndex &parent=QModelIndex())
bool removeRows (int row, int count=1, const QModelIndex &parent=QModelIndex())
void appendTranslation ()
bool removeTranslation (int translationIndex)
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)

Friends

class ParleyApp
class KVTStatisticsDialog

Member Enumeration Documentation

enum KVTTableModel::KVTItemDataRole

Enumerator:
LessonsRole 
LessonRole 
StateRole 
GradeRole 
LocaleRole 

Definition at line 46 of file kvttablemodel.h.


Constructor & Destructor Documentation

KVTTableModel::KVTTableModel ( QObject *  parent = 0  ) 

Definition at line 36 of file kvttablemodel.cpp.


Member Function Documentation

void KVTTableModel::setDocument ( KEduVocDocument *  doc  ) 

Definition at line 42 of file kvttablemodel.cpp.

KEduVocDocument* KVTTableModel::document (  )  const [inline]

Definition at line 58 of file kvttablemodel.h.

bool KVTTableModel::insertRows ( int  row,
int  count = 1,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 248 of file kvttablemodel.cpp.

bool KVTTableModel::removeRows ( int  row,
int  count = 1,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 269 of file kvttablemodel.cpp.

void KVTTableModel::appendTranslation (  ) 

Adds a new translation.

Definition at line 288 of file kvttablemodel.cpp.

bool KVTTableModel::removeTranslation ( int  translationIndex  ) 

Remove a translation from the document.

Parameters:
translationIndex is the id of the translation
Returns:
true if the translation was removed

Definition at line 299 of file kvttablemodel.cpp.

int KVTTableModel::rowCount ( const QModelIndex &  parent  )  const

Definition at line 49 of file kvttablemodel.cpp.

int KVTTableModel::columnCount ( const QModelIndex &  parent  )  const

Definition at line 56 of file kvttablemodel.cpp.

QVariant KVTTableModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 64 of file kvttablemodel.cpp.

QVariant KVTTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 162 of file kvttablemodel.cpp.

Qt::ItemFlags KVTTableModel::flags ( const QModelIndex &  index  )  const

Definition at line 199 of file kvttablemodel.cpp.

bool KVTTableModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 208 of file kvttablemodel.cpp.

bool KVTTableModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 228 of file kvttablemodel.cpp.

void KVTTableModel::dataChangedFromOutside ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
) [slot]

Definition at line 313 of file kvttablemodel.cpp.

void KVTTableModel::appendEntry (  )  [slot]

Definition at line 321 of file kvttablemodel.cpp.

void KVTTableModel::loadLanguageSettings (  )  [slot]

Definition at line 331 of file kvttablemodel.cpp.


Friends And Related Function Documentation

friend class ParleyApp [friend]

Definition at line 100 of file kvttablemodel.h.

friend class KVTStatisticsDialog [friend]

Definition at line 101 of file kvttablemodel.h.


The documentation for this class was generated from the following files:
  • kvttablemodel.h
  • kvttablemodel.cpp

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal