19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_TABLE_VIEW
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_TABLE_VIEW
32 #include <QWheelEvent>
33 namespace ost {
namespace gui {
40 QTableView* GetStaticRow();
41 QTableView* GetStaticColumn();
42 QTableView* GetStaticField();
50 void MouseWheelEvent(QWheelEvent* event);
51 void CopyEvent(QKeyEvent* event);
52 void AlignmentChanged();
54 void columnCountChanged(
const QModelIndex& index,
int old_count,
int new_count);
55 void rowCountChanged(
const QModelIndex& index,
int old_count,
int new_count);
56 void resizeColumnsToContents();
57 void resizeRowsToContents();
60 virtual void mouseDoubleClickEvent(QMouseEvent* event);
61 virtual void mouseReleaseEvent(QMouseEvent* event);
62 virtual void resizeEvent(QResizeEvent* event);
63 virtual void wheelEvent(QWheelEvent* event);
64 virtual void keyPressEvent(QKeyEvent* event);
65 virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers);
66 void scrollTo (
const QModelIndex & index, ScrollHint hint = EnsureVisible);
67 virtual int sizeHintForColumn(
int column)
const;
68 virtual int sizeHintForRow(
int row)
const;
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.
#define DLLEXPORT_OST_GUI
void SetSingleAlignment(bool flag)
bool IsSingleAlignment() const