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 namespace lumiera {
84 namespace error {
85  /* some commonly used error marks for the UI... */
86  LUMIERA_ERROR_DECLARE (UIWIRING); // "GUI state contradicts assumptions in signal wiring"
87 }}
88 
89 
90 
91 /* ======= Namespace Definitions ======= */
92 
97 namespace stage {
98 
99  /* widely used type abbreviations */
100  using uString = Glib::ustring;
101  using cuString = const uString;
102 
103  using PStyleContext = Glib::RefPtr<Gtk::StyleContext>;
104  using PCairoContext = Cairo::RefPtr<Cairo::Context>;
105 
106 
107 
108 
116  namespace ctrl {}
117 
123  namespace interact {}
124 
142  namespace model {}
143 
145  namespace output {}
146 
148  namespace dialog {}
149 
151  namespace panel {}
152 
154  namespace setting {}
155 
157  namespace timeline {}
158 
160  namespace workspace {}
161 
163  namespace widget {}
164 
166  namespace draw {}
167 
171  namespace idi {}
172 
173 
174 }// namespace stage
175 #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).
Lumiera public interface.
Definition: advice.cpp:113