OpenStructure
Public Slots | Public Member Functions
SequenceModel Class Reference

#include <sequence_model.hh>

Inherits QAbstractTableModel.

Public Slots

void ZoomIn ()
 
void ZoomOut ()
 
void DoubleClicked (const QModelIndex &index)
 
void SelectionChanged (const QItemSelection &sel, const QItemSelection &desel)
 

Public Member Functions

 SequenceModel (QObject *parent=0)
 
void InsertAlignment (const seq::AlignmentHandle &alignment)
 
void InsertGfxEntity (const gfx::EntityP &entity)
 
void InsertChain (QString &name, mol::ChainView &view)
 
void InsertSequence (QString &name, seq::SequenceHandle &seq)
 
void InsertSequences (const QList< QString > &names, seq::SequenceList &list)
 
void RemoveAlignment (const seq::AlignmentHandle &alignment)
 
void RemoveGfxEntity (const gfx::EntityP &entity)
 
QModelIndexList GetModelIndexes (gfx::EntityP &entity, const mol::EntityView &view)
 
QModelIndexList GetModelIndexes (const QString &subject, const QString &sequence_name=QString())
 
int GetGlobalRow (BaseViewObject *obj, int row) const
 
const QStringList & GetDisplayModes ()
 
const QStringList & GetDisplayModes (const gfx::EntityP &entity)
 
const QStringList & GetDisplayModes (const seq::AlignmentHandle &alignment)
 
const QString & GetCurrentDisplayMode ()
 
const QString & GetCurrentDisplayMode (const gfx::EntityP &entity)
 
const QString & GetCurrentDisplayMode (const seq::AlignmentHandle &alignment)
 
void SetDisplayMode (const QString &mode)
 
void SetDisplayMode (const gfx::EntityP &entity, const QString &mode)
 
void SetDisplayMode (const seq::AlignmentHandle &alignment, const QString &mode)
 
const PainterListGetPainters (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index=QModelIndex()) const
 
QPair< seq::AlignmentHandle, int > GetAlignmentForRow (int row)
 
void EmitRowChanged (int row)
 
void Clear ()
 

Detailed Description

Definition at line 45 of file sequence_model.hh.

Constructor & Destructor Documentation

◆ SequenceModel()

SequenceModel ( QObject *  parent = 0)

Member Function Documentation

◆ Clear()

void Clear ( )

◆ columnCount()

int columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

◆ DoubleClicked

void DoubleClicked ( const QModelIndex &  index)
slot

◆ EmitRowChanged()

void EmitRowChanged ( int  row)

◆ flags()

virtual Qt::ItemFlags flags ( const QModelIndex &  index = QModelIndex()) const
virtual

◆ GetAlignmentForRow()

QPair<seq::AlignmentHandle, int> GetAlignmentForRow ( int  row)

◆ GetCurrentDisplayMode() [1/3]

const QString& GetCurrentDisplayMode ( )

◆ GetCurrentDisplayMode() [2/3]

const QString& GetCurrentDisplayMode ( const gfx::EntityP entity)

◆ GetCurrentDisplayMode() [3/3]

const QString& GetCurrentDisplayMode ( const seq::AlignmentHandle alignment)

◆ GetDisplayModes() [1/3]

const QStringList& GetDisplayModes ( )

◆ GetDisplayModes() [2/3]

const QStringList& GetDisplayModes ( const gfx::EntityP entity)

◆ GetDisplayModes() [3/3]

const QStringList& GetDisplayModes ( const seq::AlignmentHandle alignment)

◆ GetGlobalRow()

int GetGlobalRow ( BaseViewObject obj,
int  row 
) const

◆ GetModelIndexes() [1/2]

QModelIndexList GetModelIndexes ( const QString &  subject,
const QString &  sequence_name = QString() 
)

◆ GetModelIndexes() [2/2]

QModelIndexList GetModelIndexes ( gfx::EntityP entity,
const mol::EntityView view 
)

◆ GetPainters()

const PainterList& GetPainters ( const QModelIndex &  index) const

◆ headerData()

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ InsertAlignment()

void InsertAlignment ( const seq::AlignmentHandle alignment)

◆ InsertChain()

void InsertChain ( QString &  name,
mol::ChainView view 
)

◆ InsertGfxEntity()

void InsertGfxEntity ( const gfx::EntityP entity)

◆ InsertSequence()

void InsertSequence ( QString &  name,
seq::SequenceHandle seq 
)

◆ InsertSequences()

void InsertSequences ( const QList< QString > &  names,
seq::SequenceList list 
)

◆ RemoveAlignment()

void RemoveAlignment ( const seq::AlignmentHandle alignment)

◆ RemoveGfxEntity()

void RemoveGfxEntity ( const gfx::EntityP entity)

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ SelectionChanged

void SelectionChanged ( const QItemSelection &  sel,
const QItemSelection &  desel 
)
slot

◆ SetDisplayMode() [1/3]

void SetDisplayMode ( const gfx::EntityP entity,
const QString &  mode 
)

◆ SetDisplayMode() [2/3]

void SetDisplayMode ( const QString &  mode)

◆ SetDisplayMode() [3/3]

void SetDisplayMode ( const seq::AlignmentHandle alignment,
const QString &  mode 
)

◆ ZoomIn

void ZoomIn ( )
slot

◆ ZoomOut

void ZoomOut ( )
slot

The documentation for this class was generated from the following file: