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
|
|
|
|
|
|
2008-06-19 00:57:47 +02:00
|
|
|
#include "gtk-lumiera.hpp"
|
|
|
|
|
|
2008-04-20 00:16:27 +02:00
|
|
|
namespace lumiera {
|
|
|
|
|
namespace gui {
|
|
|
|
|
|
2008-08-15 00:15:47 +02:00
|
|
|
class WindowManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
WindowManager();
|
2008-04-20 00:16:27 +02:00
|
|
|
|
2008-08-15 00:15:47 +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);
|
2008-06-19 00:57:47 +02:00
|
|
|
|
2008-08-15 00:15:47 +02:00
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* Registers application stock items: icons and
|
|
|
|
|
* labels associated with IDs */
|
|
|
|
|
static void register_stock_items();
|
2008-04-20 00:16:27 +02:00
|
|
|
|
2008-08-15 00:15:47 +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,
|
2008-10-08 00:02:27 +02:00
|
|
|
const Glib::ustring& icon_name, Gtk::IconSize size);
|
2008-08-15 00:15:47 +02:00
|
|
|
|
|
|
|
|
static bool add_stock_icon_source(Gtk::IconSet &icon_set,
|
|
|
|
|
const Glib::ustring& base_dir,
|
2008-10-08 00:02:27 +02:00
|
|
|
const Glib::ustring& icon_name, Gtk::IconSize size);
|
2008-08-15 00:15:47 +02:00
|
|
|
};
|
2008-04-20 00:16:27 +02:00
|
|
|
|
|
|
|
|
} // namespace gui
|
|
|
|
|
} // namespace lumiera
|
|
|
|
|
|
|
|
|
|
#endif // WINDOW_MANAGER_HPP
|