Added private menu/desktop/WindowScreen feels to play with.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17150 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-17 13:22:19 +00:00
parent 632ba028c9
commit aacfed124b
@@ -96,6 +96,9 @@ Window::Window(BRect frame, window_look look, window_feel feel)
{"Floating Subset", B_FLOATING_SUBSET_WINDOW_FEEL},
{"App Floating", B_FLOATING_APP_WINDOW_FEEL},
{"All Floating", B_FLOATING_ALL_WINDOW_FEEL},
{"Menu", kMenuWindowFeel},
{"WindowScreen", kWindowScreenFeel},
{"Desktop", kDesktopWindowFeel},
};
for (uint32 i = 0; i < sizeof(feels) / sizeof(feels[0]); i++) {
BMessage* message = new BMessage(kMsgUpdateFeel);
@@ -343,11 +346,13 @@ Window::TitleForFeel(window_feel feel)
{
BString title = "Look&Feel - ";
switch (feel) {
switch ((uint32)feel) {
case B_NORMAL_WINDOW_FEEL:
title += "Normal";
break;
// modal feels
case B_MODAL_SUBSET_WINDOW_FEEL:
title += "Modal Subset";
break;
@@ -358,6 +363,8 @@ Window::TitleForFeel(window_feel feel)
title += "All Modal";
break;
// floating feels
case B_FLOATING_SUBSET_WINDOW_FEEL:
title += "Floating Subset";
break;
@@ -367,6 +374,18 @@ Window::TitleForFeel(window_feel feel)
case B_FLOATING_ALL_WINDOW_FEEL:
title += "All Floating";
break;
// special/private feels
case kMenuWindowFeel:
title += "Menu";
break;
case kWindowScreenFeel:
title += "WindowScreen";
break;
case kDesktopWindowFeel:
title += "Desktop";
break;
}
return title;