mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@87 bfdf4180-ca20-0410-9c96-a3a8aa849046
38 lines
787 B
C++
38 lines
787 B
C++
#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
|