Changeset View
Changeset View
Standalone View
Standalone View
sublime/idealcontroller.cpp
Show First 20 Lines • Show All 446 Lines • ▼ Show 20 Line(s) | 430 | { | |||
---|---|---|---|---|---|
447 | if (index > bar->actions().count() - 1) | 447 | if (index > bar->actions().count() - 1) | ||
448 | index = 0; | 448 | index = 0; | ||
449 | 449 | | |||
450 | bar->actions().at(index)->setChecked(true); | 450 | bar->actions().at(index)->setChecked(true); | ||
451 | } | 451 | } | ||
452 | 452 | | |||
453 | void IdealController::toggleDocksShown() | 453 | void IdealController::toggleDocksShown() | ||
454 | { | 454 | { | ||
455 | bool anyBarShown = leftBarWidget->isShown() || bottomBarWidget->isShown() || rightBarWidget->isShown(); | 455 | bool anyBarShown = | ||
456 | (leftBarWidget->isShown() && !leftBarWidget->isLocked()) || | ||||
457 | (bottomBarWidget->isShown() && !bottomBarWidget->isLocked()) || | ||||
458 | (rightBarWidget->isShown() && !rightBarWidget->isLocked()); | ||||
456 | 459 | | |||
457 | if (anyBarShown) { | 460 | if (anyBarShown) { | ||
458 | leftBarWidget->saveShowState(); | 461 | leftBarWidget->saveShowState(); | ||
459 | bottomBarWidget->saveShowState(); | 462 | bottomBarWidget->saveShowState(); | ||
460 | rightBarWidget->saveShowState(); | 463 | rightBarWidget->saveShowState(); | ||
461 | } | 464 | } | ||
462 | 465 | | |||
466 | if (!leftBarWidget->isLocked()) | ||||
463 | toggleDocksShown(leftBarWidget, !anyBarShown && leftBarWidget->lastShowState()); | 467 | toggleDocksShown(leftBarWidget, !anyBarShown && leftBarWidget->lastShowState()); | ||
468 | | ||||
469 | if (!bottomBarWidget->isLocked()) | ||||
464 | toggleDocksShown(bottomBarWidget, !anyBarShown && bottomBarWidget->lastShowState()); | 470 | toggleDocksShown(bottomBarWidget, !anyBarShown && bottomBarWidget->lastShowState()); | ||
471 | | ||||
472 | if (!rightBarWidget->isLocked()) | ||||
465 | toggleDocksShown(rightBarWidget, !anyBarShown && rightBarWidget->lastShowState()); | 473 | toggleDocksShown(rightBarWidget, !anyBarShown && rightBarWidget->lastShowState()); | ||
466 | } | 474 | } | ||
467 | 475 | | |||
468 | void IdealController::toggleDocksShown(IdealButtonBarWidget* bar, bool show) | 476 | void IdealController::toggleDocksShown(IdealButtonBarWidget* bar, bool show) | ||
469 | { | 477 | { | ||
470 | if (!show) { | 478 | if (!show) { | ||
471 | hideDocks(bar); | 479 | hideDocks(bar); | ||
472 | } else { | 480 | } else { | ||
Show All 27 Lines |