From 059bc4dc24b68d637c3608c05344c53c64cc2c4b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Feb 2003 03:04:23 +0000 Subject: add a Config class with config data from the scripts. set up the functions for loading a style from a file. use the Config class throughout instead of reading out of the python namespace all the time. --- src/config.hh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/config.hh (limited to 'src/config.hh') diff --git a/src/config.hh b/src/config.hh new file mode 100644 index 00000000..8f8144e3 --- /dev/null +++ b/src/config.hh @@ -0,0 +1,29 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +#ifndef __config_hh +#define __config_hh + +/*! @file config.hh + @brief The Config class contains configuration options set by the user's + scripts +*/ + +#include "otk/ustring.hh" + +#include + +namespace ob { + +struct Config { + std::vector desktop_names; + otk::ustring theme; + otk::ustring titlebar_layout; + long double_click_delay; + long drag_threshold; + long num_desktops; + + Config(); +}; + +} + +#endif // __config_hh -- cgit v1.2.3