QTfrontend/ui/page/pagesingleplayer.cpp
changeset 6699 83dd3447a212
parent 6131 4e8816cf9459
child 6700 e04da46ee43c
equal deleted inserted replaced
6698:804e9076d136 6699:83dd3447a212
    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 (a quick game against the computer, settings are chosen for you)"));
    39     BtnSimpleGamePage->setToolTip(tr("Simple Game"));
       
    40     BtnSimpleGamePage->setWhatsThis(tr("Play a quick game against the computer with random settings"));
    40     topLine->addSpacing(60);
    41     topLine->addSpacing(60);
    41     BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
    42     BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
    42     BtnMultiplayer->setToolTip(tr("Multiplayer (play a hotseat game against your friends, or AI teams)"));
    43     BtnMultiplayer->setToolTip(tr("Multiplayer"));
       
    44     BtnMultiplayer->setWhatsThis(tr("Play a hotseat game against your friends, or AI teams"));
    43     topLine->addStretch();
    45     topLine->addStretch();
    44 
    46 
    45 
    47 
    46     BtnCampaignPage = addButton(":/res/Campaign.png", middleLine, 0, true);
    48     BtnCampaignPage = addButton(":/res/Campaign.png", middleLine, 0, true);
    47     BtnCampaignPage->setToolTip(tr("Campaign Mode (...)"));
    49     BtnCampaignPage->setToolTip(tr("Campaign Mode"));
       
    50     BtnCampaignPage->setWhatsThis(tr("Campaign Mode"));
    48     BtnCampaignPage->setVisible(false);
    51     BtnCampaignPage->setVisible(false);
    49 
    52 
    50     BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 1, true);
    53     BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 1, true);
    51     BtnTrainPage->setToolTip(tr("Training Mode (Practice your skills in a range of training missions)"));
    54     BtnTrainPage->setToolTip(tr("Training Mode"));
       
    55     BtnTrainPage->setWhatsThis(tr("Practice your skills in a range of training missions"));
    52 
    56 
    53     return vLayout;
    57     return vLayout;
    54 }
    58 }
    55 
    59 
    56 QLayout * PageSinglePlayer::footerLayoutDefinition()
    60 QLayout * PageSinglePlayer::footerLayoutDefinition()
    57 {
    61 {
    58     QHBoxLayout * bottomLine = new QHBoxLayout();
    62     QHBoxLayout * bottomLine = new QHBoxLayout();
    59     bottomLine->addStretch();
    63     bottomLine->addStretch();
    60 
    64 
    61     BtnDemos = addButton(":/res/Record.png", bottomLine, 1, true);
    65     BtnDemos = addButton(":/res/Record.png", bottomLine, 1, true);
    62     BtnDemos->setToolTip(tr("Demos (Watch recorded demos)"));
    66     BtnDemos->setToolTip(tr("Demos"));
       
    67     BtnDemos->setWhatsThis(tr("Watch recorded demos"));
    63     BtnLoad = addButton(":/res/Load.png", bottomLine, 2, true);
    68     BtnLoad = addButton(":/res/Load.png", bottomLine, 2, true);
    64     BtnLoad->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
    69     BtnLoad->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
    65     BtnLoad->setToolTip(tr("Load (Load a previously saved game)"));
    70     BtnLoad->setToolTip(tr("Load"));
       
    71     BtnLoad->setWhatsThis(tr("Load a previously saved game"));
    66 
    72 
    67     bottomLine->setStretch(1,0);
    73     bottomLine->setStretch(1,0);
    68     bottomLine->setStretch(2,0);
    74     bottomLine->setStretch(2,0);
    69     bottomLine->setAlignment(BtnDemos, Qt::AlignRight | Qt::AlignBottom);
    75     bottomLine->setAlignment(BtnDemos, Qt::AlignRight | Qt::AlignBottom);
    70     bottomLine->setAlignment(BtnLoad, Qt::AlignRight | Qt::AlignBottom);
    76     bottomLine->setAlignment(BtnLoad, Qt::AlignRight | Qt::AlignBottom);