Revert "FileTypes: make space for BBox titles"
This reverts commit f0eb9fcd93.
Fixing this in BBox is better.
This commit is contained in:
@@ -58,10 +58,7 @@ FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)
|
|||||||
|
|
||||||
// "File Type" group
|
// "File Type" group
|
||||||
BBox* fileTypeBox = new BBox("file type BBox");
|
BBox* fileTypeBox = new BBox("file type BBox");
|
||||||
const char* label = B_TRANSLATE("File type");
|
fileTypeBox->SetLabel(B_TRANSLATE("File type"));
|
||||||
fileTypeBox->SetLabel(label);
|
|
||||||
fileTypeBox->SetExplicitMinSize(BSize(be_bold_font->StringWidth(label) + 20,
|
|
||||||
B_SIZE_UNSET));
|
|
||||||
|
|
||||||
fTypeControl = new BTextControl("type", NULL, "Type Control",
|
fTypeControl = new BTextControl("type", NULL, "Type Control",
|
||||||
new BMessage(kMsgTypeEntered));
|
new BMessage(kMsgTypeEntered));
|
||||||
@@ -89,10 +86,7 @@ FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)
|
|||||||
// "Icon" group
|
// "Icon" group
|
||||||
|
|
||||||
BBox* iconBox = new BBox("icon BBox");
|
BBox* iconBox = new BBox("icon BBox");
|
||||||
label = B_TRANSLATE("Icon");
|
iconBox->SetLabel(B_TRANSLATE("Icon"));
|
||||||
iconBox->SetLabel(label);
|
|
||||||
iconBox->SetExplicitMinSize(BSize(be_bold_font->StringWidth(label) + 20,
|
|
||||||
B_SIZE_UNSET));
|
|
||||||
fIconView = new IconView("icon");
|
fIconView = new IconView("icon");
|
||||||
BLayoutBuilder::Group<>(iconBox, B_HORIZONTAL)
|
BLayoutBuilder::Group<>(iconBox, B_HORIZONTAL)
|
||||||
.SetInsets(padding, padding * 2, padding, padding)
|
.SetInsets(padding, padding * 2, padding, padding)
|
||||||
@@ -101,10 +95,7 @@ FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)
|
|||||||
// "Preferred Application" group
|
// "Preferred Application" group
|
||||||
|
|
||||||
BBox* preferredBox = new BBox("preferred BBox");
|
BBox* preferredBox = new BBox("preferred BBox");
|
||||||
label = B_TRANSLATE("Preferred application");
|
preferredBox->SetLabel(B_TRANSLATE("Preferred application"));
|
||||||
preferredBox->SetLabel(label);
|
|
||||||
preferredBox->SetExplicitMinSize(BSize(be_bold_font->StringWidth(label)
|
|
||||||
+ 20, B_SIZE_UNSET));
|
|
||||||
|
|
||||||
BMenu* menu = new BPopUpMenu("preferred");
|
BMenu* menu = new BPopUpMenu("preferred");
|
||||||
BMenuItem* item;
|
BMenuItem* item;
|
||||||
|
|||||||
Reference in New Issue
Block a user