2007-12-01 10:47:15 +00:00
|
|
|
/*
|
2011-03-02 00:16:40 +00:00
|
|
|
Copyright 2006-2011 Xavier Guerrin
|
2007-12-01 10:47:15 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech 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, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2007-08-28 21:17:11 +00:00
|
|
|
#ifndef ELEMENTS_CATEGORY_DELETER_H
|
|
|
|
#define ELEMENTS_CATEGORY_DELETER_H
|
2009-04-03 19:30:25 +00:00
|
|
|
#include "fileelementscategory.h"
|
|
|
|
#include "elementslocation.h"
|
2007-08-28 21:17:11 +00:00
|
|
|
#include <QtGui>
|
2007-10-10 17:50:26 +00:00
|
|
|
/**
|
2009-04-03 19:30:25 +00:00
|
|
|
Cette classe represente une couche d'abstraction pour supprimer
|
2007-10-10 17:50:26 +00:00
|
|
|
une categorie d'elements et les elements qu'elle contient.
|
2009-04-03 19:30:25 +00:00
|
|
|
Si la categorie racine d'une collection est fournie, elle sera
|
|
|
|
videe apres un avertissement.
|
|
|
|
Cette classe demande toujours confirmation a l'utilisateur par deux fois.
|
2007-10-10 17:50:26 +00:00
|
|
|
*/
|
2007-08-28 21:17:11 +00:00
|
|
|
class ElementsCategoryDeleter : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
// constructeurs, destructeur
|
|
|
|
public:
|
2009-04-03 19:30:25 +00:00
|
|
|
ElementsCategoryDeleter(const ElementsLocation &, QWidget * = 0);
|
2007-08-28 21:17:11 +00:00
|
|
|
virtual ~ElementsCategoryDeleter();
|
|
|
|
private:
|
|
|
|
ElementsCategoryDeleter(const ElementsCategory &);
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public slots:
|
2009-04-03 19:30:25 +00:00
|
|
|
bool exec();
|
2007-08-28 21:17:11 +00:00
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
2009-04-03 19:30:25 +00:00
|
|
|
ElementsCollectionItem *category;
|
2007-08-28 21:17:11 +00:00
|
|
|
};
|
|
|
|
#endif
|