Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 36:c28ebb4ba4de
* Improvements to text layer editing, and implement file I/O for it
* Start some fixes to spectrogram frequency computation
author | Chris Cannam |
---|---|
date | Mon, 20 Feb 2006 17:23:40 +0000 |
parents | 10ba9276a315 |
children | ad214997dddb |
comparison
equal
deleted
inserted
replaced
35:10ba9276a315 | 36:c28ebb4ba4de |
---|---|
80 } | 80 } |
81 | 81 |
82 void | 82 void |
83 PropertyBox::populateViewPlayFrame() | 83 PropertyBox::populateViewPlayFrame() |
84 { | 84 { |
85 #ifdef DEBUG_PROPERTY_BOX | |
85 std::cerr << "PropertyBox(" << m_container << ")::populateViewPlayFrame" << std::endl; | 86 std::cerr << "PropertyBox(" << m_container << ")::populateViewPlayFrame" << std::endl; |
87 #endif | |
86 | 88 |
87 if (m_viewPlayFrame) { | 89 if (m_viewPlayFrame) { |
88 delete m_viewPlayFrame; | 90 delete m_viewPlayFrame; |
89 m_viewPlayFrame = 0; | 91 m_viewPlayFrame = 0; |
90 } | 92 } |
107 QHBoxLayout *layout = new QHBoxLayout; | 109 QHBoxLayout *layout = new QHBoxLayout; |
108 m_viewPlayFrame->setLayout(layout); | 110 m_viewPlayFrame->setLayout(layout); |
109 | 111 |
110 layout->setMargin(layout->margin() / 2); | 112 layout->setMargin(layout->margin() / 2); |
111 | 113 |
114 #ifdef DEBUG_PROPERTY_BOX | |
112 std::cerr << "PropertyBox::populateViewPlayFrame: container " << m_container << " (name " << m_container->getPropertyContainerName().toStdString() << ") params " << params << std::endl; | 115 std::cerr << "PropertyBox::populateViewPlayFrame: container " << m_container << " (name " << m_container->getPropertyContainerName().toStdString() << ") params " << params << std::endl; |
113 | 116 #endif |
117 | |
114 if (layer) { | 118 if (layer) { |
115 QLabel *showLabel = new QLabel(tr("Show")); | 119 QLabel *showLabel = new QLabel(tr("Show")); |
116 layout->addWidget(showLabel); | 120 layout->addWidget(showLabel); |
117 layout->setAlignment(showLabel, Qt::AlignVCenter); | 121 layout->setAlignment(showLabel, Qt::AlignVCenter); |
118 | 122 |