[Monodevelop-patches-list] r762 - in trunk/MonoDevelop/src/Main/Base: Gui/Dialogs Gui/Dialogs/OptionPanels/IDEOptions Internal/Codons
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Feb 3 16:31:28 EST 2004
Author: tberman
Date: 2004-02-03 16:31:27 -0500 (Tue, 03 Feb 2004)
New Revision: 762
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/AbstractOptionPanel.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
trunk/MonoDevelop/src/Main/Base/Internal/Codons/IDialogPanel.cs
Log:
more cute stuff
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/AbstractOptionPanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/AbstractOptionPanel.cs 2004-02-03 20:11:31 UTC (rev 761)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/AbstractOptionPanel.cs 2004-02-03 21:31:27 UTC (rev 762)
@@ -23,6 +23,12 @@
return this;
}
}
+
+ public virtual Gtk.Image Icon {
+ get {
+ return null;
+ }
+ }
public bool WasActivated {
get {
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs 2004-02-03 20:11:31 UTC (rev 761)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/OptionPanels/IDEOptions/LoadSavePanel.cs 2004-02-03 21:31:27 UTC (rev 762)
@@ -53,7 +53,13 @@
public LoadSavePanel () : base ()
{
- }
+ }
+
+ public override Gtk.Image Icon {
+ get {
+ return new Gtk.Image (Gtk.Stock.SaveAs, Gtk.IconSize.Button);
+ }
+ }
// services needed
StringParserService StringParserService = (StringParserService)ServiceManager.Services.GetService (typeof (StringParserService));
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs 2004-02-03 20:11:31 UTC (rev 761)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs 2004-02-03 21:31:27 UTC (rev 762)
@@ -70,6 +70,7 @@
[Glade.Widget] Gtk.Button okbutton;
[Glade.Widget] Gtk.Button cancelbutton;
[Glade.Widget] Gtk.Notebook mainBook;
+ [Glade.Widget] Gtk.Image panelImage;
[Glade.Widget] Gtk.Dialog TreeViewOptionDialog;
PixbufList imglist;
@@ -112,6 +113,15 @@
if (descriptor != null && descriptor.DialogPanel != null) {
descriptor.DialogPanel.ReceiveDialogMessage(DialogMessage.Activated);
mainBook.CurrentPage = mainBook.PageNum (descriptor.DialogPanel.Control);
+ if (descriptor.DialogPanel.Icon == null) {
+ panelImage.Stock = Gtk.Stock.Properties;
+ } else {
+ //FIXME: this needs to actually switch over the ImageType and use that instead of this *hack*
+ if (descriptor.DialogPanel.Icon.Stock != null)
+ panelImage.Stock = descriptor.DialogPanel.Icon.Stock;
+ else
+ panelImage.Pixbuf = descriptor.DialogPanel.Icon.Pixbuf;
+ }
optionTitle.Markup = "<b>" + descriptor.Label + "</b>";
TreeViewOptionDialog.ShowAll ();
}
Modified: trunk/MonoDevelop/src/Main/Base/Internal/Codons/IDialogPanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Internal/Codons/IDialogPanel.cs 2004-02-03 20:11:31 UTC (rev 761)
+++ trunk/MonoDevelop/src/Main/Base/Internal/Codons/IDialogPanel.cs 2004-02-03 21:31:27 UTC (rev 762)
@@ -45,6 +45,10 @@
bool EnableFinish {
get;
}
+
+ Gtk.Image Icon {
+ get;
+ }
/// <returns>
/// true, if the DialogMessage could be executed.
More information about the Monodevelop-patches-list
mailing list