fixed enums
This commit is contained in:
parent
74a53dc962
commit
975cff7991
1 changed files with 18 additions and 18 deletions
|
@ -79,7 +79,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Shade"),
|
"Shade"),
|
||||||
BScreen::WindowShade);
|
BScreen::WINDOWSHADE);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuIconify,
|
WindowmenuSet, WindowmenuIconify,
|
||||||
|
@ -87,7 +87,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Iconify"),
|
"Iconify"),
|
||||||
BScreen::WindowIconify);
|
BScreen::WINDOWICONIFY);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuMaximize,
|
WindowmenuSet, WindowmenuMaximize,
|
||||||
|
@ -95,7 +95,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Maximize"),
|
"Maximize"),
|
||||||
BScreen::WindowMaximize);
|
BScreen::WINDOWMAXIMIZE);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuRaise,
|
WindowmenuSet, WindowmenuRaise,
|
||||||
|
@ -103,7 +103,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Raise"),
|
"Raise"),
|
||||||
BScreen::WindowRaise);
|
BScreen::WINDOWRAISE);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuLower,
|
WindowmenuSet, WindowmenuLower,
|
||||||
|
@ -111,7 +111,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Lower"),
|
"Lower"),
|
||||||
BScreen::WindowLower);
|
BScreen::WINDOWLOWER);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuStick,
|
WindowmenuSet, WindowmenuStick,
|
||||||
|
@ -119,7 +119,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Stick"),
|
"Stick"),
|
||||||
BScreen::WindowStick);
|
BScreen::WINDOWSTICK);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuKillClient,
|
WindowmenuSet, WindowmenuKillClient,
|
||||||
|
@ -127,7 +127,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Kill Client"),
|
"Kill Client"),
|
||||||
BScreen::WindowKill);
|
BScreen::WINDOWKILL);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuClose,
|
WindowmenuSet, WindowmenuClose,
|
||||||
|
@ -135,7 +135,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Close"),
|
"Close"),
|
||||||
BScreen::WindowClose);
|
BScreen::WINDOWCLOSE);
|
||||||
insert(i18n->getMessage(
|
insert(i18n->getMessage(
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
WindowmenuSet, WindowmenuTab,
|
WindowmenuSet, WindowmenuTab,
|
||||||
|
@ -143,7 +143,7 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
0, 0,
|
0, 0,
|
||||||
#endif // NLS
|
#endif // NLS
|
||||||
"Tab"),
|
"Tab"),
|
||||||
BScreen::WindowTab);
|
BScreen::WINDOWTAB);
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ void Windowmenu::itemSelected(int button, int index) {
|
||||||
BasemenuItem *item = find(index);
|
BasemenuItem *item = find(index);
|
||||||
|
|
||||||
switch (item->function()) {
|
switch (item->function()) {
|
||||||
case BScreen::WindowShade:
|
case BScreen::WINDOWSHADE:
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
window->shade();
|
window->shade();
|
||||||
|
@ -183,42 +183,42 @@ void Windowmenu::itemSelected(int button, int index) {
|
||||||
window->getTab()->shade();
|
window->getTab()->shade();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowIconify:
|
case BScreen::WINDOWICONIFY:
|
||||||
hide();
|
hide();
|
||||||
window->iconify();
|
window->iconify();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowMaximize:
|
case BScreen::WINDOWMAXIMIZE:
|
||||||
hide();
|
hide();
|
||||||
window->maximize((unsigned int) button);
|
window->maximize((unsigned int) button);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowClose:
|
case BScreen::WINDOWCLOSE:
|
||||||
hide();
|
hide();
|
||||||
window->close();
|
window->close();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowRaise:
|
case BScreen::WINDOWRAISE:
|
||||||
hide();
|
hide();
|
||||||
screen->getWorkspace(window->getWorkspaceNumber())->raiseWindow(window);
|
screen->getWorkspace(window->getWorkspaceNumber())->raiseWindow(window);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowLower:
|
case BScreen::WINDOWLOWER:
|
||||||
hide();
|
hide();
|
||||||
screen->getWorkspace(window->getWorkspaceNumber())->lowerWindow(window);
|
screen->getWorkspace(window->getWorkspaceNumber())->lowerWindow(window);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowStick:
|
case BScreen::WINDOWSTICK:
|
||||||
hide();
|
hide();
|
||||||
window->stick();
|
window->stick();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BScreen::WindowKill:
|
case BScreen::WINDOWKILL:
|
||||||
hide();
|
hide();
|
||||||
XKillClient(screen->getBaseDisplay()->getXDisplay(),
|
XKillClient(screen->getBaseDisplay()->getXDisplay(),
|
||||||
window->getClientWindow());
|
window->getClientWindow());
|
||||||
break;
|
break;
|
||||||
case BScreen::WindowTab:
|
case BScreen::WINDOWTAB:
|
||||||
hide();
|
hide();
|
||||||
window->setTab(!window->hasTab());
|
window->setTab(!window->hasTab());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue