Ticket #4076: expandertaborder.patch

File expandertaborder.patch, 1.8 KB (added by idefix, 15 years ago)

Patch to change tab order in Expander-window.

  • src/apps/expander/ExpanderWindow.cpp

     
    8787    fDestButton = new BButton(rect, "destButton", "Destination",
    8888        new BMessage(MSG_DEST), B_FOLLOW_LEFT | B_FOLLOW_TOP);
    8989    fDestButton->ResizeToPreferred();
    90     topView->AddChild(fDestButton);
    9190
    9291    rect = fDestButton->Frame();
    9392    fDestButton->MoveBy(0, rect.Height() + 4);
    9493
    9594    fSourceButton = new BButton(rect, "sourceButton", "Source",
    9695        new BMessage(MSG_SOURCE), B_FOLLOW_LEFT | B_FOLLOW_TOP);
    97     topView->AddChild(fSourceButton);
    9896
    9997    rect = fDestButton->Frame();
    10098    rect.OffsetBy(0, rect.Height() + 4);
    10199    fExpandButton = new BButton(rect, "expandButton", "Expand",
    102100        new BMessage(MSG_EXPAND), B_FOLLOW_LEFT | B_FOLLOW_TOP);
    103     topView->AddChild(fExpandButton);
    104101    fExpandButton->SetEnabled(false);
    105102
    106103    // TextControls
     
    116113    fSourceText->ResizeTo(rect.Width(), height);
    117114    float offset = (rect.Height() - fSourceText->Bounds().Height()) / 2;
    118115    fSourceText->MoveBy(0, offset);
     116    topView->AddChild(fSourceButton);
    119117    topView->AddChild(fSourceText);
    120118
    121119    rect = fSourceText->Frame();
     
    123121    fDestText = new BTextControl(rect, "destText", "", NULL,
    124122        new BMessage(MSG_DESTTEXT), B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
    125123    fDestText->SetDivider(0);
     124    topView->AddChild(fDestButton);
    126125    topView->AddChild(fDestText);
    127126
    128127    rect.OffsetBy(0, fSourceButton->Bounds().Height() + 4 + offset);
     
    131130    fShowContents->ResizeToPreferred();
    132131    fShowContents->MoveTo(Bounds().right - 8 - fShowContents->Bounds().Width(),
    133132        rect.top);
     133    topView->AddChild(fExpandButton);
    134134    topView->AddChild(fShowContents);
    135135    fShowContents->SetEnabled(false);
    136136