QTfrontend/gamecfgwidget.cpp
changeset 312 c36d0b34ac3d
parent 311 b8905423f19f
child 318 46a43b02bbb3
equal deleted inserted replaced
311:b8905423f19f 312:c36d0b34ac3d
    59 	SB_TurnTime->setRange(15, 90);
    59 	SB_TurnTime->setRange(15, 90);
    60 	SB_TurnTime->setValue(45);
    60 	SB_TurnTime->setValue(45);
    61 	SB_TurnTime->setSingleStep(15);
    61 	SB_TurnTime->setSingleStep(15);
    62 	SB_InitHealth = new QSpinBox(GBoxOptions);
    62 	SB_InitHealth = new QSpinBox(GBoxOptions);
    63 	SB_InitHealth->setRange(50, 200);
    63 	SB_InitHealth->setRange(50, 200);
    64 	SB_TurnTime->setValue(100);
    64 	SB_InitHealth->setValue(100);
    65 	SB_InitHealth->setSingleStep(25);
    65 	SB_InitHealth->setSingleStep(25);
    66 	GBoxOptionsLayout->addWidget(SB_TurnTime, 1, 1);
    66 	GBoxOptionsLayout->addWidget(SB_TurnTime, 1, 1);
    67 	GBoxOptionsLayout->addWidget(SB_InitHealth, 2, 1);
    67 	GBoxOptionsLayout->addWidget(SB_InitHealth, 2, 1);
    68 
    68 
    69 	mainLayout.addWidget(new QWidget, 100);
    69 	mainLayout.addWidget(new QWidget, 100);
    89 
    89 
    90 QString GameCFGWidget::getCurrentTheme() const
    90 QString GameCFGWidget::getCurrentTheme() const
    91 {
    91 {
    92   return pMapContainer->getCurrentTheme();
    92   return pMapContainer->getCurrentTheme();
    93 }
    93 }
       
    94 
       
    95 quint32 GameCFGWidget::getInitHealth() const
       
    96 {
       
    97 	return SB_InitHealth->value();
       
    98 }
       
    99 
       
   100 quint32 GameCFGWidget::getTurnTime() const
       
   101 {
       
   102 	return SB_TurnTime->value();
       
   103 }