hi,
schiavoni a forum member ask this question:
http://hydrogen-music.org/forum/?action=show_thread&thread=893&fid=9&page=2
- How can I know the current Drumkit? The older version didn't have it easy and
the new
haven't too. It's very nice the new sounf library window but, maybe, It can
have a hint
about the current one.
i think exact the same than schiavoni.
imo, there is space left, at the upper left quadrant into the pattern editor,
to display the drumkit name.
if you like this idea, i will commit my patch.
wolke
@jacob
great.... :-) so beautifully, congratulations and I wish you all the very best!
Index: gui/src/PatternEditor/PatternEditorPanel.cpp
===================================================================
--- gui/src/PatternEditor/PatternEditorPanel.cpp (Revision 507)
+++ gui/src/PatternEditor/PatternEditorPanel.cpp (Arbeitskopie)
@@ -60,6 +60,9 @@
Preferences *pPref = Preferences::getInstance();
+ QTimer *timer = new QTimer( this );
+ connect(timer, SIGNAL(timeout() ), this, SLOT( updateSLnameLabel() ) );
+ timer->start( 1000 );
// Editor TOP
PixmapWidget *editor_top = new PixmapWidget(0);
@@ -80,7 +83,15 @@
editor_top_hbox_2->setMargin(0);
editor_top_hbox_2->setAlignment(Qt::AlignLeft);
+//soundlibrary name
+ pSLlabel = new QLabel( NULL );
+ pSLlabel->setText( Hydrogen::get_instance()->m_currentDrumkit );
+ pSLlabel->setFixedSize( 170, 20 );
+ pSLlabel->move( 10, 3 );
+ pSLlabel->setToolTip( trUtf8("Loaded Soundlibrary") );
+ editor_top_hbox->addWidget( pSLlabel );
+
//wolke some background images back_size_res
PixmapWidget *pSizeResol = new PixmapWidget( NULL );
pSizeResol->setFixedSize( 200, 20 );
@@ -211,7 +222,7 @@
connect( zoom_out_btn, SIGNAL(clicked(Button*)), this, SLOT( zoomOutBtnClicked(Button*) ) );
//editor_top_hbox_2->addWidget(zoom_out_btn);
-
+/*
// show drum editor btn
__show_drum_btn = new ToggleButton(
NULL,
@@ -245,8 +256,8 @@
editor_top_hbox->addWidget(__show_piano_btn);
__show_piano_btn->hide();
// End Editor TOP
+*/
-
// RULER____________________________________
// Ruler ScrollView
@@ -525,6 +536,7 @@
selectedPatternChangedEvent(); // force an update
pPropertiesCombo->set_text( trUtf8("Velocity"));
+
}
@@ -993,3 +1005,13 @@
ERRORLOG( "Unknown text: " + text );
}
}
+
+
+
+void PatternEditorPanel::updateSLnameLabel()
+{
+ QFont font;
+ font.setBold( true );
+ pSLlabel->setFont( font );
+ pSLlabel->setText( Hydrogen::get_instance()->m_currentDrumkit );
+}
Index: gui/src/PatternEditor/PatternEditorPanel.h
===================================================================
--- gui/src/PatternEditor/PatternEditorPanel.h (Revision 507)
+++ gui/src/PatternEditor/PatternEditorPanel.h (Arbeitskopie)
@@ -93,10 +93,13 @@
void moveDownBtnClicked(Button *);
void moveUpBtnClicked(Button *);
+ void updateSLnameLabel();
+
private:
H2Core::Pattern *m_pPattern;
QPixmap m_backgroundPixmap;
+ QLabel *pSLlabel;
// Editor top
LCDCombo *__pattern_size_combo;
@@ -163,6 +166,7 @@
virtual void resizeEvent(QResizeEvent *ev);
virtual void showEvent(QShowEvent *ev);
+
};
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel