** 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
+
+void RoidsEditView::init()
+{
+
+}
+
+void RoidsEditView::setValue( const QString & type, unsigned value )
+{
+ if (type == tr("metal"))
+ MetalEdit->setText(QString("%1").arg(value));
+ else if (type == tr("crystal"))
+ CrystalEdit->setText(QString("%1").arg(value));
+ else if (type == tr("eonium"))
+ EoniumEdit->setText(QString("%1").arg(value));
+ else if (type == tr("uninit"))
+ UninitEdit->setText(QString("%1").arg(value));
+ else if (type == tr("score"))
+ ScoreEdit->setText(QString("%1").arg(value));
+
+
+}
+
+void RoidsEditView::slotValueChanged( const QString & s )
+{
+ QString type = sender()->name();
+
+ if (type == "MetalEdit")
+ type = tr("metal");
+ else if (type == "CrystalEdit")
+ type = tr("crystal");
+ else if (type == "EoniumEdit")
+ type = tr("eonium");
+ else if (type == "UninitEdit")
+ type = tr("uninit");
+ else if (type == "ScoreEdit")
+ type = tr("score");
+ test = type;
+ emit changed(type, s.toInt());
+}
+
+
+void RoidsEditView::slotSetLost( QString type, int i )
+{
+ if (type == tr("metal"))
+ MetalLostEdit->setText(QString("%1").arg(i));
+ else if (type == tr("crystal"))
+ CrystalLostEdit->setText(QString("%1").arg(i));
+ else if (type == tr("eonium"))
+ EoniumLostEdit->setText(QString("%1").arg(i));
+ else if (type == tr("uninit"))
+ UninitLostEdit->setText(QString("%1").arg(i));
+ /*else if (type == tr("score"))
+ ScoreEdit->setText(QString("%1").arg(i));
+ */
+}
\ No newline at end of file