Changeset 25387

Show
Ignore:
Timestamp:
05/08/08 18:07:52 (1 week ago)
Author:
mmu_man
Message:
- MakeMenu() now adds a separator for empty strings.
- add pref names for ANSI colors, for later...
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/apps/terminal/AppearPrefView.cpp

    r23911 r25387  
    3434                PREF_SELECT_FORE_COLOR, 
    3535                PREF_SELECT_BACK_COLOR, 
     36#if 0 
     37                "", 
     38                PREF_IM_FORE_COLOR, 
     39                PREF_IM_BACK_COLOR, 
     40                PREF_IM_SELECT_COLOR, 
     41                "", 
     42                PREF_ANSI_BLACK_COLOR, 
     43                PREF_ANSI_RED_COLOR, 
     44                PREF_ANSI_GREEN_COLOR, 
     45                PREF_ANSI_YELLOW_COLOR, 
     46                PREF_ANSI_BLUE_COLOR, 
     47                PREF_ANSI_MAGENTA_COLOR, 
     48                PREF_ANSI_CYAN_COLOR, 
     49                PREF_ANSI_WHITE_COLOR, 
     50#endif 
    3651                NULL 
    3752        }; 
  • haiku/trunk/src/apps/terminal/MenuUtil.cpp

    r23695 r25387  
    2929        int32 i = 0; 
    3030        while (*items) { 
    31                 menu->AddItem(new BMenuItem(*items, new BMessage(msg))); 
     31                if (!strcmp(*items, "")) 
     32                        menu->AddSeparatorItem(); 
     33                else 
     34                        menu->AddItem(new BMenuItem(*items, new BMessage(msg))); 
    3235                if (!strcmp(*items, defaultItemName)) 
    3336                        menu->ItemAt(i)->SetMarked(true); 
  • haiku/trunk/src/apps/terminal/TermConst.h

    r23725 r25387  
    100100const char* const PREF_IM_SELECT_COLOR = "IM Selection Color"; 
    101101 
     102const char* const PREF_ANSI_BLACK_COLOR = "ANSI Black Color"; 
     103const char* const PREF_ANSI_RED_COLOR = "ANSI Red Color"; 
     104const char* const PREF_ANSI_GREEN_COLOR = "ANSI Green Color"; 
     105const char* const PREF_ANSI_YELLOW_COLOR = "ANSI Yellow Color"; 
     106const char* const PREF_ANSI_BLUE_COLOR = "ANSI Blue Color"; 
     107const char* const PREF_ANSI_MAGENTA_COLOR = "ANSI Magenta Color"; 
     108const char* const PREF_ANSI_CYAN_COLOR = "ANSI Cyan Color"; 
     109const char* const PREF_ANSI_WHITE_COLOR = "ANSI White Color"; 
     110 
    102111const char* const PREF_HISTORY_SIZE = "History Size"; 
    103112const char* const PREF_CURSOR_BLINKING = "Cursor Blinking rate";