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

libkdeedu/keduvocdocument

  • sources
  • kde-4.12
  • kdeedu
  • libkdeedu
  • keduvocdocument
keduvocwordflags.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2008 David Capel <wot.narg@gmail.com>
3  ***************************************************************************/
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef KEDUVOCWORDFLAGS_H
15 #define KEDUVOCWORDFLAGS_H
16 
17 #include <QFlags>
18 
19 class KEduVocWordFlag
20 {
21 public:
22  enum Flags
23  {
24  // This is used for both empty flags and to denote no flags of the correct type were set.
25  NoInformation = 0x0,
26 
27  // Gender
28  Masculine = 0x1,
29  Feminine = 0x2,
30  Neuter = 0x4,
31 
32  // Plurality
33  Singular = 0x10,
34  Dual = 0x20,
35  Plural = 0x40,
36 
37  // Part of Speech
38  Verb = 0x100,
39  Noun = 0x200,
40  Pronoun = 0x400,
41  Adjective = 0x800,
42  Adverb = 0x1000,
43  Article = 0x2000,
44  Conjunction = 0x4000,
45 
46  // Person
47  First = 0x10000,
48  Second = 0x20000,
49  Third = 0x40000,
50 
51  // Declension Case
52  Nominative = 0x80000,
53  Genitive = 0x100000,
54  Dative = 0x200000,
55  Accusative = 0x400000,
56  Ablative = 0x800000,
57  Locative = 0x1000000,
58  Vocative = 0x2000000,
59 
60  // Other assorted flags
61  Definite = 0x4000000, // The article is definite
62  Indefinite = 0x8000000, // The article is indefinite
63  Regular = 0x10000000,
64  Irregular = 0x20000000
65  };
66 
67  static const Flags genders = (Flags)(Masculine | Feminine | Neuter);
68  static const Flags partsOfSpeech =(Flags)(Noun | Verb | Article | Pronoun | Adjective | Adverb | Conjunction);
69  static const Flags numbers = (Flags)(Singular | Plural | Dual);
70  static const Flags cases = (Flags)(Nominative|Genitive|Dative|Accusative|Ablative|Locative|Vocative);
71  static const Flags persons = (Flags)(First | Second | Third);
72 
73 };
74 
75 Q_DECLARE_FLAGS(KEduVocWordFlags, KEduVocWordFlag::Flags)
76 Q_DECLARE_OPERATORS_FOR_FLAGS(KEduVocWordFlags)
77 
78 #endif
KEduVocWordFlag
Definition: keduvocwordflags.h:19
KEduVocWordFlag::Adjective
Definition: keduvocwordflags.h:41
KEduVocWordFlag::Verb
Definition: keduvocwordflags.h:38
KEduVocWordFlag::Pronoun
Definition: keduvocwordflags.h:40
KEduVocWordFlag::Singular
Definition: keduvocwordflags.h:33
KEduVocWordFlag::Article
Definition: keduvocwordflags.h:43
KEduVocWordFlag::Third
Definition: keduvocwordflags.h:49
KEduVocWordFlag::Masculine
Definition: keduvocwordflags.h:28
KEduVocWordFlag::First
Definition: keduvocwordflags.h:47
KEduVocWordFlag::Accusative
Definition: keduvocwordflags.h:55
KEduVocWordFlag::Flags
Flags
Definition: keduvocwordflags.h:22
KEduVocWordFlag::Vocative
Definition: keduvocwordflags.h:58
KEduVocWordFlag::Dative
Definition: keduvocwordflags.h:54
KEduVocWordFlag::persons
static const Flags persons
Definition: keduvocwordflags.h:71
KEduVocWordFlag::numbers
static const Flags numbers
Definition: keduvocwordflags.h:69
KEduVocWordFlag::Conjunction
Definition: keduvocwordflags.h:44
KEduVocWordFlag::Plural
Definition: keduvocwordflags.h:35
KEduVocWordFlag::Irregular
Definition: keduvocwordflags.h:64
KEduVocWordFlag::Noun
Definition: keduvocwordflags.h:39
KEduVocWordFlag::Indefinite
Definition: keduvocwordflags.h:62
KEduVocWordFlag::Ablative
Definition: keduvocwordflags.h:56
KEduVocWordFlag::NoInformation
Definition: keduvocwordflags.h:25
KEduVocWordFlag::Regular
Definition: keduvocwordflags.h:63
KEduVocWordFlag::partsOfSpeech
static const Flags partsOfSpeech
Definition: keduvocwordflags.h:68
KEduVocWordFlag::Locative
Definition: keduvocwordflags.h:57
KEduVocWordFlag::cases
static const Flags cases
Definition: keduvocwordflags.h:70
KEduVocWordFlag::Adverb
Definition: keduvocwordflags.h:42
KEduVocWordFlag::Genitive
Definition: keduvocwordflags.h:53
KEduVocWordFlag::genders
static const Flags genders
Definition: keduvocwordflags.h:67
KEduVocWordFlag::Neuter
Definition: keduvocwordflags.h:30
KEduVocWordFlag::Feminine
Definition: keduvocwordflags.h:29
KEduVocWordFlag::Second
Definition: keduvocwordflags.h:48
KEduVocWordFlag::Nominative
Definition: keduvocwordflags.h:52
KEduVocWordFlag::Definite
Definition: keduvocwordflags.h:61
KEduVocWordFlag::Dual
Definition: keduvocwordflags.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:37:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • 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