19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_VIEWER
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_VIEWER
39 #include <QActionGroup>
41 #include <QModelIndex>
42 #include <QItemSelection>
51 class SequenceTableView;
59 const QString& title=
"Sequence Viewer",
60 QWidget* parent=NULL);
75 virtual bool Restore(
const QString&){
return true; };
76 virtual bool Save(
const QString&){
return true; };
100 void FitToContents();
103 void InitSearchBar();
105 void UpdateSearchBar();
106 void SelectList(
const QModelIndexList& list);
114 QActionGroup* display_mode_actions_;
117 void ChangeDisplayMode();
118 void FindInSequence();
119 void SelectionModelChanged(
const QItemSelection&,
const QItemSelection&);
120 void DoubleClicked(
const QModelIndex& index);
121 void MouseWheelEvent(QWheelEvent* event);
122 void CopyEvent(QKeyEvent* event);
Interface for observing graphical objects.
search bar to search in multiple sequence alignment
QTableView with first column not moving.
QTableView with first column not moving.
virtual const QStringList & GetDisplayModes(const seq::AlignmentHandle &alignment)
virtual const QStringList & GetDisplayModes()
virtual ActionList GetActions()
get Widget specific actions
virtual const QString & GetCurrentDisplayMode(const seq::AlignmentHandle &alignment)
void ChangeDisplayMode(const QString &)
SequenceViewer(bool stand_alone=true, bool observe_scene=false, const QString &title="Sequence Viewer", QWidget *parent=NULL)
virtual void RemoveEntity(const gfx::EntityP &entity)
virtual const QString & GetCurrentDisplayMode(const gfx::EntityP &entity)
virtual const QString & GetCurrentDisplayMode()
void OnSearchBarUpdate(const QString &, bool, const QString &)
virtual void RemoveAlignment(const seq::AlignmentHandle &alignment)
void SetObserveScene(bool flag)
virtual void SelectionChanged(const gfx::GfxObjP &o, const mol::EntityView &view)
Called when selection of an object changed.
virtual const QStringList & GetDisplayModes(const gfx::EntityP &entity)
virtual bool Restore(const QString &)
virtual void AddEntity(const gfx::EntityP &entity)
void ChangeDisplayMode(const gfx::EntityP &, const QString &)
void ChangeDisplayMode(const seq::AlignmentHandle &, const QString &)
void SetAlignment(const seq::AlignmentHandle &alignment)
bool IsObservingScene() const
virtual void AddAlignment(const seq::AlignmentHandle &alignment)
virtual bool Save(const QString &)
representation of a multiple sequence alignemnt consisting of two or more sequences
#define DLLEXPORT_OST_GUI
def alignment(query_db, trg_db, resultDB, directory, resultDB_m8, sen=None, exe_path=None, start_sens=None, sens_steps=None, fmt=None)
boost::shared_ptr< GfxNode > GfxNodeP
boost::shared_ptr< Entity > EntityP
boost::shared_ptr< GfxObj > GfxObjP
QList< QAction * > ActionList