17#ifndef __gui_mrview_tool_connectome_node_list_h__
18#define __gui_mrview_tool_connectome_node_list_h__
25#include <QAbstractItemModel>
51 QVariant data (
const QModelIndex& index,
int role)
const override;
52 QVariant headerData (
int section, Qt::Orientation orientation,
int role)
const override;
54 Qt::ItemFlags flags (
const QModelIndex&
index)
const override {
55 if (!
index.isValid())
return {};
56 return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
59 QModelIndex parent (
const QModelIndex&)
const override {
63 int rowCount (
const QModelIndex& parent = QModelIndex())
const override;
64 int columnCount (
const QModelIndex& parent = QModelIndex())
const override;
66 QModelIndex
index (
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override {
68 return createIndex (row, column);
73 beginRemoveRows (QModelIndex(), 0, rowCount()-1);
79 beginInsertRows (QModelIndex(), 0, rowCount()-1);
94 QTableView (parent) { }
97 QTableView::setModel (model);
114 void colours_changed();
115 int row_height()
const;
118 void clear_selection_slot();
119 void node_selection_changed_slot (
const QItemSelection&,
const QItemSelection&);
120 void node_selection_settings_dialog_slot();
125 QPushButton *clear_selection_button;
126 QPushButton *node_selection_settings_button;
131 std::unique_ptr<NodeSelectionSettingsDialog> node_selection_dialog;