19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_TABLE_VIEW
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_TABLE_VIEW
32 #include <QWheelEvent>
33 namespace ost {
namespace gui {
65 virtual QModelIndex
moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers);
66 void scrollTo (
const QModelIndex & index, ScrollHint hint = EnsureVisible);
71 void InitStaticColumn();
73 void InitStaticField();
74 void ResizeWidth(
int index,
int,
int size);
75 void ResizeHeight(
int index,
int,
int size);
78 std::pair<int, int> GetSimpleSelection(
int row);
79 QTableView* static_column_;
80 QTableView* static_row_;
81 QTableView* static_field_;
83 QModelIndex last_double_click_;
84 bool single_alignment_;
85 void updateStaticColumn();
86 void updateStaticRow();
87 void updateStaticField();
QTableView with first column not moving.
void rowCountChanged(const QModelIndex &index, int old_count, int new_count)
void CopyEvent(QKeyEvent *event)
SequenceTableView(QAbstractItemModel *model)
void columnCountChanged(const QModelIndex &index, int old_count, int new_count)
virtual void mouseReleaseEvent(QMouseEvent *event)
QTableView * GetStaticColumn()
virtual int sizeHintForColumn(int column) const
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
void resizeColumnsToContents()
virtual void mouseDoubleClickEvent(QMouseEvent *event)
QTableView * GetStaticRow()
void MouseWheelEvent(QWheelEvent *event)
virtual int sizeHintForRow(int row) const
virtual void keyPressEvent(QKeyEvent *event)
QTableView * GetStaticField()
void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible)
virtual void resizeEvent(QResizeEvent *event)
void SetSingleAlignment(bool flag)
void resizeRowsToContents()
virtual void wheelEvent(QWheelEvent *event)
bool IsSingleAlignment() const
#define DLLEXPORT_OST_GUI