* Temporarily removed the "Only Show Blocks Contained in Font" - Haiku does
not yet support this. * Made sure the correct font is selected at start. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -146,9 +146,12 @@ CharacterWindow::CharacterWindow()
|
|||||||
menu->AddItem(item = new BMenuItem("Show Private Blocks",
|
menu->AddItem(item = new BMenuItem("Show Private Blocks",
|
||||||
new BMessage(kMsgPrivateBlocks)));
|
new BMessage(kMsgPrivateBlocks)));
|
||||||
item->SetMarked(fCharacterView->IsShowingPrivateBlocks());
|
item->SetMarked(fCharacterView->IsShowingPrivateBlocks());
|
||||||
|
// TODO: this feature is not yet supported by Haiku!
|
||||||
|
#if 0
|
||||||
menu->AddItem(item = new BMenuItem("Only Show Blocks Contained in Font",
|
menu->AddItem(item = new BMenuItem("Only Show Blocks Contained in Font",
|
||||||
new BMessage(kMsgContainedBlocks)));
|
new BMessage(kMsgContainedBlocks)));
|
||||||
item->SetMarked(fCharacterView->IsShowingContainedBlocksOnly());
|
item->SetMarked(fCharacterView->IsShowingContainedBlocksOnly());
|
||||||
|
#endif
|
||||||
menuBar->AddItem(menu);
|
menuBar->AddItem(menu);
|
||||||
|
|
||||||
menuBar->AddItem(_CreateFontMenu());
|
menuBar->AddItem(_CreateFontMenu());
|
||||||
@@ -339,7 +342,8 @@ CharacterWindow::_CreateFontMenu()
|
|||||||
|
|
||||||
font_family currentFamily;
|
font_family currentFamily;
|
||||||
font_style currentStyle;
|
font_style currentStyle;
|
||||||
be_plain_font->GetFamilyAndStyle(¤tFamily, ¤tStyle);
|
fCharacterView->CharacterFont().GetFamilyAndStyle(¤tFamily,
|
||||||
|
¤tStyle);
|
||||||
|
|
||||||
int32 numFamilies = count_font_families();
|
int32 numFamilies = count_font_families();
|
||||||
|
|
||||||
@@ -385,7 +389,7 @@ CharacterWindow::_UpdateUnicodeBlocks()
|
|||||||
if (item->IsEnabled() != enabled) {
|
if (item->IsEnabled() != enabled) {
|
||||||
item->SetEnabled(enabled);
|
item->SetEnabled(enabled);
|
||||||
fUnicodeBlockView->InvalidateItem(i);
|
fUnicodeBlockView->InvalidateItem(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -404,7 +408,6 @@ CharacterWindow::_CreateUnicodeBlocks()
|
|||||||
}
|
}
|
||||||
|
|
||||||
fUnicodeBlockView->SetExplicitMinSize(BSize(minWidth / 2, 32));
|
fUnicodeBlockView->SetExplicitMinSize(BSize(minWidth / 2, 32));
|
||||||
// TODO: why is this ignored?
|
|
||||||
fUnicodeBlockView->SetExplicitMaxSize(BSize(minWidth, B_SIZE_UNSET));
|
fUnicodeBlockView->SetExplicitMaxSize(BSize(minWidth, B_SIZE_UNSET));
|
||||||
|
|
||||||
_UpdateUnicodeBlocks();
|
_UpdateUnicodeBlocks();
|
||||||
|
|||||||
Reference in New Issue
Block a user