Mercurial > projects > mde
comparison mde/gui/exception.d @ 39:5132301e9ed7
Implemented widget saving.
Widget creation data saving (sub-widgets, etc:) code there but not used.
Widget mutable data saving & loading: window size/position, row/column dimensions saved (still needs a fix in GridWidget.setSize()).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 07 May 2008 13:07:03 +0100 |
parents | 0aa621b3e070 |
children | b28d7adc786b |
comparison
equal
deleted
inserted
replaced
38:8c4c96f04e7f | 39:5132301e9ed7 |
---|---|
35 this (char[] msg) { | 35 this (char[] msg) { |
36 super(msg); | 36 super(msg); |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 /// Thrown when or createWidget a Widget class's this() is called with invalid data. | 40 /// Thrown when createWidget or a Widget class's this() is called with invalid data. |
41 class WidgetDataException : WindowLoadException | 41 class WidgetDataException : WindowLoadException |
42 { | 42 { |
43 this () { // Default, by Widget class's this | 43 this () { // Default, by Widget class's this |
44 super ("Bad widget data"); | 44 super ("Bad widget data"); |
45 } | 45 } |
46 this (char[] msg) { // From createWidget | 46 this (char[] msg) { // From createWidget |
47 super (msg); | 47 super (msg); |
48 } | 48 } |
49 } | 49 } |
50 | |
51 /// Thrown when a Widget class's adjust() is called with invalid data. | |
52 class MutableDataException : WindowLoadException | |
53 { | |
54 this () { // Default, by Widget class's this | |
55 super ("Bad widget mutable data"); | |
56 } | |
57 this (char[] msg) { // From createWidget | |
58 super (msg); | |
59 } | |
60 } |