Added 'Create Document' dialog to GTK interface
This commit is contained in:
parent
ee2354e9ca
commit
1d26099a06
@ -6,7 +6,13 @@ namespace UniversalEditor.Engines.GTK.Dialogs
|
||||
public CreateDocumentDialog ()
|
||||
{
|
||||
this.Build ();
|
||||
|
||||
Gtk.TreeStore ts = new Gtk.TreeStore(typeof(ObjectModelReference), typeof(string), typeof(string));
|
||||
ObjectModelReference[] omrs = UniversalEditor.Common.Reflection.GetAvailableObjectModels ();
|
||||
foreach (ObjectModelReference omr in omrs)
|
||||
{
|
||||
ts.AppendValues(omr, omr.Title, omr.Description);
|
||||
}
|
||||
tvDocumentTypes.Model = ts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user