/// <summary> /// Update the titles on the view containers /// </summary> internal void UpdateContainerTitles() { Control ctl = RenderingControl; while (true) // if contained in a dock panel then change the dock panel title { if (ctl == null) { break; // no luck } else if (ctl is DockPanel) { ctl.Text = Title; return; } else { ctl = ctl.Parent; } } if (Qrc != null) // otherwise change the tab panel if appropriate { Qrc.SetCurrentPageTabTitleAndImage(); } }
/// <summary> /// Render the view /// </summary> public override void ConfigureRenderingControl() { AssureQueryManagerIsDefined(BaseQuery); DialogResult dr = Qm.DataTableManager.CompleteRetrieval(); // be sure we have all data if (dr == DialogResult.Cancel) { return; } SpotfirePageControl spc = new SpotfirePageControl(); // the Spotfire page control spc.InitializeLifetimeService(); if (Math.Sqrt(4) == 2) { return; // todo } ////PanelControl panel = Qrc.ResultsDisplayPanel; // the panel we will render in ////panel.Controls.Add(spc); // add it to the display panel Qrc.SetToolBarTools(spc.ToolPanel, GetZoomPct()); // show the proper tools return; }
/// <summary> /// Insert tools into display panel /// </summary> public override void InsertToolsIntoDisplayPanel() { if (Qrc == null) { return; } Qrc.SetToolBarTools(HtmlPageControl.ToolPanel, BaseQuery.ViewScale); // show the proper tools and zoom return; }
/// <summary> /// Insert tools into display panel /// </summary> public override void InsertToolsIntoDisplayPanel() { if (Qrc == null) { return; } Qrc.SetToolBarTools(PageControl.ToolPanel, -1); // show the proper tools return; }
/// <summary> /// Insert the rendering control and associated tools into the display panel /// </summary> public override void InsertRenderingControlIntoDisplayPanel( XtraPanel viewPanel) { viewPanel.Controls.Clear(); // remove anything in there viewPanel.Controls.Add(GridPanel); // add it to the display panel InsertToolsIntoDisplayPanel(); GridPageControl.EditQueryButton.Enabled = ViewManager.IsControlContainedInQueriesControl(viewPanel) || ViewManager.IsCustomExitingQueryResultsCallbackDefined(viewPanel); if (Qrc == null || BaseQuery == null) { return; } Qrc.SetToolBarTools(GridPageControl.ToolPanel, BaseQuery.ViewScale); // show the proper tools and zoom return; }