added a vertical position line
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1685 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -38,8 +38,18 @@ class lcdSpinBox;
|
||||
class meterDialog;
|
||||
class song;
|
||||
class textFloat;
|
||||
class timeLine;
|
||||
class toolButton;
|
||||
|
||||
class positionLine : public QWidget
|
||||
{
|
||||
public:
|
||||
positionLine( QWidget * _parent );
|
||||
|
||||
private:
|
||||
virtual void paintEvent( QPaintEvent * _pe );
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
class songEditor : public trackContainerView
|
||||
@@ -112,6 +122,7 @@ private:
|
||||
|
||||
comboBox * m_zoomingComboBox;
|
||||
|
||||
positionLine * m_positionLine;
|
||||
|
||||
bool m_scrollBack;
|
||||
|
||||
|
||||
@@ -116,6 +116,12 @@ public:
|
||||
return( "timeline" );
|
||||
}
|
||||
|
||||
inline int markerX( const midiTime & _t ) const
|
||||
{
|
||||
return( m_xOffset + static_cast<int>( ( _t - m_begin ) *
|
||||
m_ppt / midiTime::ticksPerTact() ) );
|
||||
}
|
||||
|
||||
|
||||
public slots:
|
||||
void updatePosition( const midiTime & );
|
||||
@@ -136,13 +142,6 @@ protected:
|
||||
|
||||
|
||||
private:
|
||||
inline int markerX( const midiTime & _t ) const
|
||||
{
|
||||
return( m_xOffset + static_cast<int>( ( _t - m_begin ) *
|
||||
m_ppt / midiTime::ticksPerTact() ) );
|
||||
}
|
||||
|
||||
|
||||
static QPixmap * s_timeLinePixmap;
|
||||
static QPixmap * s_posMarkerPixmap;
|
||||
static QPixmap * s_loopPointPixmap;
|
||||
|
||||
Reference in New Issue
Block a user