edelib: edelib/Ede.h Source File

edelib 1.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

Ede.h
1 /*
2 * $Id: String.h 2594 2009-03-25 14:54:54Z karijes $
3 *
4 * EDE specific code
5 * Copyright (c) 2010-2012 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __EDELIB_EDE_H__
22 #define __EDELIB_EDE_H__
23
24 #include "edelib-global.h"
25 #include "Nls.h"
26
27 EDELIB_NS_BEGIN
28
39 class EDELIB_API ApplicationBootstrap {
40 private:
41 int flags;
42 public:
44 ApplicationBootstrap(const char *name, const char *nls_path);
46 ~ApplicationBootstrap();
47 };
48
49 EDELIB_NS_END
50
57 #define EDE_APPLICATION_WITH_NLS_PATH(name, path) \
58 extern int FL_NORMAL_SIZE; \
59 FL_NORMAL_SIZE = 12; \
60 EDELIB_NS_PREPEND(ApplicationBootstrap) __ede_application_bootstrap(name, path)
61
68 #define EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, path) \
69 EDELIB_NS_PREPEND(nls_support_init(name, path)
70
86 #ifdef PREFIX
87 # define EDE_APPLICATION(name) EDE_APPLICATION_WITH_NLS_PATH(name, PREFIX"/share/locale")
88 # define EDE_CONSOLE_APPLICATION(name) EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, PREFIX"/share/locale")
89 #else
90 # define EDE_APPLICATION(name) EDE_APPLICATION_WITH_NLS_PATH(name, "dummy_path")
91 # define EDE_CONSOLE_APPLICATION(name) EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, "dummy_path")
92 #endif
93
94 #endif
edelib::ApplicationBootstrap
EDE application bootstrapper.
Definition: Ede.h:39