QTfrontend/pages.cpp
changeset 1288 cea4a8f52f5a
parent 1287 4a0cbcbe3521
child 1290 3cb7f6b5000e
equal deleted inserted replaced
1287:4a0cbcbe3521 1288:cea4a8f52f5a
   109 	QVBoxLayout * vbox3 = new QVBoxLayout();
   109 	QVBoxLayout * vbox3 = new QVBoxLayout();
   110 	page1Layout->addLayout(vbox1);
   110 	page1Layout->addLayout(vbox1);
   111 	page1Layout->addLayout(vbox2);
   111 	page1Layout->addLayout(vbox2);
   112 	page1Layout->addLayout(vbox3);
   112 	page1Layout->addLayout(vbox3);
   113 	
   113 	
   114 	GBoxTeam = new QGroupBox(this);
       
   115 	GBoxTeam->setTitle(QGroupBox::tr("Team"));
       
   116 	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
       
   117 	QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
       
   118 	TeamNameEdit = new QLineEdit(GBoxTeam);
       
   119 	TeamNameEdit->setMaxLength(64);
       
   120 	GBTLayout->addWidget(TeamNameEdit, 0, 0, 1, 0);
       
   121 	vbox1->addWidget(GBoxTeam);
       
   122 
       
   123 	GBoxHedgehogs = new QGroupBox(this);
   114 	GBoxHedgehogs = new QGroupBox(this);
   124 	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
   115 	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
   125 	GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   116 	GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   126 	QGridLayout * GBHLayout = new QGridLayout(GBoxHedgehogs);
   117 	QGridLayout * GBHLayout = new QGridLayout(GBoxHedgehogs);
   127 	
   118 	
   142 		GBHLayout->addWidget(HHHats[i], i, 1);
   133 		GBHLayout->addWidget(HHHats[i], i, 1);
   143 	}
   134 	}
   144 	vbox1->addWidget(GBoxHedgehogs);
   135 	vbox1->addWidget(GBoxHedgehogs);
   145 
   136 
   146 
   137 
   147 	GBoxGrave = new QGroupBox(this);
   138 	GBoxTeam = new QGroupBox(this);
   148 	GBoxGrave->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   139 	GBoxTeam->setTitle(QGroupBox::tr("Team"));
   149 	GBoxGrave->setTitle(QGroupBox::tr("Grave"));
   140 	GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   150 	QGridLayout * GBGLayout = new QGridLayout(GBoxGrave);
   141 	QVBoxLayout * GBTLayout = new QVBoxLayout(GBoxTeam);
   151 	CBGrave = new QComboBox(GBoxGrave);
   142 	TeamNameEdit = new QLineEdit(GBoxTeam);
   152 	CBGrave->setMaxCount(65535);
   143 	TeamNameEdit->setMaxLength(64);
   153 	CBGrave->setIconSize(QSize(32, 32));
   144 	GBTLayout->addWidget(TeamNameEdit);
   154 	GBGLayout->addWidget(CBGrave, 0, 0, 1, 3);
   145 	vbox2->addWidget(GBoxTeam);
   155 	vbox2->addWidget(GBoxGrave);
       
   156 	
   146 	
   157 	//page1Layout->addWidget(new QWidget(), 3, 1, 1, 1);
       
   158 
       
   159 	GBoxTeamLvl = new QGroupBox(this);
       
   160 	GBoxTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
       
   161 	GBoxTeamLvl->setTitle(QGroupBox::tr("Team level"));
       
   162 	QGridLayout * GBTLLayout = new QGridLayout(GBoxTeamLvl);
       
   163 	CBTeamLvl = new QComboBox(GBoxTeamLvl);
   147 	CBTeamLvl = new QComboBox(GBoxTeamLvl);
   164 	CBTeamLvl->setIconSize(QSize(32, 32));
   148 	CBTeamLvl->setIconSize(QSize(32, 32));
   165 	CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human"));
   149 	CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human"));
   166 	for(int i = 5; i > 0; i--)
   150 	for(int i = 5; i > 0; i--)
   167 		CBTeamLvl->addItem(
   151 		CBTeamLvl->addItem(
   168 				QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)),
   152 				QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)),
   169 				QString("%1 %2").arg(QComboBox::tr("Level")).arg(i)
   153 				QString("%1 %2").arg(QComboBox::tr("Level")).arg(i)
   170 				);
   154 				);
       
   155 	GBTLayout->addWidget(CBTeamLvl);
   171 	
   156 	
   172 	GBTLLayout->addWidget(CBTeamLvl, 0, 0, 1, 3);
   157 	CBGrave = new QComboBox(GBoxGrave);
   173 	vbox2->addWidget(GBoxTeamLvl);
   158 	CBGrave->setMaxCount(65535);
   174 
   159 	CBGrave->setIconSize(QSize(32, 32));
       
   160 	GBTLayout->addWidget(CBGrave);
       
   161 	
   175 	GBoxFort = new QGroupBox(this);
   162 	GBoxFort = new QGroupBox(this);
   176 	GBoxFort->setTitle(QGroupBox::tr("Fort"));
   163 	GBoxFort->setTitle(QGroupBox::tr("Fort"));
   177 	QGridLayout * GBFLayout = new QGridLayout(GBoxFort);
   164 	QGridLayout * GBFLayout = new QGridLayout(GBoxFort);
   178 	CBFort = new QComboBox(GBoxFort);
   165 	CBFort = new QComboBox(GBoxFort);
   179 	CBFort->setMaxCount(65535);
   166 	CBFort->setMaxCount(65535);