コード例 #1
0
        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);
        }
コード例 #2
0
        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 ();
        }
コード例 #3
0
 public CommandFrame(CommandManager manager)
 {
     this.manager = manager;
     manager.RegisterGlobalHandler (this);
 }