From b772da01fe1b83cee82e017602faed524c7ba7d1 Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sun, 1 Jun 2008 15:00:11 +0000 Subject: [PATCH] Improve some song-editor UI git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1036 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 9 +++++++++ src/core/track.cpp | 5 +++-- src/tracks/pattern.cpp | 8 ++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd0048d58..d98550c8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-06-01 Paul Giblock + + * src/tracks/pattern.cpp: + Improve drawing of tact lines, so it is more obvious where a pattern ends + + * src/core/track.cpp: + Display floating text underneith the current track so you can actually see + what you are doing + 2008-05-27 Paul Giblock * src/gui/piano_roll.cpp: diff --git a/src/core/track.cpp b/src/core/track.cpp index f2065d354..c8a6073e8 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -474,7 +474,7 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me ) arg( m_tco->startPosition().getTact() + 1 ). arg( m_tco->startPosition().getTicks() % midiTime::ticksPerTact() ) ); - s_textFloat->moveGlobal( this, QPoint( width() + 2, 8 ) ); + s_textFloat->moveGlobal( this, QPoint( width() + 2, height() + 2 ) ); } else if( m_action == MoveSelection ) { @@ -531,7 +531,8 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me ) arg( m_tco->endPosition().getTact() + 1 ). arg( m_tco->endPosition().getTicks() % midiTime::ticksPerTact() ) ); - s_textFloat->moveGlobal( this, QPoint( width() + 2, 8 ) ); + s_textFloat->moveGlobal( this, QPoint( width() + 2, + height() + 2) ); } else { diff --git a/src/tracks/pattern.cpp b/src/tracks/pattern.cpp index 974fc7df8..be06caf93 100644 --- a/src/tracks/pattern.cpp +++ b/src/tracks/pattern.cpp @@ -1145,6 +1145,14 @@ void patternView::paintEvent( QPaintEvent * ) x_base + static_cast( ppt * tact_num ) - 1, TCO_BORDER_WIDTH, + x_base + static_cast( + ppt * tact_num ) - 1, + 5 ); + p.drawLine( + x_base + static_cast( + ppt * tact_num ) - 1, + height() - ( 5 + 2 * + TCO_BORDER_WIDTH ), x_base + static_cast( ppt * tact_num ) - 1, height() - 2 *