Choreonoid  1.5
ItemSelectionModel.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_ITEM_SELECTION_MODEL_H
6 #define CNOID_BASE_ITEM_SELECTION_MODEL_H
7 
8 #include <cnoid/Signal>
9 #include <QItemSelectionModel>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT ItemSelectionModel : public QItemSelectionModel
15 {
16  Q_OBJECT
17 
18 public:
19  ItemSelectionModel(QAbstractItemModel* model);
20  ItemSelectionModel(QAbstractItemModel* model, QObject* parent);
21 
23  return sigCurrentChanged_;
24  }
26  return sigCurrentColumnChanged_;
27  }
29  return sigCurrentRowChanged_;
30  }
32  return sigSelectionChanged_;
33  }
34 
35 private Q_SLOTS:
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);
40 
41 private:
46 
47  void initialize();
48 };
49 
50 }
51 
52 #endif
53 
Definition: ItemSelectionModel.h:14
SignalProxy< void(const QItemSelection &selected, const QItemSelection &deselected)> sigSelectionChanged()
Definition: ItemSelectionModel.h:31
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
SignalProxy< void(const QModelIndex &index, const QModelIndex &previous)> sigCurrentRowChanged()
Definition: ItemSelectionModel.h:28
SignalProxy< void(const QModelIndex &index, const QModelIndex &previous)> sigCurrentColumnChanged()
Definition: ItemSelectionModel.h:25
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
SignalProxy< void(const QModelIndex &index, const QModelIndex &previous)> sigCurrentChanged()
Definition: ItemSelectionModel.h:22
Definition: Signal.h:380