Fixed rootcommand so we dont need to depend on class Fluxbox

This commit is contained in:
fluxgen 2002-01-08 00:14:40 +00:00
parent f8f2b874a7
commit 351330461f

View file

@ -42,27 +42,31 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: Theme.hh,v 1.5 2002/01/08 00:14:40 fluxgen Exp $
#ifndef _THEME_HH_ #ifndef _THEME_HH_
#define _THEME_HH_ #define _THEME_HH_
#ifndef _IMAGE_HH_ #ifndef _IMAGE_HH_
#include "Image.hh" #include "Image.hh"
#endif //_IMAGE_HH_ #endif //!_IMAGE_HH_
#ifndef _DRAWUTIL_HH_ #ifndef _DRAWUTIL_HH_
#include "DrawUtil.hh" #include "DrawUtil.hh"
#endif //_MISC_HH_ #endif //!_MISC_HH_
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xresource.h> #include <X11/Xresource.h>
#include <string>
class Theme class Theme
{ {
public: public:
Theme(Display *display, Window rootwindow, Colormap colormap, int screennum, BImageControl *ic, const char *filename); Theme(Display *display, Window rootwindow, Colormap colormap,
int screennum, BImageControl *ic, const char *filename, const char *rootcommand);
~Theme(); ~Theme();
@ -109,8 +113,6 @@ public:
} ToolbarStyle; } ToolbarStyle;
void load(const char *filename);
void reconfigure();
inline WindowStyle &getWindowStyle(void) { return m_windowstyle; } inline WindowStyle &getWindowStyle(void) { return m_windowstyle; }
inline MenuStyle &getMenuStyle(void) { return m_menustyle; } inline MenuStyle &getMenuStyle(void) { return m_menustyle; }
inline ToolbarStyle &getToolbarStyle(void) { return m_toolbarstyle; } inline ToolbarStyle &getToolbarStyle(void) { return m_toolbarstyle; }
@ -120,6 +122,12 @@ public:
inline unsigned int getFrameWidth(void) const { return m_frame_width; } inline unsigned int getFrameWidth(void) const { return m_frame_width; }
inline const GC &getOpGC(void) const { return m_opgc; } inline const GC &getOpGC(void) const { return m_opgc; }
inline const BColor &getBorderColor(void) const { return m_border_color; } inline const BColor &getBorderColor(void) const { return m_border_color; }
void load(const char *filename);
void reconfigure();
inline void setRootCommand(std::string command) { m_rootcommand = command; }
private: private:
@ -156,6 +164,7 @@ private:
XrmDatabase m_database; XrmDatabase m_database;
Colormap m_colormap; Colormap m_colormap;
int m_screennum; int m_screennum;
std::string m_rootcommand;
}; };