• 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
  • practice
latexrenderer.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2010 Daniel Laidig <laidig@kde.org>
3  Copyright 2009 Alexander Rieder <alexanderrieder@gmail.com>
4  ***************************************************************************/
5 
6 /***************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  ***************************************************************************/
14 
15 // based on Cantor's LaTeX rendering code
16 
17 #ifndef PRACTICE_LATEXRENDERER_H
18 #define PRACTICE_LATEXRENDERER_H
19 
20 #include <QObject>
21 
22 class QLabel;
23 
24 namespace Practice {
25 
26 class LatexRenderer : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  LatexRenderer(QObject* parent = 0);
32  void setResultLabel(QLabel *label) {m_label = label;}
33  void renderLatex(QString tex);
34 
35  static bool isLatex(const QString& tex);
36 
37 private slots:
38  void convertToPs();
39  void convertToImage();
40  void latexRendered();
41 
42 private:
43  QLabel *m_label;
44  QString m_latexFilename;
45 };
46 
47 }
48 
49 #endif // PRACTICE_LATEXRENDERER_H
Practice::LatexRenderer
Definition: latexrenderer.h:26
QObject
Practice::LatexRenderer::setResultLabel
void setResultLabel(QLabel *label)
Definition: latexrenderer.h:32
Practice::LatexRenderer::LatexRenderer
LatexRenderer(QObject *parent=0)
Definition: latexrenderer.cpp:45
Practice::LatexRenderer::renderLatex
void renderLatex(QString tex)
Definition: latexrenderer.cpp:51
Practice::LatexRenderer::isLatex
static bool isLatex(const QString &tex)
Definition: latexrenderer.cpp:96
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 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