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:
Tobias Doerffel
2008-09-22 20:54:32 +00:00
parent d6457f039f
commit 1451ea8000
5 changed files with 68 additions and 19 deletions

View File

@@ -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;

View File

@@ -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;