2007-08-28 21:17:11 +00:00
|
|
|
#ifndef ELEMENT_DELETER_H
|
|
|
|
#define ELEMENT_DELETER_H
|
|
|
|
#include "elementscategory.h"
|
|
|
|
#include <QtGui>
|
2007-10-10 17:50:26 +00:00
|
|
|
/**
|
|
|
|
Cette classe represente une couche d'abstraction pour supprimer
|
|
|
|
un element de la collection d'elements.
|
|
|
|
Elle demande notamment confirmation a l'utilisateur
|
|
|
|
*/
|
2007-08-28 21:17:11 +00:00
|
|
|
class ElementDeleter : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
// constructeurs, destructeur
|
|
|
|
public:
|
|
|
|
ElementDeleter(const QString &, QWidget * = 0);
|
|
|
|
virtual ~ElementDeleter();
|
|
|
|
private:
|
|
|
|
ElementDeleter(const ElementsCategory &);
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public slots:
|
|
|
|
void exec();
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
QString element_path;
|
|
|
|
};
|
|
|
|
#endif
|