Ticket #4076: expandertaborder.patch
File expandertaborder.patch, 1.8 KB (added by , 15 years ago) |
---|
-
src/apps/expander/ExpanderWindow.cpp
87 87 fDestButton = new BButton(rect, "destButton", "Destination", 88 88 new BMessage(MSG_DEST), B_FOLLOW_LEFT | B_FOLLOW_TOP); 89 89 fDestButton->ResizeToPreferred(); 90 topView->AddChild(fDestButton);91 90 92 91 rect = fDestButton->Frame(); 93 92 fDestButton->MoveBy(0, rect.Height() + 4); 94 93 95 94 fSourceButton = new BButton(rect, "sourceButton", "Source", 96 95 new BMessage(MSG_SOURCE), B_FOLLOW_LEFT | B_FOLLOW_TOP); 97 topView->AddChild(fSourceButton);98 96 99 97 rect = fDestButton->Frame(); 100 98 rect.OffsetBy(0, rect.Height() + 4); 101 99 fExpandButton = new BButton(rect, "expandButton", "Expand", 102 100 new BMessage(MSG_EXPAND), B_FOLLOW_LEFT | B_FOLLOW_TOP); 103 topView->AddChild(fExpandButton);104 101 fExpandButton->SetEnabled(false); 105 102 106 103 // TextControls … … 116 113 fSourceText->ResizeTo(rect.Width(), height); 117 114 float offset = (rect.Height() - fSourceText->Bounds().Height()) / 2; 118 115 fSourceText->MoveBy(0, offset); 116 topView->AddChild(fSourceButton); 119 117 topView->AddChild(fSourceText); 120 118 121 119 rect = fSourceText->Frame(); … … 123 121 fDestText = new BTextControl(rect, "destText", "", NULL, 124 122 new BMessage(MSG_DESTTEXT), B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP); 125 123 fDestText->SetDivider(0); 124 topView->AddChild(fDestButton); 126 125 topView->AddChild(fDestText); 127 126 128 127 rect.OffsetBy(0, fSourceButton->Bounds().Height() + 4 + offset); … … 131 130 fShowContents->ResizeToPreferred(); 132 131 fShowContents->MoveTo(Bounds().right - 8 - fShowContents->Bounds().Width(), 133 132 rect.top); 133 topView->AddChild(fExpandButton); 134 134 topView->AddChild(fShowContents); 135 135 fShowContents->SetEnabled(false); 136 136