]> ruin.nu Git - hbs.git/blob - bs/ui/resourceview.ui.h
added functionallity to show the cost for each roid.
[hbs.git] / bs / ui / resourceview.ui.h
1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
3 **
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 *****************************************************************************/
8
9 //test
10
11 void ResourceView::setLines( QString type, float i )
12 {
13     if (type == tr("metal"))
14         MetalEdit->setText(QString("%1").arg(i));
15     else if (type == tr("crystal"))
16         CrystalEdit->setText(QString("%1").arg(i));
17     else if (type == tr("eonium"))
18         EoniumEdit->setText(QString("%1").arg(i));
19     else if (type == tr("uninit"))
20         UninitEdit->setText(QString("%1").arg(i));
21     else if (type == tr("score"))
22         ScoreEdit->setText(QString("%1").arg(i));
23     else if (type == tr("lost"))
24         ScoreLostEdit->setText(QString("%1").arg(i));
25      else if (type == tr("cost"))
26         CostEdit->setText(QString("%1").arg(i));
27 }