diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 4 | ||||
| -rw-r--r-- | src/GraphicObjects/ListBox.cs | 1 | ||||
| -rw-r--r-- | src/GraphicObjects/MessageBox.cs | 32 | ||||
| -rw-r--r-- | src/GraphicObjects/Window.cs | 2 |
4 files changed, 36 insertions, 3 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 98b52b0d..f8ffb511 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -295,12 +295,12 @@ namespace go }
}
[XmlAttributeAttribute()][DefaultValue("0;0")]
- public Size MaximumSize {
+ public virtual Size MaximumSize {
get { return _maximumSize; }
set { _maximumSize = value; }
}
[XmlAttributeAttribute()][DefaultValue("0;0")]
- public Size MinimumSize {
+ public virtual Size MinimumSize {
get { return _minimumSize; }
set { _minimumSize = value; }
}
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs index ea7f9ec5..6267ca92 100644 --- a/src/GraphicObjects/ListBox.cs +++ b/src/GraphicObjects/ListBox.cs @@ -72,6 +72,7 @@ namespace go data = value; _list.Children.Clear (); + _list.registerForGraphicUpdate (); if (data == null) return; diff --git a/src/GraphicObjects/MessageBox.cs b/src/GraphicObjects/MessageBox.cs new file mode 100644 index 00000000..a5ce6910 --- /dev/null +++ b/src/GraphicObjects/MessageBox.cs @@ -0,0 +1,32 @@ +// +// MessageBox.cs +// +// Author: +// Jean-Philippe Bruyère <jp.bruyere@hotmail.com> +// +// Copyright (c) 2015 jp +// +// 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 3 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, see <http://www.gnu.org/licenses/>. +using System; + +namespace go +{ + public class MessageBox + { + public MessageBox () + { + } + } +} + diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 09488499..8355ff15 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -174,7 +174,7 @@ namespace go _icon = this.child.FindByName ("Icon") as Image; } - void butQuitPress (object sender, MouseButtonEventArgs e) + protected void butQuitPress (object sender, MouseButtonEventArgs e) { ILayoutable parent = (sender as GraphicObject).Parent; while(!(parent is Window)) |