10 #ifndef PROTO_TREE_MODEL_H 11 #define PROTO_TREE_MODEL_H 13 #include <ui/qt/utils/proto_node.h> 15 #include <QAbstractItemModel> 16 #include <QModelIndex> 25 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
26 QModelIndex index(
int row,
int,
const QModelIndex &parent = QModelIndex())
const;
27 virtual QModelIndex parent(
const QModelIndex &index)
const;
28 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
29 virtual int columnCount(
const QModelIndex &)
const {
return 1; }
30 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
34 ProtoNode protoNodeFromIndex(
const QModelIndex &index)
const;
35 QModelIndex indexFromProtoNode(
ProtoNode &index_node)
const;
37 QModelIndex findFirstHfid(
int hf_id);
42 static void foreachFindHfid(
proto_node *node, gpointer find_hfid_ptr);
43 static void foreachFindField(
proto_node *node, gpointer find_finfo_ptr);
46 #endif // PROTO_TREE_MODEL_H
Definition: proto_tree_model.h:18
Definition: proto_node.h:17