full context-menu for piano-basenote so it can be automated as well as controlled via controller
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1161 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
17
ChangeLog
17
ChangeLog
@@ -1,5 +1,16 @@
|
||||
2008-06-20 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/automatable_model_view.h:
|
||||
* src/core/piano.cpp:
|
||||
full context-menu for piano-basenote so it can be automated as well as
|
||||
controlled via controller
|
||||
|
||||
* src/gui/widgets/knob.cpp:
|
||||
- when linking knobs via Shift+Drag do not use pointer to model as
|
||||
drag-data rather than model-ID which can be resolved via
|
||||
project-journal
|
||||
- fixed displayValue()
|
||||
|
||||
* Makefile.am:
|
||||
* include/knob.h:
|
||||
* include/volume_knob.h:
|
||||
@@ -39,8 +50,10 @@
|
||||
|
||||
* include/tempo_sync_knob.h:
|
||||
* src/gui/widgets/tempo_sync_knob.cpp:
|
||||
do not re-implement private event-handlers and use knob's signals
|
||||
instead
|
||||
- do not re-implement private event-handlers and use knob's signals
|
||||
instead
|
||||
- fixed crash when closing meterDialog and choosing custom-sync
|
||||
afterwards
|
||||
|
||||
* src/gui/fx_mixer_view.cpp:
|
||||
better initial position of FX-mixer view
|
||||
|
||||
@@ -82,10 +82,10 @@ public:
|
||||
m_unit = _unit;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
void addDefaultActions( QMenu * _menu );
|
||||
|
||||
|
||||
protected:
|
||||
QString m_description;
|
||||
QString m_unit;
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ pianoView::pianoView( QWidget * _parent ) :
|
||||
|
||||
m_pianoScroll = new QScrollBar( Qt::Horizontal, this );
|
||||
m_pianoScroll->setRange( 0, WhiteKeysPerOctave * ( NumOctaves - 3 ) -
|
||||
4 );
|
||||
5 );
|
||||
m_pianoScroll->setSingleStep( 1 );
|
||||
m_pianoScroll->setPageStep( 20 );
|
||||
m_pianoScroll->setValue( Octave_3 * WhiteKeysPerOctave );
|
||||
@@ -400,11 +400,8 @@ void pianoView::contextMenuEvent( QContextMenuEvent * _me )
|
||||
}
|
||||
|
||||
captionMenu contextMenu( tr( "Base note" ) );
|
||||
contextMenu.addAction( embed::getIconPixmap( "automation" ),
|
||||
tr( "&Open in automation editor" ),
|
||||
m_piano->m_instrumentTrack->baseNoteModel()->
|
||||
getAutomationPattern(),
|
||||
SLOT( openInAutomationEditor() ) );
|
||||
automatableModelView amv( m_piano->m_instrumentTrack->baseNoteModel() );
|
||||
amv.addDefaultActions( &contextMenu );
|
||||
contextMenu.exec( QCursor::pos() );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user