int main(int argc, char *argv[]) { (void)argc; (void)argv[0]; int32 i = 0; while (kSoundNames[i] != NULL) add_system_beep_event(kSoundNames[i++], 0); InfoApp app; app.Run(); };
int main(int argc, char* argv[]) { int32 i = 0; // Add system sounds while (kSoundNames[i] != NULL) add_system_beep_event(kSoundNames[i++], 0); // Start! NotificationServer server; server.Run(); return 0; }
void VisionApp::InitDefaults(void) { const rgb_color myBlack = {0, 0, 0, 255}; const rgb_color myWhite = {255, 255, 255, 255}; const rgb_color NOTICE_COLOR = {10, 90, 170, 255}; const rgb_color ACTION_COLOR = {128, 0, 128, 255}; const rgb_color QUIT_COLOR = {180, 10, 10, 255}; const rgb_color ERROR_COLOR = {210, 5, 5, 255}; const rgb_color URL_COLOR = {5, 5, 150, 255}; const rgb_color NICK_COLOR = {10, 10, 190, 255}; const rgb_color MYNICK_COLOR = {200, 10, 20, 255}; const rgb_color JOIN_COLOR = {10, 130, 10, 255}; const rgb_color KICK_COLOR = {250, 130, 10, 255}; const rgb_color WHOIS_COLOR = {10, 30, 170, 255}; const rgb_color OP_COLOR = {140, 10, 40, 255}; const rgb_color VOICE_COLOR = {160, 20, 20, 255}; const rgb_color CTCP_REQ_COLOR = {10, 10, 180, 255}; const rgb_color CTCP_RPY_COLOR = {10, 40, 180, 255}; const rgb_color IGNORE_COLOR = {100, 100, 100, 255}; const rgb_color INPUT_COLOR = {0, 0, 0, 255}; const rgb_color INPUT_BG_COLOR = {255, 255, 255, 255}; const rgb_color WINLIST_BG_COLOR = {238, 242, 242, 255}; const rgb_color WINLIST_PAGE6_COLOR = {100, 100, 100, 255}; const rgb_color WINLIST_SEL_COLOR = ui_color(B_PANEL_BACKGROUND_COLOR); const rgb_color WALLOPS_COLOR = {10, 30, 170, 255}; const rgb_color NICK_DISPLAY = {47, 47, 47, 255}; const rgb_color MIRC_BLUE = {0, 0, 127, 255}; const rgb_color MIRC_GREEN = {0, 127, 0, 255}; const rgb_color MIRC_RED = {127, 0, 0, 255}; const rgb_color MIRC_BROWN = {224, 192, 128, 255}; const rgb_color MIRC_PURPLE = {127, 0, 127, 255}; const rgb_color MIRC_ORANGE = {192, 127, 0, 255}; const rgb_color MIRC_YELLOW = {255, 255, 0, 255}; const rgb_color MIRC_LIME = {0, 255, 0, 255}; const rgb_color MIRC_TEAL = {0, 127, 127, 255}; const rgb_color MIRC_AQUA = {0, 255, 255, 255}; const rgb_color MIRC_LT_BLUE = {0, 0, 255, 255}; const rgb_color MIRC_PINK = {255, 127, 127, 255}; const rgb_color MIRC_GREY = {127, 127, 127, 255}; const rgb_color MIRC_SILVER = {192, 192, 192, 255}; fColors[C_TEXT] = myBlack; fColors[C_BACKGROUND] = myWhite; fColors[C_NAMES] = myBlack; fColors[C_NAMES_BACKGROUND] = myWhite; fColors[C_NAMES_SELECTION] = WINLIST_SEL_COLOR; fColors[C_URL] = URL_COLOR; fColors[C_SERVER] = myBlack; fColors[C_NOTICE] = NOTICE_COLOR; fColors[C_ACTION] = ACTION_COLOR; fColors[C_QUIT] = QUIT_COLOR; fColors[C_ERROR] = ERROR_COLOR; fColors[C_NICK] = NICK_COLOR; fColors[C_MYNICK] = MYNICK_COLOR; fColors[C_JOIN] = JOIN_COLOR; fColors[C_KICK] = KICK_COLOR; fColors[C_WHOIS] = WHOIS_COLOR; fColors[C_OP] = OP_COLOR; fColors[C_HELPER] = OP_COLOR; fColors[C_VOICE] = VOICE_COLOR; fColors[C_CTCP_REQ] = CTCP_REQ_COLOR; fColors[C_CTCP_RPY] = CTCP_RPY_COLOR; fColors[C_IGNORE] = IGNORE_COLOR; fColors[C_INPUT] = INPUT_COLOR; fColors[C_INPUT_BACKGROUND] = INPUT_BG_COLOR; fColors[C_WINLIST_BACKGROUND] = WINLIST_BG_COLOR; fColors[C_WINLIST_NORMAL] = myBlack; fColors[C_WINLIST_NEWS] = JOIN_COLOR; fColors[C_WINLIST_NICK] = QUIT_COLOR; fColors[C_WINLIST_SELECTION] = WINLIST_SEL_COLOR; fColors[C_WINLIST_PAGESIX] = WINLIST_PAGE6_COLOR; fColors[C_WALLOPS] = WALLOPS_COLOR; fColors[C_NICKDISPLAY] = NICK_DISPLAY; fColors[C_TIMESTAMP] = myBlack; fColors[C_TIMESTAMP_BACKGROUND] = myWhite; fColors[C_SELECTION] = myBlack; fColors[C_MIRC_WHITE] = myWhite; fColors[C_MIRC_BLACK] = myBlack; fColors[C_MIRC_BLUE] = MIRC_BLUE; fColors[C_MIRC_GREEN] = MIRC_GREEN; fColors[C_MIRC_RED] = MIRC_RED; fColors[C_MIRC_BROWN] = MIRC_BROWN; fColors[C_MIRC_PURPLE] = MIRC_PURPLE; fColors[C_MIRC_ORANGE] = MIRC_ORANGE; fColors[C_MIRC_YELLOW] = MIRC_YELLOW; fColors[C_MIRC_LIME] = MIRC_LIME; fColors[C_MIRC_TEAL] = MIRC_TEAL; fColors[C_MIRC_AQUA] = MIRC_AQUA; fColors[C_MIRC_LT_BLUE] = MIRC_LT_BLUE; fColors[C_MIRC_PINK] = MIRC_PINK; fColors[C_MIRC_GREY] = MIRC_GREY; fColors[C_MIRC_SILVER] = MIRC_SILVER; fColors[C_NOTIFY_ON] = JOIN_COLOR; fColors[C_NOTIFY_OFF] = myBlack; fColors[C_NOTIFYLIST_BACKGROUND] = WINLIST_BG_COLOR; fColors[C_NOTIFYLIST_SELECTION] = WINLIST_SEL_COLOR; fClientFont[F_TEXT] = new BFont(be_plain_font); fClientFont[F_SERVER] = new BFont(be_plain_font); fClientFont[F_URL] = new BFont(be_plain_font); fClientFont[F_NAMES] = new BFont(be_plain_font); fClientFont[F_INPUT] = new BFont(be_plain_font); fClientFont[F_WINLIST] = new BFont(be_plain_font); fClientFont[F_LISTAGENT] = new BFont(be_plain_font); fClientFont[F_TIMESTAMP] = new BFont(be_plain_font); fEvents[E_JOIN] = "*** $N ($I@$A) has joined the channel."; fEvents[E_PART] = "*** $N has left the channel."; fEvents[E_NICK] = "*** $N is now known as $n."; fEvents[E_QUIT] = "*** $N ($I@$A) has quit IRC ($R)"; fEvents[E_KICK] = "*** $N has been kicked from $C by $n ($R)"; fEvents[E_TOPIC] = "*** $C Topic changed by $N: $T"; fEvents[E_SNOTICE] = "-$N- $R"; fEvents[E_UNOTICE] = "-$N- $R"; fEvents[E_NOTIFY_ON] = "*** $N has joined IRC."; fEvents[E_NOTIFY_OFF] = "*** $N has left IRC."; fCommands[CMD_KICK] = "Ouch!"; fCommands[CMD_QUIT] = "Vision[$V]: i've been blurred!"; fCommands[CMD_IGNORE] = "*** $N is now ignored ($i)."; fCommands[CMD_UNIGNORE] = "*** $N is no longer ignored."; fCommands[CMD_AWAY] = "is idle: $R"; fCommands[CMD_BACK] = "has returned"; fCommands[CMD_UPTIME] = "OS Uptime [Haiku]: $U"; uint32 i = 0; for (const char* eventName = kSoundEventNames[i]; eventName != NULL; i++, eventName = kSoundEventNames[i]) add_system_beep_event(eventName); }