Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 456:035d62c4cddf
* Permit viewing (though not editing) colour 3d plot layer data in
the spreadsheet data viewer dialog
* Add somewhat simplistic RDF export for layers
* Fix display of peak frequencies in spectrum layer
* Fix (I hope) sizing of plugin parameter dialog
author | Chris Cannam |
---|---|
date | Tue, 02 Dec 2008 17:17:25 +0000 |
parents | e2a40fdadd8c |
children | 4afdcecbd62e |
comparison
equal
deleted
inserted
replaced
455:747a58d45d56 | 456:035d62c4cddf |
---|---|
49 | 49 |
50 #include <cassert> | 50 #include <cassert> |
51 #include <iostream> | 51 #include <iostream> |
52 #include <cmath> | 52 #include <cmath> |
53 | 53 |
54 #define DEBUG_PROPERTY_BOX 1 | 54 //#define DEBUG_PROPERTY_BOX 1 |
55 | 55 |
56 PropertyBox::PropertyBox(PropertyContainer *container) : | 56 PropertyBox::PropertyBox(PropertyContainer *container) : |
57 m_container(container), | 57 m_container(container), |
58 m_showButton(0), | 58 m_showButton(0), |
59 m_playButton(0) | 59 m_playButton(0) |
60 { | 60 { |
61 #ifdef DEBUG_PROPERTY_BOX | 61 #ifdef DEBUG_PROPERTY_BOX |
62 std::cerr << "PropertyBox[" << this << "(\"" << | 62 std::cerr << "PropertyBox[" << this << "(\"" << |
63 container->getPropertyContainerName().toStdString() << "\")]::PropertyBox" << std::endl; | 63 container->getPropertyContainerName().toStdString() << "\" at " << container << ")]::PropertyBox" << std::endl; |
64 #endif | 64 #endif |
65 | 65 |
66 m_mainBox = new QVBoxLayout; | 66 m_mainBox = new QVBoxLayout; |
67 setLayout(m_mainBox); | 67 setLayout(m_mainBox); |
68 | 68 |
559 PropertyBox::unitDatabaseChanged() | 559 PropertyBox::unitDatabaseChanged() |
560 { | 560 { |
561 std::cerr << "PropertyBox[" << this << "]: unitDatabaseChanged" << std::endl; | 561 std::cerr << "PropertyBox[" << this << "]: unitDatabaseChanged" << std::endl; |
562 blockSignals(true); | 562 blockSignals(true); |
563 | 563 |
564 // std::cerr << "my container is " << m_container << std::endl; | |
565 // std::cerr << "my container's name is... " << std::endl; | |
566 // std::cerr << m_container->objectName().toStdString() << std::endl; | |
567 | |
564 PropertyContainer::PropertyList properties = m_container->getProperties(); | 568 PropertyContainer::PropertyList properties = m_container->getProperties(); |
565 for (size_t i = 0; i < properties.size(); ++i) { | 569 for (size_t i = 0; i < properties.size(); ++i) { |
566 if (m_container->getPropertyType(properties[i]) == | 570 if (m_container->getPropertyType(properties[i]) == |
567 PropertyContainer::UnitsProperty) { | 571 PropertyContainer::UnitsProperty) { |
568 updatePropertyEditor(properties[i]); | 572 updatePropertyEditor(properties[i]); |