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