defuze.me  Client
listswidget.hpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2012
00005 **   Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard
00006 **   Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier
00007 **
00008 ** All rights reserved.
00009 **************************************************************************/
00010 
00011 #ifndef LISTSWIDGET_HPP
00012 #define LISTSWIDGET_HPP
00013 
00014 #include "ui_listswidget.h"
00015 #include "guicore.hpp"
00016 
00017 
00018 namespace Lists
00019 {
00020     class ListsPlugin;
00021 
00022     class ListsWidget : public Gui::ModuleWidget, private Ui::ListsWidget
00023     {
00024         Q_OBJECT
00025 
00026     public:
00027         explicit    ListsWidget(ListsPlugin *lists, QWidget *parent = 0);
00028         ListsTreeView   *getTreeViewWidget() const;
00029 
00030     public slots:
00031         void        toogleItem(const QModelIndex &index);
00032 
00033     protected:
00034         void        changeEvent(QEvent *e);
00035         ListsPlugin *lists;
00036     };
00037 
00038 }
00039 
00040 #endif // LISTSWIDGET_HPP