made base-note automatable via drag'n'drop
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1478 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
15
ChangeLog
15
ChangeLog
@@ -1,3 +1,18 @@
|
||||
2008-08-23 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/gui/automatable_model_view.cpp:
|
||||
coding style fixes
|
||||
|
||||
* src/gui/string_pair_drag.cpp:
|
||||
if no pixmap was given and parent-widget is valid, use a snapshot of
|
||||
the widget as drag-icon
|
||||
|
||||
* src/tracks/instrument_track.cpp:
|
||||
added display-name for baseNoteModel
|
||||
|
||||
* src/core/piano.cpp:
|
||||
made base-note automatable via drag'n'drop
|
||||
|
||||
2008-08-22 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
|
||||
* include/automatable_model.h:
|
||||
|
||||
@@ -53,6 +53,8 @@
|
||||
#include "gui_templates.h"
|
||||
#include "instrument_track.h"
|
||||
#include "knob.h"
|
||||
#include "string_pair_drag.h"
|
||||
#include "main_window.h"
|
||||
#include "midi.h"
|
||||
#include "templates.h"
|
||||
#include "update_event.h"
|
||||
@@ -502,8 +504,20 @@ void pianoView::mousePressEvent( QMouseEvent * _me )
|
||||
}
|
||||
else
|
||||
{
|
||||
m_piano->m_instrumentTrack->baseNoteModel()->
|
||||
if( engine::getMainWindow()->isCtrlPressed() )
|
||||
{
|
||||
new stringPairDrag( "automatable_model",
|
||||
QString::number( m_piano->
|
||||
m_instrumentTrack->
|
||||
baseNoteModel()->id() ),
|
||||
QPixmap(), this );
|
||||
_me->accept();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_piano->m_instrumentTrack->baseNoteModel()->
|
||||
setInitValue( key_num );
|
||||
}
|
||||
}
|
||||
|
||||
// and let the user see that he pressed a key... :)
|
||||
|
||||
Reference in New Issue
Block a user