]> ruin.nu Git - hbs.git/commitdiff
finially got it to save I think..
authorMichael Andreen <harv@ruin.nu>
Sat, 6 Apr 2002 21:34:35 +0000 (21:34 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 6 Apr 2002 21:34:35 +0000 (21:34 +0000)
bs/ui/roidseditview.ui.h

index 6f98119d1478ee6dcc938d4f878b92c0c19b66df..d5d8b3b83c7b75e22b7e5f50f69cb6930aae4a58 100644 (file)
@@ -5,4 +5,42 @@
 ** 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 & s, unsigned value )
+{
+    if (type == tr("metal"))
+       MetalEdit->setText("%1").arg(value);
+    else if (type == tr("crystall"))
+       CrystalEdit->setText("%1").arg(value);
+    else if (type == tr("eoniuml"))
+       EoniumEdit->setText("%1").arg(value);
+    else if (type == tr("uninit"))
+       UninitEdit->setText("%1").arg(value);
+    else if (type == tr("score"))
+       ScoreEdit->setText("%1").arg(value);
+    
+
+}
+
+void RoidsEditView::slotValueChanged( const QString & s )
+{
+    QString type = send()->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");
+    
+    emit changed(type, s.toInt());
+}
\ No newline at end of file