diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/dialogs/dtepeditdlg.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/dialogs/dtepeditdlg.h')
-rw-r--r-- | quanta/dialogs/dtepeditdlg.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/quanta/dialogs/dtepeditdlg.h b/quanta/dialogs/dtepeditdlg.h new file mode 100644 index 00000000..45bd3d6d --- /dev/null +++ b/quanta/dialogs/dtepeditdlg.h @@ -0,0 +1,89 @@ +/*************************************************************************** + dtepeditdlg.h - description + ------------------- + begin : Tue Feb 1 11:07:24 2005 + copyright : (C) 2005 Andras Mantia <amantia@kde.org> + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; version 2 of the License. * + * * + ***************************************************************************/ + +#ifndef DTEPEDITDLG_H +#define DTEPEDITDLG_H + +//qt includes +#include <qvaluelist.h> + +//own includes +#include "dtepeditdlgs.h" + +/** +@author Andras Mantia +*/ + +class KConfig; +class DTEPStructureEditDlgS; + +struct StructGroup { + QString name; ///<the name of the group + QString noName; ///<the text when there are no elements in the group + QString icon; ///<the icon of the group + QString tag; + bool hasFileName; + QString fileNameRx; + bool appendToTags; + QString parentGroup; + QString definitionRx; + bool definitionRxMinimal; + QString usageRx; + QString typeRx; + QString tagType; + bool parseFile; + QString completeAfterRx; + QString removeRx; + bool simpleGroup; + bool variableGroup; + bool functionGroup; + bool classGroup; + bool objectGroup; +}; + +class DTEPEditDlg : public DTEPEditDlgS +{ + Q_OBJECT + public: + DTEPEditDlg(const QString& descriptionFile, QWidget *parent = 0, const char *name = 0); + ~DTEPEditDlg(); + void saveResult(); + void slotFamilyChanged(int family); + void slotEditStructGroup(); + void slotAddStructGroup(); + void slotDeleteStructGroup(); + + private: + void init(); + void readGeneral(); + void readPages(); + void readParserRules(); + void readStructures(); + StructGroup readFromStructDlg(DTEPStructureEditDlgS *structDlg); + + void writeGeneral(KConfig *config); + void writePages(KConfig *config); + void writeParserRules(KConfig *config); + void writeStructures(KConfig *config); + void writeEntry(KConfig *config, const QString &key, const QString &value); + + QString m_descriptionFile; + KConfig *m_config; + int m_family; + QWidget *m_pagesWidget; + QValueList<StructGroup> m_structGroups; +}; + +#endif |