File indexing completed on 2024-05-05 04:35:18
0001 /* This file is part of the TikZKit project. 0002 * 0003 * Copyright (C) 2013-2014 Dominik Haumann <dhaumann@kde.org> 0004 * 0005 * This library is free software; you can redistribute it and/or modify 0006 * it under the terms of the GNU Library General Public License as published 0007 * by the Free Software Foundation, either version 2 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This library is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU Library General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Library General Public License 0016 * along with this library; see the file COPYING.LIB. If not, see 0017 * <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #ifndef TIKZ_UI_NODE_TEXT_ITEM_PRIVATE_H 0021 #define TIKZ_UI_NODE_TEXT_ITEM_PRIVATE_H 0022 0023 #include <QObject> 0024 #include <QSvgRenderer> 0025 0026 #include "TexGenerator.h" 0027 0028 namespace tex { 0029 class TexGenerator; 0030 class PdfRenderer; 0031 } 0032 0033 namespace tikz { 0034 namespace ui { 0035 0036 class NodeItem; 0037 class NodeText; 0038 0039 class NodeTextPrivate : public QObject 0040 { 0041 Q_OBJECT 0042 0043 public: 0044 NodeTextPrivate(NodeItem* nodeItem, NodeText* nodeText); 0045 0046 public: 0047 NodeText* q; 0048 NodeItem* node; 0049 0050 QSvgRenderer svgRenderer; 0051 tex::TexGenerator texGenerator; 0052 0053 public: 0054 void updateCache(); 0055 0056 Q_SIGNALS: 0057 void svgChanged(); 0058 0059 public Q_SLOTS: 0060 void readSvgFile(const QString& file); 0061 }; 0062 0063 } 0064 } 0065 0066 #endif // TIKZ_UI_NODE_TEXT_ITEM_PRIVATE_H 0067 0068 // kate: indent-width 4; replace-tabs on;