27 #include "../../../common/STLUtils.h"
30 #include "ui_SelectedChannelWidgetForm.h"
31 #include "../../../se.h"
42 m_ui(new
Ui::SelectedChannelWidgetForm),
43 m_se(new
te::se::SelectedChannel)
51 QGridLayout* layout =
new QGridLayout(
m_ui->m_contrastEnhancementFrame);
86 m_ui->m_channelNameComboBox->clear();
87 m_ui->m_channelNameComboBox->addItems(list);
89 m_se->setSourceChannelName(m_ui->m_channelNameComboBox->currentText().toLatin1().data());
99 QString name = m_se->getSourceChannelName().c_str();
103 for(
int i = 0; i < m_ui->m_channelNameComboBox->count(); ++i)
105 if(m_ui->m_channelNameComboBox->itemText(i) == name)
107 m_ui->m_channelNameComboBox->setCurrentIndex(i);
115 m_ui->m_channelNameComboBox->addItem(m_se->getSourceChannelName().c_str());
116 m_ui->m_channelNameComboBox->setCurrentIndex(m_ui->m_channelNameComboBox->count() - 1);
119 if(m_se->getContrastEnhancement())
121 m_contrastWidget->setContrastEnhancement(m_se->getContrastEnhancement());
127 m_se->setSourceChannelName(value.toLatin1().data());
129 emit selectedChannelChanged();
134 m_se->setContrastEnhancement(m_contrastWidget->getContrastEnhancement());
136 emit selectedChannelChanged();
A selected channel to be display.
void setContrastEnhancement(ContrastEnhancement *c)