aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-14 00:38:19 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-14 00:38:19 +0200
commita5006f5335e3d16667f01ac6ec27ddcac439b5d7 (patch)
tree9b6d4fd03d5bde89d6e1f9e6d7950f3c1e2f3fde /src/GraphicObjects
parentb76c6bf6ded447932634dd97024c1e423aa35e4b (diff)
* Spinner.goml, Window.cs:
debug * GraphicObject.cs: allow min and max size overriding * ListBox.cs: refresh list when children are cleared
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/GraphicObject.cs4
-rw-r--r--src/GraphicObjects/ListBox.cs1
-rw-r--r--src/GraphicObjects/MessageBox.cs32
-rw-r--r--src/GraphicObjects/Window.cs2
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))