KoTemplateCreateDia.h
1/*
2 This file is part of the KDE project
3 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
4 2000 Werner Trobin <trobin@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef koTemplateCreateDia_h
23#define koTemplateCreateDia_h
24
25#include <kdialogbase.h>
26#include <koffice_export.h>
27
28class TQString;
29class TQPixmap;
30class TQWidget;
31class TDEInstance;
32class KLineEdit;
33class TQListViewItem;
34class KoTemplateCreateDiaPrivate;
35
36/****************************************************************************
37 *
38 * Class: koTemplateCreateDia
39 *
40 ****************************************************************************/
41
42class KOFFICEUI_EXPORT KoTemplateCreateDia : public KDialogBase
43{
44 TQ_OBJECT
45
46
47public:
48 KoTemplateCreateDia( const TQCString &templateType, TDEInstance *instance,
49 const TQString &file, const TQPixmap &pix, TQWidget *parent=0L );
50 ~KoTemplateCreateDia();
51
52 static void createTemplate( const TQCString &templateType, TDEInstance *instance,
53 const TQString &file, const TQPixmap &pix, TQWidget *parent=0L );
54
55protected:
56 void slotOk();
57
58private slots:
59 void slotDefault();
60 void slotCustom();
61 void slotSelect();
62 void slotNameChanged(const TQString &name);
63
64 void slotAddGroup();
65 void slotRemove();
66 void slotSelectionChanged();
67private:
68 void updatePixmap();
69 void fillGroupTree();
70
71 TQString m_file;
72 TQPixmap m_pixmap;
73 KoTemplateCreateDiaPrivate *d;
74};
75
76#endif
virtual void slotDefault()
virtual void slotOk()