QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 13233 d23742ccf92b
parent 13202 0bc5f618ca7c
child 13249 d49bd0dd735d
equal deleted inserted replaced
13232:26c739440bef 13233:d23742ccf92b
   128     connect(GameSchemes, SIGNAL(currentIndexChanged(int)), this, SLOT(schemeChanged(int)));
   128     connect(GameSchemes, SIGNAL(currentIndexChanged(int)), this, SLOT(schemeChanged(int)));
   129 
   129 
   130     SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Scheme"), SchemeWidget), 0, 0);
   130     SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Scheme"), SchemeWidget), 0, 0);
   131 
   131 
   132     QPixmap pmEdit(":/res/edit.png");
   132     QPixmap pmEdit(":/res/edit.png");
       
   133     QIcon iconEdit = QIcon(pmEdit);
   133 
   134 
   134     QPushButton * goToSchemePage = new QPushButton(SchemeWidget);
   135     QPushButton * goToSchemePage = new QPushButton(SchemeWidget);
   135     goToSchemePage->setWhatsThis(tr("Edit schemes"));
   136     goToSchemePage->setWhatsThis(tr("Edit schemes"));
   136     goToSchemePage->setIconSize(pmEdit.size());
   137     goToSchemePage->setIconSize(pmEdit.size());
   137     goToSchemePage->setIcon(pmEdit);
   138     goToSchemePage->setIcon(iconEdit);
   138     goToSchemePage->setMaximumWidth(pmEdit.width() + 6);
   139     goToSchemePage->setMaximumWidth(pmEdit.width() + 6);
   139     SchemeWidgetLayout->addWidget(goToSchemePage, 0, 3);
   140     SchemeWidgetLayout->addWidget(goToSchemePage, 0, 3);
   140     connect(goToSchemePage, SIGNAL(clicked()), this, SLOT(jumpToSchemes()));
   141     connect(goToSchemePage, SIGNAL(clicked()), this, SLOT(jumpToSchemes()));
   141 
   142 
   142     SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Weapons"), SchemeWidget), 1, 0);
   143     SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Weapons"), SchemeWidget), 1, 0);
   157 
   158 
   158     bindEntries = new QCheckBox(SchemeWidget);
   159     bindEntries = new QCheckBox(SchemeWidget);
   159     bindEntries->setWhatsThis(tr("Game scheme will auto-select a weapon"));
   160     bindEntries->setWhatsThis(tr("Game scheme will auto-select a weapon"));
   160     bindEntries->setChecked(true);
   161     bindEntries->setChecked(true);
   161     bindEntries->setMaximumWidth(42);
   162     bindEntries->setMaximumWidth(42);
   162     bindEntries->setStyleSheet( "QCheckBox::indicator:checked   { image: url(\":/res/lock.png\"); }"
   163     bindEntries->setStyleSheet( "QCheckBox::indicator:checked:enabled    { image: url(\":/res/lock.png\"); }"
   163                                 "QCheckBox::indicator:unchecked { image: url(\":/res/unlock.png\");   }" );
   164                                 "QCheckBox::indicator:checked:disabled   { image: url(\":/res/lock_disabled.png\"); }"
       
   165                                 "QCheckBox::indicator:unchecked:enabled  { image: url(\":/res/unlock.png\");   }"
       
   166                                 "QCheckBox::indicator:unchecked:disabled { image: url(\":/res/unlock_disabled.png\");   }" );
   164     SchemeWidgetLayout->addWidget(bindEntries, 0, 1, 0, 1, Qt::AlignVCenter);
   167     SchemeWidgetLayout->addWidget(bindEntries, 0, 1, 0, 1, Qt::AlignVCenter);
   165 
   168 
   166     connect(pMapContainer, SIGNAL(seedChanged(const QString &)), this, SLOT(seedChanged(const QString &)));
   169     connect(pMapContainer, SIGNAL(seedChanged(const QString &)), this, SLOT(seedChanged(const QString &)));
   167     connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SLOT(mapChanged(const QString &)));
   170     connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SLOT(mapChanged(const QString &)));
   168     connect(pMapContainer, SIGNAL(mapgenChanged(MapGenerator)), this, SLOT(mapgenChanged(MapGenerator)));
   171     connect(pMapContainer, SIGNAL(mapgenChanged(MapGenerator)), this, SLOT(mapgenChanged(MapGenerator)));