1/* 2 * Copyright 2002-2010, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mattias Sundblad 7 * Andrew Bachmann 8 */ 9#ifndef CONSTANTS_H 10#define CONSTANTS_H 11 12 13#include <GraphicsDefs.h> 14#include <SupportDefs.h> 15 16 17#define APP_SIGNATURE "application/x-vnd.Haiku-StyledEdit" 18 19const float TEXT_INSET = 3.0; 20 21// Messages for menu commands 22 23// file menu 24const uint32 MENU_NEW = 'MFnw'; 25const uint32 MENU_OPEN = 'MFop'; 26const uint32 MENU_SAVE = 'MSav'; 27const uint32 MENU_SAVEAS = 'MEsa'; 28const uint32 MENU_RELOAD = 'MFrl'; 29const uint32 MENU_CLOSE = 'MFcl'; 30const uint32 MENU_PAGESETUP = 'MFps'; 31const uint32 MENU_PRINT = 'MFpr'; 32const uint32 MENU_QUIT = 'MFqu'; 33 34// edit menu 35const uint32 MENU_CLEAR = 'MEcl'; 36const uint32 MENU_FIND = 'MEfi'; 37const uint32 MENU_FIND_AGAIN = 'MEfa'; 38const uint32 MENU_FIND_SELECTION = 'MEfs'; 39const uint32 MENU_REPLACE = 'MEre'; 40const uint32 MENU_REPLACE_SAME = 'MErs'; 41 42const uint32 MSG_SEARCH = 'msea'; 43const uint32 MSG_REPLACE = 'msre'; 44const uint32 MSG_REPLACE_ALL = 'mrea'; 45 46// "Font"-menu 47const uint32 FONT_SIZE = 'FMsi'; 48const uint32 FONT_FAMILY = 'FFch'; 49const uint32 FONT_STYLE = 'FSch'; 50const uint32 FONT_COLOR = 'Fcol'; 51const uint32 kMsgSetItalic = 'Fita'; 52const uint32 kMsgSetBold = 'Fbld'; 53 54// fontcolors 55const rgb_color BLACK = {0, 0, 0, 255}; 56const rgb_color RED = {255, 0, 0, 255}; 57const rgb_color GREEN = {0, 255, 0, 255}; 58const rgb_color BLUE = {0, 0, 255, 255}; 59const rgb_color CYAN = {0, 255, 255, 255}; 60const rgb_color MAGENTA = {255, 0, 255, 255}; 61const rgb_color YELLOW = {255, 255, 0, 255}; 62 63// "Document"-menu 64const uint32 ALIGN_LEFT = 'ALle'; 65const uint32 ALIGN_CENTER = 'ALce'; 66const uint32 ALIGN_RIGHT = 'ALri'; 67const uint32 WRAP_LINES = 'MDwr'; 68const uint32 SHOW_STATISTICS = 'MDss'; 69 70// enables "edit" menuitems 71const uint32 ENABLE_ITEMS = 'ENit'; 72const uint32 DISABLE_ITEMS = 'DIit'; 73const uint32 CHANGE_WINDOW = 'CHwi'; 74const uint32 TEXT_CHANGED = 'TEch'; 75 76// file panel constants 77const uint32 OPEN_AS_ENCODING = 'FPoe'; 78const uint32 SAVE_AS_ENCODING = 'FPse'; 79const uint32 SAVE_THEN_QUIT = 'FPsq'; 80 81// Update StatusView 82const uint32 UPDATE_STATUS = 'UPSt'; 83const uint32 UNLOCK_FILE = 'UNLk'; 84const uint32 UPDATE_LINE_SELECTION = 'UPls'; 85 86#endif // CONSTANTS_H 87 88