Example #1
0
        public MainForm(MainCtrl mainCtrl)
        {
            this.mainCtrl = mainCtrl;
            Ribbon        = new RibbonLib.Ribbon {
                ResourceName = "MindMate.Win7.View.Ribbon.RibbonMarkup.ribbon"
            };
            InitializeComponent();
            this.Controls.Add(Ribbon);
            SetupSideBar();

            // moving splitter makes it the focused control, below event focuses the last control again
            splitContainer1.GotFocus += SplitContainer1_GotFocus;

            // changing side bar tab gives focus away to tab control header, below event focuses relevant control again
            SideBarTabs.SelectedIndexChanged += SideBarTabs_SelectedIndexChanged;

            EditorTabs = new EditorTabs();
            splitContainer1.Panel1.Controls.Add(EditorTabs);

            Shown += MainForm_Shown;

#if (Win7)
            //this is required for Windows 7 & 8, otherwise sidebar is not laid out properly
            Load  += (sender, args) => Ribbon.Minimized = true;
            Shown += (sender, args) => Ribbon.Minimized = false;
#endif
        }
Example #2
0
        public MainForm(MainCtrl mainCtrl)
        {
            this.mainCtrl = mainCtrl;
            Ribbon = new RibbonLib.Ribbon {ResourceName = "MindMate.Win7.View.Ribbon.RibbonMarkup.ribbon"};
            InitializeComponent();
            this.Controls.Add(Ribbon);
            SetupSideBar();

            // moving splitter makes it the focused control, below event focuses the last control again
            splitContainer1.GotFocus += SplitContainer1_GotFocus;

            // changing side bar tab gives focus away to tab control header, below event focuses relevant control again
            SideBarTabs.SelectedIndexChanged += SideBarTabs_SelectedIndexChanged;

            EditorTabs = new EditorTabs();
            splitContainer1.Panel1.Controls.Add(EditorTabs);

            Shown += MainForm_Shown;

            #if (Win7)
            //this is required for Windows 7 & 8, otherwise sidebar is not laid out properly
            Load += (sender, args) => Ribbon.Minimized = true;
            Shown += (sender, args) => Ribbon.Minimized = false;
            #endif
        }
Example #3
0
 public GalleryNodeStylePropertySet(NodeStyle style, RibbonLib.Ribbon ribbon)
 {
     this.style     = style;
     this.itemImage = ribbon.ConvertToUIImage(style.Image);
 }
Example #4
0
 public GalleryIconPropertySet(ModelIcon icon, RibbonLib.Ribbon ribbon)
 {
     this.icon      = icon;
     this.itemImage = ribbon.ConvertToUIImage(icon.Bitmap);
 }