2007-04-05 01:13:14 +00:00
|
|
|
#ifndef ELEMENTS_CATEGORY_EDITOR_H
|
|
|
|
#define ELEMENTS_CATEGORY_EDITOR_H
|
|
|
|
#include <QtGui>
|
2007-10-21 16:10:21 +00:00
|
|
|
class ElementsCategory;
|
|
|
|
class NamesListWidget;
|
2007-04-05 18:02:40 +00:00
|
|
|
/**
|
|
|
|
Cette classe permet d'editer une categorie existante ou de creer une
|
|
|
|
categorie.
|
|
|
|
*/
|
2007-04-05 01:13:14 +00:00
|
|
|
class ElementsCategoryEditor : public QDialog {
|
|
|
|
Q_OBJECT
|
2007-04-12 03:13:13 +00:00
|
|
|
|
|
|
|
// constructeurs, destructeur
|
2007-04-05 01:13:14 +00:00
|
|
|
public:
|
|
|
|
ElementsCategoryEditor(QWidget * = 0);
|
|
|
|
ElementsCategoryEditor(const QString &, bool = true, QWidget * = 0);
|
2007-04-12 03:13:13 +00:00
|
|
|
virtual ~ElementsCategoryEditor();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ElementsCategoryEditor(const ElementsCategoryEditor &);
|
2007-04-05 01:13:14 +00:00
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
ElementsCategory *category;
|
|
|
|
QDialogButtonBox *buttons;
|
2007-04-13 11:50:16 +00:00
|
|
|
NamesListWidget *names_list;
|
2007-04-05 01:13:14 +00:00
|
|
|
bool mode_edit;
|
2007-04-07 02:37:57 +00:00
|
|
|
|
2007-04-05 01:13:14 +00:00
|
|
|
// methodes
|
|
|
|
private:
|
|
|
|
void buildDialog();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void acceptCreation();
|
|
|
|
void acceptUpdate();
|
|
|
|
};
|
|
|
|
#endif
|