From a32b49acd12538c27bf4f9abb8acd133e8cf2ee8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 11 Jul 2014 00:27:04 +0100 Subject: Rename ColorPair to Face and ColorRegistry to FaceRegistry Face also stores the attributes --- src/input_handler.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 80b8b43c..642b4243 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -1,9 +1,9 @@ #ifndef input_handler_hh_INCLUDED #define input_handler_hh_INCLUDED -#include "color.hh" #include "completion.hh" #include "context.hh" +#include "face.hh" #include "normal.hh" #include "keys.hh" #include "string.hh" @@ -48,16 +48,15 @@ public: // returns to normal mode after validation if callback does // not change the mode itself void prompt(const String& prompt, String initstr, - ColorPair prompt_colors, Completer completer, + Face prompt_face, Completer completer, PromptCallback callback); - void set_prompt_colors(ColorPair prompt_colors); + void set_prompt_face(Face prompt_face); // enter menu mode, callback is called on each selection change, // abort or validation with corresponding MenuEvent value // returns to normal mode after validation if callback does // not change the mode itself - void menu(memoryview choices, - MenuCallback callback); + void menu(memoryview choices, MenuCallback callback); // execute callback on next keypress and returns to normal mode // if callback does not change the mode itself -- cgit v1.2.3