git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@80 bfdf4180-ca20-0410-9c96-a3a8aa849046

This commit is contained in:
xavierqet
2007-04-05 18:02:40 +00:00
parent 0347680f03
commit df322aeeaf
4 changed files with 89 additions and 17 deletions

View File

@@ -1,6 +1,10 @@
#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 ElementsCategoryEditor : public QDialog {
Q_OBJECT
@@ -15,13 +19,20 @@ class ElementsCategoryEditor : public QDialog {
QTreeWidget *category_names;
ElementsCategory *category;
QDialogButtonBox *buttons;
QPushButton *button_add_line;
QHash<QString, QString> hash_names;
bool mode_edit;
// methodes
private:
void buildDialog();
void clean();
bool checkOneName();
void updateHash();
public slots:
void acceptCreation();
void acceptUpdate();
void addLine();
};
#endif