Introduction de la nouvelle classe NamesList

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@88 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-04-13 15:48:00 +00:00
parent 6894a83ad5
commit 0816e0d07b
9 changed files with 189 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
#ifndef ELEMENTS_CATEGORY_H
#define ELEMENTS_CATEGORY_H
#include <QtCore>
#include "nameslist.h"
/**
Cette classe represente une categorie d'elements.
Une categorie d'elements est en fait un dossier avec un fichier
@@ -17,12 +18,12 @@ class ElementsCategory : public QDir {
// attributs
private:
QHash<QString, QString> category_names;
NamesList category_names;
// methodes
public:
QString name() const;
QHash<QString, QString> categoryNames() const;
NamesList categoryNames() const;
void clearNames();
void addName(const QString &, const QString &);
bool write() const;