16 #include <QtGui/QComboBox>
35 setObjectName(QString::fromUtf8(name));
54 if (mpList->selectedItems().count() != mpList->count())
56 QListWidgetItem * pItem;
58 int i, imax = mpList->count();
60 for (i = 0; i != imax; ++i)
62 pItem = mpList->item(i);
64 if (pItem->isSelected())
66 Items.append(pItem->text());
70 mpBox->addItems(Items);
88 mpList->clearSelection();
99 for (i = 0; i < imax; i++)
104 mpList->addItems(Items);
106 int j, jmax =
mpBox->count();
114 for (j = 0; j < jmax; j++)
116 QList< QListWidgetItem * > Found = mpList->findItems(
mpBox->itemText(j), Qt::MatchExactly);
118 if (Found.size() > 0)
120 Found[0]->setSelected(
true);
const std::string & getObjectName() const
CExperiment * getExperiment(const size_t &index)
virtual void load(QComboBox *pBox, const CExperimentSet *pExperimentSet)
CQExperimentSelection(QWidget *parent=0, const char *name=0, bool modal=false, Qt::WindowFlags fl=0)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
size_t getExperimentCount() const