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:
@@ -96,6 +96,9 @@ Window::Window(BRect frame, window_look look, window_feel feel)
|
|||||||
{"Floating Subset", B_FLOATING_SUBSET_WINDOW_FEEL},
|
{"Floating Subset", B_FLOATING_SUBSET_WINDOW_FEEL},
|
||||||
{"App Floating", B_FLOATING_APP_WINDOW_FEEL},
|
{"App Floating", B_FLOATING_APP_WINDOW_FEEL},
|
||||||
{"All Floating", B_FLOATING_ALL_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++) {
|
for (uint32 i = 0; i < sizeof(feels) / sizeof(feels[0]); i++) {
|
||||||
BMessage* message = new BMessage(kMsgUpdateFeel);
|
BMessage* message = new BMessage(kMsgUpdateFeel);
|
||||||
@@ -343,11 +346,13 @@ Window::TitleForFeel(window_feel feel)
|
|||||||
{
|
{
|
||||||
BString title = "Look&Feel - ";
|
BString title = "Look&Feel - ";
|
||||||
|
|
||||||
switch (feel) {
|
switch ((uint32)feel) {
|
||||||
case B_NORMAL_WINDOW_FEEL:
|
case B_NORMAL_WINDOW_FEEL:
|
||||||
title += "Normal";
|
title += "Normal";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// modal feels
|
||||||
|
|
||||||
case B_MODAL_SUBSET_WINDOW_FEEL:
|
case B_MODAL_SUBSET_WINDOW_FEEL:
|
||||||
title += "Modal Subset";
|
title += "Modal Subset";
|
||||||
break;
|
break;
|
||||||
@@ -358,6 +363,8 @@ Window::TitleForFeel(window_feel feel)
|
|||||||
title += "All Modal";
|
title += "All Modal";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// floating feels
|
||||||
|
|
||||||
case B_FLOATING_SUBSET_WINDOW_FEEL:
|
case B_FLOATING_SUBSET_WINDOW_FEEL:
|
||||||
title += "Floating Subset";
|
title += "Floating Subset";
|
||||||
break;
|
break;
|
||||||
@@ -367,6 +374,18 @@ Window::TitleForFeel(window_feel feel)
|
|||||||
case B_FLOATING_ALL_WINDOW_FEEL:
|
case B_FLOATING_ALL_WINDOW_FEEL:
|
||||||
title += "All Floating";
|
title += "All Floating";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// special/private feels
|
||||||
|
|
||||||
|
case kMenuWindowFeel:
|
||||||
|
title += "Menu";
|
||||||
|
break;
|
||||||
|
case kWindowScreenFeel:
|
||||||
|
title += "WindowScreen";
|
||||||
|
break;
|
||||||
|
case kDesktopWindowFeel:
|
||||||
|
title += "Desktop";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return title;
|
return title;
|
||||||
|
|||||||
Reference in New Issue
Block a user