mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-09 00:39:59 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@78 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
28
elementscategory.h
Normal file
28
elementscategory.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef ELEMENTS_CATEGORY_H
|
||||
#define ELEMENTS_CATEGORY_H
|
||||
#include <QtCore>
|
||||
class ElementsCategory : public QDir {
|
||||
// Constructeur, destructeur
|
||||
public:
|
||||
ElementsCategory(const QString & = QString());
|
||||
~ElementsCategory();
|
||||
|
||||
// attributs
|
||||
private:
|
||||
QHash<QString, QString> category_names;
|
||||
|
||||
// methodes
|
||||
private:
|
||||
bool rmdir(const QString &) const;
|
||||
void loadNames();
|
||||
|
||||
public:
|
||||
QString name() const;
|
||||
QHash<QString, QString> categoryNames() const;
|
||||
void clearNames();
|
||||
void addName(const QString &, const QString &);
|
||||
bool write() const;
|
||||
bool remove() const;
|
||||
//bool move(const QString &new_parent);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user