Go to the documentation of this file.00001 #ifndef _RQT_MRTA_PARAM_ITEM_MODEL_H_
00002 #define _RQT_MRTA_PARAM_ITEM_MODEL_H_
00003
00004 #include <QAbstractItemModel>
00005
00006 namespace rqt_mrta
00007 {
00008 namespace config
00009 {
00010 class Config;
00011 class ParamInterface;
00012 }
00013 class ParamItem;
00014 class ParamItemModel : public QAbstractItemModel
00015 {
00016 Q_OBJECT
00017 public:
00018 ParamItemModel(QObject* parent = NULL);
00019 virtual ~ParamItemModel();
00020 void setConfig(config::Config* config);
00021 int rowCount(const QModelIndex& parent) const;
00022 int columnCount(const QModelIndex& parent) const;
00023 QVariant data(const QModelIndex& index, int role) const;
00024 QModelIndex index(int row, int column, const QModelIndex& parent) const;
00025 QModelIndex parent(const QModelIndex& index) const;
00026
00027 private:
00028 ParamItem* root_;
00029 };
00030 }
00031
00032 #endif // _RQT_MRTA_PARAM_ITEM_MODEL_H_