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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
TemplateDocument.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Project.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
9 //
10 
11 #ifndef MARBLE_TEMPLATEDOCUMENT_H
12 #define MARBLE_TEMPLATEDOCUMENT_H
13 
14 #include <Qt>
15 
16 namespace Marble
17 {
18 
19 class TemplateDocumentPrivate;
20 
37 class TemplateDocument
38 {
39 public:
40  TemplateDocument();
41  TemplateDocument(const QString &templateText);
42  ~TemplateDocument();
43 
49  QString value(const QString &key) const;
50 
56  void setValue(const QString &key, const QString &value);
57 
62  void setTemplate(const QString &newTemplateText);
63 
69  QString& operator[](const QString &key);
70 
76  QString finalText() const;
77 
78 private:
79  TemplateDocumentPrivate *d;
80 };
81 
82 } // namespace Marble
83 
84 #endif // MARBLE_TEMPLATEDOCUMENT_H
Marble::TemplateDocument::value
QString value(const QString &key) const
Returns the current template value of key.
Definition: TemplateDocument.cpp:77
Marble::TemplateDocument::setTemplate
void setTemplate(const QString &newTemplateText)
Set template text.
Definition: TemplateDocument.cpp:72
Marble::TemplateDocument::TemplateDocument
TemplateDocument()
Definition: TemplateDocument.cpp:56
Marble::TemplateDocument
The Template Document.
Definition: TemplateDocument.h:37
Marble::TemplateDocument::~TemplateDocument
~TemplateDocument()
Definition: TemplateDocument.cpp:67
Marble::TemplateDocument::operator[]
QString & operator[](const QString &key)
Indexator for template values.
Definition: TemplateDocument.cpp:87
Marble::TemplateDocument::finalText
QString finalText() const
Final proceed text.
Definition: TemplateDocument.cpp:92
Marble::TemplateDocument::setValue
void setValue(const QString &key, const QString &value)
Change set template value into new one.
Definition: TemplateDocument.cpp:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • 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