QTfrontend/pages.cpp
changeset 2468 0b62498c201a
parent 2447 08d623a494e6
child 2482 36c44f4156ad
--- a/QTfrontend/pages.cpp	Thu Oct 15 19:38:18 2009 +0000
+++ b/QTfrontend/pages.cpp	Thu Oct 15 21:47:05 2009 +0000
@@ -743,6 +743,16 @@
 	pageLayout->setColumnStretch(1, 2);
 	pageLayout->setColumnStretch(2, 1);
 
+	CBSelect = new QComboBox(this);
+
+	QDir tmpdir;
+	tmpdir.cd(datadir->absolutePath());
+	tmpdir.cd("Trainings");
+	tmpdir.setFilter(QDir::Files);
+	CBSelect->addItems(tmpdir.entryList(QStringList("*.txt")).replaceInStrings(QRegExp("^(.*)\\.txt"), "\\1"));
+
+	pageLayout->addWidget(CBSelect, 1, 1);
+	
 	BtnStartTrain = new QPushButton(this);
 	BtnStartTrain->setFont(*font14);
 	BtnStartTrain->setText(QPushButton::tr("Go!"));