KDevelop API Documentation

parts/filecreate/fcconfigwidget.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Alexander Dymo * 00003 * cloudtemple@mksat.net * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 ***************************************************************************/ 00010 00011 #ifndef FCCONFIGWIDGET_H 00012 #define FCCONFIGWIDGET_H 00013 00014 #include <qwidget.h> 00015 #include <qvaluelist.h> 00016 #include <kurl.h> 00017 00018 #include "fcconfigwidgetbase.h" 00019 00020 class FileCreatePart; 00021 class QListView; 00022 class QDomDocument; 00023 class QDomElement; 00024 00025 namespace FileCreate{ 00026 class FileType; 00027 } 00028 00029 class FCConfigWidget : public FCConfigWidgetBase 00030 { 00031 Q_OBJECT 00032 public: 00033 FCConfigWidget(FileCreatePart * part, bool global, QWidget *parent, const char *name); 00034 00035 ~FCConfigWidget(); 00036 00037 public slots: 00038 void accept(); 00039 void removetemplate_button_clicked(); 00040 void copyToProject_button_clicked(); 00041 void newtype_button_clicked(); 00042 void newsubtype_button_clicked(); 00043 void remove_button_clicked(); 00044 void moveup_button_clicked(); 00045 void movedown_button_clicked(); 00046 void edittype_button_clicked(); 00047 void newtemplate_button_clicked(); 00048 void edittemplate_button_clicked(); 00049 void edit_template_content_button_clicked(); 00050 void edit_type_content_button_clicked(); 00051 00052 protected: 00053 void loadGlobalConfig(QListView *view, bool checkmarks = false); 00054 void loadProjectConfig(QListView *view); 00055 void loadProjectTemplates(QListView *view); 00056 void saveGlobalConfig(); 00057 void saveProjectConfig(); 00058 void loadFileTypes(QPtrList<FileCreate::FileType> list, QListView *view, bool checkmarks = false); 00059 void copyTemplate(QString templateUrl, QString dest, QString destName); 00060 void saveConfiguration(QDomDocument &dom, QDomElement &element, bool global); 00061 00062 private: 00063 FileCreatePart * m_part; 00064 QPtrList<FileCreate::FileType> m_globalfiletypes; 00065 QPtrList<FileCreate::FileType> m_projectfiletypes; 00066 QPtrList<FileCreate::FileType> m_projectfiletemplates; 00067 bool m_global; 00068 00069 QValueList<KURL> urlsToEdit; 00070 }; 00071 00072 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003