- MakeMenu() now adds a separator for empty strings.

- add pref names for ANSI colors, for later...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25387 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-05-08 23:07:52 +00:00
parent f8a741bcba
commit 80f6938b34
3 changed files with 28 additions and 1 deletions

View File

@ -33,6 +33,21 @@ AppearancePrefView::AppearancePrefView(BRect frame, const char *name,
PREF_CURSOR_BACK_COLOR,
PREF_SELECT_FORE_COLOR,
PREF_SELECT_BACK_COLOR,
#if 0
"",
PREF_IM_FORE_COLOR,
PREF_IM_BACK_COLOR,
PREF_IM_SELECT_COLOR,
"",
PREF_ANSI_BLACK_COLOR,
PREF_ANSI_RED_COLOR,
PREF_ANSI_GREEN_COLOR,
PREF_ANSI_YELLOW_COLOR,
PREF_ANSI_BLUE_COLOR,
PREF_ANSI_MAGENTA_COLOR,
PREF_ANSI_CYAN_COLOR,
PREF_ANSI_WHITE_COLOR,
#endif
NULL
};

View File

@ -28,7 +28,10 @@ MakeMenu(ulong msg, const char **items, const char *defaultItemName)
int32 i = 0;
while (*items) {
menu->AddItem(new BMenuItem(*items, new BMessage(msg)));
if (!strcmp(*items, ""))
menu->AddSeparatorItem();
else
menu->AddItem(new BMenuItem(*items, new BMessage(msg)));
if (!strcmp(*items, defaultItemName))
menu->ItemAt(i)->SetMarked(true);

View File

@ -99,6 +99,15 @@ const char* const PREF_IM_FORE_COLOR = "IM Foreground Color";
const char* const PREF_IM_BACK_COLOR = "IM Background Color";
const char* const PREF_IM_SELECT_COLOR = "IM Selection Color";
const char* const PREF_ANSI_BLACK_COLOR = "ANSI Black Color";
const char* const PREF_ANSI_RED_COLOR = "ANSI Red Color";
const char* const PREF_ANSI_GREEN_COLOR = "ANSI Green Color";
const char* const PREF_ANSI_YELLOW_COLOR = "ANSI Yellow Color";
const char* const PREF_ANSI_BLUE_COLOR = "ANSI Blue Color";
const char* const PREF_ANSI_MAGENTA_COLOR = "ANSI Magenta Color";
const char* const PREF_ANSI_CYAN_COLOR = "ANSI Cyan Color";
const char* const PREF_ANSI_WHITE_COLOR = "ANSI White Color";
const char* const PREF_HISTORY_SIZE = "History Size";
const char* const PREF_CURSOR_BLINKING = "Cursor Blinking rate";