OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
BaseViewObject Class Reference

#include <base_view_object.hh>

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 ( QObject *  parent = 0)

Member Function Documentation

virtual void AddDisplayMode ( const QString &  mode)
protectedvirtual
void DoubleClicked ( int  row,
int  column 
)
virtual Qt::ItemFlags Flags ( int  row,
int  column 
) const
virtual
virtual const QString& GetCurrentDisplayMode ( )
virtual
virtual QVariant GetData ( int  row,
int  column,
int  role 
)
virtual

Reimplemented in AlignmentViewObject.

virtual const QStringList& GetDisplayModes ( )
virtual
int GetMaxColumnCount ( ) const
BaseRow* GetRow ( int  pos)
int GetRowCount ( )
void InsertRow ( int  pos,
BaseRow row 
)
void RemoveRow ( BaseRow row)
virtual bool SetData ( int  row,
int  column,
const QVariant &  value,
int  role 
)
virtual
virtual void SetDisplayMode ( const QString &  mode)
virtual

Reimplemented in SequenceViewObject, and AlignmentViewObject.

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

Field Documentation

QString current_display_mode_
protected

Definition at line 66 of file base_view_object.hh.

QStringList display_modes_
protected

Definition at line 67 of file base_view_object.hh.

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: