• 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
  • 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 
27 class LatexRenderer : public QObject
28 {
29  Q_OBJECT
30 
31 public:
32  LatexRenderer(QObject* parent = 0);
33  void setResultLabel(QLabel *label) {
34  m_label = label;
35  }
36  void renderLatex(QString tex);
37 
38  static bool isLatex(const QString& tex);
39 
40 private slots:
41  void convertToPs();
42  void convertToImage();
43  void latexRendered();
44 
45 private:
46  QLabel *m_label;
47  QString m_latexFilename;
48 };
49 
50 }
51 
52 #endif // PRACTICE_LATEXRENDERER_H
Practice::LatexRenderer
Definition: latexrenderer.h:27
Practice::LatexRenderer::setResultLabel
void setResultLabel(QLabel *label)
Definition: latexrenderer.h:33
QObject
QString
Practice::LatexRenderer::LatexRenderer
LatexRenderer(QObject *parent=0)
Definition: latexrenderer.cpp:45
QLabel
QObject::parent
QObject * parent() const
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-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