Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
gtk-base.hpp
Go to the documentation of this file.
1/*
2 GTK-BASE.hpp - GTK includes and basic definitions
3
4 Copyright (C)
5 2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 2011, Hermann Vosseler <Ichthyostega@web.de>
7
8  **Lumiera** is free software; you can redistribute it and/or modify it
9  under the terms of the GNU General Public License as published by the
10  Free Software Foundation; either version 2 of the License, or (at your
11  option) any later version. See the file COPYING for further details.
12
13*/
14
15
48#ifndef STAGE_GTK_BASE_H
49#define STAGE_GTK_BASE_H
50
51//--------------------tricky special Include sequence
52#include "lib/hash-standard.hpp"
53#include <locale>
54#include <gtkmm.h>
55#include <nobug.h>
56//--------------------tricky special Include sequence
57
58#include "lib/error.hpp"
59#include "lib/integral.hpp"
60
61
62#ifdef ENABLE_NLS
63# include <libintl.h>
64# define _(String) gettext (String)
65# define gettext_noop(String) String
66# define N_(String) gettext_noop (String)
67#else
68# define _(String) (String)
69# define N_(String) String
70# define textdomain(Domain)
71# define bindtextdomain(Package, Directory)
72#endif
73
74
75namespace lumiera {
76namespace error {
77 /* some commonly used error marks for the UI... */
78 LUMIERA_ERROR_DECLARE (UIWIRING); // "GUI state contradicts assumptions in signal wiring"
79}}
80
81
82
83/* ======= Namespace Definitions ======= */
84
89namespace stage {
90
91 /* widely used type abbreviations */
92 using uString = Glib::ustring;
93 using cuString = const uString;
94
95 using PStyleContext = Glib::RefPtr<Gtk::StyleContext>;
96 using PCairoContext = Cairo::RefPtr<Cairo::Context>;
97
98
99
100
108 namespace ctrl {}
109
115 namespace interact {}
116
134 namespace model {}
135
137 namespace output {}
138
140 namespace dialog {}
141
143 namespace panel {}
144
146 namespace setting {}
147
149 namespace timeline {}
150
152 namespace workspace {}
153
155 namespace widget {}
156
158 namespace draw {}
159
163 namespace idi {}
164
165
166}// namespace stage
167#endif /*STAGE_GTK_BASE_H*/
#define LUMIERA_ERROR_DECLARE(err)
Forward declare an error constant.
Definition error.h:62
Lumiera error handling (C++ interface).
Helper to use a single extension point for specialised hash functions.
Inclusion for common place integral types and constants.
Lumiera public interface.
Definition advice.hpp:102
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37
Glib::RefPtr< Gtk::StyleContext > PStyleContext
Definition gtk-base.hpp:95
Cairo::RefPtr< Cairo::Context > PCairoContext
Definition gtk-base.hpp:96
const uString cuString
Definition gtk-base.hpp:93
Glib::ustring uString
Definition gtk-base.hpp:92