Mercurial > hg > svgui
comparison widgets/PluginParameterDialog.cpp @ 63:fb02fe13ff47
* Add editing for auralisation plugin parameters and programs
* Rename and reorganise the sample plugin sample set
author | Chris Cannam |
---|---|
date | Thu, 23 Mar 2006 15:49:41 +0000 |
parents | 50429a56680f |
children | 10bcd53ddc71 |
comparison
equal
deleted
inserted
replaced
62:50429a56680f | 63:fb02fe13ff47 |
---|---|
37 grid->addWidget(pluginBox, 0, 0); | 37 grid->addWidget(pluginBox, 0, 0); |
38 | 38 |
39 QGridLayout *subgrid = new QGridLayout; | 39 QGridLayout *subgrid = new QGridLayout; |
40 pluginBox->setLayout(subgrid); | 40 pluginBox->setLayout(subgrid); |
41 | 41 |
42 subgrid->setSpacing(0); | |
43 subgrid->setMargin(10); | |
44 | |
42 QFont font(pluginBox->font()); | 45 QFont font(pluginBox->font()); |
43 font.setBold(true); | 46 font.setBold(true); |
44 | 47 |
45 QLabel *nameLabel = new QLabel(plugin->getDescription().c_str()); | 48 QLabel *nameLabel = new QLabel(plugin->getDescription().c_str()); |
46 nameLabel->setFont(font); | 49 nameLabel->setFont(font); |
53 versionLabel->setFont(font); | 56 versionLabel->setFont(font); |
54 | 57 |
55 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); | 58 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); |
56 copyrightLabel->setFont(font); | 59 copyrightLabel->setFont(font); |
57 | 60 |
61 QLabel *typeLabel = new QLabel(plugin->getType().c_str()); | |
62 typeLabel->setFont(font); | |
63 | |
58 subgrid->addWidget(new QLabel(tr("Name:")), 0, 0); | 64 subgrid->addWidget(new QLabel(tr("Name:")), 0, 0); |
59 subgrid->addWidget(nameLabel, 0, 1); | 65 subgrid->addWidget(nameLabel, 0, 1); |
60 | 66 |
61 subgrid->addWidget(new QLabel(tr("Maker:")), 1, 0); | 67 subgrid->addWidget(new QLabel(tr("Type:")), 1, 0); |
62 subgrid->addWidget(makerLabel, 1, 1); | 68 subgrid->addWidget(typeLabel, 1, 1); |
63 | 69 |
64 subgrid->addWidget(new QLabel(tr("Copyright:")), 2, 0); | 70 subgrid->addWidget(new QLabel(tr("Maker:")), 2, 0); |
65 subgrid->addWidget(copyrightLabel, 2, 1); | 71 subgrid->addWidget(makerLabel, 2, 1); |
66 | 72 |
67 subgrid->addWidget(new QLabel(tr("Version:")), 3, 0); | 73 subgrid->addWidget(new QLabel(tr("Copyright: ")), 3, 0); |
68 subgrid->addWidget(versionLabel, 3, 1); | 74 subgrid->addWidget(copyrightLabel, 3, 1); |
75 | |
76 subgrid->addWidget(new QLabel(tr("Version:")), 4, 0); | |
77 subgrid->addWidget(versionLabel, 4, 1); | |
69 | 78 |
70 subgrid->setColumnStretch(1, 2); | 79 subgrid->setColumnStretch(1, 2); |
71 | 80 |
72 QGroupBox *paramBox = new QGroupBox; | 81 QGroupBox *paramBox = new QGroupBox; |
73 paramBox->setTitle(tr("Plugin Parameters")); | 82 paramBox->setTitle(tr("Plugin Parameters")); |
74 grid->addWidget(paramBox, 1, 0); | 83 grid->addWidget(paramBox, 1, 0); |
75 grid->setRowStretch(1, 10); | 84 grid->setRowStretch(1, 10); |
76 | 85 |
77 QHBoxLayout *paramLayout = new QHBoxLayout; | 86 QHBoxLayout *paramLayout = new QHBoxLayout; |
87 paramLayout->setMargin(0); | |
78 paramBox->setLayout(paramLayout); | 88 paramBox->setLayout(paramLayout); |
79 | 89 |
80 m_parameterBox = new PluginParameterBox(m_plugin); | 90 m_parameterBox = new PluginParameterBox(m_plugin); |
81 paramLayout->addWidget(m_parameterBox); | 91 paramLayout->addWidget(m_parameterBox); |
82 | 92 |