lib

KoTemplateCreateDia.h

00001 /*
00002    This file is part of the KDE project
00003    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00004                  2000 Werner Trobin <trobin@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef koTemplateCreateDia_h
00023 #define koTemplateCreateDia_h
00024 
00025 #include <kdialogbase.h>
00026 #include <koffice_export.h>
00027 
00028 class QString;
00029 class QPixmap;
00030 class QWidget;
00031 class KInstance;
00032 class KLineEdit;
00033 class QListViewItem;
00034 class KoTemplateCreateDiaPrivate;
00035 
00036 /****************************************************************************
00037  *
00038  * Class: koTemplateCreateDia
00039  *
00040  ****************************************************************************/
00041 
00042 class KOFFICEUI_EXPORT KoTemplateCreateDia : public KDialogBase
00043 {
00044     Q_OBJECT
00045 
00046 public:
00047     KoTemplateCreateDia( const QCString &templateType, KInstance *instance,
00048                          const QString &file, const QPixmap &pix, QWidget *parent=0L );
00049     ~KoTemplateCreateDia();
00050 
00051     static void createTemplate( const QCString &templateType, KInstance *instance,
00052                                 const QString &file, const QPixmap &pix, QWidget *parent=0L );
00053 
00054 protected:
00055     void slotOk();
00056 
00057 private slots:
00058     void slotDefault();
00059     void slotCustom();
00060     void slotSelect();
00061     void slotNameChanged(const QString &name);
00062 
00063     void slotAddGroup();
00064     void slotRemove();
00065     void slotSelectionChanged();
00066 private:
00067     void updatePixmap();
00068     void fillGroupTree();
00069 
00070     QString m_file;
00071     QPixmap m_pixmap;
00072     KoTemplateCreateDiaPrivate *d;
00073 };
00074 
00075 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys