Krzysztof Foltman wrote:
Sebastian Moors wrote:
Well, i think there is at least one issue left beside the manual. The first one is described here:
Another (minor) issue: after loading a drumkit with more instruments than the current one, the instrument list to the left of the pattern area is resized but the pattern area itself is not (it's still dark gray). Clicking anywhere in the pattern fixes the problem.

How to reproduce: load the Boss DR-110 drumkit and then the DeathMetal drumkit.

Yep. I can make this happen. What's more: Once you get the area to repaint... the vertical scroll between the instrument list and the pattern editor are not synchronized. (If you have 2 kits large enough to need the scroll bar... when you switch between them the vertical scroll between the instrument list and the pattern editor are not synchronized.)

Looks like we need a DRUMKIT_CHANGED event... but someone who knows the GUI code will probably have more insight. :-)

The attached patch *almost* fixes it for me. It doesn't work when you go from a small kit to a large kit. You have to actually click a different instrument to get them to sync.

Peace,
Gabriel


diff --git a/gui/src/HydrogenApp.cpp b/gui/src/HydrogenApp.cpp
index 7f8ee38..92d4b42 100644
--- a/gui/src/HydrogenApp.cpp
+++ b/gui/src/HydrogenApp.cpp
@@ -358,6 +358,8 @@ void HydrogenApp::showInfoSplash()
 void HydrogenApp::onDrumkitLoad( QString name ){
 	setStatusBarMessage( trUtf8( "Drumkit loaded: [%1]" ).arg( name ), 2000 );
 	m_pPatternEditorPanel->updateSLnameLabel( );
+	EventQueue::get_instance()->push_event( EVENT_PATTERN_CHANGED, -1 );
+	EventQueue::get_instance()->push_event( EVENT_SELECTED_INSTRUMENT_CHANGED, -1 );
 }
 
 void HydrogenApp::onEventQueueTimer()
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to