public MenuButtonEntry(Gtk.Entry entry, Gtk.Button button) { if (entry == null) entry = new Gtk.Entry (); if (button == null) button = new Gtk.Button (">"); this.entry = entry; manager = new CommandManager (); manager.RegisterGlobalHandler (this); PackStart (entry, true, true, 0); PackStart (button, false, false, 6); ActionCommand cmd = new ActionCommand ("InsertOption", "InsertOption", null); cmd.CommandArray = true; manager.RegisterCommand (cmd); entrySet = new CommandEntrySet (); entrySet.AddItem ("InsertOption"); button.Clicked += new EventHandler (ShowQuickInsertMenu); }
public TreeViewOptions(Gtk.Window parentWindow, IProperties properties, IAddInTreeNode node) { this.properties = properties; Glade.XML treeViewXml = new Glade.XML (null, "Base.glade", "TreeViewOptionDialog", null); treeViewXml.Autoconnect (this); TreeViewOptionDialog.TransientFor = parentWindow; TreeViewOptionDialog.WindowPosition = Gtk.WindowPosition.CenterOnParent; TreeViewOptionDialog.Title = GettextCatalog.GetString ("MonoDevelop options"); cmdManager = new CommandManager (TreeViewOptionDialog); cmdManager.RegisterGlobalHandler (this); this.InitializeComponent(); if (node != null) AddNodes (properties, Gtk.TreeIter.Zero, node.BuildChildItems(this)); SelectFirstNode (); }
public CommandFrame(CommandManager manager) { this.manager = manager; manager.RegisterGlobalHandler (this); }