QTfrontend/pages.cpp
changeset 1659 fd593a5e71fb
parent 1649 938a0fda0206
child 1677 0655bb13af01
--- a/QTfrontend/pages.cpp	Tue Jan 13 15:33:46 2009 +0000
+++ b/QTfrontend/pages.cpp	Tue Jan 13 18:56:14 2009 +0000
@@ -165,6 +165,16 @@
 	CBGrave->setIconSize(QSize(32, 32));
 	GBTLayout->addWidget(CBGrave);
 	
+	CBVoicepack = new QComboBox(GBoxTeam);
+	{
+		QDir tmpdir;
+		tmpdir.cd(datadir->absolutePath());
+		tmpdir.cd("Sounds/voices");
+		QStringList list = tmpdir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name);
+		CBVoicepack->addItems(list);
+	}
+	GBTLayout->addWidget(CBVoicepack);
+
 	GBoxFort = new QGroupBox(this);
 	GBoxFort->setTitle(QGroupBox::tr("Fort"));
 	QGridLayout * GBFLayout = new QGridLayout(GBoxFort);