MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
TracksView Class Reference

#include <importmidi_view.h>

Inheritance diagram for TracksView:
Inheritance graph
[legend]
Collaboration diagram for TracksView:
Collaboration graph
[legend]

Public Member Functions

 TracksView (QWidget *parent)
 
 ~TracksView ()
 
void setModel (QAbstractItemModel *model)
 
void setFrozenRowCount (int count)
 
void setFrozenColCount (int count)
 
void setItemDelegate (SeparatorDelegate *delegate)
 
void restoreHHeaderState (const QByteArray &data)
 
void restoreVHeaderState (const QByteArray &data)
 
void setHHeaderResizeMode (QHeaderView::ResizeMode mode)
 
void setVHeaderDefaultSectionSize (int size)
 
void resetHHeader ()
 
void resetVHeader ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 
bool viewportEvent (QEvent *event)
 
void wheelEvent (QWheelEvent *event)
 

Private Slots

void currentChanged (const QModelIndex &, const QModelIndex &)
 
void updateMainViewSectionWidth (int, int, int)
 
void updateMainViewSectionHeight (int, int, int)
 
void updateFrozenSectionWidth (int, int, int)
 
void updateFrozenSectionHeight (int, int, int)
 
void onHSectionMove (int, int, int)
 
void onVSectionMove (int, int, int)
 

Private Member Functions

void initHorizontalView ()
 
void initVerticalView ()
 
void initCornerView ()
 
void initMainView ()
 
void initConnections ()
 
void setupEditTriggers ()
 
void updateFrozenTableGeometry ()
 
void keepVisible (const QModelIndex &previous, const QModelIndex &current)
 
int frozenRowHeight ()
 
int frozenColWidth ()
 
int frozenVTableWidth ()
 
int frozenHTableHeight ()
 
void updateFocus (int currentRow, int currentColumn)
 

Private Attributes

QTableView * _frozenHTableView
 
QTableView * _frozenVTableView
 
QTableView * _frozenCornerTableView
 
SeparatorDelegate_delegate
 
int _frozenRowCount
 
int _frozenColCount
 

Constructor & Destructor Documentation

◆ TracksView()

TracksView::TracksView ( QWidget *  parent)

◆ ~TracksView()

TracksView::~TracksView ( )

Member Function Documentation

◆ currentChanged

void TracksView::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
privateslot

◆ frozenColWidth()

int TracksView::frozenColWidth ( )
private

◆ frozenHTableHeight()

int TracksView::frozenHTableHeight ( )
private

◆ frozenRowHeight()

int TracksView::frozenRowHeight ( )
private

◆ frozenVTableWidth()

int TracksView::frozenVTableWidth ( )
private

◆ initConnections()

void TracksView::initConnections ( )
private

◆ initCornerView()

void TracksView::initCornerView ( )
private

◆ initHorizontalView()

void TracksView::initHorizontalView ( )
private

◆ initMainView()

void TracksView::initMainView ( )
private

◆ initVerticalView()

void TracksView::initVerticalView ( )
private

◆ keepVisible()

void TracksView::keepVisible ( const QModelIndex &  previous,
const QModelIndex &  current 
)
private

◆ onHSectionMove

void TracksView::onHSectionMove ( int  ,
int  oldVisualIndex,
int  newVisualIndex 
)
privateslot

◆ onVSectionMove

void TracksView::onVSectionMove ( int  ,
int  oldVisualIndex,
int  newVisualIndex 
)
privateslot

◆ resetHHeader()

void TracksView::resetHHeader ( )

◆ resetVHeader()

void TracksView::resetVHeader ( )

◆ resizeEvent()

void TracksView::resizeEvent ( QResizeEvent *  event)
protected

◆ restoreHHeaderState()

void TracksView::restoreHHeaderState ( const QByteArray &  data)

◆ restoreVHeaderState()

void TracksView::restoreVHeaderState ( const QByteArray &  data)

◆ setFrozenColCount()

void TracksView::setFrozenColCount ( int  count)

◆ setFrozenRowCount()

void TracksView::setFrozenRowCount ( int  count)

◆ setHHeaderResizeMode()

void TracksView::setHHeaderResizeMode ( QHeaderView::ResizeMode  mode)

◆ setItemDelegate()

void TracksView::setItemDelegate ( SeparatorDelegate delegate)

◆ setModel()

void TracksView::setModel ( QAbstractItemModel *  model)

◆ setupEditTriggers()

void TracksView::setupEditTriggers ( )
private

◆ setVHeaderDefaultSectionSize()

void TracksView::setVHeaderDefaultSectionSize ( int  size)

◆ updateFocus()

void TracksView::updateFocus ( int  currentRow,
int  currentColumn 
)
private

◆ updateFrozenSectionHeight

void TracksView::updateFrozenSectionHeight ( int  logicalIndex,
int  ,
int  newSize 
)
privateslot

◆ updateFrozenSectionWidth

void TracksView::updateFrozenSectionWidth ( int  logicalIndex,
int  ,
int  newSize 
)
privateslot

◆ updateFrozenTableGeometry()

void TracksView::updateFrozenTableGeometry ( )
private

◆ updateMainViewSectionHeight

void TracksView::updateMainViewSectionHeight ( int  logicalIndex,
int  ,
int  newSize 
)
privateslot

◆ updateMainViewSectionWidth

void TracksView::updateMainViewSectionWidth ( int  logicalIndex,
int  ,
int  newSize 
)
privateslot

◆ viewportEvent()

bool TracksView::viewportEvent ( QEvent *  event)
protected

◆ wheelEvent()

void TracksView::wheelEvent ( QWheelEvent *  event)
protected

Member Data Documentation

◆ _delegate

SeparatorDelegate* TracksView::_delegate
private

◆ _frozenColCount

int TracksView::_frozenColCount
private

◆ _frozenCornerTableView

QTableView* TracksView::_frozenCornerTableView
private

◆ _frozenHTableView

QTableView* TracksView::_frozenHTableView
private

◆ _frozenRowCount

int TracksView::_frozenRowCount
private

◆ _frozenVTableView

QTableView* TracksView::_frozenVTableView
private

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