From bd6ff6d9bb20d2778d388771607fa1da4cec7a47 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 7 Apr 2008 21:50:52 +0000 Subject: [PATCH] cleanups, fixed broken connection for "Add"-button git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@898 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 8 ++++++++ include/effect_select_dialog.h | 2 +- src/gui/effect_select_dialog.cpp | 19 +------------------ 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72fb323b8..7ef1bc1bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-04-07 Tobias Doerffel + * configure.in: + integrated changes from libsamplerate-0.1.3/configure.ac + + * include/effect_select_dialog.h: + * src/gui/effect_select_dialog.cpp: + - cleanups + - fixed broken connection for "Add"-button + * src/3rdparty/samplerate/common.h: * src/3rdparty/samplerate/fastest_coeffs.h: * src/3rdparty/samplerate/float_cast.h: diff --git a/include/effect_select_dialog.h b/include/effect_select_dialog.h index 6991359f8..9057619e8 100644 --- a/include/effect_select_dialog.h +++ b/include/effect_select_dialog.h @@ -48,8 +48,8 @@ public: effect * instantiateSelectedPlugin( effectChain * _parent ); + public slots: - void showPorts( void ); void setSelection( const effectKey & _selection ); void selectPlugin( void ); diff --git a/src/gui/effect_select_dialog.cpp b/src/gui/effect_select_dialog.cpp index c2da31e30..6c7d14c9d 100644 --- a/src/gui/effect_select_dialog.cpp +++ b/src/gui/effect_select_dialog.cpp @@ -66,15 +66,9 @@ effectSelectDialog::effectSelectDialog( QWidget * _parent ) : QPushButton * select_btn = new QPushButton( embed::getIconPixmap( "add" ), tr( "Add" ), buttons ); - connect( select_btn, SIGNAL( activated() ), + connect( select_btn, SIGNAL( clicked() ), this, SLOT( selectPlugin() ) ); -/* QPushButton * ports_btn = new QPushButton( - embed::getIconPixmap("ports" ), - tr( "Ports" ), buttons ); - connect( ports_btn, SIGNAL( clicked() ), - this, SLOT( showPorts() ) ); -*/ QPushButton * cancel_btn = new QPushButton( embed::getIconPixmap( "cancel" ), tr( "Cancel" ), buttons ); @@ -84,8 +78,6 @@ effectSelectDialog::effectSelectDialog( QWidget * _parent ) : btn_layout->addStretch(); btn_layout->addSpacing( 10 ); btn_layout->addWidget( select_btn ); -/* btn_layout->addSpacing( 10 ); - btn_layout->addWidget( ports_btn );*/ btn_layout->addSpacing( 10 ); btn_layout->addWidget( cancel_btn ); btn_layout->addSpacing( 10 ); @@ -123,15 +115,6 @@ effect * effectSelectDialog::instantiateSelectedPlugin( effectChain * _parent ) -void effectSelectDialog::showPorts( void ) -{ -/* ladspaPortDialog ports( m_currentSelection ); - ports.exec();*/ -} - - - - void effectSelectDialog::setSelection( const effectKey & _selection ) { m_currentSelection = _selection;