19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_VIEWER
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_VIEWER
38 #include <QActionGroup>
40 #include <QModelIndex>
41 #include <QItemSelection>
49 class SequenceTableView;
57 const QString& title=
"Sequence Viewer",
58 QWidget* parent=NULL);
73 virtual bool Restore(
const QString&){
return true; };
74 virtual bool Save(
const QString&){
return true; };
76 virtual const QStringList& GetDisplayModes();
78 virtual const QStringList& GetDisplayModes(
const gfx::EntityP& entity);
80 virtual const QString& GetCurrentDisplayMode();
82 virtual const QString& GetCurrentDisplayMode(
const gfx::EntityP& entity);
86 void AlignmentChanged();
88 void ChangeDisplayMode(
const QString&);
90 void ChangeDisplayMode(
const gfx::EntityP&,
const QString&);
93 void OnSearchBarUpdate(
const QString&,
bool,
const QString&);
101 void InitSearchBar();
103 void UpdateSearchBar();
104 void SelectList(
const QModelIndexList& list);
112 QActionGroup* display_mode_actions_;
115 void ChangeDisplayMode();
116 void FindInSequence();
117 void SelectionModelChanged(
const QItemSelection&,
const QItemSelection&);
118 void DoubleClicked(
const QModelIndex& index);
119 void MouseWheelEvent(QWheelEvent* event);
120 void CopyEvent(QKeyEvent* event);