Simplifying debug stuff, as I'm not going to bother with gdb.

This commit is contained in:
Ben Vanik
2015-08-04 18:39:51 -07:00
parent ec326119cf
commit 0a8d6eec91
30 changed files with 115 additions and 1567 deletions

View File

@@ -28,12 +28,12 @@ class View {
std::string name() const { return name_; }
el::LayoutBox* root_element() { return &root_element_; }
xe::ui::Loop* loop() const { return Application::current()->loop(); }
client::xdp::XdpClient* client() const { return client_; }
DebugClient* client() const { return client_; }
model::System* system() const { return Application::current()->system(); }
virtual el::Element* BuildUI() = 0;
virtual void Setup(xe::debug::client::xdp::XdpClient* client) = 0;
virtual void Setup(xe::debug::DebugClient* client) = 0;
protected:
View(std::string name) : name_(name) {}
@@ -41,7 +41,7 @@ class View {
std::string name_;
el::LayoutBox root_element_;
std::unique_ptr<el::EventHandler> handler_;
xe::debug::client::xdp::XdpClient* client_ = nullptr;
xe::debug::DebugClient* client_ = nullptr;
};
} // namespace ui