[Monodevelop-patches-list] r759 - in trunk/MonoDevelop: data/resources/glade src/Libraries/MonoDevelop.Gui.Widgets/PropertyGrid src/Main/Base/Gui/Dialogs
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Feb 3 13:48:02 EST 2004
Author: tberman
Date: 2004-02-03 13:48:02 -0500 (Tue, 03 Feb 2004)
New Revision: 759
Modified:
trunk/MonoDevelop/data/resources/glade/Base.glade
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/PropertyGrid/PropertyGridGroup.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
Log:
much nicer
Modified: trunk/MonoDevelop/data/resources/glade/Base.glade
===================================================================
--- trunk/MonoDevelop/data/resources/glade/Base.glade 2004-02-03 03:22:53 UTC (rev 758)
+++ trunk/MonoDevelop/data/resources/glade/Base.glade 2004-02-03 18:48:02 UTC (rev 759)
@@ -63,7 +63,7 @@
<widget class="GtkHBox" id="DisplayBox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
- <property name="spacing">0</property>
+ <property name="spacing">6</property>
<child>
<widget class="GtkTreeView" id="TreeView">
@@ -85,21 +85,51 @@
<widget class="GtkVBox" id="optionPanel">
<property name="visible">True</property>
<property name="homogeneous">False</property>
- <property name="spacing">0</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="optionTitle">
+ <widget class="GtkHBox" id="hbox20">
<property name="visible">True</property>
- <property name="label" translatable="yes">label3</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">6</property>
+
+ <child>
+ <widget class="GtkImage" id="panelImage">
+ <property name="visible">True</property>
+ <property name="stock">gtk-properties</property>
+ <property name="icon_size">4</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkLabel" id="optionTitle">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">label38</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">True</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="padding">0</property>
@@ -109,6 +139,17 @@
</child>
<child>
+ <widget class="GtkHSeparator" id="hseparator1">
+ <property name="visible">True</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
<widget class="GtkNotebook" id="mainBook">
<property name="visible">True</property>
<property name="show_tabs">False</property>
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/PropertyGrid/PropertyGridGroup.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/PropertyGrid/PropertyGridGroup.cs 2004-02-03 03:22:53 UTC (rev 758)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/PropertyGrid/PropertyGridGroup.cs 2004-02-03 18:48:02 UTC (rev 759)
@@ -10,6 +10,9 @@
ELabel header;
Button expandButton;
+ Gtk.Image plus = new Gtk.Image (Gtk.Stock.Add, Gtk.IconSize.Menu);
+ Gtk.Image minus = new Gtk.Image (Gtk.Stock.Remove, Gtk.IconSize.Menu);
+
Table internalTable;
ArrayList PropertyGridItems;
@@ -19,7 +22,8 @@
public PropertyGridGroup (string header) : base (2, 2, false)
{
PropertyGridItems = new ArrayList ();
- this.expandButton = new Button (".");
+ this.expandButton = new Button ();
+ expandButton.Relief = Gtk.ReliefStyle.None;
expandButton.Clicked += new EventHandler (OnExpandClicked);
this.header = new ELabel (header);
internalTable = new Gtk.Table (1, 2, true);
@@ -31,13 +35,19 @@
foreach (Gtk.Widget child in Children) {
Remove (child);
}
- Attach (this.expandButton, 0, 1, 0, 1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, 0, 0);
+ foreach (Gtk.Widget child in expandButton.Children) {
+ expandButton.Remove (child);
+ }
if (visible) {
Attach (this.header, 1, 2, 0, 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Shrink, 0, 0);
Attach (internalTable, 1, 2, 1, 2, Gtk.AttachOptions.Expand, Gtk.AttachOptions.Shrink, 0, 0);
+ expandButton.Add (minus);
} else {
Attach (this.header, 1, 2, 0, 1);
+ expandButton.Add (plus);
}
+ Attach (this.expandButton, 0, 1, 0, 1, Gtk.AttachOptions.Shrink, Gtk.AttachOptions.Shrink, 0, 0);
+ expandButton.ShowAll ();
}
void OnExpandClicked (object o, EventArgs e)
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs 2004-02-03 03:22:53 UTC (rev 758)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs 2004-02-03 18:48:02 UTC (rev 759)
@@ -112,7 +112,7 @@
if (descriptor != null && descriptor.DialogPanel != null) {
descriptor.DialogPanel.ReceiveDialogMessage(DialogMessage.Activated);
mainBook.CurrentPage = mainBook.PageNum (descriptor.DialogPanel.Control);
- optionTitle.Text = descriptor.Label;
+ optionTitle.Markup = "<b>" + descriptor.Label + "</b>";
TreeViewOptionDialog.ShowAll ();
}
}
@@ -122,6 +122,7 @@
foreach (IDialogPanelDescriptor descriptor in dialogPanelDescriptors) {
if (descriptor.DialogPanel != null) { // may be null, if it is only a "path"
descriptor.DialogPanel.CustomizationObject = customizer;
+ ((Gtk.Frame)descriptor.DialogPanel.Control).Shadow = Gtk.ShadowType.None;
OptionPanels.Add(descriptor.DialogPanel);
mainBook.AppendPage (descriptor.DialogPanel.Control, new Gtk.Label ("a"));
}
More information about the Monodevelop-patches-list
mailing list