19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_MODEL
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_MODEL
38 #include <QAbstractTableModel>
39 #include <QItemSelection>
40 namespace ost {
namespace gui {
59 QModelIndexList
GetModelIndexes(
const QString& subject,
const QString& sequence_name=QString());
76 int rowCount(
const QModelIndex& parent=QModelIndex())
const;
78 int columnCount(
const QModelIndex& parent=QModelIndex())
const;
80 QVariant
data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const;
82 QVariant
headerData(
int section, Qt::Orientation orientation,
83 int role=Qt::DisplayRole)
const;
85 virtual Qt::ItemFlags
flags(
const QModelIndex& index=QModelIndex())
const;
95 void SelectionChanged(
const QItemSelection& sel,
const QItemSelection& desel);
97 int GetColumnCount()
const;
101 QPair<int, BaseViewObject*> GetRowWithItem(
int row)
const;
102 QPair<int, BaseViewObject*> GetRowWithItem(
const QModelIndex& index)
const;
104 QList<BaseViewObject*> objects_;
107 QString empty_string_;
108 QStringList empty_string_list_;
109 QStringList display_modes_;
110 QString current_display_mode_;