From 0e16cadc7077d448a5b91be205226620e2bc5191 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 1 Jul 2010 13:48:58 +0200 Subject: Make CEGUI optional This makes the CEGUI dependency optional and off by default. Restoring previous behaviour of exiting on disconnect if disabled. --- client/gui/gui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/gui/gui.h') diff --git a/client/gui/gui.h b/client/gui/gui.h index d51a8c85..3b76b688 100644 --- a/client/gui/gui.h +++ b/client/gui/gui.h @@ -22,7 +22,9 @@ public: void set_screen(RedScreen* screen); //show and hide Application& get_application() { return _app;} +#ifdef USE_GUI CEGUI::System& gui_system() { return *_gui_system;} +#endif // USE_GUI void set_state(Application::State state); bool is_visible() { return !!_dialog;} @@ -87,8 +89,10 @@ private: Application& _app; Application::State _state; RedPixmapSw* _pixmap; +#ifdef USE_GUI CEGUI::SoftRenderer* _renderer; CEGUI::System* _gui_system; +#endif // USE_GUI Dialog* _dialog; uint64_t _prev_time; TabFactorys _tab_factorys; @@ -100,7 +104,9 @@ class GUI::Tab { public: virtual ~Tab() {} +#ifdef USE_GUI virtual CEGUI::Window& get_root_window() = 0; +#endif // USE_GUI virtual const std::string& get_name() = 0; }; -- cgit