OpenStructure
Public Member Functions | Protected Member Functions | Protected Attributes
BaseViewObject Class Reference

#include <base_view_object.hh>

Inherits QObject.

Inherited by SequenceViewObject.

Public Member Functions

 BaseViewObject (QObject *parent=0)
 
void InsertRow (int pos, BaseRow *row)
 
void RemoveRow (BaseRow *row)
 
BaseRowGetRow (int pos)
 
int GetRowCount ()
 
int GetMaxColumnCount () const
 
virtual void SetSelection (int row, const QSet< int > &added, const QSet< int > &removed)
 
virtual QVariant GetData (int row, int column, int role)
 
virtual bool SetData (int row, int column, const QVariant &value, int role)
 
virtual Qt::ItemFlags Flags (int row, int column) const
 
virtual const QStringList & GetDisplayModes ()
 
virtual const QString & GetCurrentDisplayMode ()
 
virtual void SetDisplayMode (const QString &mode)
 
void DoubleClicked (int row, int column)
 
void ZoomIn ()
 
void ZoomOut ()
 

Protected Member Functions

virtual void AddDisplayMode (const QString &mode)
 

Protected Attributes

QList< BaseRow * > rows_
 
QString current_display_mode_
 
QStringList display_modes_
 

Detailed Description

Definition at line 34 of file base_view_object.hh.

Constructor & Destructor Documentation

◆ BaseViewObject()

BaseViewObject ( QObject *  parent = 0)

Member Function Documentation

◆ AddDisplayMode()

virtual void AddDisplayMode ( const QString &  mode)
protectedvirtual

◆ DoubleClicked()

void DoubleClicked ( int  row,
int  column 
)

◆ Flags()

virtual Qt::ItemFlags Flags ( int  row,
int  column 
) const
virtual

◆ GetCurrentDisplayMode()

virtual const QString& GetCurrentDisplayMode ( )
virtual

◆ GetData()

virtual QVariant GetData ( int  row,
int  column,
int  role 
)
virtual

Reimplemented in AlignmentViewObject.

◆ GetDisplayModes()

virtual const QStringList& GetDisplayModes ( )
virtual

◆ GetMaxColumnCount()

int GetMaxColumnCount ( ) const

◆ GetRow()

BaseRow* GetRow ( int  pos)

◆ GetRowCount()

int GetRowCount ( )

◆ InsertRow()

void InsertRow ( int  pos,
BaseRow row 
)

◆ RemoveRow()

void RemoveRow ( BaseRow row)

◆ SetData()

virtual bool SetData ( int  row,
int  column,
const QVariant &  value,
int  role 
)
virtual

◆ SetDisplayMode()

virtual void SetDisplayMode ( const QString &  mode)
virtual

Reimplemented in SequenceViewObject, and AlignmentViewObject.

◆ SetSelection()

virtual void SetSelection ( int  row,
const QSet< int > &  added,
const QSet< int > &  removed 
)
virtual

◆ ZoomIn()

void ZoomIn ( )

◆ ZoomOut()

void ZoomOut ( )

Field Documentation

◆ current_display_mode_

QString current_display_mode_
protected

Definition at line 66 of file base_view_object.hh.

◆ display_modes_

QStringList display_modes_
protected

Definition at line 67 of file base_view_object.hh.

◆ rows_

QList<BaseRow*> rows_
protected

Definition at line 65 of file base_view_object.hh.


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