LUMIERA.clone/src/gui/window-manager.hpp

72 lines
2 KiB
C++
Raw Normal View History

2008-04-20 00:16:27 +02:00
/*
window-manager.hpp - Defines the global UI Manager class
Copyright (C) Lumiera.org
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/** @file window-manager.hpp
2008-05-05 23:21:58 +02:00
** This file contains the defintion of global UI Manager class
2008-04-20 00:16:27 +02:00
** user actions.
** @see window-manager.cpp
** @see gtk-lumiera.hpp
*/
#ifndef WINDOW_MANAGER_HPP
#define WINDOW_MANAGER_HPP
#include "gtk-lumiera.hpp"
2008-04-20 00:16:27 +02:00
namespace lumiera {
namespace gui {
class WindowManager
{
public:
WindowManager();
2008-04-20 00:16:27 +02:00
bool set_theme(Glib::ustring path);
static GdkColor read_style_colour_property(
Gtk::Widget &widget, const gchar *property_name,
guint16 red, guint16 green, guint16 blue);
private:
/**
* Registers application stock items: icons and
* labels associated with IDs */
static void register_stock_items();
2008-04-20 00:16:27 +02:00
static bool add_stock_item_set(
const Glib::RefPtr<Gtk::IconFactory>& factory,
const Glib::ustring& icon_name,
const Glib::ustring& id,
const Glib::ustring& label);
static bool add_stock_icon(Gtk::IconSet &icon_set,
const Glib::ustring& icon_name, Gtk::IconSize size);
static bool add_stock_icon_source(Gtk::IconSet &icon_set,
const Glib::ustring& base_dir,
const Glib::ustring& icon_name, Gtk::IconSize size);
};
2008-04-20 00:16:27 +02:00
} // namespace gui
} // namespace lumiera
#endif // WINDOW_MANAGER_HPP