X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=e6193ae0adfd7dd485e1ec4282d57997b1bf3e05;hb=0305cbdc3ae8525c74b2bb9b23884035549e3407;hp=0545bcc870495280110ccd5c2b15d64398457011;hpb=b3737edc7cc7d1ebc52ec204dcaa71d9cb859c5a;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index 0545bcc8..e6193ae0 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -26,7 +26,6 @@ extern "C" { #include -#include #ifdef HAVE_STDIO_H # include @@ -50,6 +49,7 @@ extern "C" { #include "i18n.hh" #include "BaseDisplay.hh" +#include "Configuration.hh" #include "Timer.hh" #define AttribShaded (1l << 0) @@ -144,6 +144,7 @@ private: BScreen *active_screen; BlackboxWindow *focused_window; BTimer *timer; + Configuration config; bool no_focus, reconfigure_wait, reread_menu_wait; Time last_time; @@ -195,7 +196,6 @@ private: void load_rc(void); void save_rc(void); - void reload_rc(void); void real_rereadMenu(void); void real_reconfigure(void); @@ -228,6 +228,7 @@ public: inline BlackboxWindow *getFocusedWindow(void) { return focused_window; } + inline Configuration *getConfig() { return &config; } inline const Time &getDoubleClickInterval(void) const { return resource.double_click_interval; } inline const Time &getLastTime(void) const { return last_time; } @@ -261,7 +262,6 @@ public: void setFocusedWindow(BlackboxWindow *w); void shutdown(void); - void load_rc(BScreen *screen); void saveStyleFilename(const std::string& filename); void addMenuTimestamp(const std::string& filename); void restart(const char *prog = 0);