OpenStructure
Public Slots | Signals | Public Member Functions | Protected Member Functions
SequenceTableView Class Reference

#include <sequence_table_view.hh>

Inherits QTableView.

Public Slots

void columnCountChanged (const QModelIndex &index, int old_count, int new_count)
 
void rowCountChanged (const QModelIndex &index, int old_count, int new_count)
 
void resizeColumnsToContents ()
 
void resizeRowsToContents ()
 

Signals

void MouseWheelEvent (QWheelEvent *event)
 
void CopyEvent (QKeyEvent *event)
 
void AlignmentChanged ()
 

Public Member Functions

 SequenceTableView (QAbstractItemModel *model)
 
QTableView * GetStaticRow ()
 
QTableView * GetStaticColumn ()
 
QTableView * GetStaticField ()
 
 ~SequenceTableView ()
 
void SetSingleAlignment (bool flag)
 
bool IsSingleAlignment () const
 

Protected Member Functions

virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 
virtual int sizeHintForColumn (int column) const
 
virtual int sizeHintForRow (int row) const
 

Detailed Description

QTableView with first column not moving.

Definition at line 36 of file sequence_table_view.hh.

Constructor & Destructor Documentation

◆ SequenceTableView()

SequenceTableView ( QAbstractItemModel *  model)

◆ ~SequenceTableView()

Member Function Documentation

◆ AlignmentChanged

void AlignmentChanged ( )
signal

◆ columnCountChanged

void columnCountChanged ( const QModelIndex &  index,
int  old_count,
int  new_count 
)
slot

◆ CopyEvent

void CopyEvent ( QKeyEvent *  event)
signal

◆ GetStaticColumn()

QTableView* GetStaticColumn ( )

◆ GetStaticField()

QTableView* GetStaticField ( )

◆ GetStaticRow()

QTableView* GetStaticRow ( )

◆ IsSingleAlignment()

bool IsSingleAlignment ( ) const
inline

Definition at line 48 of file sequence_table_view.hh.

◆ keyPressEvent()

virtual void keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ mouseDoubleClickEvent()

virtual void mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent()

virtual void mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

◆ MouseWheelEvent

void MouseWheelEvent ( QWheelEvent *  event)
signal

◆ moveCursor()

virtual QModelIndex moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)
protectedvirtual

◆ resizeColumnsToContents

void resizeColumnsToContents ( )
slot

◆ resizeEvent()

virtual void resizeEvent ( QResizeEvent *  event)
protectedvirtual

◆ resizeRowsToContents

void resizeRowsToContents ( )
slot

◆ rowCountChanged

void rowCountChanged ( const QModelIndex &  index,
int  old_count,
int  new_count 
)
slot

◆ scrollTo()

void scrollTo ( const QModelIndex &  index,
ScrollHint  hint = EnsureVisible 
)
protected

◆ SetSingleAlignment()

void SetSingleAlignment ( bool  flag)
inline

Definition at line 46 of file sequence_table_view.hh.

◆ sizeHintForColumn()

virtual int sizeHintForColumn ( int  column) const
protectedvirtual

◆ sizeHintForRow()

virtual int sizeHintForRow ( int  row) const
protectedvirtual

◆ wheelEvent()

virtual void wheelEvent ( QWheelEvent *  event)
protectedvirtual

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