AnnotationObjectMgrDelegate.qt.H

00001 #ifndef NEOVISIONII_NEOANNOTATE_ANNOTATIONOBJECTMGRDELEGATE_QT_H
00002 #define NEOVISIONII_NEOANNOTATE_ANNOTATIONOBJECTMGRDELEGATE_QT_H
00003 
00004 #include <QtGui/QtGui>
00005 
00006 class AnnotationObjectMgrDelegate : public QAbstractItemDelegate
00007 {
00008   Q_OBJECT
00009 
00010   public:
00011     AnnotationObjectMgrDelegate(QObject *parent = 0);
00012 
00013     void paint(QPainter* painter,
00014         const QStyleOptionViewItem & option, const QModelIndex & index) const;
00015 
00016     QSize sizeHint(const QStyleOptionViewItem & option, 
00017         const QModelIndex & index) const;
00018 
00019     QWidget* createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
00020 
00021     void setEditorData(QWidget *editor, const QModelIndex &index) const;
00022 
00023     void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
00024 
00025     void setObjCategories(QMap<int, QString> categories) { itsCategories = categories; }
00026 
00027   private:
00028     QMap<int, QString> itsCategories;
00029 
00030 
00031 };
00032 
00033 #endif // NEOVISIONII_NEOANNOTATE_ANNOTATIONOBJECTMGRDELEGATE_QT_H
00034 
Generated on Sun May 8 08:41:02 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3