Clean up includes of user_interface.hh
This commit is contained in:
parent
0dff8a7d3f
commit
2fd1414b05
|
@ -121,6 +121,12 @@ void Client::print_status(DisplayLine status_line, bool immediate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DisplayCoord Client::dimensions() const
|
||||||
|
{
|
||||||
|
return m_ui->dimensions();
|
||||||
|
}
|
||||||
|
|
||||||
DisplayLine Client::generate_mode_line() const
|
DisplayLine Client::generate_mode_line() const
|
||||||
{
|
{
|
||||||
DisplayLine modeline;
|
DisplayLine modeline;
|
||||||
|
|
|
@ -8,16 +8,19 @@
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
#include "option_manager.hh"
|
#include "option_manager.hh"
|
||||||
#include "enum.hh"
|
#include "enum.hh"
|
||||||
#include "user_interface.hh"
|
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
|
||||||
class Window;
|
class Window;
|
||||||
|
class UserInterface;
|
||||||
class String;
|
class String;
|
||||||
struct Key;
|
struct Key;
|
||||||
|
|
||||||
enum class EventMode;
|
enum class EventMode;
|
||||||
|
enum class InfoStyle;
|
||||||
|
enum class MenuStyle;
|
||||||
|
|
||||||
|
|
||||||
class Client : public SafeCountable, public OptionManagerWatcher
|
class Client : public SafeCountable, public OptionManagerWatcher
|
||||||
{
|
{
|
||||||
|
@ -43,7 +46,7 @@ public:
|
||||||
|
|
||||||
void print_status(DisplayLine status_line, bool immediate = false);
|
void print_status(DisplayLine status_line, bool immediate = false);
|
||||||
|
|
||||||
DisplayCoord dimensions() const { return m_ui->dimensions(); }
|
DisplayCoord dimensions() const;
|
||||||
|
|
||||||
void force_redraw();
|
void force_redraw();
|
||||||
void redraw_ifn();
|
void redraw_ifn();
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "regex.hh"
|
#include "regex.hh"
|
||||||
#include "shell_manager.hh"
|
#include "shell_manager.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
|
#include "user_interface.hh"
|
||||||
#include "window.hh"
|
#include "window.hh"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include "regex.hh"
|
#include "regex.hh"
|
||||||
#include "register_manager.hh"
|
#include "register_manager.hh"
|
||||||
#include "unordered_map.hh"
|
#include "unordered_map.hh"
|
||||||
|
#include "user_interface.hh"
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
#include "window.hh"
|
#include "window.hh"
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "window.hh"
|
#include "window.hh"
|
||||||
#include "word_db.hh"
|
#include "word_db.hh"
|
||||||
#include "utf8_iterator.hh"
|
#include "utf8_iterator.hh"
|
||||||
|
#include "user_interface.hh"
|
||||||
|
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include "selectors.hh"
|
#include "selectors.hh"
|
||||||
#include "shell_manager.hh"
|
#include "shell_manager.hh"
|
||||||
#include "string.hh"
|
#include "string.hh"
|
||||||
|
#include "user_interface.hh"
|
||||||
#include "window.hh"
|
#include "window.hh"
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "event_manager.hh"
|
#include "event_manager.hh"
|
||||||
#include "file.hh"
|
#include "file.hh"
|
||||||
#include "id_map.hh"
|
#include "id_map.hh"
|
||||||
|
#include "user_interface.hh"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#ifndef remote_hh_INCLUDED
|
#ifndef remote_hh_INCLUDED
|
||||||
#define remote_hh_INCLUDED
|
#define remote_hh_INCLUDED
|
||||||
|
|
||||||
#include "coord.hh"
|
|
||||||
#include "env_vars.hh"
|
#include "env_vars.hh"
|
||||||
#include "exception.hh"
|
#include "exception.hh"
|
||||||
#include "user_interface.hh"
|
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -20,6 +18,7 @@ struct remote_error : runtime_error
|
||||||
};
|
};
|
||||||
|
|
||||||
class FDWatcher;
|
class FDWatcher;
|
||||||
|
class UserInterface;
|
||||||
|
|
||||||
// A remote client handle communication between a client running on the server
|
// A remote client handle communication between a client running on the server
|
||||||
// and a user interface running on the local process.
|
// and a user interface running on the local process.
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define user_interface_hh_INCLUDED
|
#define user_interface_hh_INCLUDED
|
||||||
|
|
||||||
#include "array_view.hh"
|
#include "array_view.hh"
|
||||||
#include "safe_ptr.hh"
|
|
||||||
#include "id_map.hh"
|
#include "id_map.hh"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -36,7 +35,7 @@ enum class EventMode;
|
||||||
|
|
||||||
using InputCallback = std::function<void(EventMode mode)>;
|
using InputCallback = std::function<void(EventMode mode)>;
|
||||||
|
|
||||||
class UserInterface : public SafeCountable
|
class UserInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~UserInterface() {}
|
virtual ~UserInterface() {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user