lib Library API Documentation

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., 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA.
00020 */
00021 
00022 #ifndef koTemplateCreateDia_h
00023 #define koTemplateCreateDia_h
00024 
00025 #include <kdialogbase.h>
00026 
00027 class QString;
00028 class QPixmap;
00029 class QWidget;
00030 class KInstance;
00031 class KLineEdit;
00032 class QListViewItem;
00033 class KoTemplateCreateDiaPrivate;
00034 
00035 /****************************************************************************
00036  *
00037  * Class: koTemplateCreateDia
00038  *
00039  ****************************************************************************/
00040 
00041 class KoTemplateCreateDia : public KDialogBase
00042 {
00043     Q_OBJECT
00044 
00045 public:
00046     KoTemplateCreateDia( const QCString &templateType, KInstance *instance,
00047                          const QString &file, const QPixmap &pix, QWidget *parent=0L );
00048     ~KoTemplateCreateDia();
00049 
00050     static void createTemplate( const QCString &templateType, KInstance *instance,
00051                                 const QString &file, const QPixmap &pix, QWidget *parent=0L );
00052 
00053 protected:
00054     void slotOk();
00055 
00056 private slots:
00057     void slotDefault();
00058     void slotCustom();
00059     void slotSelect();
00060     void slotNameChanged(const QString &name);
00061 
00062     void slotAddGroup();
00063     void slotRemove();
00064     void slotSelectionChanged();
00065 private:
00066     void updatePixmap();
00067     void fillGroupTree();
00068 
00069     QString m_file;
00070     QPixmap m_pixmap;
00071     KoTemplateCreateDiaPrivate *d;
00072 };
00073 
00074 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:25:27 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003