comparison widgets/PluginParameterDialog.cpp @ 149:3dade4b025b7

* 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
author Chris Cannam
date Fri, 22 Sep 2006 16:12:23 +0000
parents 4e7980e3b48e
children 8c730f49b9b3
comparison
equal deleted inserted replaced
148:4e7980e3b48e 149:3dade4b025b7
24 #include <QGridLayout> 24 #include <QGridLayout>
25 #include <QLabel> 25 #include <QLabel>
26 #include <QGroupBox> 26 #include <QGroupBox>
27 #include <QHBoxLayout> 27 #include <QHBoxLayout>
28 #include <QVBoxLayout> 28 #include <QVBoxLayout>
29 #include <QScrollArea>
29 #include <QPushButton> 30 #include <QPushButton>
30 #include <QMessageBox> 31 #include <QMessageBox>
31 #include <QComboBox> 32 #include <QComboBox>
32 #include <QSettings> 33 #include <QSettings>
33 34
150 151
151 QHBoxLayout *paramLayout = new QHBoxLayout; 152 QHBoxLayout *paramLayout = new QHBoxLayout;
152 paramLayout->setMargin(0); 153 paramLayout->setMargin(0);
153 paramBox->setLayout(paramLayout); 154 paramBox->setLayout(paramLayout);
154 155
156 QScrollArea *scroll = new QScrollArea;
157 scroll->setWidgetResizable(true);
158 scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
159 scroll->setFrameShape(QFrame::NoFrame);
160 paramLayout->addWidget(scroll);
161
155 m_parameterBox = new PluginParameterBox(m_plugin); 162 m_parameterBox = new PluginParameterBox(m_plugin);
156 connect(m_parameterBox, SIGNAL(pluginConfigurationChanged(QString)), 163 connect(m_parameterBox, SIGNAL(pluginConfigurationChanged(QString)),
157 this, SIGNAL(pluginConfigurationChanged(QString))); 164 this, SIGNAL(pluginConfigurationChanged(QString)));
158 paramLayout->addWidget(m_parameterBox); 165 scroll->setWidget(m_parameterBox);
159 166
160 m_advanced = new QFrame; 167 m_advanced = new QFrame;
161 QVBoxLayout *advancedLayout = new QVBoxLayout; 168 QVBoxLayout *advancedLayout = new QVBoxLayout;
162 advancedLayout->setMargin(0); 169 advancedLayout->setMargin(0);
163 m_advanced->setLayout(advancedLayout); 170 m_advanced->setLayout(advancedLayout);
400 settings.setValue("advancedvisible", visible); 407 settings.setValue("advancedvisible", visible);
401 settings.endGroup(); 408 settings.endGroup();
402 409
403 std::cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << std::endl; 410 std::cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << std::endl;
404 411
405 setMaximumSize(sizeHint()); 412 setMinimumHeight(sizeHint().height());
413 if (visible) setMaximumHeight(sizeHint().height());
406 } 414 }
407 415
408 void 416 void
409 PluginParameterDialog::channelComboChanged(int index) 417 PluginParameterDialog::channelComboChanged(int index)
410 { 418 {