• 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.h
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 #ifndef SCRIPTINGIDENTIFIER_H
16 #define SCRIPTINGIDENTIFIER_H
17 
18 #include <keduvocidentifier.h>
19 #include <keduvocwordflags.h>
20 
21 #include <QObject>
22 
23 namespace Scripting
24 {
25 
54  class Identifier : public QObject
55  {
56  Q_OBJECT
57  Q_PROPERTY ( QString name READ name WRITE setName )
58  Q_PROPERTY ( QString locale READ locale WRITE setLocale )
59  public:
60 
61  Identifier ();
62 
63  Identifier ( KEduVocIdentifier * identifier );
64 
65  Identifier ( KEduVocIdentifier & identifier );
66 
67  ~Identifier();
68 
69  KEduVocIdentifier * kEduVocIdentifier() { return m_identifier; }
70 
75  QString name() const { return m_identifier->name(); }
80  void setName ( const QString& name ) { m_identifier->setName ( name ); }
81 
86  QString locale() const { return m_identifier->locale(); }
91  void setLocale ( const QString& name ) { m_identifier->setLocale ( name ); }
92 
93  public Q_SLOTS:
94 
95  /**** Article Functions ****/
96 
101 // KEduVocArticle article() const;
102 
113  QString article ( const KEduVocWordFlags& flags );
114 
125  void setArticle ( const QString& article, const KEduVocWordFlags& flags );
126 
127  /**** Personal Pronoun Functions ****/
128 
133 // KEduVocPersonalPronoun personalPronouns() const;
134 
135 // QString personalPronoun ( const QString & number, const QString & person );
136  QString personalPronoun ( const KEduVocWordFlags& flags ) const;
137 
138 
143 // void setPersonalPronouns ( const KEduVocPersonalPronoun &pronouns );
144 
145 // void setPersonalPronoun ( const QString& personalPronoun, const QString & number, const QString & person );
146  void setPersonalPronoun ( const QString& conjugation, const KEduVocWordFlags& flags );
147 
148  QStringList personalPronouns ();
149 
166  void setTenses ( QStringList names ) { m_identifier->setTenseList ( names ); }
167 
172  QStringList tenses() const { return m_identifier->tenseList(); }
173 
174 
175  private:
176  KEduVocIdentifier * m_identifier;
177  };
178 
179 }
180 
181 #endif
Scripting::Identifier::personalPronouns
QStringList personalPronouns()
Definition: identifier.cpp:71
identifier
const char * identifier
Definition: imagecache.cpp:23
Scripting::Identifier::kEduVocIdentifier
KEduVocIdentifier * kEduVocIdentifier()
Definition: identifier.h:69
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::setName
void setName(const QString &name)
Set the name.
Definition: identifier.h:80
QObject
Scripting::Identifier::tenses
QStringList tenses() const
Gets the language tenses (see example in Identifier::setTenses())
Definition: identifier.h:172
Scripting::Identifier::setPersonalPronoun
void setPersonalPronoun(const QString &conjugation, const KEduVocWordFlags &flags)
Sets personal pronouns.
Definition: identifier.cpp:64
Scripting::Identifier::locale
QString locale() const
The locale of the contents: en, de, es, ...
Definition: identifier.h:86
Scripting::Identifier
Identifier class can be accessed from Document class and is used for specifying the document language...
Definition: identifier.h:54
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
Scripting::Identifier::setTenses
void setTenses(QStringList names)
Sets the document tenses.
Definition: identifier.h:166
Scripting::Identifier::setLocale
void setLocale(const QString &name)
Set the locale.
Definition: identifier.h:91
Scripting::Identifier::name
QString name() const
Name of this identifier.
Definition: identifier.h:75
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