diff --git a/build/jam/HaikuImage b/build/jam/HaikuImage index 18eff40674..5c55f29dab 100644 --- a/build/jam/HaikuImage +++ b/build/jam/HaikuImage @@ -71,7 +71,7 @@ SYSTEM_APPS = AboutSystem ActivityMonitor CharacterMap CodyCam DeskCalc DiskProb StyledEdit Terminal TextSearch TV Workspaces ; SYSTEM_PREFERENCES = Appearance Backgrounds CPUFrequency DataTranslations E-mail - FileTypes Fonts Keyboard Keymap Locale Media Menu Mouse Network Printers + FileTypes Fonts Keyboard Keymap Locale Media Mouse Network Printers Screen ScreenSaver Sounds Time Touchpad Tracker VirtualMemory ; SYSTEM_DEMOS = BSnow Chart Clock Cortex FontDemo diff --git a/src/preferences/Jamfile b/src/preferences/Jamfile index f9447ef363..d0502a8d0b 100644 --- a/src/preferences/Jamfile +++ b/src/preferences/Jamfile @@ -15,7 +15,6 @@ SubInclude HAIKU_TOP src preferences keymap ; SubInclude HAIKU_TOP src preferences locale ; SubInclude HAIKU_TOP src preferences mail ; SubInclude HAIKU_TOP src preferences media ; -SubInclude HAIKU_TOP src preferences menu ; SubInclude HAIKU_TOP src preferences mouse ; SubInclude HAIKU_TOP src preferences network ; SubInclude HAIKU_TOP src preferences print ; diff --git a/src/preferences/menu/AutoSettingsMenu.cpp b/src/preferences/menu/AutoSettingsMenu.cpp deleted file mode 100644 index 8aedb705a4..0000000000 --- a/src/preferences/menu/AutoSettingsMenu.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - - -#include "AutoSettingsMenu.h" -#include "MenuSettings.h" - - -AutoSettingsMenu::AutoSettingsMenu(const char *name, menu_layout layout) - : BMenu(name, layout) -{ -} - - -void -AutoSettingsMenu::AttachedToWindow() -{ - menu_info info; - MenuSettings::GetInstance()->Get(info); - - BFont font; - font.SetFamilyAndStyle(info.f_family, info.f_style); - font.SetSize(info.font_size); - SetFont(&font); - SetViewColor(info.background_color); - - BMenu::AttachedToWindow(); -} diff --git a/src/preferences/menu/AutoSettingsMenu.h b/src/preferences/menu/AutoSettingsMenu.h deleted file mode 100644 index b0fb115879..0000000000 --- a/src/preferences/menu/AutoSettingsMenu.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - -#ifndef AUTO_SETTINGS_MENU_H -#define AUTO_SETTINGS_MENU_H - - -#include - - -class AutoSettingsMenu : public BMenu { - public: - AutoSettingsMenu(const char* name, menu_layout layout); - - virtual void AttachedToWindow(); -}; - -#endif // AUTO_SETTINGS_MENU_H - diff --git a/src/preferences/menu/BitmapMenuItem.cpp b/src/preferences/menu/BitmapMenuItem.cpp deleted file mode 100644 index 09264f9638..0000000000 --- a/src/preferences/menu/BitmapMenuItem.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - - -#include "BitmapMenuItem.h" - -#include -#include - - -// BitmapMenuItem class definition -BitmapMenuItem::BitmapMenuItem(const char* name, BMessage* message, - BBitmap* bmp, char shortcut, uint32 modifiers) - : BMenuItem(name, message, shortcut, modifiers), - fBitmap(bmp), - fName(name) -{ -} - - -BitmapMenuItem::~BitmapMenuItem() -{ - delete fBitmap; -} - - -void -BitmapMenuItem::DrawContent() -{ - BMenu* menu = Menu(); - - // if we don't have a menu, get out... - if (!menu) - return; - - BRect itemFrame = Frame(); - - menu->MovePenTo(itemFrame.left + 38, itemFrame.top + 2); - BMenuItem::DrawContent(); - if (fBitmap != NULL) { - BRect bitmapFrame = fBitmap->Bounds(); - BRect dr(itemFrame.left + 14, itemFrame.top + 2, itemFrame.left + 14 + bitmapFrame.right, itemFrame.top + 17); - menu->SetDrawingMode(B_OP_OVER); - menu->DrawBitmap(fBitmap, bitmapFrame, dr); - menu->SetDrawingMode(B_OP_COPY); - } -} - - -void -BitmapMenuItem::GetContentSize(float *_width, float *_height) -{ - float width, height; - BMenuItem::GetContentSize(&width, &height); - - if (fBitmap != NULL) { - width += fBitmap->Bounds().Width(); - height = max_c(height, fBitmap->Bounds().Height()); - } - - if (_width != NULL) - *_width = width; - if (_height != NULL) - *_height = height; -} diff --git a/src/preferences/menu/BitmapMenuItem.h b/src/preferences/menu/BitmapMenuItem.h deleted file mode 100644 index 77a85f8c63..0000000000 --- a/src/preferences/menu/BitmapMenuItem.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - -#ifndef BITMAP_MENU_ITEM_H -#define BITMAP_MENU_ITEM_H - -#include -#include - -class BBitmap; -class BitmapMenuItem : public BMenuItem { - public: - BitmapMenuItem(const char* name, BMessage* message, BBitmap* bmp, - char shortcut = '\0', uint32 modifiers = 0); - ~BitmapMenuItem(); - virtual void DrawContent(); - - protected: - virtual void GetContentSize(float *width, float *height); - - private: - BBitmap* fBitmap; - BString fName; -}; - -#endif // BITMAP_MENU_ITEM_H diff --git a/src/preferences/menu/ColorWindow.cpp b/src/preferences/menu/ColorWindow.cpp deleted file mode 100644 index b9fe54c2e7..0000000000 --- a/src/preferences/menu/ColorWindow.cpp +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ - - -#include "ColorWindow.h" -#include "MenuSettings.h" -#include "msg.h" - -#include -#include -#include -#include - - -ColorWindow::ColorWindow(BMessenger owner) - : BWindow(BRect(150, 150, 350, 200), "Menu Color Scheme", B_TITLED_WINDOW, - B_NOT_ZOOMABLE | B_NOT_RESIZABLE), - fOwner(owner) -{ - fCurrentColor = MenuSettings::GetInstance()->BackgroundColor(); - fPreviousColor = MenuSettings::GetInstance()->PreviousBackgroundColor(); - fDefaultColor = MenuSettings::GetInstance()->DefaultBackgroundColor(); - - BView *topView = new BView(Bounds(), "topView", B_FOLLOW_ALL_SIDES, 0); - topView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - AddChild(topView); - - fColorControl = new BColorControl(BPoint(10, 10), B_CELLS_32x8, - 9, "COLOR", new BMessage(MENU_COLOR), true); - fColorControl->SetValue(fCurrentColor); - fColorControl->ResizeToPreferred(); - topView->AddChild(fColorControl); - - // Create the buttons and add them to the view - BRect rect = fColorControl->Frame(); - rect.top = rect.bottom + 8; - rect.bottom = rect.top + 10; - fDefaultButton = new BButton(rect, "Default", "Default", - new BMessage(MENU_COLOR_DEFAULT), B_FOLLOW_LEFT | B_FOLLOW_TOP, - B_WILL_DRAW | B_NAVIGABLE); - fDefaultButton->ResizeToPreferred(); - fDefaultButton->SetEnabled(fCurrentColor != fDefaultColor); - topView->AddChild(fDefaultButton); - - rect.OffsetBy(fDefaultButton->Bounds().Width() + 10, 0); - fRevertButton = new BButton(rect, "Revert", "Revert", - new BMessage(MENU_REVERT), B_FOLLOW_LEFT | B_FOLLOW_TOP, - B_WILL_DRAW | B_NAVIGABLE); - fRevertButton->ResizeToPreferred(); - fRevertButton->SetEnabled(fCurrentColor != fPreviousColor); - topView->AddChild(fRevertButton); - - ResizeTo(fColorControl->Bounds().Width() + 20, fRevertButton->Frame().bottom + 10); -} - - -void -ColorWindow::Quit() -{ - fOwner.SendMessage(COLOR_SCHEME_CLOSED_MSG); - BWindow::Quit(); -} - - -void -ColorWindow::_UpdateAndPost() -{ - fCurrentColor = fColorControl->ValueAsColor(); - - fDefaultButton->SetEnabled(fCurrentColor != fDefaultColor); - fRevertButton->SetEnabled(fCurrentColor != fPreviousColor); - - menu_info info; - get_menu_info(&info); - info.background_color = fCurrentColor; - set_menu_info(&info); - - be_app->PostMessage(MENU_COLOR); -} - - -void -ColorWindow::MessageReceived(BMessage *msg) -{ - switch (msg->what) { - case MENU_REVERT: - fColorControl->SetValue(fPreviousColor); - _UpdateAndPost(); - break; - - case MENU_COLOR_DEFAULT: - fColorControl->SetValue(fDefaultColor); - _UpdateAndPost(); - break; - - case MENU_COLOR: - _UpdateAndPost(); - break; - - default: - BWindow::MessageReceived(msg); - break; - } -} diff --git a/src/preferences/menu/ColorWindow.h b/src/preferences/menu/ColorWindow.h deleted file mode 100644 index 872e3e773f..0000000000 --- a/src/preferences/menu/ColorWindow.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ - -#ifndef COLOR_WINDOW_H -#define COLOR_WINDOW_H - - -#include -#include -#include - -class BColorControl; -class BButton; - - -class ColorWindow : public BWindow { - public: - ColorWindow(BMessenger owner); - - virtual void Quit(); - virtual void MessageReceived(BMessage* message); - - private: - void _UpdateAndPost(); - - private: - BColorControl* fColorControl; - BButton* fDefaultButton; - BButton* fRevertButton; - rgb_color fCurrentColor; - rgb_color fPreviousColor; - rgb_color fDefaultColor; - BMessenger fOwner; -}; - -#endif // COLOR_WINDOW_H diff --git a/src/preferences/menu/FontMenu.cpp b/src/preferences/menu/FontMenu.cpp deleted file mode 100644 index dde7f0d231..0000000000 --- a/src/preferences/menu/FontMenu.cpp +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - - -#include "FontMenu.h" -#include "MenuSettings.h" -#include "msg.h" - -#include -#include - - -FontMenu::FontMenu() - : AutoSettingsMenu("Font", B_ITEMS_IN_COLUMN) -{ - SetRadioMode(true); - GetFonts(); -} - - -void -FontMenu::AttachedToWindow() -{ - AutoSettingsMenu::AttachedToWindow(); - - BFont font; - GetFont(&font); - - // font style menus - for (int i = 0; i < CountItems(); i++) - ItemAt(i)->Submenu()->SetFont(&font); - - ClearAllMarkedItems(); - menu_info info; - MenuSettings::GetInstance()->Get(info); - PlaceCheckMarkOnFont(info.f_family, info.f_style); -} - - -void -FontMenu::GetFonts() -{ - int32 numFamilies = count_font_families(); - for (int32 i = 0; i < numFamilies; i++) { - font_family family; - uint32 flags; - if (get_font_family(i, &family, &flags) == B_OK) { - BMenu *fontStyleMenu = new BMenu(family, B_ITEMS_IN_COLUMN); - fontStyleMenu->SetRadioMode(true); - int32 numStyles = count_font_styles(family); - for (int32 j = 0; j < numStyles; j++) { - font_style style; - if (get_font_style(family, j, &style, &flags) == B_OK) { - BMessage *msg = new BMessage(MENU_FONT_STYLE); - msg->AddString("family", family); - msg->AddString("style", style); - BMenuItem *fontStyleItem = new BMenuItem(style, msg); - fontStyleMenu->AddItem(fontStyleItem); - } - } - - BMessage *msg = new BMessage(MENU_FONT_FAMILY); - msg->AddString("family", family); - - // if font family selected, we need to change style to - // first style - font_style style; - if (get_font_style(family, 0, &style, &flags) == B_OK) - msg->AddString("style", style); - BMenuItem *fontFamily = new BMenuItem(fontStyleMenu, msg); - AddItem(fontFamily); - } - } -} - - - - -status_t -FontMenu::PlaceCheckMarkOnFont(font_family family, font_style style) -{ - BMenuItem *fontFamilyItem = FindItem(family); - if (fontFamilyItem != NULL && family != NULL) { - fontFamilyItem->SetMarked(true); - BMenu *styleMenu = fontFamilyItem->Submenu(); - - if (styleMenu != NULL && style != NULL) { - BMenuItem *fontStyleItem = styleMenu->FindItem(style); - if (fontStyleItem != NULL) - fontStyleItem->SetMarked(true); - - } else - return B_ERROR; - } else - return B_ERROR; - - return B_OK; -} - - -void -FontMenu::ClearAllMarkedItems() -{ - // we need to clear all menuitems and submenuitems - for (int i = 0; i < CountItems(); i++) { - ItemAt(i)->SetMarked(false); - - BMenu *submenu = ItemAt(i)->Submenu(); - for (int j = 0; j < submenu->CountItems(); j++) { - submenu->ItemAt(j)->SetMarked(false); - } - } -} diff --git a/src/preferences/menu/FontMenu.h b/src/preferences/menu/FontMenu.h deleted file mode 100644 index 688203a958..0000000000 --- a/src/preferences/menu/FontMenu.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - */ -#ifndef FONT_MENU_H -#define FONT_MENU_H - - -#include "AutoSettingsMenu.h" - - -class FontSizeMenu : public AutoSettingsMenu { - public: - FontSizeMenu(); - virtual void AttachedToWindow(); -}; - - -class FontMenu : public AutoSettingsMenu { - public: - FontMenu(); - - virtual void AttachedToWindow(); - void GetFonts(); - - status_t PlaceCheckMarkOnFont(font_family family, font_style style); - void ClearAllMarkedItems(); -}; - -#endif // FONT_MENU_H diff --git a/src/preferences/menu/FontSizeMenu.cpp b/src/preferences/menu/FontSizeMenu.cpp deleted file mode 100644 index e8df3d8e79..0000000000 --- a/src/preferences/menu/FontSizeMenu.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - - -#include "FontMenu.h" -#include "MenuSettings.h" -#include "msg.h" - -#include -#include -#include -#include - - -FontSizeMenu::FontSizeMenu() - :AutoSettingsMenu("Font Size", B_ITEMS_IN_COLUMN) -{ - BMessage *msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 9); - BMenuItem *item = new BMenuItem("9", msg, 0, 0); - AddItem(item); - - msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 10); - item = new BMenuItem("10", msg, 0, 0); - AddItem(item); - - msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 11); - item = new BMenuItem("11", msg, 0, 0); - AddItem(item); - - msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 12); - item = new BMenuItem("12", msg, 0, 0); - AddItem(item); - - msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 14); - item = new BMenuItem("14", msg, 0, 0); - AddItem(item); - - msg = new BMessage(MENU_FONT_SIZE); - msg->AddFloat("size", 18); - item = new BMenuItem("18", msg, 0, 0); - AddItem(item); - - SetRadioMode(true); -} - - -void -FontSizeMenu::AttachedToWindow() -{ - AutoSettingsMenu::AttachedToWindow(); - - // Mark the menuitem with the current font size - menu_info info; - MenuSettings::GetInstance()->Get(info); - BString name; - name << (int)info.font_size; - BMenuItem *item = FindItem(name.String()); - if (item != NULL) - item->SetMarked(true); - -} - diff --git a/src/preferences/menu/Jamfile b/src/preferences/menu/Jamfile deleted file mode 100644 index 9a7c974650..0000000000 --- a/src/preferences/menu/Jamfile +++ /dev/null @@ -1,18 +0,0 @@ -SubDir HAIKU_TOP src preferences menu ; - -SetSubDirSupportedPlatformsBeOSCompatible ; - -Preference Menu : - AutoSettingsMenu.cpp - BitmapMenuItem.cpp - ColorWindow.cpp - FontMenu.cpp - FontSizeMenu.cpp - MenuApp.cpp - MenuBar.cpp - MenuSettings.cpp - MenuWindow.cpp - : be translation - : Menu.rdef - ; - diff --git a/src/preferences/menu/Menu.rdef b/src/preferences/menu/Menu.rdef deleted file mode 100644 index e38e62ac2c..0000000000 --- a/src/preferences/menu/Menu.rdef +++ /dev/null @@ -1,648 +0,0 @@ - -resource app_signature "application/x-vnd.Haiku-Menu"; - -resource app_flags B_SINGLE_LAUNCH; - -resource app_version { - major = 1, - middle = 0, - minor = 0, - - /* 0 = development 1 = alpha 2 = beta - 3 = gamma 4 = golden master 5 = final */ - variety = 2, - - internal = 0, - - short_info = "Menu", - long_info = "Menu ©2002-2007 Haiku" -}; - -resource(1, "BEOS:FILE_TYPES") message; - -#ifdef HAIKU_TARGET_PLATFORM_HAIKU - -resource vector_icon { - $"6E636966060501040174020006033A2EBFBCDD943FBCF33CD8E2401A3B485438" - $"00F6D1772AFFDC89FFE3B04302000602371E52BAB3FA3FD7E43C378C43AAE547" - $"D3D100C57930FFAE5D0E03572C0203D705050D0605AE02476054534C555C5160" - $"514C48435E0607BE2E425E4A56C31BC9744E50C9EBBBADC81BBFA9CAC0B9D75E" - $"2E3C262E42BB81BBD1B675C3F822500606BE0F432B3D2A3F293B2B39373A3538" - $"39333F3A3739393B353E2C3D2D3F2B0606BE0F512F5832C91CB966C983BAF150" - $"3DC672BDBFC5CDBF5C4C494F3CC567BEF6C60CBD595532C813BAB2C828B9A506" - $"08EEEE2C4D274E274C27503554415A3E5A455A4355405843583D5835542B4F2D" - $"51294D080243314C3408023C384C3E08023E3C463F0802364248490802384642" - $"4A08022F4945520802344E3C520607BA39472FC43BB96C4F2D502F4E2B4BB8D3" - $"2B492E472BC340B706452C080A010100000A0001011001178400040A02010100" - $"0A0303020304000A04040506080A1815FF01178120040A040307090B1815FF01" - $"178120040A040405080A0618001501178300040A05010C00" -}; - -#else // HAIKU_TARGET_PLATFORM_HAIKU - -resource large_icon { - $"FFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F3F0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B3F3F0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B1C1B3F3F0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B1C1B1C1C3F3F0000FFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B00001C1B1C1C3F3F0000FFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF0017171C1C00001B1C1B1C3F3F0000FFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F3F17171C1C00001B1C1B1C3F3F0000FFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B3F3F17171C1C00001B1C1C1C3F3F0000FFFFFFFFFFFF" - $"FFFFFFFFFFFFFF003F1B1C1B3F3F17171C1C00001B1C1B1C3F3F0000FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B00001C1B3F3F17171C1C1B1C1B1C1C1B1800FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B1C1B00001C1C3F3F17171C1C1B001C1B1800FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B1C007B7B000F1B1C3F3F17171C1C001B1800FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B0000DA7B7B001C001C1B3F3F17171C1C1700FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B002B2BDA7B001C1C1B1C1B1C3F3F17171800FFFFFFFF" - $"FFFFFFFFFFFFFF003F1B002B2F2F00001C1C1B1C1B1C1C1B3F3F1700FFFFFFFF" - $"FFFFFFFFFFFFFF003F002B2CEB2F001B00001C1B1C1C1B001C1C1700FFFFFFFF" - $"FFFFFFFFFFFFFF003F002B2F2F001B1C1C1B00001C1B1C1C001B1800FFFFFFFF" - $"FFFFFFFFFFFFFF00002B2CEB2F0000001B1C1B1C1C1B1C1C1B1C1700FFFFFFFF" - $"FFFF000000FFFF00002B2F2F001B1C1C00001B1C1B1C1C001B1C1700FFFFFFFF" - $"FF007B7B7B00FF002B2CEB2F00001B1C1B1C00001C1B1C1C001B1800FFFFFFFF" - $"007B7B7BDA00FF002B2F2F001B1C00001C1B1C1B1C1C1B1C1C1B1800FFFFFFFF" - $"002B2CDA7B7B002B2CEB2F001B1C1C1B00001C1B1C1C1B001C1C1700FFFFFFFF" - $"FF002B2CDA7B2B2CEB2F000017171C1C1B1C00001C1B1C1B001C1700FFFFFFFF" - $"FF002B2CDA7B2B2CEB2F00FF000017171A1B1C1C1B1C1C1B1C1B1800FFFFFFFF" - $"FFFF002B2C2B2B2F2F00FFFFFFFF000017171A1B1C1C1B001C1C1700FFFFFFFF" - $"FFFF002B2C2B2B2F2F00FFFFFFFFFFFF000017171C1C1B1C001B1800FFFFFFFF" - $"FFFFFF002B2CEB2F00FFFFFFFFFFFFFFFFFF000017171C1C1B1C1700FFFFFFFF" - $"FFFFFF002B2CEB2F00FFFFFFFFFFFFFFFFFFFFFF000017171C1C1700FFFFFFFF" - $"FFFFFFFF002B2F000E0F0F0F0F0F0F0F0E0FFFFFFFFF0000171718000F0EFFFF" - $"FFFFFFFF0000000E0F0F0F0F0F0F0F0E0F0FFFFFFFFFFFFF000017000F0F0F0E" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000E0F0F0F" -}; - -resource mini_icon { - $"FFFFFF000000FFFFFFFFFFFFFFFFFFFF" - $"FFFFFF003F3F0000FFFFFFFFFFFFFFFF" - $"FFFFFF003F1B3F3F0000FFFFFFFFFFFF" - $"FFFFFF003F1B1C1B3F3F0000FFFFFFFF" - $"FFFFFF003F1B00001C1B3F3F0000FFFF" - $"FFFFFF003F1B1C1B001C1C1B1800FFFF" - $"FFFFFF003F1B001C1B1C001C1700FFFF" - $"FFFFFF003F007B001B1C1B1C1700FFFF" - $"FFFFFF003F002F001B1C001B1800FFFF" - $"FFFFFF00002F001B1C1B1C1C1700FFFF" - $"FF00FF00002F001B1C1B001C1700FFFF" - $"002B00002F0017171C1C1B1C1700FFFF" - $"002B7B2CEB00000017171C1C1700FFFF" - $"FF002B2F00FFFFFF000017171800FFFF" - $"FF002B2F00FFFFFFFFFF000017000FFF" - $"FFFF00000E0F0F0F0FFFFFFF00000E0F" -}; - -#endif // HAIKU_TARGET_PLATFORM_HAIKU - -resource(128, "CTL") array { - $"424D760400000000000036000000280000001100000010000000010020000000" - $"000040040000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700969696FF969696FF969696FF969696FF969696FF969696FF969696FF9696" - $"96FF969696FF969696FF969696FF969696FF969696FF969696FF969696FF9696" - $"96FF969696FFFFFFFFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAF" - $"AFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAF" - $"AFFFAFAFAFFF969696FFFFFFFFFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFAFAFAFFF969696FFFFFFFFFFDBDBDBFF969696FF000000FF0000" - $"00FF969696FFDBDBDBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFF000000FF0000" - $"00FF000000FFDBDBDBFFAFAFAFFF969696FFFFFFFFFFDBDBDBFF000000FFC3C3" - $"C3FFC3C3C3FF000000FFDBDBDBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFF0000" - $"00FFDBDBDBFFDBDBDBFFDBDBDBFFAFAFAFFF969696FFFFFFFFFFDBDBDBFF0000" - $"00FFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFF000000FFDBDBDBFFDBDB" - $"DBFF000000FFDBDBDBFFDBDBDBFFDBDBDBFFAFAFAFFF969696FFFFFFFFFFDBDB" - $"DBFF000000FFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFF000000FFDBDB" - $"DBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFFDBDBDBFFAFAFAFFF969696FFFFFF" - $"FFFFDBDBDBFF000000FFC3C3C3FFC3C3C3FF000000FFDBDBDBFF000000FF0000" - $"00FF000000FFDBDBDBFF000000FFDBDBDBFFDBDBDBFFDBDBDBFFAFAFAFFF9696" - $"96FFFFFFFFFFDBDBDBFF969696FF000000FF000000FF969696FFDBDBDBFFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFAFAF" - $"AFFF969696FFFFFFFFFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFAFAFAFFF969696FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFF969696FF777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700" -}; - -resource(129, "ALT") array { - $"424D760400000000000036000000280000001100000010000000010020000000" - $"000040040000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77008C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C" - $"8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C8CFF8C8C" - $"8CFF8C8C8CFFFFFFFFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAF" - $"AFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAFAFFFAFAF" - $"AFFFAFAFAFFF8C8C8CFFFFFFFFFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFAFAFAFFF8C8C8CFFFFFFFFFFDBDBDBFFDBDBDBFF000000FFDBDB" - $"DBFFDBDBDBFF000000FFDBDBDBFF000000FF000000FF000000FFDBDBDBFF0000" - $"00FFDBDBDBFFDBDBDBFFAFAFAFFF8C8C8CFFFFFFFFFFDBDBDBFFDBDBDBFF0000" - $"00FFDBDBDBFFDBDBDBFF000000FFDBDBDBFF000000FFDBDBDBFFDBDBDBFFDBDB" - $"DBFF000000FFDBDBDBFFDBDBDBFFAFAFAFFF8C8C8CFFFFFFFFFFDBDBDBFFDBDB" - $"DBFF000000FF000000FF000000FF000000FFDBDBDBFF000000FFDBDBDBFFDBDB" - $"DBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFFAFAFAFFF8C8C8CFFFFFFFFFFDBDB" - $"DBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFF000000FFDBDBDBFF000000FFDBDB" - $"DBFFDBDBDBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFFAFAFAFFF8C8C8CFFFFFF" - $"FFFFDBDBDBFFDBDBDBFF000000FFDBDBDBFFDBDBDBFF000000FFDBDBDBFF0000" - $"00FFDBDBDBFFDBDBDBFF000000FF000000FF000000FFDBDBDBFFAFAFAFFF8C8C" - $"8CFFFFFFFFFFDBDBDBFFDBDBDBFFA0A0A0FF000000FF000000FFA0A0A0FFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFAFAF" - $"AFFF8C8C8CFFFFFFFFFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDBDBFFDBDB" - $"DBFFAFAFAFFF8C8C8CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFF8C8C8CFF777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700" -}; - -resource(130, "SEP0") array { - $"424D361200000000000036000000280000004800000010000000010020000000" - $"000000120000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700FFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFF77747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700" -}; - -resource(131, "SEP1") array { - $"424D361200000000000036000000280000004800000010000000010020000000" - $"000000120000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700FFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700BEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFF7774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700" -}; - -resource(132, "SEP2") array { - $"424D361200000000000036000000280000004800000010000000010020000000" - $"000000120000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" - $"FFFFFFFFFFFFFFFFFFFF77747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"770077747700777477007774770077747700777477007774770077747700BEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFF777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700BEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBE" - $"BEFFBEBEBEFFBEBEBEFFBEBEBEFFBEBEBEFF7774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700" -}; - -resource(133, "CHECK") array { - $"424DDA0200000000000036000000280000000D0000000D000000010020000000" - $"0000A4020000130B0000130B0000000000000000000077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700777477006969" - $"69FFAFAFAFFFAFAFAFFF77747700777477007774770077747700777477007774" - $"7700777477007774770077747700696969FF696969FF696969FFAFAFAFFF7774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700696969FF696969FF696969FFAFAFAFFFAFAFAFFF77747700777477007774" - $"770077747700777477007774770077747700696969FF696969FF777477006969" - $"69FF696969FFAFAFAFFF77747700777477007774770077747700777477007774" - $"770077747700696969FF696969FF77747700696969FF696969FFAFAFAFFFAFAF" - $"AFFF7774770077747700777477007774770077747700696969FF696969FF7774" - $"77007774770077747700696969FF696969FFAFAFAFFF77747700777477007774" - $"77007774770077747700696969FF696969FF7774770077747700777477006969" - $"69FF696969FFAFAFAFFFAFAFAFFF777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700696969FF696969FFAFAF" - $"AFFF777477007774770077747700777477007774770077747700777477007774" - $"77007774770077747700696969FF696969FFAFAFAFFFAFAFAFFF777477007774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700696969FF696969FFAFAFAFFF777477007774770077747700777477007774" - $"77007774770077747700777477007774770077747700696969FF696969FF7774" - $"7700777477007774770077747700777477007774770077747700777477007774" - $"7700777477007774770077747700777477007774770077747700" -}; diff --git a/src/preferences/menu/MenuApp.cpp b/src/preferences/menu/MenuApp.cpp deleted file mode 100644 index dc2785185d..0000000000 --- a/src/preferences/menu/MenuApp.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ - - -#include "MenuApp.h" -#include "MenuWindow.h" -#include "msg.h" - - -MenuApp::MenuApp() - : BApplication("application/x-vnd.Haiku-Menu") -{ - fMenuWindow = new MenuWindow(BRect(100, 100, 400, 300)); - fMenuWindow->Show(); -} - - -void -MenuApp::MessageReceived(BMessage *msg) -{ - switch (msg->what) { - case UPDATE_WINDOW: - case CLICK_OPEN_MSG: - case ALLWAYS_TRIGGERS_MSG: - case CTL_MARKED_MSG: - case ALT_MARKED_MSG: - case COLOR_SCHEME_OPEN_MSG: - case MENU_COLOR: - fMenuWindow->PostMessage(msg); - break; - - default: - BApplication::MessageReceived(msg); - break; - } -} - - -// #pragma mark - - - -int -main(int, char**) -{ - MenuApp app; - app.Run(); - - return 0; -} diff --git a/src/preferences/menu/MenuApp.h b/src/preferences/menu/MenuApp.h deleted file mode 100644 index 7392bcb298..0000000000 --- a/src/preferences/menu/MenuApp.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ -#ifndef MENU_APP_H -#define MENU_APP_H - - -#include - -class MenuWindow; - - -class MenuApp : public BApplication { - public: - MenuApp(); - - virtual void MessageReceived(BMessage* msg); - - private: - MenuWindow* fMenuWindow; -}; - -#endif // MENU_APP_H diff --git a/src/preferences/menu/MenuBar.cpp b/src/preferences/menu/MenuBar.cpp deleted file mode 100644 index f1106b0c60..0000000000 --- a/src/preferences/menu/MenuBar.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ - - -#include "BitmapMenuItem.h" -#include "FontMenu.h" -#include "MenuBar.h" -#include "MenuSettings.h" -#include "msg.h" - -#include -#include -#include -#include - - -MenuBar::MenuBar() - : BMenuBar(BRect(40, 10, 10, 10), "menu", 0, - B_ITEMS_IN_COLUMN, true) -{ - _BuildMenu(); - SetItemMargins(14.0, 2.0, 20.0, 0.0); -} - - -void -MenuBar::AttachedToWindow() -{ - BMenuBar::AttachedToWindow(); - SetTargetForItems(Window()); -} - - -void -MenuBar::_BuildMenu() -{ - // font and font size menus - BMenu* fontMenu = new FontMenu(); - BMenu* fontSizeMenu = new FontSizeMenu(); - - // create the menu items - fAlwaysShowTriggersItem = new BMenuItem("Always Show Triggers", - new BMessage(ALLWAYS_TRIGGERS_MSG), 0, 0); - fControlAsShortcutItem = new BitmapMenuItem("as Shortcut Key", - new BMessage(CTL_MARKED_MSG), BTranslationUtils::GetBitmap(B_RAW_TYPE, "CTL")); - fAltAsShortcutItem = new BitmapMenuItem("as Shortcut Key", - new BMessage(ALT_MARKED_MSG), BTranslationUtils::GetBitmap(B_RAW_TYPE, "ALT")); - - // color menu - BMenuItem* colorSchemeItem = new BMenuItem("Color Scheme" B_UTF8_ELLIPSIS, - new BMessage(COLOR_SCHEME_OPEN_MSG), 0, 0); - - // Add items to menubar - AddItem(fontMenu, 0); - AddItem(fontSizeMenu, 1); - - AddSeparatorItem(); - - AddItem(colorSchemeItem); - - AddSeparatorItem(); - - AddItem(fAlwaysShowTriggersItem); - - AddSeparatorItem(); - - AddItem(fControlAsShortcutItem); - AddItem(fAltAsShortcutItem); -} - - -void -MenuBar::Update() -{ - menu_info info; - MenuSettings::GetInstance()->Get(info); - - fAlwaysShowTriggersItem->SetMarked(info.triggers_always_shown); - - bool altAsShortcut = MenuSettings::GetInstance()->AltAsShortcut(); - fAltAsShortcutItem->SetMarked(altAsShortcut); - fControlAsShortcutItem->SetMarked(!altAsShortcut); - - BFont font; - if (LockLooper()) { - font.SetFamilyAndStyle(info.f_family, info.f_style); - font.SetSize(info.font_size); - SetFont(&font); - SetViewColor(info.background_color); - SetLowColor(ViewColor()); - - // force the menu to redraw - InvalidateLayout(); - Invalidate(); - UnlockLooper(); - } -} - - -void -MenuBar::FrameResized(float width, float height) -{ - Window()->ResizeTo(width + 80, height + 55); - Window()->PostMessage(UPDATE_WINDOW); - BMenuBar::FrameResized(width, height); -} diff --git a/src/preferences/menu/MenuBar.h b/src/preferences/menu/MenuBar.h deleted file mode 100644 index a4889b3f75..0000000000 --- a/src/preferences/menu/MenuBar.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ -#ifndef MENU_BAR_H -#define MENU_BAR_H - - -#include - -class BMenuItem; -class MenuBar : public BMenuBar { - public: - MenuBar(); - - virtual void AttachedToWindow(); - - void Update(); - virtual void FrameResized(float width, float height); - - private: - void _BuildMenu(); - - BMenuItem* fAlwaysShowTriggersItem; - BMenuItem* fControlAsShortcutItem; - BMenuItem* fAltAsShortcutItem; -}; - -#endif // MENU_BAR_H diff --git a/src/preferences/menu/MenuSettings.cpp b/src/preferences/menu/MenuSettings.cpp deleted file mode 100644 index 8cf93dbdd1..0000000000 --- a/src/preferences/menu/MenuSettings.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - - -#include "MenuSettings.h" -#include -#include -#include -#include -#include - - -MenuSettings::MenuSettings() -{ - // the default settings. possibly a call to the app_server - // would provide and execute this information, as it does - // for get_menu_info and set_menu_info (or is this information - // coming from libbe.so? or else where?). - fDefaultSettings.font_size = 12; - sprintf(fDefaultSettings.f_family,"%s","Bitstream Vera Sans"); - sprintf(fDefaultSettings.f_style,"%s","Roman"); - rgb_color color; - color.red = 216; - color.blue = 216; - color.green = 216; - color.alpha = 255; - fDefaultSettings.background_color = color;//ui_color(B_MENU_BACKGROUND_COLOR); - fDefaultSettings.separator = 0; - fDefaultSettings.click_to_open = true; - fDefaultSettings.triggers_always_shown = false; - fDefaultAltAsShortcut = true; - - get_menu_info(&fPreviousSettings); - fPreviousAltAsShortcut = AltAsShortcut(); -} - - -MenuSettings::~MenuSettings() -{ -} - - -/* static */ -MenuSettings * -MenuSettings::GetInstance() -{ - static MenuSettings *settings = NULL; - if (settings == NULL) - settings = new MenuSettings(); - return settings; -} - - -void -MenuSettings::Get(menu_info &info) const -{ - get_menu_info(&info); -} - - -void -MenuSettings::Set(menu_info &info) -{ - set_menu_info(&info); -} - - -bool -MenuSettings::AltAsShortcut() const -{ - key_map *keys; - char* chars; - - get_key_map(&keys, &chars); - - bool altAsShortcut = (keys->left_command_key == 0x5d) - && (keys->left_control_key == 0x5c); - - free(chars); - free(keys); - - return altAsShortcut; -} - - -void -MenuSettings::SetAltAsShortcut(bool altAsShortcut) -{ - if (altAsShortcut) { - // This might not be the same for all keyboards - set_modifier_key(B_LEFT_COMMAND_KEY, 0x5d); - set_modifier_key(B_LEFT_CONTROL_KEY, 0x5c); - } else { - // This might not be the same for all keyboards - set_modifier_key(B_LEFT_COMMAND_KEY, 0x5c); - set_modifier_key(B_LEFT_CONTROL_KEY, 0x5d); - } - be_roster->Broadcast(new BMessage(B_MODIFIERS_CHANGED)); -} - - -void -MenuSettings::Revert() -{ - set_menu_info(&fPreviousSettings); - SetAltAsShortcut(fPreviousAltAsShortcut); -} - - -void -MenuSettings::ResetToDefaults() -{ - set_menu_info(&fDefaultSettings); - SetAltAsShortcut(fDefaultAltAsShortcut); -} - - -rgb_color -MenuSettings::BackgroundColor() const -{ - menu_info info; - get_menu_info(&info); - return info.background_color; -} - - -rgb_color -MenuSettings::PreviousBackgroundColor() const -{ - return fPreviousSettings.background_color; -} - - -rgb_color -MenuSettings::DefaultBackgroundColor() const -{ - return fDefaultSettings.background_color; -} - - -bool -MenuSettings::IsDefaultable() -{ - menu_info info; - get_menu_info(&info); - - return info.font_size != fDefaultSettings.font_size - || strcmp(info.f_family, fDefaultSettings.f_family) != 0 - || strcmp(info.f_style, fDefaultSettings.f_style) != 0 - || info.background_color != fDefaultSettings.background_color - || info.separator != fDefaultSettings.separator - || info.click_to_open != fDefaultSettings.click_to_open - || info.triggers_always_shown != fDefaultSettings.triggers_always_shown - || AltAsShortcut() != fDefaultAltAsShortcut; -} - - -bool -MenuSettings::IsRevertable() -{ - menu_info info; - get_menu_info(&info); - - return info.font_size != fPreviousSettings.font_size - || strcmp(info.f_family, fPreviousSettings.f_family) != 0 - || strcmp(info.f_style, fPreviousSettings.f_style) != 0 - || info.background_color != fPreviousSettings.background_color - || info.separator != fPreviousSettings.separator - || info.click_to_open != fPreviousSettings.click_to_open - || info.triggers_always_shown != fPreviousSettings.triggers_always_shown - || AltAsShortcut() != fPreviousAltAsShortcut; -} - diff --git a/src/preferences/menu/MenuSettings.h b/src/preferences/menu/MenuSettings.h deleted file mode 100644 index 7fbe227d12..0000000000 --- a/src/preferences/menu/MenuSettings.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - */ -#ifndef MENU_SETTINGS_H -#define MENU_SETTINGS_H - - -#include - - -class MenuSettings { - public: - static MenuSettings *GetInstance(); - - void Get(menu_info &info) const; - void Set(menu_info &info); - - bool AltAsShortcut() const; - void SetAltAsShortcut(bool altAsShortcut); - - rgb_color BackgroundColor() const; - rgb_color PreviousBackgroundColor() const; - rgb_color DefaultBackgroundColor() const; - - - void Revert(); - void ResetToDefaults(); - bool IsDefaultable(); - bool IsRevertable(); - - private: - MenuSettings(); - ~MenuSettings(); - - menu_info fPreviousSettings; - menu_info fDefaultSettings; - bool fPreviousAltAsShortcut; - bool fDefaultAltAsShortcut; -}; - -#endif // MENU_SETTINGS_H diff --git a/src/preferences/menu/MenuWindow.cpp b/src/preferences/menu/MenuWindow.cpp deleted file mode 100644 index 15724faba0..0000000000 --- a/src/preferences/menu/MenuWindow.cpp +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ - - -#include "ColorWindow.h" -#include "MenuApp.h" -#include "MenuBar.h" -#include "MenuSettings.h" -#include "MenuWindow.h" -#include "msg.h" - -#include -#include -#include -#include - -#include -#include - - -MenuWindow::MenuWindow(BRect rect) - : BWindow(rect, "Menu", B_TITLED_WINDOW, - B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_QUIT_ON_WINDOW_CLOSE) -{ - fColorWindow = NULL; - - fSettings = MenuSettings::GetInstance(); - - BView* topView = new BView(Bounds(), "menuView", B_FOLLOW_ALL_SIDES, - B_WILL_DRAW); - topView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - AddChild(topView); - - fMenuBar = new MenuBar(); - topView->AddChild(fMenuBar); - - // resize the window according to the size of fMenuBar - ResizeTo(fMenuBar->Frame().right + 40, fMenuBar->Frame().bottom + 45); - - BRect menuBarFrame = fMenuBar->Frame(); - BRect buttonFrame(menuBarFrame.left, menuBarFrame.bottom + 10, - menuBarFrame.left + 75, menuBarFrame.bottom + 30); - - fDefaultsButton = new BButton(buttonFrame, "Default", "Defaults", - new BMessage(MENU_DEFAULT), B_FOLLOW_H_CENTER | B_FOLLOW_BOTTOM, - B_WILL_DRAW | B_NAVIGABLE); - fDefaultsButton->SetEnabled(false); - topView->AddChild(fDefaultsButton); - - buttonFrame.OffsetBy(buttonFrame.Width() + 20, 0); - fRevertButton = new BButton(buttonFrame, "Revert", "Revert", new BMessage(MENU_REVERT), - B_FOLLOW_H_CENTER | B_FOLLOW_BOTTOM, B_WILL_DRAW | B_NAVIGABLE); - fRevertButton->SetEnabled(false); - topView->AddChild(fRevertButton); - - topView->MakeFocus(); - - _UpdateAll(); -} - - -void -MenuWindow::MessageReceived(BMessage *msg) -{ - menu_info info; - - switch (msg->what) { - case MENU_REVERT: - fSettings->Revert(); - _UpdateAll(); - break; - - case MENU_DEFAULT: - fSettings->ResetToDefaults(); - _UpdateAll(); - break; - - case UPDATE_WINDOW: - _UpdateAll(); - break; - - case MENU_FONT_FAMILY: - case MENU_FONT_STYLE: - { - const font_family *family; - msg->FindString("family", (const char **)&family); - const font_style *style; - msg->FindString("style", (const char **)&style); - - fSettings->Get(info); - strlcpy(info.f_family, (const char *)family, B_FONT_FAMILY_LENGTH); - strlcpy(info.f_style, (const char *)style, B_FONT_STYLE_LENGTH); - fSettings->Set(info); - - _UpdateAll(); - break; - } - - case MENU_FONT_SIZE: - fSettings->Get(info); - msg->FindFloat("size", &info.font_size); - fSettings->Set(info); - - _UpdateAll(); - break; - - case ALLWAYS_TRIGGERS_MSG: - fSettings->Get(info); - info.triggers_always_shown = !info.triggers_always_shown; - fSettings->Set(info); - - _UpdateAll(); - break; - - case CTL_MARKED_MSG: - fSettings->SetAltAsShortcut(false); - _UpdateAll(); - break; - - case ALT_MARKED_MSG: - fSettings->SetAltAsShortcut(true); - _UpdateAll(); - break; - - case COLOR_SCHEME_OPEN_MSG: - if (fColorWindow == NULL) { - fColorWindow = new ColorWindow(this); - fColorWindow->Show(); - } else - fColorWindow->Activate(); - break; - - case COLOR_SCHEME_CLOSED_MSG: - fColorWindow = NULL; - break; - - case MENU_COLOR: - _UpdateAll(); - break; - - default: - BWindow::MessageReceived(msg); - break; - } -} - - -void -MenuWindow::_UpdateAll() -{ - fRevertButton->SetEnabled(fSettings->IsRevertable()); - fDefaultsButton->SetEnabled(fSettings->IsDefaultable()); - fMenuBar->Update(); -} - - -bool -MenuWindow::QuitRequested() -{ - if (fColorWindow != NULL && fColorWindow->Lock()) { - fColorWindow->Quit(); - fColorWindow = NULL; - } - - return true; -} - diff --git a/src/preferences/menu/MenuWindow.h b/src/preferences/menu/MenuWindow.h deleted file mode 100644 index 9e71af1a18..0000000000 --- a/src/preferences/menu/MenuWindow.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2002-2007, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Stefano Ceccherini (stefano.ceccherini@gmail.com) - */ - -#ifndef MENU_WINDOW_H -#define MENU_WINDOW_H - -#include "MenuSettings.h" -#include -#include - - -class ColorWindow; -class BButton; -class MenuBar; -class MenuWindow : public BWindow { - public: - MenuWindow(BRect frame); - - virtual void MessageReceived(BMessage *message); - virtual bool QuitRequested(); - - private: - void _UpdateAll(); - - private: - ColorWindow* fColorWindow; - MenuBar* fMenuBar; - BButton* fDefaultsButton; - BButton* fRevertButton; - MenuSettings* fSettings; -}; - -#endif // MENU_WINDOW_H diff --git a/src/preferences/menu/msg.h b/src/preferences/menu/msg.h deleted file mode 100644 index 6e8a9acb22..0000000000 --- a/src/preferences/menu/msg.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2002-2006, Haiku Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * - * Vasilis Kaoutsis, kaoutsis@sch.gr - */ -#ifndef MESSAGES_H -#define MESSAGES_H - - -const uint32 MENU_BAR_ARCHIVE = 'mbar'; - -// default -const uint32 DEFAULT_MSG = 'dmsg'; -const uint32 MENU_DEFAULT = 'mede'; -const uint32 MENU_REVERT = 'mere'; - -// others -const uint32 UPDATE_WINDOW = 'uwin'; -const uint32 ALLWAYS_TRIGGERS_MSG = 'alti'; -const uint32 COLOR_SCHEME_OPEN_MSG = 'coso'; -const uint32 COLOR_SCHEME_CLOSED_MSG = 'cosc'; -const uint32 CTL_MARKED_MSG = 'ctms'; -const uint32 ALT_MARKED_MSG = 'alms'; - -// color -const uint32 MENU_COLOR = 'meco'; -const uint32 CLICK_OPEN_MSG = 'clop'; -const uint32 MENU_COLOR_DEFAULT = 'mcod'; - -// font -const uint32 MENU_FONT_FAMILY = 'mffm'; -const uint32 MENU_FONT_STYLE = 'mfst'; -const uint32 MENU_FONT_SIZE = 'mfsz'; - - -#endif // MESSAGES_H