Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 677:5e5ab4e8d64b imaf_enc
Fix from Jesus Corral Garcia (panel with gain only appears when IM AF loaded)
author | Chris Cannam |
---|---|
date | Mon, 04 Nov 2013 17:10:51 +0000 |
parents | d3cbfb11b70a |
children | 97ea68f62c1f |
comparison
equal
deleted
inserted
replaced
676:d3cbfb11b70a | 677:5e5ab4e8d64b |
---|---|
54 #include "Fader.h" | 54 #include "Fader.h" |
55 //#define DEBUG_PROPERTY_BOX 1 | 55 //#define DEBUG_PROPERTY_BOX 1 |
56 | 56 |
57 QHBoxLayout *layout1 = new QHBoxLayout; | 57 QHBoxLayout *layout1 = new QHBoxLayout; |
58 int tracks=0; | 58 int tracks=0; |
59 extern bool isIMAF; | |
59 //#include "C:/Users/Paco/Desktop/SV mio/sonic-visualiser/main/imafdecoder.h" | 60 //#include "C:/Users/Paco/Desktop/SV mio/sonic-visualiser/main/imafdecoder.h" |
60 PropertyBox::PropertyBox(PropertyContainer *container) : | 61 PropertyBox::PropertyBox(PropertyContainer *container) : |
61 m_container(container), | 62 m_container(container), |
62 m_showButton(0), | 63 m_showButton(0), |
63 m_playButton(0) | 64 m_playButton(0) |
229 playGainChanged(params->getPlayGain()); | 230 playGainChanged(params->getPlayGain()); |
230 layout->setAlignment(gainDial, Qt::AlignVCenter); | 231 layout->setAlignment(gainDial, Qt::AlignVCenter); |
231 | 232 |
232 //code added by Jesus | 233 //code added by Jesus |
233 | 234 |
235 if (isIMAF){ | |
234 QString property_container_name; // the name could be : Waveform, Time Instants, etc | 236 QString property_container_name; // the name could be : Waveform, Time Instants, etc |
235 property_container_name = layer->getPropertyContainerName();// obtain the name | 237 property_container_name = layer->getPropertyContainerName();// obtain the name |
236 bool isWaveform; | 238 bool isWaveform; |
237 | 239 |
238 isWaveform = property_container_name.contains("Waveform", Qt::CaseInsensitive);//if QString contains "Waveform" | 240 isWaveform = property_container_name.contains("Waveform", Qt::CaseInsensitive);//if QString contains "Waveform" |
276 layout1->addWidget(gainDial1); | 278 layout1->addWidget(gainDial1); |
277 if (tracks==3){ | 279 if (tracks==3){ |
278 window->setLayout(layout1); | 280 window->setLayout(layout1); |
279 window ->showNormal(); | 281 window ->showNormal(); |
280 } | 282 } |
281 } // end if | 283 } // end if isWaveform |
284 } // end if isIMAF | |
282 // end code added by Jesus | 285 // end code added by Jesus |
283 | 286 |
284 AudioDial *panDial = new AudioDial; | 287 AudioDial *panDial = new AudioDial; |
285 layout->addWidget(panDial); | 288 layout->addWidget(panDial); |
286 panDial->setMeterColor(Qt::darkGreen); | 289 panDial->setMeterColor(Qt::darkGreen); |