Lumiera  0.pre.03
»edit your freedom«
gtk-base.hpp
Go to the documentation of this file.
1 /*
2  GTK-BASE.hpp - GTK includes and basic definitions
3 
4  Copyright (C) Lumiera.org
5  2011, Hermann Vosseler <Ichthyostega@web.de>
6  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of
11  the License, or (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22 */
23 
24 
57 #ifndef STAGE_GTK_BASE_H
58 #define STAGE_GTK_BASE_H
59 
60 //--------------------tricky special Include sequence
61 #include "lib/hash-standard.hpp"
62 #include <locale>
63 #include <gtkmm.h>
64 #include <nobug.h>
65 //--------------------tricky special Include sequence
66 
67 #include "lib/error.hpp"
68 
69 
70 #ifdef ENABLE_NLS
71 # include <libintl.h>
72 # define _(String) gettext (String)
73 # define gettext_noop(String) String
74 # define N_(String) gettext_noop (String)
75 #else
76 # define _(String) (String)
77 # define N_(String) String
78 # define textdomain(Domain)
79 # define bindtextdomain(Package, Directory)
80 #endif
81 
82 
83 
84 
85 /* ======= Namespace Definitions ======= */
86 
91 namespace stage {
92 
93  /* some commonly used error marks for the UI... */
94  LUMIERA_ERROR_DECLARE (UIWIRING); // "GUI state contradicts assumptions in signal wiring"
95 
96  /* widely used type abbreviations */
97  using uString = Glib::ustring;
98  using cuString = const uString;
99 
100  using PStyleContext = Glib::RefPtr<Gtk::StyleContext>;
101  using PCairoContext = Cairo::RefPtr<Cairo::Context>;
102 
103 
104 
105 
113  namespace ctrl {}
114 
120  namespace interact {}
121 
139  namespace model {}
140 
142  namespace output {}
143 
145  namespace dialog {}
146 
148  namespace panel {}
149 
151  namespace setting {}
152 
154  namespace timeline {}
155 
157  namespace workspace {}
158 
160  namespace widget {}
161 
163  namespace draw {}
164 
168  namespace idi {}
169 
170 
171 }// namespace stage
172 #endif /*STAGE_GTK_BASE_H*/
#define LUMIERA_ERROR_DECLARE(err)
Forward declare an error constant.
Definition: error.h:71
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Helper to use a single extension point for specialised hash functions.
Lumiera error handling (C++ interface).