Exemplo n.º 1
0
        //////////////////////////////////////////////////////////////////////////
        public ActionStripItem DefineMainMenu()
        {
            ActionStripItem Root = new ActionStripItem();

            ActionStripItem FileMenu = Root.AddSub("FileMenu", "File");

            FileMenu.AddItem("File.New");
            FileMenu.AddItem("File.Open");
            FileMenu.AddItem("File.Save");
            FileMenu.AddItem("File.SaveAs");
            FileMenu.AddItem();
            FileMenu.AddItem("File.RecentFiles");
            FileMenu.AddItem();
            FileMenu.AddItem("File.AppClose");

            ActionStripItem EditMenu = Root.AddSub("EditMenu", "Edit");

            EditMenu.AddItem("Edit.Undo");
            EditMenu.AddItem("Edit.Redo");
            EditMenu.AddItem();
            EditMenu.AddItem("Edit.Cut");
            EditMenu.AddItem("Edit.Copy");
            EditMenu.AddItem("Edit.Paste");
            EditMenu.AddItem("Document.DeleteItem");

            ActionStripItem ControlMenu = Root.AddSub("ControlMenu", "Controls");

            ControlMenu.AddItem("Document.AddNone");
            ControlMenu.AddItem();
            ControlMenu.AddItem("Document.AddButton");
            ControlMenu.AddItem("Document.AddStatic");
            ControlMenu.AddItem("Document.AddEditor");
            ControlMenu.AddItem("Document.AddEntity");
            ControlMenu.AddItem();
            ControlMenu.AddItem("Document.AddWindow");

            ActionStripItem ToolsMenu = Root.AddSub("ToolsMenu", "Tools");

            ToolsMenu.AddItem("Tools.Options");

            ActionStripItem HelpMenu = Root.AddSub("HelpMenu", "Help");

            HelpMenu.AddItem("Help.Contents");
            HelpMenu.AddItem();
            HelpMenu.AddItem("Help.About");

            return(Root);
        }
Exemplo n.º 2
0
        //////////////////////////////////////////////////////////////////////////
        public ActionStripItem DefineMainToolbar()
        {
            ActionStripItem Root = new ActionStripItem();

            Root.AddItem("File.New");
            Root.AddItem("File.Open");
            Root.AddItem("File.Save");
            Root.AddItem();
            Root.AddItem("Edit.Undo");
            Root.AddItem("Edit.Redo");
            Root.AddItem();
            Root.AddItem("Edit.Cut");
            Root.AddItem("Edit.Copy");
            Root.AddItem("Edit.Paste");
            Root.AddItem("Document.DeleteItem");
            Root.AddItem();
            Root.AddItem("Document.AddNone");
            Root.AddItem();
            Root.AddItem("Document.AddButton");
            Root.AddItem("Document.AddStatic");
            Root.AddItem("Document.AddEditor");
            Root.AddItem("Document.AddEntity");
            Root.AddItem();
            Root.AddItem("Document.AddWindow");
            Root.AddItem();
            Root.AddItem();
            Root.AddItem("Document.Refresh");

            return(Root);
        }