Ejemplo n.º 1
0
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
 {
     //Add Toolbar Buttons
     ToolbarBuilder.AddButton(m_commandTextLoadData, "Load Data", m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
     ToolbarBuilder.AddButton(m_commandTextCreateTracks, "Create Tracks", m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
     ToolbarBuilder.AddButton(m_commandTextTrackComparison, "Workflow 1", m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, null);
     ToolbarBuilder.AddButton(m_commandTextTestConnect, "Test Connect", m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, null);
 }
Ejemplo n.º 2
0
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder toolbarBuilder)
 {
     toolbarBuilder.AddButton("MyCompany.MySampleUiPlugin.MyFirstCommand",
                              "Example Button 1",
                              "Example UI Plugin Toolbar Button",
                              AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn,
                              null);
 }
Ejemplo n.º 3
0
        public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
        {
            //converting an ico file to be used as the image for toolbat button
            stdole.IPictureDisp picture, picture2;
            //string imageResource = "PlanetsToggle_10.STK.ico";
            //Assembly currentAssembly = Assembly.GetExecutingAssembly();
            //Icon icon = new Icon(currentAssembly.GetManifestResourceStream(imageResource));

            picture  = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture(PlanetsToggle_10.Properties.Resources.addPlanets);
            picture2 = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture(PlanetsToggle_10.Properties.Resources.zoomSolarSystem);
            //picture = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.IconToIPicture(icon);
            //picture2 = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.IconToIPicture(icon);
            //stdole.IPictureDisp m_picture = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture();
            //Add a Toolbar Button
            ToolbarBuilder.AddButton("AGI.PlanetsToggleCSharpPlugin.PlanetsToggle", "Toggle Plents", "Toggle Plents", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, picture);
            ToolbarBuilder.AddButton("AGI.PlanetsToggleCSharpPlugin.SetPlanetView", "Set Planetary View", "Set Planetary View", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, picture2);
        }
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
 {
     //converting an ico file to be used as the image for toolbat button
     stdole.IPictureDisp picture;
     picture = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.IconToIPicture(Resources.direction64);
     //Add a Toolbar Button
     ToolbarBuilder.AddButton("AGI.BasicCSharpPlugin.MyFirstCommand", "Add new GroundVehicle from directions", "Open a Custom user interface.", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, picture);
 }
Ejemplo n.º 5
0
        public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
        {
            //converting an ico file to be used as the image for toolbar button
            stdole.IPictureDisp picture;
            Assembly            currentAssembly = Assembly.GetExecutingAssembly();
            Image icon = Image.FromStream(currentAssembly.GetManifestResourceStream(m_imageResource));

            picture = OlePictureHelper.OlePictureFromImage(icon);
            //Add a Toolbar Button
            ToolbarBuilder.AddButton(m_commandText, m_pluginTitle, m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, picture);
        }
Ejemplo n.º 6
0
        public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
        {
            //Add a Toolbar Button

            //ToolbarBuilder.AddButton(m_commandTextLocation, "Location", "Location", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
            //ToolbarBuilder.AddButton(m_commandTextObject, "Object", "Object", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
            //ToolbarBuilder.AddButton(m_commandTextGlobe, "Globe", "Globe", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
            //ToolbarBuilder.AddButton(m_commandTextScreen, "Screen", "Screen", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
            //ToolbarBuilder.AddButton(m_commandTextNone, "None", "None", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
            ToolbarBuilder.AddButton(m_commandText, m_pluginTitle, m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
        }
Ejemplo n.º 7
0
        public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
        {
            //converting an ico file to be used as the image for toolbat button
            stdole.IPictureDisp picture;
            string   imageResource   = "OrbitTunerUiPlugin.STK.ico";
            Assembly currentAssembly = Assembly.GetExecutingAssembly();
            Icon     icon            = new Icon(currentAssembly.GetManifestResourceStream(imageResource));

            picture = (stdole.IPictureDisp)Microsoft.VisualBasic.Compatibility.VB6.Support.IconToIPicture(icon);
            //Add a Toolbar Button
            ToolbarBuilder.AddButton("AGI.BasicCSharpPlugin.MyFirstCommand", "Orbit Tuner", "Open the Orbit Tune custom user interface.", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, picture);
        }
Ejemplo n.º 8
0
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
 {
     ToolbarBuilder.AddButton("HorizonsEphemImporter.OpenPlugin", "Horizons Importer", "JPL Horizons Ephemeris Importer", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, null);
 }
Ejemplo n.º 9
0
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder toolbarBuilder)
 {
     //Add a Toolbar Button
     toolbarBuilder.AddButton(MCommandText, MPluginTitle, MPluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, _mPicture);
 }
Ejemplo n.º 10
0
 public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
 {
     //Add a Toolbar Button
     ToolbarBuilder.AddButton(m_commandText, m_pluginTitle, m_pluginDescription, AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, m_picture);
 }
Ejemplo n.º 11
0
        //public void OnDisplayContextMenu(IAgUiPluginMenuBuilder MenuBuilder)
        //{
        //    MenuBuilder.AddMenuItem("MyCompany.UIPlugin.MySecondCommand", "Valispace", " Display a message box.", null);
        //}

        public void OnInitializeToolbar(IAgUiPluginToolbarBuilder ToolbarBuilder)
        {
            ToolbarBuilder.AddButton("Valispace.UIPlugin.LoginCommand", "Valispace Login  |", "Valispace Plugin", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, null);
            ToolbarBuilder.AddButton("Valispace.UIPlugin.OpenUICommand", "Ui Plugin ", "Valispace Plugin", AgEToolBarButtonOptions.eToolBarButtonOptionAlwaysOn, null);
        }