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

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • scripts
  • scripting
identifier.cpp
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Avgoustinos Kadis <avgoustinos.kadis@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #include "identifier.h"
16 
17 #include <QMap>
18 
19 #include <KDebug>
20 
21 namespace Scripting
22 {
23 
24  Identifier::Identifier()
25  : QObject()
26  {
27  m_identifier = new KEduVocIdentifier();
28  }
29 
30  Identifier::Identifier ( KEduVocIdentifier * identifier )
31  : QObject(), m_identifier ( identifier )
32  {
33  }
34 
35  Identifier::Identifier ( KEduVocIdentifier & identifier )
36  : QObject()
37  {
38  m_identifier = new KEduVocIdentifier ( identifier );
39  }
40 
41 
42  Identifier::~Identifier()
43  {
44  }
45 
46  QString Identifier::article ( const KEduVocWordFlags& flags )
47  {
48  return m_identifier->article().article ( flags );
49  }
50 
51 
52  void Identifier::setArticle ( const QString& article, const KEduVocWordFlags& flags )
53  {
54  KEduVocArticle karticle = m_identifier->article();
55  karticle.setArticle ( article, flags );
56  m_identifier->setArticle ( karticle );
57  }
58 
59  QString Identifier::personalPronoun ( const KEduVocWordFlags& flags ) const
60  {
61  return m_identifier->personalPronouns().personalPronoun ( flags );
62  }
63 
64  void Identifier::setPersonalPronoun ( const QString& conjugation, const KEduVocWordFlags& flags )
65  {
66  KEduVocPersonalPronoun ppronouns = m_identifier->personalPronouns();
67  ppronouns.setPersonalPronoun ( conjugation,flags );
68  m_identifier->setPersonalPronouns ( ppronouns );
69  }
70 
71  QStringList Identifier::personalPronouns ()
72  {
73 // KEduVocPersonalPronoun ppronouns = m_identifier->personalPronouns();
74 
75  QStringList list;
76 
77 // for ( int n = 0; n <= KEduVocConjugation::Plural; n++ )
78 // for ( int p = 0; p <= KEduVocConjugation::ThirdNeutralCommon; p++ )
79 // {
80 // list << ppronouns.personalPronoun ( ( KEduVocConjugation::ConjugationPerson ) p, ( KEduVocConjugation::ConjugationNumber ) n );
81 // }
82 
83  return list;
84  }
85 
86 }
identifier.h
Scripting::Identifier::personalPronouns
QStringList personalPronouns()
Definition: identifier.cpp:71
identifier
const char * identifier
Definition: imagecache.cpp:23
Scripting::Identifier::setArticle
void setArticle(const QString &article, const KEduVocWordFlags &flags)
Sets the article in the given number, definiteness and gender flags:
Definition: identifier.cpp:52
Scripting::Identifier::~Identifier
~Identifier()
Definition: identifier.cpp:42
QObject
Scripting::Identifier::Identifier
Identifier()
Definition: identifier.cpp:24
Scripting::Identifier::setPersonalPronoun
void setPersonalPronoun(const QString &conjugation, const KEduVocWordFlags &flags)
Sets personal pronouns.
Definition: identifier.cpp:64
Scripting::Identifier::article
QString article(const KEduVocWordFlags &flags)
Articles (a, the in English, el, la,...
Definition: identifier.cpp:46
Scripting::Identifier::personalPronoun
QString personalPronoun(const KEduVocWordFlags &flags) const
Get the personal pronouns for this identifier.
Definition: identifier.cpp:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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