QTfrontend/ui/page/pagesingleplayer.cpp
changeset 8382 67e257b98422
parent 7201 dc17ffdf0702
child 9080 9b42757d7e71
equal deleted inserted replaced
8381:588a8e6e2041 8382:67e257b98422
    34     vLayout->addLayout(middleLine);
    34     vLayout->addLayout(middleLine);
    35     vLayout->addStretch();
    35     vLayout->addStretch();
    36 
    36 
    37     topLine->addStretch();
    37     topLine->addStretch();
    38     BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true);
    38     BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true);
    39     BtnSimpleGamePage->setToolTip(tr("Simple Game"));
       
    40     BtnSimpleGamePage->setWhatsThis(tr("Play a quick game against the computer with random settings"));
    39     BtnSimpleGamePage->setWhatsThis(tr("Play a quick game against the computer with random settings"));
    41     topLine->addSpacing(60);
    40     topLine->addSpacing(60);
    42     BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
    41     BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
    43     BtnMultiplayer->setToolTip(tr("Multiplayer"));
       
    44     BtnMultiplayer->setWhatsThis(tr("Play a hotseat game against your friends, or AI teams"));
    42     BtnMultiplayer->setWhatsThis(tr("Play a hotseat game against your friends, or AI teams"));
    45     topLine->addStretch();
    43     topLine->addStretch();
    46 
    44 
    47 
    45 
    48     BtnCampaignPage = addButton(":/res/Campaign.png", middleLine, 0, true);
    46     BtnCampaignPage = addButton(":/res/Campaign.png", middleLine, 0, true);
    49     BtnCampaignPage->setToolTip(tr("Campaign Mode"));
       
    50     BtnCampaignPage->setWhatsThis(tr("Campaign Mode"));
    47     BtnCampaignPage->setWhatsThis(tr("Campaign Mode"));
    51     BtnCampaignPage->setVisible(true);
    48     BtnCampaignPage->setVisible(true);
    52 
    49 
    53     BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 1, true);
    50     BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 1, true);
    54     BtnTrainPage->setToolTip(tr("Training Mode"));
       
    55     BtnTrainPage->setWhatsThis(tr("Practice your skills in a range of training missions"));
    51     BtnTrainPage->setWhatsThis(tr("Practice your skills in a range of training missions"));
    56 
    52 
    57     return vLayout;
    53     return vLayout;
    58 }
    54 }
    59 
    55 
    61 {
    57 {
    62     QHBoxLayout * bottomLine = new QHBoxLayout();
    58     QHBoxLayout * bottomLine = new QHBoxLayout();
    63     bottomLine->addStretch();
    59     bottomLine->addStretch();
    64 
    60 
    65     BtnDemos = addButton(":/res/Record.png", bottomLine, 1, true);
    61     BtnDemos = addButton(":/res/Record.png", bottomLine, 1, true);
    66     BtnDemos->setToolTip(tr("Demos"));
       
    67     BtnDemos->setWhatsThis(tr("Watch recorded demos"));
    62     BtnDemos->setWhatsThis(tr("Watch recorded demos"));
    68     BtnLoad = addButton(":/res/Load.png", bottomLine, 2, true);
    63     BtnLoad = addButton(":/res/Load.png", bottomLine, 2, true);
    69     BtnLoad->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
    64     BtnLoad->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
    70     BtnLoad->setToolTip(tr("Load"));
       
    71     BtnLoad->setWhatsThis(tr("Load a previously saved game"));
    65     BtnLoad->setWhatsThis(tr("Load a previously saved game"));
    72 
    66 
    73     bottomLine->setStretch(1,0);
    67     bottomLine->setStretch(1,0);
    74     bottomLine->setStretch(2,0);
    68     bottomLine->setStretch(2,0);
    75     bottomLine->setAlignment(BtnDemos, Qt::AlignRight | Qt::AlignBottom);
    69     bottomLine->setAlignment(BtnDemos, Qt::AlignRight | Qt::AlignBottom);