qelectrotech-source-mirror/elementscategoryeditor.h

38 lines
787 B
C
Raw Normal View History

#ifndef ELEMENTS_CATEGORY_EDITOR_H
#define ELEMENTS_CATEGORY_EDITOR_H
#include <QtGui>
/**
Cette classe permet d'editer une categorie existante ou de creer une
categorie.
*/
class ElementsCategory;
class NamesListWidget;
class ElementsCategoryEditor : public QDialog {
Q_OBJECT
// constructeurs, destructeur
public:
ElementsCategoryEditor(QWidget * = 0);
ElementsCategoryEditor(const QString &, bool = true, QWidget * = 0);
virtual ~ElementsCategoryEditor();
private:
ElementsCategoryEditor(const ElementsCategoryEditor &);
// attributs
private:
ElementsCategory *category;
QDialogButtonBox *buttons;
NamesListWidget *names_list;
bool mode_edit;
// methodes
private:
void buildDialog();
public slots:
void acceptCreation();
void acceptUpdate();
};
#endif