QTfrontend/gamecfgwidget.cpp
changeset 218 6e64db60222c
parent 184 f97a7a3dc8f6
child 240 c7f0a4f7a54a
equal deleted inserted replaced
217:d2a47da0e9e6 218:6e64db60222c
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18 
    18 
    19 #include <QResizeEvent>
    19 #include <QResizeEvent>
       
    20 #include <QGroupBox>
       
    21 #include <QHBoxLayout>
    20 #include "gamecfgwidget.h"
    22 #include "gamecfgwidget.h"
    21 
    23 
    22 GameCFGWidget::GameCFGWidget(QWidget* parent) : 
    24 GameCFGWidget::GameCFGWidget(QWidget* parent) :
    23   QWidget(parent), mainLayout(this)
    25   QWidget(parent), mainLayout(this)
    24 {
    26 {
    25 	CB_mode_Forts = new QCheckBox(this);
    27 	QGroupBox *GBoxMap = new QGroupBox(this);
       
    28 	GBoxMap->setTitle(QGroupBox::tr("Landscape"));
       
    29 	GBoxMap->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
       
    30 	mainLayout.addWidget(GBoxMap);
       
    31 
       
    32 	QHBoxLayout *GBoxMapLayout = new QHBoxLayout(GBoxMap);
       
    33 	pMapContainer = new HWMapContainer(GBoxMap);
       
    34 	GBoxMapLayout->addWidget(new QWidget);
       
    35 	GBoxMapLayout->addWidget(pMapContainer);
       
    36 	GBoxMapLayout->addWidget(new QWidget);
       
    37 
       
    38 	QGroupBox *GBoxOptions = new QGroupBox(this);
       
    39 	GBoxOptions->setTitle(QGroupBox::tr("Game scheme"));
       
    40 	GBoxOptions->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
       
    41 	mainLayout.addWidget(GBoxOptions);
       
    42 
       
    43 	QVBoxLayout *GBoxOptionsLayout = new QVBoxLayout(GBoxOptions);
       
    44 	CB_mode_Forts = new QCheckBox(GBoxOptions);
    26 	CB_mode_Forts->setText(QCheckBox::tr("Forts mode"));
    45 	CB_mode_Forts->setText(QCheckBox::tr("Forts mode"));
    27 	mainLayout.addWidget(CB_mode_Forts);
    46 	GBoxOptionsLayout->addWidget(CB_mode_Forts);
    28 	pMapContainer=new HWMapContainer(this);
    47 
    29 	mainLayout.addWidget(pMapContainer, 80);
    48 	mainLayout.addWidget(new QWidget, 100);
    30 }
    49 }
    31 
    50 
    32 quint32 GameCFGWidget::getGameFlags()
    51 quint32 GameCFGWidget::getGameFlags()
    33 {
    52 {
    34 	quint32 result = 0;
    53 	quint32 result = 0;