Esempio n. 1
0
        private MenuButton ConstrucRecentExperimentsMenuButton()
        {
            Menu recentExperimentsMenu = new Menu();

            foreach (RecentExperimentReference recentExp in m_applicationContext.Application.RecentExperiments) 
            {
                RecentExperimentMenuItem item = new RecentExperimentMenuItem(recentExp);
                item.Image = new Image(s_traceLabIcon);
                item.ExposeEvent += GtkMenuHelper.DrawImageMenuItemImage; 
                item.Activated += OpenExperiment;
                recentExperimentsMenu.Append(item);
            }

            recentExperimentsMenu.ShowAll();
            MenuButton recentExperimentButton = new MenuButton(new Image(Stock.Open, IconSize.SmallToolbar), recentExperimentsMenu, true);
            recentExperimentButton.TooltipText = "Select recent opened experiment";
            return recentExperimentButton;
        }
Esempio n. 2
0
        private MenuButton ConstructHelpMenuButton()
        {
            Menu helpMenu = new Menu();

            MenuItem onlineResources = ConstructSubmenu("Online Resources",
                                                        m_applicationContext.Application.Links,
                                                        s_onlineLinkIcon);

            MenuItem videosTutorials = ConstructSubmenu("Videos Tutorials",
                                                        m_applicationContext.Application.Videos,
                                                        s_videoLinkIcon);

            helpMenu.Append(onlineResources);
            helpMenu.Append(videosTutorials);
            helpMenu.ShowAll();
            MenuButton helpMenuButton = new MenuButton(new Image(s_helpIcon), helpMenu, false);

            return(helpMenuButton);
        }
Esempio n. 3
0
        private MenuButton ConstrucRecentExperimentsMenuButton()
        {
            Menu recentExperimentsMenu = new Menu();

            foreach (RecentExperimentReference recentExp in m_applicationContext.Application.RecentExperiments)
            {
                RecentExperimentMenuItem item = new RecentExperimentMenuItem(recentExp);
                item.Image        = new Image(s_traceLabIcon);
                item.ExposeEvent += GtkMenuHelper.DrawImageMenuItemImage;
                item.Activated   += OpenExperiment;
                recentExperimentsMenu.Append(item);
            }

            recentExperimentsMenu.ShowAll();
            MenuButton recentExperimentButton = new MenuButton(new Image(Stock.Open, IconSize.SmallToolbar), recentExperimentsMenu, true);

            recentExperimentButton.TooltipText = "Select recent opened experiment";
            return(recentExperimentButton);
        }
Esempio n. 4
0
        private MenuButton ConstructHelpMenuButton()
        {
            Menu helpMenu = new Menu();

            MenuItem onlineResources = ConstructSubmenu("Online Resources", 
                                                        m_applicationContext.Application.Links, 
                                                        s_onlineLinkIcon);

            MenuItem videosTutorials = ConstructSubmenu("Videos Tutorials", 
                                                        m_applicationContext.Application.Videos, 
                                                        s_videoLinkIcon);
            helpMenu.Append(onlineResources);
            helpMenu.Append(videosTutorials);
            helpMenu.ShowAll();
            MenuButton helpMenuButton = new MenuButton(new Image(s_helpIcon), helpMenu, false);
            return helpMenuButton;
        }