19 #ifndef OST_SEQUENCE_VIEWER_BASE_ROW
20 #define OST_SEQUENCE_VIEWER_BASE_ROW
30 #include <QModelIndex>
32 namespace ost {
namespace gui {
40 BaseRow(QFont font, QObject *parent = 0);
53 void SetFont(
const QFont& font);
58 virtual QVariant
GetData(
int column,
int role)
const;
59 virtual bool SetData(
int column,
const QVariant& value,
int role);
60 virtual Qt::ItemFlags
Flags(
int column)
const;
62 virtual void SetSelection(
const QSet<int>& added,
const QSet<int>& removed);
68 bool IsPainterPosValid(
int pos);
71 QSize default_font_size_;
72 QSize default_cell_size_;
const QSize & GetFontSize() const
virtual const QSize & GetCellSize() const
virtual void DoubleClicked(int column)
virtual void SetSelection(const QSet< int > &added, const QSet< int > &removed)
virtual int GetColumnCount() const
const QFont & GetFont() const
BaseRow(QObject *parent=0)
const PainterList & GetPainters() const
void RemovePainter(Painter *painter)
virtual bool SetData(int column, const QVariant &value, int role)
void InsertPainter(Painter *painter, int pos=-1)
QList< Painter * > PainterList
virtual QVariant GetData(int column, int role) const
void SetFont(const QFont &font)
virtual Qt::ItemFlags Flags(int column) const
QList< BaseRow * > BaseRowList
Painter * GetPainter(int pos)