diff options
-rw-r--r-- | src/Screen.cc | 27 | ||||
-rw-r--r-- | src/Screen.hh | 16 | ||||
-rw-r--r-- | src/Slit.cc | 60 | ||||
-rw-r--r-- | src/Slit.hh | 6 |
4 files changed, 55 insertions, 54 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 74b0c22..88fa659 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -195,7 +195,7 @@ rootcommand("") | |||
195 | image_control->setDither(resource.image_dither); | 195 | image_control->setDither(resource.image_dither); |
196 | theme = new Theme(getBaseDisplay()->getXDisplay(), getRootWindow(), getColormap(), getScreenNumber(), | 196 | theme = new Theme(getBaseDisplay()->getXDisplay(), getRootWindow(), getColormap(), getScreenNumber(), |
197 | image_control, fluxbox->getStyleFilename(), getRootCommand().c_str()); | 197 | image_control, fluxbox->getStyleFilename(), getRootCommand().c_str()); |
198 | 198 | ||
199 | #ifdef GNOME | 199 | #ifdef GNOME |
200 | /* create the GNOME window */ | 200 | /* create the GNOME window */ |
201 | Window gnome_win = XCreateSimpleWindow(getBaseDisplay()->getXDisplay(), | 201 | Window gnome_win = XCreateSimpleWindow(getBaseDisplay()->getXDisplay(), |
@@ -205,12 +205,13 @@ rootcommand("") | |||
205 | XChangeProperty(getBaseDisplay()->getXDisplay(), | 205 | XChangeProperty(getBaseDisplay()->getXDisplay(), |
206 | getRootWindow(), getBaseDisplay()->getGnomeSupportingWMCheckAtom(), | 206 | getRootWindow(), getBaseDisplay()->getGnomeSupportingWMCheckAtom(), |
207 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); | 207 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); |
208 | 208 | ||
209 | XChangeProperty(getBaseDisplay()->getXDisplay(), gnome_win, | 209 | XChangeProperty(getBaseDisplay()->getXDisplay(), gnome_win, |
210 | getBaseDisplay()->getGnomeSupportingWMCheckAtom(), | 210 | getBaseDisplay()->getGnomeSupportingWMCheckAtom(), |
211 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); | 211 | XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); |
212 | 212 | ||
213 | Atom gnomeatomlist[1] = {getBaseDisplay()->getGnomeWorkspaceAtom()}; | 213 | Atom gnomeatomlist[1] = {getBaseDisplay()->getGnomeWorkspaceAtom()}; |
214 | |||
214 | XChangeProperty(getBaseDisplay()->getXDisplay(), | 215 | XChangeProperty(getBaseDisplay()->getXDisplay(), |
215 | getRootWindow(), getBaseDisplay()->getGnomeProtAtom(), | 216 | getRootWindow(), getBaseDisplay()->getGnomeProtAtom(), |
216 | XA_ATOM, 32, PropModeReplace, | 217 | XA_ATOM, 32, PropModeReplace, |
@@ -1055,7 +1056,7 @@ void BScreen::InitMenu(void) { | |||
1055 | 0, 0, | 1056 | 0, 0, |
1056 | #endif // NLS | 1057 | #endif // NLS |
1057 | "xterm"), | 1058 | "xterm"), |
1058 | BScreen::Execute, | 1059 | BScreen::EXECUTE, |
1059 | i18n->getMessage( | 1060 | i18n->getMessage( |
1060 | #ifdef NLS | 1061 | #ifdef NLS |
1061 | ScreenSet, Screenxterm, | 1062 | ScreenSet, Screenxterm, |
@@ -1070,7 +1071,7 @@ void BScreen::InitMenu(void) { | |||
1070 | 0, 0, | 1071 | 0, 0, |
1071 | #endif // NLS | 1072 | #endif // NLS |
1072 | "Restart"), | 1073 | "Restart"), |
1073 | BScreen::Restart); | 1074 | BScreen::RESTART); |
1074 | rootmenu->insert(i18n->getMessage( | 1075 | rootmenu->insert(i18n->getMessage( |
1075 | #ifdef NLS | 1076 | #ifdef NLS |
1076 | ScreenSet, ScreenExit, | 1077 | ScreenSet, ScreenExit, |
@@ -1078,7 +1079,7 @@ void BScreen::InitMenu(void) { | |||
1078 | 0, 0, | 1079 | 0, 0, |
1079 | #endif // NLS | 1080 | #endif // NLS |
1080 | "Exit"), | 1081 | "Exit"), |
1081 | BScreen::Exit); | 1082 | BScreen::EXIT); |
1082 | } else | 1083 | } else |
1083 | fluxbox->saveMenuFilename(fluxbox->getMenuFilename()); | 1084 | fluxbox->saveMenuFilename(fluxbox->getMenuFilename()); |
1084 | } | 1085 | } |
@@ -1181,7 +1182,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1181 | continue; | 1182 | continue; |
1182 | } | 1183 | } |
1183 | 1184 | ||
1184 | menu->insert(label, BScreen::Execute, command); | 1185 | menu->insert(label, BScreen::EXECUTE, command); |
1185 | break; | 1186 | break; |
1186 | 1187 | ||
1187 | case 442: // exit | 1188 | case 442: // exit |
@@ -1198,7 +1199,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1198 | continue; | 1199 | continue; |
1199 | } | 1200 | } |
1200 | 1201 | ||
1201 | menu->insert(label, BScreen::Exit); | 1202 | menu->insert(label, BScreen::EXIT); |
1202 | break; | 1203 | break; |
1203 | 1204 | ||
1204 | case 561: // style | 1205 | case 561: // style |
@@ -1238,7 +1239,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1238 | *(style + command_length) = '\0'; | 1239 | *(style + command_length) = '\0'; |
1239 | } | 1240 | } |
1240 | 1241 | ||
1241 | menu->insert(label, BScreen::SetStyle, style); | 1242 | menu->insert(label, BScreen::SETSTYLE, style); |
1242 | } | 1243 | } |
1243 | 1244 | ||
1244 | break; | 1245 | break; |
@@ -1380,9 +1381,9 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1380 | } | 1381 | } |
1381 | 1382 | ||
1382 | if (*command) | 1383 | if (*command) |
1383 | menu->insert(label, BScreen::RestartOther, command); | 1384 | menu->insert(label, BScreen::RESTARTOTHER, command); |
1384 | else | 1385 | else |
1385 | menu->insert(label, BScreen::Restart); | 1386 | menu->insert(label, BScreen::RESTART); |
1386 | } | 1387 | } |
1387 | 1388 | ||
1388 | break; | 1389 | break; |
@@ -1403,7 +1404,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1403 | continue; | 1404 | continue; |
1404 | } | 1405 | } |
1405 | 1406 | ||
1406 | menu->insert(label, BScreen::Reconfigure); | 1407 | menu->insert(label, BScreen::RECONFIGURE); |
1407 | } | 1408 | } |
1408 | 1409 | ||
1409 | break; | 1410 | break; |
@@ -1488,7 +1489,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { | |||
1488 | strncpy(style + slen + 1, ls[n], nlen + 1); | 1489 | strncpy(style + slen + 1, ls[n], nlen + 1); |
1489 | 1490 | ||
1490 | if ((! stat(style, &statbuf)) && S_ISREG(statbuf.st_mode)) | 1491 | if ((! stat(style, &statbuf)) && S_ISREG(statbuf.st_mode)) |
1491 | stylesmenu->insert(ls[n], BScreen::SetStyle, style); | 1492 | stylesmenu->insert(ls[n], BScreen::SETSTYLE, style); |
1492 | 1493 | ||
1493 | delete [] ls[n]; | 1494 | delete [] ls[n]; |
1494 | } | 1495 | } |
diff --git a/src/Screen.hh b/src/Screen.hh index 92f1849..93825ff 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.hh,v 1.8 2002/01/10 12:49:15 fluxgen Exp $ | 25 | // $Id: Screen.hh,v 1.9 2002/01/11 10:20:00 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef _SCREEN_HH_ | 27 | #ifndef _SCREEN_HH_ |
28 | #define _SCREEN_HH_ | 28 | #define _SCREEN_HH_ |
@@ -270,13 +270,13 @@ public: | |||
270 | void updateNetizenWindowRaise(Window); | 270 | void updateNetizenWindowRaise(Window); |
271 | void updateNetizenWindowLower(Window); | 271 | void updateNetizenWindowLower(Window); |
272 | 272 | ||
273 | enum { RowSmartPlacement = 1, ColSmartPlacement, CascadePlacement, LeftRight, | 273 | enum { ROWSMARTPLACEMENT = 1, COLSMARTPLACEMENT, CASCADEPLACEMENT, LEFTRIGHT, |
274 | RightLeft, TopBottom, BottomTop }; | 274 | RIGHTLEFT, TOPBOTTOM, BOTTOMTOP }; |
275 | enum { LeftJustify = 1, RightJustify, CenterJustify }; | 275 | enum { LEFTJUSTIFY = 1, RIGHTJUSTIFY, CENTERJUSTIFY }; |
276 | enum { RoundBullet = 1, TriangleBullet, SquareBullet, NoBullet }; | 276 | enum { ROUNDBULLET = 1, TRIANGELBULLET, SQUAERBULLET, NOBULLET }; |
277 | enum { Restart = 1, RestartOther, Exit, Shutdown, Execute, Reconfigure, | 277 | enum { RESTART = 1, RESTARTOTHER, EXIT, SHUTDOWN, EXECUTE, RECONFIGURE, |
278 | WindowShade, WindowIconify, WindowMaximize, WindowClose, WindowRaise, | 278 | WINDOWSHADE, WINDOWICONIFY, WINDOWMAXIMIZE, WINDOWCLOSE, WINDOWRAISE, |
279 | WindowLower, WindowStick, WindowKill, SetStyle, WindowTab}; | 279 | WINDOWLOWER, WINDOWSTICK, WINDOWKILL, SETSTYLE, WINDOWTAB}; |
280 | 280 | ||
281 | private: | 281 | private: |
282 | Theme *theme; | 282 | Theme *theme; |
diff --git a/src/Slit.cc b/src/Slit.cc index a46ccba..c263ba9 100644 --- a/src/Slit.cc +++ b/src/Slit.cc | |||
@@ -255,7 +255,7 @@ void Slit::reconfigure(void) { | |||
255 | LinkedListIterator<SlitClient> it(clientList); | 255 | LinkedListIterator<SlitClient> it(clientList); |
256 | 256 | ||
257 | switch (screen->getSlitDirection()) { | 257 | switch (screen->getSlitDirection()) { |
258 | case Vertical: | 258 | case VERTICAL: |
259 | for (; it.current(); it++) { | 259 | for (; it.current(); it++) { |
260 | frame.height += it.current()->height + screen->getBevelWidth(); | 260 | frame.height += it.current()->height + screen->getBevelWidth(); |
261 | 261 | ||
@@ -275,7 +275,7 @@ void Slit::reconfigure(void) { | |||
275 | 275 | ||
276 | break; | 276 | break; |
277 | 277 | ||
278 | case Horizontal: | 278 | case HORIZONTAL: |
279 | for (; it.current(); it++) { | 279 | for (; it.current(); it++) { |
280 | frame.width += it.current()->width + screen->getBevelWidth(); | 280 | frame.width += it.current()->width + screen->getBevelWidth(); |
281 | 281 | ||
@@ -326,7 +326,7 @@ void Slit::reconfigure(void) { | |||
326 | it.reset(); | 326 | it.reset(); |
327 | 327 | ||
328 | switch (screen->getSlitDirection()) { | 328 | switch (screen->getSlitDirection()) { |
329 | case Vertical: | 329 | case VERTICAL: |
330 | x = 0; | 330 | x = 0; |
331 | y = screen->getBevelWidth(); | 331 | y = screen->getBevelWidth(); |
332 | 332 | ||
@@ -363,7 +363,7 @@ void Slit::reconfigure(void) { | |||
363 | 363 | ||
364 | break; | 364 | break; |
365 | 365 | ||
366 | case Horizontal: | 366 | case HORIZONTAL: |
367 | x = screen->getBevelWidth(); | 367 | x = screen->getBevelWidth(); |
368 | y = 0; | 368 | y = 0; |
369 | 369 | ||
@@ -408,10 +408,10 @@ void Slit::reconfigure(void) { | |||
408 | void Slit::reposition(void) { | 408 | void Slit::reposition(void) { |
409 | // place the slit in the appropriate place | 409 | // place the slit in the appropriate place |
410 | switch (screen->getSlitPlacement()) { | 410 | switch (screen->getSlitPlacement()) { |
411 | case TopLeft: | 411 | case TOPLEFT: |
412 | frame.x = 0; | 412 | frame.x = 0; |
413 | frame.y = 0; | 413 | frame.y = 0; |
414 | if (screen->getSlitDirection() == Vertical) { | 414 | if (screen->getSlitDirection() == VERTICAL) { |
415 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() | 415 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() |
416 | - frame.width; | 416 | - frame.width; |
417 | frame.y_hidden = 0; | 417 | frame.y_hidden = 0; |
@@ -422,7 +422,7 @@ void Slit::reposition(void) { | |||
422 | } | 422 | } |
423 | break; | 423 | break; |
424 | 424 | ||
425 | case CenterLeft: | 425 | case CENTERLEFT: |
426 | frame.x = 0; | 426 | frame.x = 0; |
427 | frame.y = (screen->getHeight() - frame.height) / 2; | 427 | frame.y = (screen->getHeight() - frame.height) / 2; |
428 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() | 428 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() |
@@ -430,10 +430,10 @@ void Slit::reposition(void) { | |||
430 | frame.y_hidden = frame.y; | 430 | frame.y_hidden = frame.y; |
431 | break; | 431 | break; |
432 | 432 | ||
433 | case BottomLeft: | 433 | case BOTTOMLEFT: |
434 | frame.x = 0; | 434 | frame.x = 0; |
435 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); | 435 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); |
436 | if (screen->getSlitDirection() == Vertical) { | 436 | if (screen->getSlitDirection() == VERTICAL) { |
437 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() | 437 | frame.x_hidden = screen->getBevelWidth() - screen->getBorderWidth() |
438 | - frame.width; | 438 | - frame.width; |
439 | frame.y_hidden = frame.y; | 439 | frame.y_hidden = frame.y; |
@@ -444,7 +444,7 @@ void Slit::reposition(void) { | |||
444 | } | 444 | } |
445 | break; | 445 | break; |
446 | 446 | ||
447 | case TopCenter: | 447 | case TOPCENTER: |
448 | frame.x = (screen->getWidth() - frame.width) / 2; | 448 | frame.x = (screen->getWidth() - frame.width) / 2; |
449 | frame.y = 0; | 449 | frame.y = 0; |
450 | frame.x_hidden = frame.x; | 450 | frame.x_hidden = frame.x; |
@@ -452,7 +452,7 @@ void Slit::reposition(void) { | |||
452 | - frame.height; | 452 | - frame.height; |
453 | break; | 453 | break; |
454 | 454 | ||
455 | case BottomCenter: | 455 | case BOTTOMCENTER: |
456 | frame.x = (screen->getWidth() - frame.width) / 2; | 456 | frame.x = (screen->getWidth() - frame.width) / 2; |
457 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); | 457 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); |
458 | frame.x_hidden = frame.x; | 458 | frame.x_hidden = frame.x; |
@@ -460,10 +460,10 @@ void Slit::reposition(void) { | |||
460 | - screen->getBorderWidth(); | 460 | - screen->getBorderWidth(); |
461 | break; | 461 | break; |
462 | 462 | ||
463 | case TopRight: | 463 | case TOPRIGHT: |
464 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); | 464 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); |
465 | frame.y = 0; | 465 | frame.y = 0; |
466 | if (screen->getSlitDirection() == Vertical) { | 466 | if (screen->getSlitDirection() == VERTICAL) { |
467 | frame.x_hidden = screen->getWidth() - screen->getBevelWidth() | 467 | frame.x_hidden = screen->getWidth() - screen->getBevelWidth() |
468 | - screen->getBorderWidth(); | 468 | - screen->getBorderWidth(); |
469 | frame.y_hidden = 0; | 469 | frame.y_hidden = 0; |
@@ -474,7 +474,7 @@ void Slit::reposition(void) { | |||
474 | } | 474 | } |
475 | break; | 475 | break; |
476 | 476 | ||
477 | case CenterRight: | 477 | case CENTERRIGHT: |
478 | default: | 478 | default: |
479 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); | 479 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); |
480 | frame.y = (screen->getHeight() - frame.height) / 2; | 480 | frame.y = (screen->getHeight() - frame.height) / 2; |
@@ -483,10 +483,10 @@ void Slit::reposition(void) { | |||
483 | frame.y_hidden = frame.y; | 483 | frame.y_hidden = frame.y; |
484 | break; | 484 | break; |
485 | 485 | ||
486 | case BottomRight: | 486 | case BOTTOMRIGHT: |
487 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); | 487 | frame.x = screen->getWidth() - frame.width - screen->getBorderWidth2x(); |
488 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); | 488 | frame.y = screen->getHeight() - frame.height - screen->getBorderWidth2x(); |
489 | if (screen->getSlitDirection() == Vertical) { | 489 | if (screen->getSlitDirection() == VERTICAL) { |
490 | frame.x_hidden = screen->getWidth() - screen->getBevelWidth() | 490 | frame.x_hidden = screen->getWidth() - screen->getBevelWidth() |
491 | - screen->getBorderWidth(); | 491 | - screen->getBorderWidth(); |
492 | frame.y_hidden = frame.y; | 492 | frame.y_hidden = frame.y; |
@@ -508,13 +508,13 @@ void Slit::reposition(void) { | |||
508 | tbar->getY() < frame.y + sh && tbar->getY() + th > frame.y) { | 508 | tbar->getY() < frame.y + sh && tbar->getY() + th > frame.y) { |
509 | if (frame.y < th) { | 509 | if (frame.y < th) { |
510 | frame.y += tbar->getExposedHeight(); | 510 | frame.y += tbar->getExposedHeight(); |
511 | if (screen->getSlitDirection() == Vertical) | 511 | if (screen->getSlitDirection() == VERTICAL) |
512 | frame.y_hidden += tbar->getExposedHeight(); | 512 | frame.y_hidden += tbar->getExposedHeight(); |
513 | else | 513 | else |
514 | frame.y_hidden = frame.y; | 514 | frame.y_hidden = frame.y; |
515 | } else { | 515 | } else { |
516 | frame.y -= tbar->getExposedHeight(); | 516 | frame.y -= tbar->getExposedHeight(); |
517 | if (screen->getSlitDirection() == Vertical) | 517 | if (screen->getSlitDirection() == VERTICAL) |
518 | frame.y_hidden -= tbar->getExposedHeight(); | 518 | frame.y_hidden -= tbar->getExposedHeight(); |
519 | else | 519 | else |
520 | frame.y_hidden = frame.y; | 520 | frame.y_hidden = frame.y; |
@@ -764,7 +764,7 @@ Slitmenu::Directionmenu::Directionmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
764 | 0, 0, | 764 | 0, 0, |
765 | #endif // NLS | 765 | #endif // NLS |
766 | "Horizontal"), | 766 | "Horizontal"), |
767 | Slit::Horizontal); | 767 | Slit::HORIZONTAL); |
768 | insert(i18n->getMessage( | 768 | insert(i18n->getMessage( |
769 | #ifdef NLS | 769 | #ifdef NLS |
770 | CommonSet, CommonDirectionVert, | 770 | CommonSet, CommonDirectionVert, |
@@ -772,11 +772,11 @@ Slitmenu::Directionmenu::Directionmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
772 | 0, 0, | 772 | 0, 0, |
773 | #endif // NLS | 773 | #endif // NLS |
774 | "Vertical"), | 774 | "Vertical"), |
775 | Slit::Vertical); | 775 | Slit::VERTICAL); |
776 | 776 | ||
777 | update(); | 777 | update(); |
778 | 778 | ||
779 | if (sm->slit->screen->getSlitDirection() == Slit::Horizontal) | 779 | if (sm->slit->screen->getSlitDirection() == Slit::HORIZONTAL) |
780 | setItemSelected(0, True); | 780 | setItemSelected(0, True); |
781 | else | 781 | else |
782 | setItemSelected(1, True); | 782 | setItemSelected(1, True); |
@@ -790,7 +790,7 @@ void Slitmenu::Directionmenu::itemSelected(int button, int index) { | |||
790 | 790 | ||
791 | slitmenu->slit->screen->saveSlitDirection(item->function()); | 791 | slitmenu->slit->screen->saveSlitDirection(item->function()); |
792 | 792 | ||
793 | if (item->function() == Slit::Horizontal) { | 793 | if (item->function() == Slit::HORIZONTAL) { |
794 | setItemSelected(0, True); | 794 | setItemSelected(0, True); |
795 | setItemSelected(1, False); | 795 | setItemSelected(1, False); |
796 | } else { | 796 | } else { |
@@ -825,7 +825,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
825 | 0, 0, | 825 | 0, 0, |
826 | #endif // NLS | 826 | #endif // NLS |
827 | "Top Left"), | 827 | "Top Left"), |
828 | Slit::TopLeft); | 828 | Slit::TOPLEFT); |
829 | insert(i18n->getMessage( | 829 | insert(i18n->getMessage( |
830 | #ifdef NLS | 830 | #ifdef NLS |
831 | CommonSet, CommonPlacementCenterLeft, | 831 | CommonSet, CommonPlacementCenterLeft, |
@@ -833,7 +833,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
833 | 0, 0, | 833 | 0, 0, |
834 | #endif // NLS | 834 | #endif // NLS |
835 | "Center Left"), | 835 | "Center Left"), |
836 | Slit::CenterLeft); | 836 | Slit::CENTERLEFT); |
837 | insert(i18n->getMessage( | 837 | insert(i18n->getMessage( |
838 | #ifdef NLS | 838 | #ifdef NLS |
839 | CommonSet, CommonPlacementBottomLeft, | 839 | CommonSet, CommonPlacementBottomLeft, |
@@ -841,7 +841,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
841 | 0, 0, | 841 | 0, 0, |
842 | #endif // NLS | 842 | #endif // NLS |
843 | "Bottom Left"), | 843 | "Bottom Left"), |
844 | Slit::BottomLeft); | 844 | Slit::BOTTOMLEFT); |
845 | insert(i18n->getMessage( | 845 | insert(i18n->getMessage( |
846 | #ifdef NLS | 846 | #ifdef NLS |
847 | CommonSet, CommonPlacementTopCenter, | 847 | CommonSet, CommonPlacementTopCenter, |
@@ -849,7 +849,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
849 | 0, 0, | 849 | 0, 0, |
850 | #endif // NLS | 850 | #endif // NLS |
851 | "Top Center"), | 851 | "Top Center"), |
852 | Slit::TopCenter); | 852 | Slit::TOPCENTER); |
853 | insert(""); | 853 | insert(""); |
854 | insert(i18n->getMessage( | 854 | insert(i18n->getMessage( |
855 | #ifdef NLS | 855 | #ifdef NLS |
@@ -858,7 +858,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
858 | 0, 0, | 858 | 0, 0, |
859 | #endif // NLS | 859 | #endif // NLS |
860 | "Bottom Center"), | 860 | "Bottom Center"), |
861 | Slit::BottomCenter); | 861 | Slit::BOTTOMCENTER); |
862 | insert(i18n->getMessage( | 862 | insert(i18n->getMessage( |
863 | #ifdef NLS | 863 | #ifdef NLS |
864 | CommonSet, CommonPlacementTopRight, | 864 | CommonSet, CommonPlacementTopRight, |
@@ -866,7 +866,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
866 | 0, 0, | 866 | 0, 0, |
867 | #endif // NLS | 867 | #endif // NLS |
868 | "Top Right"), | 868 | "Top Right"), |
869 | Slit::TopRight); | 869 | Slit::TOPRIGHT); |
870 | insert(i18n->getMessage( | 870 | insert(i18n->getMessage( |
871 | #ifdef NLS | 871 | #ifdef NLS |
872 | CommonSet, CommonPlacementCenterRight, | 872 | CommonSet, CommonPlacementCenterRight, |
@@ -874,7 +874,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
874 | 0, 0, | 874 | 0, 0, |
875 | #endif // NLS | 875 | #endif // NLS |
876 | "Center Right"), | 876 | "Center Right"), |
877 | Slit::CenterRight); | 877 | Slit::CENTERRIGHT); |
878 | insert(i18n->getMessage( | 878 | insert(i18n->getMessage( |
879 | #ifdef NLS | 879 | #ifdef NLS |
880 | CommonSet, CommonPlacementBottomRight, | 880 | CommonSet, CommonPlacementBottomRight, |
@@ -882,7 +882,7 @@ Slitmenu::Placementmenu::Placementmenu(Slitmenu *sm) : Basemenu(sm->slit->screen | |||
882 | 0, 0, | 882 | 0, 0, |
883 | #endif // NLS | 883 | #endif // NLS |
884 | "Bottom Right"), | 884 | "Bottom Right"), |
885 | Slit::BottomRight); | 885 | Slit::BOTTOMRIGHT); |
886 | 886 | ||
887 | update(); | 887 | update(); |
888 | } | 888 | } |
diff --git a/src/Slit.hh b/src/Slit.hh index cce1d97..f79dbd5 100644 --- a/src/Slit.hh +++ b/src/Slit.hh | |||
@@ -150,9 +150,9 @@ public: | |||
150 | 150 | ||
151 | virtual void timeout(void); | 151 | virtual void timeout(void); |
152 | 152 | ||
153 | enum { Vertical = 1, Horizontal }; | 153 | enum { VERTICAL = 1, HORIZONTAL }; |
154 | enum { TopLeft = 1, CenterLeft, BottomLeft, TopCenter, BottomCenter, | 154 | enum { TOPLEFT = 1, CENTERLEFT, BOTTOMLEFT, TOPCENTER, BOTTOMCENTER, |
155 | TopRight, CenterRight, BottomRight }; | 155 | TOPRIGHT, CENTERRIGHT, BOTTOMRIGHT }; |
156 | }; | 156 | }; |
157 | 157 | ||
158 | 158 | ||