1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** If you wish to add, delete or rename slots use Qt Designer which will
5 ** update this file, preserving your code. Create an init() slot in place of
6 ** a constructor, and a destroy() slot in place of a destructor.
7 *****************************************************************************/
9 void RoidsEditView::init()
14 void RoidsEditView::setValue( const QString & type, unsigned value )
16 if (type == tr("metal"))
17 MetalEdit->setText(QString("%1").arg(value));
18 else if (type == tr("crystal"))
19 CrystalEdit->setText(QString("%1").arg(value));
20 else if (type == tr("eonium"))
21 EoniumEdit->setText(QString("%1").arg(value));
22 else if (type == tr("uninit"))
23 UninitEdit->setText(QString("%1").arg(value));
24 else if (type == tr("score"))
25 ScoreEdit->setText(QString("%1").arg(value));
30 void RoidsEditView::slotValueChanged( const QString & s )
32 QString type = sender()->name();
34 if (type == "MetalEdit")
36 else if (type == "CrystalEdit")
38 else if (type == "EoniumEdit")
40 else if (type == "UninitEdit")
42 else if (type == "ScoreEdit")
45 emit changed(type, s.toInt());