Thanks Joshua, I didn't mean to rush you...
See my comments below:
On Mon, 2005-06-13 at 15:39 -0400, Joshua Tauberer wrote:
Heh, okay, okay, here we go...
Rafael Ferreira wrote:
Would you like to remove the plugins tab completely or just have a label
instead of the list?
My preference would be to remove it alltogether.
Done.
I changed the interface so the docbrowser version shows up in the about
tab as well, check it out and tell me what you think:
Nice.
:-)
Oops, I forgot I did that. That line is giving me some compilation
problems:
You just need to 'make install' the latest monodoc.dll from
/monodoc/browser.
issue resolved.
So, here's the latest patch, let me know if you see any issues. I still
have 1.0.0 hardcoded for the docbrowser version. That would be easy to
change once a decision on docbrowser's version is made.
- raf
namespace Monodoc {
using System;
using Gtk;
using Glade;
using System.Reflection;
public class AboutDialog : Gtk.Window {
[Glade.Widget] Window about;
[Glade.Widget] Image logo_image;
[Glade.Widget] TreeView AuthorsTreeView;
[Glade.Widget] TreeView VersionTreeView;
[Glade.Widget] TreeView PluginsTreeView;
[Glade.Widget] Gtk.Label AboutLabel;
string[] authors = {Miguel de Icaza ([EMAIL PROTECTED]),Duncan Mak ([EMAIL PROTECTED]),Joshua Tauberer ([EMAIL PROTECTED]),Lee Malabone,Philip Van Hoof,Johannes Roith ([EMAIL PROTECTED]),Alp Toker ([EMAIL PROTECTED]),Piers Haken,John Luke ([EMAIL PROTECTED]),Ben Maurer,Mario Sopena novales,
Rafael Ferreira ([EMAIL PROTECTED])};
string about_str = The mono documentation viewer\n bversion {0}/b;
public AboutDialog() : base(AboutWindow) {
Glade.XML gxml = new Glade.XML (null, browser.glade, about, null);
gxml.Autoconnect (this);
//about.TransientFor = parent.window1;
// populating tabs
PopulateAuthors();
PopulateVersion();
// About tab:
//putting logo in
logo_image.Pixbuf = new Gdk.Pixbuf (null, monodoc.png);
AboutLabel.Markup = String.Format(about_str,Assembly.GetExecutingAssembly().GetName().Version.ToString());
}
void PopulateVersion() {
VersionTreeView.AppendColumn(Assembly,new CellRendererText(),text,0);
VersionTreeView.AppendColumn(Version,new CellRendererText(),text,1);
TreeStore store = new TreeStore(typeof(string),typeof(string));
VersionTreeView.Model = store;
TreeIter iter = new TreeIter();
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies ()) {
iter = store.AppendValues (asm.GetName().Name, asm.GetName().Version.ToString());
}
VersionTreeView.RulesHint = true;
}
void PopulateAuthors() {
AuthorsTreeView.AppendColumn(Author,new CellRendererText(),text,0);
TreeStore store = new TreeStore(typeof(string));
AuthorsTreeView.Model = store;
//disabling headers
//AuthorsTreeView.HeadersVisible = false;
TreeIter iter = new TreeIter();
foreach (string a in authors)
iter = store.AppendValues(a);
AuthorsTreeView.RulesHint = true;
}
public void OnOkClicked (object sender, EventArgs a)
{
about.Hide();
}
public void OnDelete (object sender, EventArgs a)
{
about.Destroy();
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly:AssemblyVersion(@DOCBROWSER_VERSION@)]
[assembly:AssemblyDelaySign(true)]
Index: configure.in
===
--- configure.in (revision 45802)
+++ configure.in (working copy)
@@ -52,6 +52,9 @@
GNUNIT_VERSION=0.5
AC_SUBST(GNUNIT_VERSION)
+DOCBROWSER_VERSION=1.0
+AC_SUBST(DOCBROWSER_VERSION)
+
AC_OUTPUT([
Makefile
gnunit/Makefile
@@ -62,6 +65,7 @@
docbrowser/Makefile
docbrowser/monodoc.desktop
docbrowser/monodoc
+docbrowser/AssemblyInfo.cs
po/Makefile.in
asn1view/Makefile
asn1view/art/Makefile
Index: ChangeLog
===
--- ChangeLog (revision 45802)
+++ ChangeLog (working copy)
@@ -1,3 +1,6 @@
+2005-06-11 Rafael Ferreira [EMAIL PROTECTED]
+* configure.in: added @DOCBROWSER_VERSION@
+
2005-06-09 Gonzalo Paniagua Javier [EMAIL PROTECTED]
* configure.in: added GNUNIT_VERSION.
Index: docbrowser/ChangeLog
===
--- docbrowser/ChangeLog (revision 45802)
+++ docbrowser/ChangeLog (working copy)
@@ -1,3 +1,10 @@
+2005-06-11 Rafael Ferreira [EMAIL PROTECTED]
+*