Warning, file /office/calligra/libs/main/KoTemplateCreateDia.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KDE project 0003 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org> 0004 2000 Werner Trobin <trobin@kde.org> 0005 0006 This library is free software; you can redistribute it and/or 0007 modify it under the terms of the GNU Library General Public 0008 License as published by the Free Software Foundation; either 0009 version 2 of the License, or (at your option) any later version. 0010 0011 This library is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 Library General Public License for more details. 0015 0016 You should have received a copy of the GNU Library General Public License 0017 along with this library; see the file COPYING.LIB. If not, write to 0018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 * Boston, MA 02110-1301, USA. 0020 */ 0021 0022 #ifndef koTemplateCreateDia_h 0023 #define koTemplateCreateDia_h 0024 0025 #include <KoDialog.h> 0026 #include "komain_export.h" 0027 0028 class QString; 0029 class QPixmap; 0030 class KoDocument; 0031 class KoTemplateCreateDiaPrivate; 0032 0033 /**************************************************************************** 0034 * 0035 * Class: koTemplateCreateDia 0036 * 0037 ****************************************************************************/ 0038 0039 class KOMAIN_EXPORT KoTemplateCreateDia : public KoDialog 0040 { 0041 Q_OBJECT 0042 0043 private: 0044 KoTemplateCreateDia( const QString &templatesResourcePath, 0045 const QString &filePath, const QPixmap &thumbnail, QWidget *parent=0 ); 0046 ~KoTemplateCreateDia() override; 0047 0048 public: 0049 static void createTemplate(const QString &templatesResourcePath, const char *suffix, 0050 KoDocument *document, QWidget *parent = 0); 0051 0052 private Q_SLOTS: 0053 void slotOk(); 0054 0055 void slotDefault(); 0056 void slotCustom(); 0057 void slotSelect(); 0058 void slotNameChanged(const QString &name); 0059 0060 void slotAddGroup(); 0061 void slotRemove(); 0062 void slotSelectionChanged(); 0063 private: 0064 void updatePixmap(); 0065 void fillGroupTree(); 0066 0067 private: 0068 KoTemplateCreateDiaPrivate * const d; 0069 }; 0070 0071 #endif