lumiera_/src/gui/gtk-lumiera.hpp

151 lines
3.1 KiB
C++
Raw Normal View History

2008-04-10 16:36:21 +02:00
/*
gtk-lumiera.hpp - Application wide global definitions
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 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
*/
#ifndef GTK_LUMIERA_HPP
2008-04-20 00:16:27 +02:00
#define GTK_LUMIERA_HPP
2008-04-16 19:24:11 +02:00
#include <gtkmm.h>
#include <nobug.h>
#include <vector>
#include <boost/utility.hpp>
2009-01-01 19:43:46 +01:00
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include "lib/util.hpp"
extern "C" {
#include <gavl/gavltime.h>
}
NOBUG_DECLARE_FLAG(gui);
2008-04-16 19:24:11 +02:00
2008-04-10 16:36:21 +02:00
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(String) gettext (String)
# define gettext_noop(String) String
# define N_(String) gettext_noop (String)
#else
# define _(String) (String)
# define N_(String) String
# define textdomain(Domain)
# define bindtextdomain(Package, Directory)
#endif
2008-04-11 21:28:15 +02:00
2008-08-16 18:41:57 +02:00
/**
* The namespace of all GUI code.
*/
namespace gui {
2008-08-16 18:41:57 +02:00
/* ===== The Application Class ===== */
/**
* The main application class.
*/
class GtkLumiera : private boost::noncopyable
{
public:
int main(int argc, char *argv[]);
static Glib::ustring get_home_data_path();
2008-12-30 13:35:58 +01:00
public:
/* ----- Constants ----- */
/**
* The name of the application
*/
static const gchar* AppTitle;
/**
* The version number of the application
*/
static const gchar* AppVersion;
/**
* The copyright of the application
*/
static const gchar* AppCopyright;
/**
* The website of the application
*/
static const gchar* AppWebsite;
/**
* An alphabetical list of the application's authors
*/
static const gchar* AppAuthors[];
/**
* The number of authors in AppAuthors
**/
static const int AppAuthorCount;
};
/**
* Returns a reference to the global application object
*/
GtkLumiera& application();
2008-08-16 18:41:57 +02:00
/* ===== Namespace Definitions ===== */
/**
* The namespace of all dialog box classes.
*/
namespace dialogs {}
2008-08-16 21:04:05 +02:00
/**
* The namespace of data model classes.
*/
namespace model {}
2008-08-16 18:41:57 +02:00
/**
* The namespace of all video output implementations.
*/
namespace output {}
/**
* The namespace of all docking panel classes.
*/
namespace panels {}
/**
* The namespace of all Lumiera custom widgets.
*/
namespace widgets {}
/**
* The namespace of the workspace window, and it's helper classes.
*/
namespace workspace {}
} // namespace gui
2008-04-20 00:16:27 +02:00
#endif // GTK_LUMIERA_HPP