* Switches to the Income screen. * @param action Pointer to an action. */
| 431 | * @param action Pointer to an action. |
| 432 | */ |
| 433 | void GraphsState::btnIncomeClick(Action *) |
| 434 | { |
| 435 | _alien = false; |
| 436 | _income = true; |
| 437 | _country = true; |
| 438 | _finance = false; |
| 439 | resetScreen(); |
| 440 | drawLines(); |
| 441 | _txtFactor->setVisible(true); |
| 442 | for (std::vector<ToggleTextButton *>::iterator iter = _btnCountries.begin(); iter != _btnCountries.end(); ++iter) |
| 443 | { |
| 444 | (*iter)->setVisible(true); |
| 445 | } |
| 446 | _btnCountryTotal->setVisible(true); |
| 447 | _txtTitle->setBig(); |
| 448 | _txtTitle->setText(tr("STR_INCOME")); |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * Switches to the Finances screen. |
nothing calls this directly
no test coverage detected