UML class fix bigtime.
[dia.git] / lib / properties.c
blob9374dce3fa41545468d9ad57b8f23a8042b447cb
1 /* Dia -- a diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
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
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 !
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.
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.
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.
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
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"
41 /* --------------------------------------- */
43 void
44 stdprops_init(void)
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();
55 /* --------------------------------------- */
57 #ifdef G_OS_WIN32
58 /* moved to properties.h ... */
59 #else
60 /* standard property extra data members */
61 PropNumData prop_std_line_width_data = { 0.0, 10.0, 0.01 };
62 PropNumData prop_std_text_height_data = { 0.1, 10.0, 0.1 };
63 PropEnumData prop_std_text_align_data[] = {
64 { N_("Left"), ALIGN_LEFT },
65 { N_("Center"), ALIGN_CENTER },
66 { N_("Right"), ALIGN_RIGHT },
67 { NULL, 0 }
69 #endif
71 #ifdef FOR_TRANSLATORS_ONLY
72 static char *list [] = {
73 N_("Line color"),
74 N_("Line style"),
75 N_("Fill color"),
76 N_("Draw background"),
77 N_("Start arrow"),
78 N_("End arrow"),
79 N_("Text"),
80 N_("Text alignment"),
81 N_("Font"),
82 N_("Font size"),
83 N_("Text color")
85 #endif