Mercurial > projects > mde
diff 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 |
line wrap: on
line diff
--- a/mde/gui/exception.d Mon May 05 17:02:21 2008 +0100 +++ b/mde/gui/exception.d Wed May 07 13:07:03 2008 +0100 @@ -37,7 +37,7 @@ } } -/// Thrown when or createWidget a Widget class's this() is called with invalid data. +/// Thrown when createWidget or a Widget class's this() is called with invalid data. class WidgetDataException : WindowLoadException { this () { // Default, by Widget class's this @@ -47,3 +47,14 @@ super (msg); } } + +/// Thrown when a Widget class's adjust() is called with invalid data. +class MutableDataException : WindowLoadException +{ + this () { // Default, by Widget class's this + super ("Bad widget mutable data"); + } + this (char[] msg) { // From createWidget + super (msg); + } +}