File: type.h

package info (click to toggle)
gaby 2.0.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,148 kB
  • ctags: 3,101
  • sloc: ansic: 48,660; sh: 8,710; python: 1,161; makefile: 951; perl: 265; sed: 93; xml: 89; sql: 25
file content (139 lines) | stat: -rw-r--r-- 2,590 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/*
   All the structures the builder uses.

   Gaby Description Builder
   Copyright (C) 1999  Ron Bessems
   Copyright (C) 2000  Frederic Peters


   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

 */


enum field_type
{
	T_STRING = 0,
	T_STRINGS = 1,
	T_INTEGER = 2,
	T_REAL = 3,
	T_DATE = 4,
	T_BOOLEAN = 5,
	T_MULTIMEDIA = 6,
	T_DECIMAL = 7,
	T_FILE = 8,
	T_RECORD = 9,		/* those are for links between tables. */
	T_RECORDS = 10,		/* later. */
};

typedef struct _location	location;
typedef struct _table_location  tlocation;
typedef struct _table		table;
typedef struct _field		field;
typedef struct _subtable	subtable;
typedef struct _subfield	subfield;
typedef struct _misc_s		misc_s;
typedef struct _file_s		file_s;
typedef struct _doublestring	doublestring;

struct _location
{
	gchar *path;
	GList *prop;
	GtkWidget *window;
};

struct _table_location
{
	gchar *name_of_table;
	GList *locations;
	GtkWidget *window;
};  

struct _misc_s
{
	gchar *name_of_subtable;
	gchar *view_as;
	GList *bind_to;
	gboolean visible;
	gboolean main;
	GtkWidget *window;
};

struct _subtable
{
	gchar *name;
	gchar *name_of_table;
	GList *viewable_as;
	GList *subfields;
	GList *i18n_name;
	GList *i18n_desc;
	GtkWidget *propwindow;
	GtkWidget *window;
};

struct _subfield
{
	gchar *name;
	gchar *name_of_field;
	GList *i18n_name;
	GList *i18n_desc;
	GtkWidget *window;
};


struct _file_s
{
	gchar *name;
	GtkWidget *table;
	GtkWidget *preview;
	GtkWidget *subtablewin;
	GtkWidget *actionwin;
	GtkWidget *locationwin;
	GtkWidget *miscwin;
	GList *tables;
	GList *subtables;
	GList *miscs;
	GList *tlocations;
	gchar *actions;
	gchar *plugin_options;
	gboolean changed;
};

struct _field
{
	gchar *name;
	GList *properties;
	GList *i18n_name;
	GList *i18n_desc;
	enum field_type type;
	GtkWidget *window;
};

struct _table
{
	gchar *name;
	gchar *alias;
	GList *fields;
	GtkWidget *window;
};

struct _doublestring
{
	gchar *name;
	gchar *locale;
};