5 #ifndef CNOID_BASE_ITEM_SELECTION_MODEL_H
6 #define CNOID_BASE_ITEM_SELECTION_MODEL_H
8 #include <cnoid/Signal>
9 #include <QItemSelectionModel>
10 #include "exportdecl.h"
23 return sigCurrentChanged_;
26 return sigCurrentColumnChanged_;
29 return sigCurrentRowChanged_;
32 return sigSelectionChanged_;
36 void onCurrentChanged(
const QModelIndex& index,
const QModelIndex& previous);
37 void onCurrentColumnChanged(
const QModelIndex& index,
const QModelIndex& previous);
38 void onCurrentRowChanged(
const QModelIndex& index,
const QModelIndex& previous);
39 void onSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
42 Signal<void(
const QModelIndex& index,
const QModelIndex& previous)> sigCurrentChanged_;
43 Signal<void(
const QModelIndex& index,
const QModelIndex& previous)> sigCurrentColumnChanged_;
44 Signal<void(
const QModelIndex& index,
const QModelIndex& previous)> sigCurrentRowChanged_;
45 Signal<void(
const QItemSelection& selected,
const QItemSelection& deselected)> sigSelectionChanged_;