2012-09-24 19:24:27 +02:00
|
|
|
#ifndef user_interface_hh_INCLUDED
|
|
|
|
#define user_interface_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "memoryview.hh"
|
|
|
|
#include "keys.hh"
|
|
|
|
#include "units.hh"
|
2012-09-26 14:13:04 +02:00
|
|
|
#include "utils.hh"
|
2012-09-24 19:24:27 +02:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
class String;
|
|
|
|
class Window;
|
|
|
|
|
2012-09-26 14:13:04 +02:00
|
|
|
class UserInterface : public SafeCountable
|
2012-09-24 19:24:27 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~UserInterface() {}
|
2012-09-24 19:39:40 +02:00
|
|
|
virtual void print_status(const String& status, CharCount cursor_pos = -1) = 0;
|
2012-09-24 19:24:27 +02:00
|
|
|
virtual void menu_show(const memoryview<String>& choices) = 0;
|
|
|
|
virtual void menu_select(int selected) = 0;
|
|
|
|
virtual void menu_hide() = 0;
|
|
|
|
virtual void draw_window(Window& window) = 0;
|
|
|
|
virtual Key get_key() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // user_interface_hh_INCLUDED
|