2005-09-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / PresentationFramework / ChangeLog
1 2005-09-01  Iain McCoy  <iain@mccoy.id.au>
2
3         * System.Windows.Serialization/BamlAttributeUsage.cs,
4           System.Windows.Serialization/XamlParseMode.cs,
5           System.Windows.Serialization/Exceptions.cs: add forgotten files
6
7 2005-09-01  Iain McCoy  <iain@mccoy.id.au>
8
9         * System.Windows.Serialization/Exceptions.cs: create exception
10         * Mono.Windows.Serialization/XamlParser.cs: throw the new
11         xaml-specific exception
12         * Test/XamlParser.cs: expect the new xaml-specific exception
13
14 2005-09-01  Iain McCoy  <iain@mccoy.id.au>
15
16         * Mono.Windows.Serialization/IXamlWriter.cs: deleted obsolete file
17
18 2005-09-01  Iain McCoy  <iain@mccoy.id.au>
19
20         * Mono.Windows.Serialization/XamlParser.cs,
21           Mono.Windows.Serialization/ParserConsumerBase.cs,
22           Mono.Windows.Serialization/ParserToCode.cs: somewhat improved
23           commentage
24
25
26 2005-09-01  Iain McCoy  <iain@mccoy.id.au>
27         
28         * Mono.Windows.Serialization/ParserToCode.cs
29           Test/Parser.cs
30           Test/XamlParser.cs
31           Test/ParserToCode.cs: Added tests for x:Key and StaticResource,
32         fixed bug in handling of x:Key in the code generator
33
34 2005-08-31  Iain McCoy  <iain@mccoy.id.au>
35
36         * System.Windows.Serialization/Parser.cs,
37           System.Windows.Serialization/data-classes.txt,
38           Mono.Windows.Serialization/ParserToCode.cs,
39           Mono.Windows.Serialization/ParserConsumerBase.cs
40           Mono.Windows.Serialization/XamlParser.cs: initial support for
41         x:Key and StaticResource - these exist mainly to support the styling
42         system that will eventually live in System.Windows
43
44 2005-08-28  Iain McCoy  <iain@mccoy.id.au>
45
46         * Test/Parser.cs, Test/ParserToCode.cs: added tests for objects as
47         values of dependency properties
48
49 2005-08-28  Iain McCoy  <iain@mccoy.id.au>
50
51         * Test/ObjectWriter.cs, Test/Parser.cs: renamed to match the new world
52         * Test/CodeWriter.cs, Test/ParserToCode.cs: renamed to match the new
53         world
54
55 2005-08-28  Iain McCoy  <iain@mccoy.id.au>
56
57         * System.Windows.Serialization/Parser.cs: a bit more refactoring to
58         reduce code duplication
59         * Mono.Windows.Serialization/ParserToCode.cs: similarly, refactoring
60         to reduce code duplication
61
62 2005-08-28  Iain McCoy  <iain@mccoy.id.au>
63
64         * Mono.Windows.Serialization/ParserConsumerBase.cs: move dispatching
65         to handlers based on nodes returned from the parser into a base class
66         * Mono.Windows.Serialization/ParserToCode.cs: use ParserConsumerBase
67         * System.Windows.Serialization/Parser.cs: use ParserConsumerBase,
68         support for objects as values of dependency properties
69
70 2005-08-27  Iain McCoy  <iain@mccoy.id.au>
71
72         * Mono.Windows.Serialization/XamlParser.cs: added support for objects
73         as values of dependency properties
74         * Mono.Windows.Serialization/ParserToCode.cs: added support for code
75         generation for objects as values of dependency properties
76         * Test/XamlParser.cs: a test of same
77         * System.Windows.Serialization/data-classes.txt: some minor
78         refinements to enable the above
79         * System.Windows.Serialization/Parser.cs: stubs for instantiating
80         objects as values of dependency properties
81
82 2005-08-26  Iain McCoy  <iain@mccoy.id.au>
83
84         * System.Windows.Serialization/data-classes-builder.pl: tighten up
85         access controls for members that don't exist in microsoft's impl
86         (internal access only is appropriate for these members)
87         * Test/XamlParser.cs: use reflection to access the newly tightened-up
88         members
89
90 2005-08-26  Iain McCoy  <iain@mccoy.id.au>
91
92         * Mono.Windows.Serialization/CodeWriter.cs,
93         Mono.Windows.Serialization/ParserToCode.cs: renamed CodeWriter to
94         ParserToCode in order to more closely parallel
95         System.Windows.Serialization.Parser
96         * Test/CodeWriter.cs: changed to test the new ParserToCode class
97
98 2005-08-24  Iain McCoy  <iain@mccoy.id.au>
99
100         * Mono.Windows.Serialization/ObjectWriter.cs,
101         System.Windows.Serialization/Parser.cs: renamed ObjectWriter to
102         Parser, made interface more similar
103         * Test/ObjectWriter.cs: changed to test the new Parser class
104
105 2005-08-24  Iain McCoy  <iain@mccoy.id.au>
106
107         * Mono.Windows.Serialization/XamlParser.cs: make internal
108         * Mono.Windows.Serialization/CodeWriter.cs: add private member so that
109         the tests can get at the type for XamlParser
110         * Test/XamlParser.cs: use reflection to get the XamlParser type out of
111         CodeWriter, create an instance of it and get nodes from it
112
113 2005-08-23  Iain McCoy  <iain@mccoy.id.au>
114
115         * System.Windows.Serialization/XamlParser.cs: rearrange class so that
116         it presents a ReadNextNode() method, repeated calling of which will
117         produce the next node with information about the Xaml file being
118         parsed
119         * Test/XamlParser.cs: rewrite tests so that they use the new interface
120         of the parser
121         * System.Windows.Serialization/CodeWriter.cs: changed code generator
122         so that it consumes the event stream from the parser
123         * Test/CodeWriter.cs: made tests friendly to the new way CodeWriter
124         works
125         * System.Windows.Serialization/CodeWriter.cs: changed object builder
126         so that it consumes the event stream from the parser
127         * Test/ObjectWriter.cs: made tests friendly to the new way ObjectWriter
128         works
129
130 2005-08-07  Iain McCoy  <iain@mccoy.id.au>
131
132         * System.Windows.Serialization/data-classes-builder.pl,
133           System.Windows.Serialization/data-classes.txt: add stuff to generate
134         the zillion little classes to carry information around
135         * PresentationFramework.dll.sources, Makefile: invoke
136         data-classes-builder.pl as needed.
137
138 2005-07-25  Iain McCoy  <iain@mccoy.id.au>
139
140         * Test/CodeWriter.cs: updated tests to reflect change in code
141         generator
142
143 2005-07-25  Iain McCoy  <iain@mccoy.id.au>
144
145         * Test/XamlParser.cs: added tests for correct catching of non-existent
146         processing instructions, attempting to set a dependency property on an
147         object that is not a dependency object and for code elements.
148         * Test/CodeWriter.cs: added tests for partial class generation and for
149         giving a specific name to an object to be stored as a property value
150         * Mono.Windows.Serialization/XamlParser.cs: be more paranoid about
151         children of code elements, have better punctuation if objecting to an
152         incorrect mapping and throw exceptions on unknown property types.
153
154 2005-07-24  Iain McCoy  <iain@mccoy.id.au>
155
156         * Test/XamlParser.cs,
157           Mono.Windows.Serialization/XamlParser.cs: added a test for 
158         inappropriate usage of the Class attribute and fixed bug revealed by
159         the test
160         * Test/ObjectWriter.cs,
161           PresentationFramework_test.dll.sources: added tests for object
162         builder (based on tests for code generator)
163
164
165 2005-07-23  Iain McCoy  <iain@mccoy.id.au>
166
167         * Test/XamlParser.cs: added test for events and delegates as property
168         values
169         * Test/CodeWriter.cs: added tests for events and for delegates as
170         property values
171
172 2005-07-19  Iain McCoy  <iain@mccoy.id.au>
173
174         * Mono.Windows.Serialization/XamlWriter.cs: renamed to IXamlWriter.cs
175
176 2005-07-18  Iain McCoy  <iain@mccoy.id.au>
177
178         * Mono.Windows.Serialization/*, Test/*: change stupid
179         CreateElementText name of method on XamlWriter to something marginally
180         more sensible
181
182 2005-07-18  Iain McCoy  <iain@mccoy.id.au>
183
184         * Mono.Windows.Serialization/CodeWriter.cs, 
185           Test/CodeWriter.cs
186           Test/XamlWriter.cs: fix bug with explicitly naming objects in
187         IAddChild blocks and add tests for same
188         * Mono.Windows.Serialization/ObjectWriter.cs: support for arbitrary
189         objects as property values.
190
191 2005-07-18  Iain McCoy  <iain@mccoy.id.au>
192
193         * Test/CodeWriter.cs: added a bunch of tests for the code generator
194         * Mono.Windows.Serialization/CodeWriter.cs: fixed a few bugs turned up
195         by the tests
196         * Test/CodeWriter.cs, Test/XamlParser.cs: added copyright/license
197         notices
198
199 2005-07-18  Iain McCoy  <iain@mccoy.id.au>
200
201         * Mono.Windows.Serialization/XamlParser.cs: some refactoring and
202         improvements in error reporting
203         * Test/XamlParser.cs: added a few tests and improved the readability
204         of the baked-in XAML documents somewhat. Additionally added some
205         comments explaining the approach taken by the tests and test
206         scaffolding.
207
208 2005-07-17  Iain McCoy  <iain@mccoy.id.au>
209
210         * Test/XamlParser.cs: add a bunch of tests
211         * Mono.Windows.Serialization/XamlParser.cs: improve error reporting,
212         don't accept elements without namespaces
213
214 2005-07-16  Iain McCoy  <iain@mccoy.id.au>
215
216         * Test/XamlParser.cs: fix a bug in property tests, add tests for
217         dependency properties and complex objects as property values. Actually
218         include file in svn, oops.
219
220 2005-07-15  Iain McCoy  <iain@mccoy.id.au>
221
222         * System.Windows.Serialization/Mapper.cs: make assembly loading more
223         resilient
224         * Mono.Windows.Serialization/ObjectWriter.cs: do conversions from
225         strings and support dependency properties
226
227 2005-07-15  Iain McCoy  <iain@mccoy.id.au>
228
229         * Mono.Windows.Serialization/CodeWriter.cs: don't try to convert
230         objects into their parent types.
231
232 2005-07-15  Iain McCoy  <iain@mccoy.id.au>
233
234         * Mono.Windows.Serialization/CodeWriter.cs: Better debugging
235         information
236         * Mono.Windows.Serialization/XamlParser.cs: Better debugging
237         information, consolidated push() code
238         * Mono.Windows.Serialization/CodeWriter.cs: inverted sourceType and
239         destType in endPropertyObject
240         * Mono.Windows.Serialization/XamlParser.cs: changed parseElement so
241         that it doesn't stuff up the stack on empty elements and replaced 
242         an if statement spanning CurrentState with a case statement for 
243         clarity
244
245 2005-07-14  Iain McCoy  <iain@mccoy.id.au>
246
247         * Mono.Windows.Serialization/XamlParser.cs,
248           Mono.Windows.Serialization/XamlWriter.cs,
249           Mono.Windows.Serialization/CodeWriter.cs: Initial support for
250         creating complex objects as values of properties
251
252 2005-07-13  Iain McCoy  <iain@mccoy.id.au>
253
254         * Mono.Windows.Serialization/XamlParser.cs: fixed bug in the code
255         detecting that the file's contents must be finished, where it forbade
256         whitespace after the XAML code
257
258 2005-07-11  Iain McCoy  <iain@mccoy.id.au>
259
260         * Makefile,
261           Test/XamlParser.cs: added a few tests
262         * Mono.Windows.Serialization/CodeWriter.cs,
263           Mono.Windows.Serialization/XamlParser.cs: fixed some bugs that the
264           new tests turned up
265
266 2005-07-08  Iain McCoy  <iain@mccoy.id.au>
267
268         * Mono.Windows.Serialization/ObjectWriter.cs: code to build objects at
269         runtime from a xaml file. Current problems are with events and
270         delegates (current behaviour is untested and possibly useless) and
271         DependencyProperties (not implemented yet)
272
273 2005-07-08  Iain McCoy  <iain@mccoy.id.au>
274
275         * Mono.Windows.Serialization/XamlParser.cs,
276           Mono.Windows.Serialization/XamlWriter.cs,
277           Mono.Windows.Serialization/CodeWriter.cs: removed TypeConverter
278           stuff from everything except CodeWriter. By using TypeDescriptor,
279           the generator doesn't need to be told about the converter and since
280           the framework will find it we don't have to search for it.
281
282 2005-07-08  Iain McCoy  <iain@mccoy.id.au>
283
284         * Mono.Windows.Serialization/XamlParser.cs,
285           Mono.Windows.Serialization/XamlWriter.cs,
286           Mono.Windows.Serialization/CodeWriter.cs: support for x:Name
287           attributes and for considering Name properties to have the same
288           affect.
289
290 2005-07-06  Iain McCoy  <iain@mccoy.id.au>
291
292         * Mono.Windows.Serialization/CodeWriter.cs: cleaned up a little, added
293         support for the `partial' class modifier
294
295 2005-07-06  Iain McCoy  <iain@mccoy.id.au>
296
297         * Mono.Windows.Serialization/Mapping.cs: removed in favour of
298         System.Windows.Serialization/Mapper.cs
299         * System.Windows.Serialization/Mapper.cs: Added because it is the
300         microsoft-documented mapping API
301         * Mono.Windows.Serialization/XamlParser.cs: transition to the new
302         mapper system, also some general converging on the name
303         DependencyProperty throughout instead of ContextProperty or
304         AttachedProperty.
305
306 2005-07-05  Iain McCoy  <iain@mccoy.id.au>
307
308         * Mono.Windows.Serialization/XamlParser.cs,
309           Mono.Windows.Serialization/XamlWriter.cs,
310           Mono.Windows.Serialization/CodeWriter.cs: add support for attached
311           properties as attributes, supplementing the existing support for
312           attached properties as elements
313
314 2005-07-05  Iain McCoy  <iain@mccoy.id.au>
315
316         * Mono.Windows.Serialization/XamlParser.cs,
317           Mono.Windows.Serialization/XamlWriter.cs,
318           Mono.Windows.Serialization/CodeWriter.cs: add support for delegate
319           properties and for events
320         * Mono.Windows.Serialization/XamlParser.cs,
321           Mono.Windows.Serialization/XamlWriter.cs,
322           Mono.Windows.Serialization/CodeWriter.cs,
323           Mono.Windows.Serialization/Mapper.cs: tighten up types so that Type
324           and PropertyInfo are passed instead of strings
325
326 2005-07-03  Iain McCoy  <iain@mccoy.id.au>
327
328         * Mono.Windows.Serialization/XamlParser.cs: added support for Code
329         elements, provide fully qualified name of type to attach to, skip
330         xmns: attributes when processing, 
331         * Mono.Windows.Serialization/XamlWriter.cs: added WriteCode member,
332         ordered methods by type of thing dealt with
333         * Mono.Windows.Serialization/CodeWriter.cs: added support for Code
334         elements, call empty constructor for objects, call TypeConverter
335         almost correctly.
336
337 2005-07-03  Iain McCoy  <iain@mccoy.id.au>
338
339         * Mono.Windows.Serialization/CodeWriter.cs: use CodeDom to do code
340         generation
341         * Mono.Windows.Serialization/CodeWriter.cs:
342         * Mono.Windows.Serialization/XamlWriter.cs:
343         * Mono.Windows.Serialization/XamlParser.cs: initial TypeConverter
344         support
345
346 2005-07-02  Iain McCoy  <iain@mccoy.id.au>
347
348         * whole folder: implementation of Xaml-related namespaces