# HG changeset patch # User Chris Cannam # Date 1158941543 0 # Node ID 3dade4b025b7bc49691f88b2d7356c32aafdcb26 # Parent 4e7980e3b48ed5fd9877147f154ec5d0f36ad225 * Pull transforms out of Layer menu (again) and into a separate Transforms menu * Add Recent Transforms submenu * Add effects and generators to the transforms menu (not yet implemented) as well as analysis plugins and data-from-effects (control output ports) * Add a nice dictionary-volume-style alphabetic subdivision of plugin names in plugins By Name menus diff -r 4e7980e3b48e -r 3dade4b025b7 widgets/PluginParameterDialog.cpp --- a/widgets/PluginParameterDialog.cpp Wed Sep 20 15:47:16 2006 +0000 +++ b/widgets/PluginParameterDialog.cpp Fri Sep 22 16:12:23 2006 +0000 @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -152,10 +153,16 @@ paramLayout->setMargin(0); paramBox->setLayout(paramLayout); + QScrollArea *scroll = new QScrollArea; + scroll->setWidgetResizable(true); + scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + scroll->setFrameShape(QFrame::NoFrame); + paramLayout->addWidget(scroll); + m_parameterBox = new PluginParameterBox(m_plugin); connect(m_parameterBox, SIGNAL(pluginConfigurationChanged(QString)), this, SIGNAL(pluginConfigurationChanged(QString))); - paramLayout->addWidget(m_parameterBox); + scroll->setWidget(m_parameterBox); m_advanced = new QFrame; QVBoxLayout *advancedLayout = new QVBoxLayout; @@ -402,7 +409,8 @@ std::cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << std::endl; - setMaximumSize(sizeHint()); + setMinimumHeight(sizeHint().height()); + if (visible) setMaximumHeight(sizeHint().height()); } void