2008-04-10 16:36:21 +02:00
|
|
|
/*
|
2011-02-06 21:23:34 +01:00
|
|
|
GTK-LUMIERA.hpp - The Lumiera GUI Application Object
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-04-11 23:04:39 +02:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-04-11 23:04:39 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2008-04-11 23:04:39 +02:00
|
|
|
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.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-04-11 23:04:39 +02:00
|
|
|
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.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-04-11 23:04:39 +02:00
|
|
|
*/
|
|
|
|
|
/** @file gtk-lumiera.hpp
|
|
|
|
|
** This file contains application wide global definitions
|
|
|
|
|
** user actions.
|
2008-04-20 00:16:27 +02:00
|
|
|
** @see gtk-lumiera.cpp
|
2008-04-10 16:36:21 +02:00
|
|
|
*/
|
2008-04-11 23:04:39 +02:00
|
|
|
|
2011-02-06 21:23:34 +01:00
|
|
|
#ifndef GUI_GTK_LUMIERA_H
|
|
|
|
|
#define GUI_GTK_LUMIERA_H
|
2008-04-12 18:46:32 +02:00
|
|
|
|
2009-01-31 20:30:58 +01:00
|
|
|
|
2011-02-06 21:23:34 +01:00
|
|
|
#include "gui/gtk-base.hpp"
|
|
|
|
|
#include "gui/window-manager.hpp"
|
2008-06-19 00:57:47 +02:00
|
|
|
|
2011-02-06 21:23:34 +01:00
|
|
|
#include <boost/noncopyable.hpp>
|
|
|
|
|
#include <vector>
|
2008-04-16 19:24:11 +02:00
|
|
|
|
2008-04-11 21:28:15 +02:00
|
|
|
|
2008-04-12 18:46:32 +02:00
|
|
|
namespace gui {
|
2008-12-30 13:35:58 +01:00
|
|
|
|
|
|
|
|
|
2011-02-06 21:23:34 +01:00
|
|
|
/* ====== The Application Class ====== */
|
2008-08-16 18:41:57 +02:00
|
|
|
|
|
|
|
|
/**
|
2011-02-06 21:23:34 +01:00
|
|
|
* The main application class.
|
2009-03-16 23:14:22 +01:00
|
|
|
*/
|
2011-02-06 21:23:34 +01:00
|
|
|
class GtkLumiera
|
|
|
|
|
: boost::noncopyable
|
|
|
|
|
{
|
|
|
|
|
/** Central application window manager instance */
|
|
|
|
|
WindowManager windowManagerInstance_;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
/** access the the global application object */
|
|
|
|
|
static GtkLumiera& application();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main(int argc, char *argv[]);
|
|
|
|
|
|
|
|
|
|
WindowManager& windowManager();
|
|
|
|
|
|
|
|
|
|
static Glib::ustring get_home_data_path();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** the name of the application */
|
|
|
|
|
static const Glib::ustring get_app_title();
|
|
|
|
|
|
|
|
|
|
static const Glib::ustring get_app_version();
|
|
|
|
|
|
|
|
|
|
static const Glib::ustring get_app_copyright();
|
|
|
|
|
|
|
|
|
|
static const Glib::ustring get_app_website();
|
|
|
|
|
|
|
|
|
|
/** alphabetical list of the application's authors */
|
|
|
|
|
static const std::vector<Glib::ustring> get_app_authors();
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}// namespace gui
|
|
|
|
|
#endif
|