/usr/include/choreonoid-1.1/cnoid/src/Base/ItemSelectionModel.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /**
@author Shin'ichiro Nakaoka
*/
#ifndef CNOID_GUIBASE_ITEM_SELECTION_MODEL_H_INCLUDED
#define CNOID_GUIBASE_ITEM_SELECTION_MODEL_H_INCLUDED
#include <cnoid/SignalProxy>
#include <QItemSelectionModel>
#include "exportdecl.h"
namespace cnoid {
class CNOID_EXPORT ItemSelectionModel : public QItemSelectionModel
{
Q_OBJECT
public:
ItemSelectionModel(QAbstractItemModel* model);
ItemSelectionModel(QAbstractItemModel* model, QObject* parent);
inline SignalProxy< boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> > sigCurrentChanged() {
return sigCurrentChanged_;
}
inline SignalProxy< boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> > sigCurrentColumnChanged() {
return sigCurrentColumnChanged_;
}
inline SignalProxy< boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> > sigCurrentRowChanged() {
return sigCurrentRowChanged_;
}
inline SignalProxy< boost::signal<void(const QItemSelection& selected, const QItemSelection& deselected)> > sigSelectionChanged() {
return sigSelectionChanged_;
}
private Q_SLOTS:
void onCurrentChanged(const QModelIndex& index, const QModelIndex& previous);
void onCurrentColumnChanged(const QModelIndex& index, const QModelIndex& previous);
void onCurrentRowChanged(const QModelIndex& index, const QModelIndex& previous);
void onSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
private:
boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> sigCurrentChanged_;
boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> sigCurrentColumnChanged_;
boost::signal<void(const QModelIndex& index, const QModelIndex& previous)> sigCurrentRowChanged_;
boost::signal<void(const QItemSelection& selected, const QItemSelection& deselected)> sigSelectionChanged_;
void initialize();
};
}
#endif
|