Warning, file /office/kile/src/dialogs/managetemplatesdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /****************************************************************************************
0002     begin                : Sun Apr 27 2003
0003     copyright            : (C) 2003 by Jeroen Wijnhout (wijnhout@science.uva.nl)
0004                                2007 by Michel Ludwig (michel.ludwig@kdemail.net)
0005  ****************************************************************************************/
0006 
0007 /***************************************************************************
0008  *                                                                         *
0009  *   This program is free software; you can redistribute it and/or modify  *
0010  *   it under the terms of the GNU General Public License as published by  *
0011  *   the Free Software Foundation; either version 2 of the License, or     *
0012  *   (at your option) any later version.                                   *
0013  *                                                                         *
0014  ***************************************************************************/
0015 
0016 #ifndef MANAGETEMPLATESDIALOG_H
0017 #define MANAGETEMPLATESDIALOG_H
0018 
0019 #include <QDialog>
0020 #include <QUrl>
0021 
0022 class QCheckBox;
0023 class QLineEdit;
0024 class QTreeWidget;
0025 class QTreeWidgetItem;
0026 
0027 #include "kileconstants.h"
0028 
0029 namespace KileTemplate {
0030 class Manager;
0031 struct Info;
0032 }
0033 
0034 /**
0035   *@author Jeroen Wijnhout
0036   */
0037 class ManageTemplatesDialog : public QDialog  {
0038     Q_OBJECT
0039 public:
0040     ManageTemplatesDialog(KileTemplate::Manager *templateManager, const QUrl &sourceURL, const QString &caption, QWidget *parent = 0, const char *name = 0);
0041     ManageTemplatesDialog(KileTemplate::Manager *templateManager, const QString &caption, QWidget *parent = 0, const char *name = 0);
0042     virtual ~ManageTemplatesDialog();
0043 
0044 public Q_SLOTS:
0045     void slotSelectedTemplate(QTreeWidgetItem *item);
0046     void slotSelectIcon();
0047     void addTemplate();
0048     bool removeTemplate();
0049 
0050 Q_SIGNALS:
0051     void aboutToClose();
0052 
0053 protected Q_SLOTS:
0054     void updateTemplateListView(bool showAllTypes);
0055     void clearSelection();
0056 
0057 protected:
0058     KileTemplate::Manager* m_templateManager;
0059     QLineEdit *m_nameEdit, *m_iconEdit;
0060     QTreeWidget *m_templateList;
0061     KileDocument::Type m_templateType;
0062     QCheckBox *m_showAllTypesCheckBox;
0063     QUrl m_sourceURL;
0064 
0065     /**
0066         * Fills the template list view with template entries.
0067         *
0068         * @param type The type of the templates that should be displayed. You can pass "KileDocument::Undefined" to
0069         *             display every template.
0070         **/
0071     void populateTemplateListView(KileDocument::Type type);
0072 };
0073 
0074 #endif