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

parley

  • sources
  • kde-4.14
  • 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() {
70  return m_identifier;
71  }
72 
77  QString name() const {
78  return m_identifier->name();
79  }
84  void setName(const QString& name) {
85  m_identifier->setName(name);
86  }
87 
92  QString locale() const {
93  return m_identifier->locale();
94  }
99  void setLocale(const QString& name) {
100  m_identifier->setLocale(name);
101  }
102 
103 public Q_SLOTS:
104 
105  /**** Article Functions ****/
106 
111 // KEduVocArticle article() const;
112 
123  QString article(const KEduVocWordFlags& flags);
124 
135  void setArticle(const QString& article, const KEduVocWordFlags& flags);
136 
137  /**** Personal Pronoun Functions ****/
138 
143 // KEduVocPersonalPronoun personalPronouns() const;
144 
145 // QString personalPronoun ( const QString & number, const QString & person );
146  QString personalPronoun(const KEduVocWordFlags& flags) const;
147 
148 
153 // void setPersonalPronouns ( const KEduVocPersonalPronoun &pronouns );
154 
155 // void setPersonalPronoun ( const QString& personalPronoun, const QString & number, const QString & person );
156  void setPersonalPronoun(const QString& conjugation, const KEduVocWordFlags& flags);
157 
158  QStringList personalPronouns();
159 
176  void setTenses(QStringList names) {
177  m_identifier->setTenseList(names);
178  }
179 
184  QStringList tenses() const {
185  return m_identifier->tenseList();
186  }
187 
188 
189 private:
190  KEduVocIdentifier * m_identifier;
191 };
192 
193 }
194 
195 #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:84
Scripting::Identifier::tenses
QStringList tenses() const
Gets the language tenses (see example in Identifier::setTenses())
Definition: identifier.h:184
Scripting::Identifier::setPersonalPronoun
void setPersonalPronoun(const QString &conjugation, const KEduVocWordFlags &flags)
Sets personal pronouns.
Definition: identifier.cpp:64
QObject
Scripting::Identifier::locale
QString locale() const
The locale of the contents: en, de, es, ...
Definition: identifier.h:92
QString
QStringList
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:176
Scripting::Identifier::setLocale
void setLocale(const QString &name)
Set the locale.
Definition: identifier.h:99
Scripting::Identifier::name
QString name() const
Name of this identifier.
Definition: identifier.h:77
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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
  • 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