1 /* Dia -- a diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
3 *
4 * Property system for dia objects/shapes.
5 * Copyright (C) 2000 James Henstridge
6 * Copyright (C) 2001 Cyrille Chepelov
7 * Major restructuration done in August 2001 by C. Chepelov
8 *
9 * properties.c: initialisation routines and stuff that didn't fit anywhere
10 * else. Most of what used to be here has been moved elsewhere !
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
30
31 #include "geometry.h"
32 #ifndef LIBDIA_COMPILATION
33 # define LIBDIA_COMPILATION
34 #endif
35 #undef G_INLINE_FUNC
36 #define G_INLINE_FUNC extern
37 #define G_CAN_INLINE 1
38 #include "properties.h"
39 #include "propinternals.h"
40
41 /* --------------------------------------- */
42
43 void
stdprops_init(void)44 stdprops_init(void)
45 {
46 prop_basic_register();
47 prop_inttypes_register();
48 prop_geomtypes_register();
49 prop_attr_register();
50 prop_text_register();
51 prop_widgets_register();
52 prop_sdarray_register();
53 prop_dicttypes_register();
54 }
55
56 /* --------------------------------------- */
57
58 #ifdef G_OS_WIN32
59 /* moved to properties.h ... */
60 #else
61 /* standard property extra data members */
62 PropNumData prop_std_line_width_data = { 0.0, 10.0, 0.01 };
63 PropNumData prop_std_text_height_data = { 0.1, 10.0, 0.1 };
64 PropEnumData prop_std_text_align_data[] = {
65 { N_("Left"), ALIGN_LEFT },
66 { N_("Center"), ALIGN_CENTER },
67 { N_("Right"), ALIGN_RIGHT },
68 { NULL, 0 }
69 };
70 #endif
71
72 #ifdef FOR_TRANSLATORS_ONLY
73 static char *list [] = {
74 N_("Line color"),
75 N_("Line style"),
76 N_("Fill color"),
77 N_("Draw background"),
78 N_("Start arrow"),
79 N_("End arrow"),
80 N_("Text"),
81 N_("Text alignment"),
82 N_("Font"),
83 N_("Font size"),
84 N_("Text color")
85 };
86 #endif
87