/****************************************************************************
-** ui.h extension file, included from the uic-generated form implementation.
-**
-** If you wish to add, delete or rename slots use Qt Designer which will
-** update this file, preserving your code. Create an init() slot in place of
-** a constructor, and a destroy() slot in place of a destructor.
-*****************************************************************************/
+ ** ui.h extension file, included from the uic-generated form implementation.
+ **
+ ** If you wish to add, delete or rename slots use Qt Designer which will
+ ** update this file, preserving your code. Create an init() slot in place of
+ ** a constructor, and a destroy() slot in place of a destructor.
+ *****************************************************************************/
-//test
\ No newline at end of file
+//test
+
+void ResourceView::setLines( QString type, float i )
+{
+ if (type == tr("metal"))
+ MetalEdit->setText(QString("%1").arg(i));
+ else if (type == tr("crystal"))
+ CrystalEdit->setText(QString("%1").arg(i));
+ else if (type == tr("eonium"))
+ EoniumEdit->setText(QString("%1").arg(i));
+ else if (type == tr("uninit"))
+ UninitEdit->setText(QString("%1").arg(i));
+ else if (type == tr("score"))
+ ScoreEdit->setText(QString("%1").arg(i));
+ else if (type == tr("lost"))
+ ScoreLostEdit->setText(QString("%1").arg(i));
+ else if (type == tr("cost"))
+ CostEdit->setText(QString("%1").arg(i));
+}