2007-04-04 02:13:14 +00:00
|
|
|
#ifndef ELEMENTS_CATEGORIES_WIDGET_H
|
|
|
|
#define ELEMENTS_CATEGORIES_WIDGET_H
|
|
|
|
#include <QtGui>
|
|
|
|
/**
|
|
|
|
Cette classe represente un widget integrant la liste des categories
|
|
|
|
de l'utilisteur surplombee de boutons permettant d'ajouter
|
|
|
|
*/
|
|
|
|
class ElementsCategoriesList;
|
|
|
|
class ElementsCategoriesWidget : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
// Constructeur, destructeur
|
|
|
|
public:
|
2007-04-05 01:13:14 +00:00
|
|
|
ElementsCategoriesWidget(QWidget * = 0);
|
2007-04-04 02:13:14 +00:00
|
|
|
~ElementsCategoriesWidget();
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
ElementsCategoriesList *elementscategorieslist;
|
|
|
|
QToolBar *toolbar;
|
2007-04-05 02:06:20 +00:00
|
|
|
QAction *action_reload;
|
|
|
|
QAction *action_new;
|
|
|
|
QAction *action_open;
|
|
|
|
QAction *action_delete;
|
2007-04-04 02:13:14 +00:00
|
|
|
|
|
|
|
// methodes
|
2007-04-05 01:13:14 +00:00
|
|
|
bool rmdir(const QString &);
|
|
|
|
|
2007-04-04 02:13:14 +00:00
|
|
|
public:
|
|
|
|
inline ElementsCategoriesList &elementsCategoriesList() const { return(*elementscategorieslist); }
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void newCategory();
|
|
|
|
void editCategory();
|
|
|
|
void removeCategory();
|
2007-04-05 02:06:20 +00:00
|
|
|
void updateButtons();
|
2007-04-04 02:13:14 +00:00
|
|
|
};
|
|
|
|
#endif
|