49 UUID getID(
const QModelIndex& index)
const;
50 Model model(
const QModelIndex& index)
const;
51 QModelIndex getIndex(
const Model& model)
const;
52 QModelIndex getIndex(
const UUID&
id)
const;
53 void setVisibleFilter(
const std::function<
bool(
const Model&)>& filter);
54 void setIsRootFilter(
const std::function<
bool(
const Model&)>& filter);
55 QIcon::Mode iconMode(
const QModelIndex& index)
const;
57 void setAllowEdits(
bool allow);
58 void setGreyHidden(
bool grey_hidden);
59 void setShowSelected(
bool show_selected);
63 Qt::CheckState checkState(
const Model& model)
const;
64 void setAllowSelections(
bool allow);
65 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
66 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
67 QVariant data(
const QModelIndex& proxyIndex,
int role = Qt::DisplayRole)
const override;
68 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
69 void setCheckState(
const Model& model, Qt::CheckState check_state);
70 void clearCheckStates();
71 void selectAllVisible();
72 void setSelectedModelRoots(
const Buffer<UUID>& roots,
bool only_visible_children);
73 void setCheckStateRecursive(
const Model& model, Qt::CheckState check_state);
74 void setCheckStateAll(Qt::CheckState check_state);
75 void setCheckStateAll(
GeometryType type, Qt::CheckState check_state);
76 void setCheckStateAll(
const String& model_type,
GeometryType type, Qt::CheckState check_state);
77 void setCheckStateAll(
const String& model_type, Qt::CheckState check_state);
78 void setCheckStateAll(
const std::function<
bool(
const Model& model)>& model_type, Qt::CheckState check_state);
81 virtual bool lessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
82 bool hasIndex(
const UUID&
id)
const;
86 void _autosetCheckState(
const Model& parent, Qt::CheckState default_check_state);
87 bool filterAcceptsRow(
int row,
const QModelIndex& parent)
const override;
88 bool isTreeVisible(
const Model& m)
const;
89 bool calculateTreeVisible(
const Model& m)
const;
91 std::function<bool(
const Model&)> m_visible_filter;
96 String m_custom_header_icon;
97 bool m_allow_selections;
100 bool m_show_selected;