19 #ifndef OST_SEQUENCE_VIEWER_SEQUENCE_MODEL
20 #define OST_SEQUENCE_VIEWER_SEQUENCE_MODEL
39 #include <QAbstractTableModel>
40 #include <QItemSelection>
43 namespace ost {
namespace gui {
62 QModelIndexList
GetModelIndexes(
const QString& subject,
const QString& sequence_name=QString());
79 int rowCount(
const QModelIndex& parent=QModelIndex())
const;
81 int columnCount(
const QModelIndex& parent=QModelIndex())
const;
83 QVariant
data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const;
85 QVariant
headerData(
int section, Qt::Orientation orientation,
86 int role=Qt::DisplayRole)
const;
88 virtual Qt::ItemFlags
flags(
const QModelIndex& index=QModelIndex())
const;
100 int GetColumnCount()
const;
104 QPair<int, BaseViewObject*> GetRowWithItem(
int row)
const;
105 QPair<int, BaseViewObject*> GetRowWithItem(
const QModelIndex& index)
const;
107 QList<BaseViewObject*> objects_;
110 QString empty_string_;
111 QStringList empty_string_list_;
112 QStringList display_modes_;
113 QString current_display_mode_;
void SelectionChanged(const QItemSelection &sel, const QItemSelection &desel)
void InsertChain(QString &name, mol::ChainView &view)
const QString & GetCurrentDisplayMode(const seq::AlignmentHandle &alignment)
virtual Qt::ItemFlags flags(const QModelIndex &index=QModelIndex()) const
SequenceModel(QObject *parent=0)
void SetDisplayMode(const seq::AlignmentHandle &alignment, const QString &mode)
const QString & GetCurrentDisplayMode(const gfx::EntityP &entity)
void InsertAlignment(const seq::AlignmentHandle &alignment)
const QStringList & GetDisplayModes(const gfx::EntityP &entity)
void RemoveGfxEntity(const gfx::EntityP &entity)
QPair< seq::AlignmentHandle, int > GetAlignmentForRow(int row)
int columnCount(const QModelIndex &parent=QModelIndex()) const
const PainterList & GetPainters(const QModelIndex &index) const
void SetDisplayMode(const gfx::EntityP &entity, const QString &mode)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
const QString & GetCurrentDisplayMode()
int GetGlobalRow(BaseViewObject *obj, int row) const
QModelIndexList GetModelIndexes(const QString &subject, const QString &sequence_name=QString())
void SetDisplayMode(const QString &mode)
const QStringList & GetDisplayModes(const seq::AlignmentHandle &alignment)
void EmitRowChanged(int row)
void DoubleClicked(const QModelIndex &index)
int rowCount(const QModelIndex &parent=QModelIndex()) const
void InsertGfxEntity(const gfx::EntityP &entity)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
void InsertSequences(const QList< QString > &names, seq::SequenceList &list)
void RemoveAlignment(const seq::AlignmentHandle &alignment)
void InsertSequence(QString &name, seq::SequenceHandle &seq)
const QStringList & GetDisplayModes()
QModelIndexList GetModelIndexes(gfx::EntityP &entity, const mol::EntityView &view)
representation of a multiple sequence alignemnt consisting of two or more sequences
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< Entity > EntityP
QList< Painter * > PainterList