Mercurial > hg > svgui
comparison widgets/PluginParameterDialog.cpp @ 441:f8fcfbe13c8f
* Avoid waiting on uninstalled transforms mutex in TransformFactory::
getTransformInstallStatus -- we can return TransformUnknown
* Don't follow link in SelectableLabel when clicking to select it
* Restore lost version number in plugin param dialog
author | Chris Cannam |
---|---|
date | Tue, 28 Oct 2008 18:06:06 +0000 |
parents | 08d6bc698d16 |
children | c803eb18ebba |
comparison
equal
deleted
inserted
replaced
440:08d6bc698d16 | 441:f8fcfbe13c8f |
---|---|
77 nameLabel->setFont(boldFont); | 77 nameLabel->setFont(boldFont); |
78 | 78 |
79 QLabel *makerLabel = new QLabel(plugin->getMaker().c_str()); | 79 QLabel *makerLabel = new QLabel(plugin->getMaker().c_str()); |
80 makerLabel->setWordWrap(true); | 80 makerLabel->setWordWrap(true); |
81 | 81 |
82 QLabel *versionLabel = new QLabel(QString("%1") | 82 int version = plugin->getPluginVersion(); |
83 .arg(plugin->getPluginVersion())); | 83 QLabel *versionLabel = new QLabel(QString("%1").arg(version)); |
84 versionLabel->setWordWrap(true); | 84 versionLabel->setWordWrap(true); |
85 | 85 |
86 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); | 86 QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); |
87 copyrightLabel->setWordWrap(true); | 87 copyrightLabel->setWordWrap(true); |
88 | 88 |
119 // subgrid->addWidget(label, row, 0); | 119 // subgrid->addWidget(label, row, 0); |
120 subgrid->addWidget(descriptionLabel, row, 1, 1, 2); | 120 subgrid->addWidget(descriptionLabel, row, 1, 1, 2); |
121 row++; | 121 row++; |
122 } | 122 } |
123 | 123 |
124 Vamp::Plugin *fePlugin = dynamic_cast<Vamp::Plugin *>(m_plugin); | 124 if (version >= 0) { |
125 | |
126 if (fePlugin) { | |
127 label = new QLabel(tr("Version:")); | 125 label = new QLabel(tr("Version:")); |
128 label->setAlignment(Qt::AlignTop | Qt::AlignLeft); | 126 label->setAlignment(Qt::AlignTop | Qt::AlignLeft); |
129 subgrid->addWidget(label, row, 0); | 127 subgrid->addWidget(label, row, 0); |
130 subgrid->addWidget(versionLabel, row, 1); | 128 subgrid->addWidget(versionLabel, row, 1); |
131 row++; | 129 row++; |
132 } else { | |
133 std::cerr << "PluginParameterDialog: Note: not a feature extraction plugin (type is " << typeid(*m_plugin).name() << ")" << std::endl; | |
134 } | 130 } |
135 | 131 |
136 // label = new QLabel(tr("Type:")); | 132 // label = new QLabel(tr("Type:")); |
137 // label->setAlignment(Qt::AlignTop | Qt::AlignLeft); | 133 // label->setAlignment(Qt::AlignTop | Qt::AlignLeft); |
138 // subgrid->addWidget(label, row, 0); | 134 // subgrid->addWidget(label, row, 0); |