comparison data/model/ModelDataTableModel.h @ 618:b1dc68507e46 sv-v1.7.1

* Layer data editor window: fix sorting for columns in region model, add Find feature * RDF import: assign names to layers based on event types, if no suitable labels are found in the RDF * Add label to status bar showing the last text that was passed in current layer (so e.g. counting 1, 2, 3, 4 if that's what beats are labelled) * Better layout of text labels for region layers in segmentation mode when they are close together * Give text layer the same method for finding "nearest point" as region and note layers, should improve its editability
author Chris Cannam
date Thu, 22 Oct 2009 15:54:21 +0000
parents ba7aaacb7211
children 59e7fe1b1003
comparison
equal deleted inserted replaced
617:24f06d34ac99 618:b1dc68507e46
54 QModelIndex getModelIndexForFrame(size_t frame) const; 54 QModelIndex getModelIndexForFrame(size_t frame) const;
55 size_t getFrameForModelIndex(const QModelIndex &) const; 55 size_t getFrameForModelIndex(const QModelIndex &) const;
56 56
57 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); 57 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
58 58
59 QModelIndex findText(QString text) const;
60
59 void setCurrentRow(int row); 61 void setCurrentRow(int row);
60 int getCurrentRow(); 62 int getCurrentRow() const;
61 63
62 signals: 64 signals:
63 void frameSelected(size_t); 65 void frameSelected(size_t);
64 void addCommand(Command *); 66 void addCommand(Command *);
65 void currentChanged(const QModelIndex &); 67 void currentChanged(const QModelIndex &);