QTfrontend/pages.cpp
changeset 2031 b6f3e56fb100
parent 2026 21c986c528ba
child 2036 d4448c021553
equal deleted inserted replaced
2030:8eaf3d7c54b2 2031:b6f3e56fb100
  1014 	SB_CaseProb = new FreqSpinBox(gbBasicSettings);
  1014 	SB_CaseProb = new FreqSpinBox(gbBasicSettings);
  1015 	SB_CaseProb->setRange(0, 9);
  1015 	SB_CaseProb->setRange(0, 9);
  1016 	SB_CaseProb->setValue(5);
  1016 	SB_CaseProb->setValue(5);
  1017 	glBSLayout->addWidget(SB_CaseProb,4,2,1,1);
  1017 	glBSLayout->addWidget(SB_CaseProb,4,2,1,1);
  1018 
  1018 
       
  1019 	l = new QLabel(gbBasicSettings);
       
  1020 	l->setText(QLabel::tr("Mines Time"));
       
  1021 	l->setWordWrap(true);
       
  1022 	glBSLayout->addWidget(l,5,0,1,1);
       
  1023 	l = new QLabel(gbBasicSettings);
       
  1024 	l->setFixedSize(32,32);
       
  1025 	l->setPixmap(QPixmap(":/res/iconTime.png")); // TODO: icon
       
  1026 	glBSLayout->addWidget(l,5,1,1,1);
       
  1027 	SB_MinesTime = new QSpinBox(gbBasicSettings);
       
  1028 	SB_MinesTime->setRange(-1, 3);
       
  1029 	SB_MinesTime->setValue(3);
       
  1030 	SB_MinesTime->setSingleStep(1);
       
  1031 	SB_MinesTime->setSpecialValueText(tr("Random"));
       
  1032 	SB_MinesTime->setSuffix(" "+ tr("Seconds"));
       
  1033 	glBSLayout->addWidget(SB_MinesTime,5,2,1,1);
       
  1034 
       
  1035 	l = new QLabel(gbBasicSettings);
       
  1036 	l->setText(QLabel::tr("Mines"));
       
  1037 	l->setWordWrap(true);
       
  1038 	glBSLayout->addWidget(l,6,0,1,1);
       
  1039 	l = new QLabel(gbBasicSettings);
       
  1040 	l->setFixedSize(32,32);
       
  1041 	l->setPixmap(QPixmap(":/res/iconTime.png")); // TODO: icon
       
  1042 	glBSLayout->addWidget(l,6,1,1,1);
       
  1043 	SB_Mines = new QSpinBox(gbBasicSettings);
       
  1044 	SB_Mines->setRange(1, 25);
       
  1045 	SB_Mines->setValue(1);
       
  1046 	SB_Mines->setSingleStep(5);
       
  1047 	glBSLayout->addWidget(SB_Mines,6,2,1,1);
  1019 
  1048 
  1020 	l = new QLabel(gbBasicSettings);
  1049 	l = new QLabel(gbBasicSettings);
  1021 	l->setText(QLabel::tr("Scheme Name:"));
  1050 	l->setText(QLabel::tr("Scheme Name:"));
  1022 
  1051 
  1023 	LE_name = new QLineEdit(this);
  1052 	LE_name = new QLineEdit(this);
  1060 	mapper->addMapping(SB_DamageModifier, 12);
  1089 	mapper->addMapping(SB_DamageModifier, 12);
  1061 	mapper->addMapping(SB_TurnTime, 13);
  1090 	mapper->addMapping(SB_TurnTime, 13);
  1062 	mapper->addMapping(SB_InitHealth, 14);
  1091 	mapper->addMapping(SB_InitHealth, 14);
  1063 	mapper->addMapping(SB_SuddenDeath, 15);
  1092 	mapper->addMapping(SB_SuddenDeath, 15);
  1064 	mapper->addMapping(SB_CaseProb, 16);
  1093 	mapper->addMapping(SB_CaseProb, 16);
       
  1094 	mapper->addMapping(SB_MinesTime, 17);
       
  1095 	mapper->addMapping(SB_Mines, 18);
  1065 
  1096 
  1066 	mapper->toFirst();
  1097 	mapper->toFirst();
  1067 }
  1098 }
  1068 
  1099 
  1069 void PageScheme::newRow()
  1100 void PageScheme::newRow()