예제 #1
0
        public override void InitializeResources()
        {
            var resetImage = ApplicationIcons.Reset.ToImage(IconSizes.Size16x16);

            btnReset.Text          = PKSimConstants.UI.ResetAll;
            btnReset.SuperTip      = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ResetAllVisibleButtonToolTip, PKSimConstants.UI.ResetAll, resetImage);
            btnReset.Image         = resetImage;
            btnReset.ImageLocation = ImageLocation.MiddleLeft;
            btnScale.Text          = PKSimConstants.UI.ScaleButton;
            btnScale.SuperTip      = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ScaleButtonToolTip, PKSimConstants.UI.ScaleButton);
            layoutControl.InitializeDisabledColors();
        }
예제 #2
0
        public override void InitializeResources()
        {
            base.InitializeResources();
            layoutItemButtonOntogeny.AdjustButtonSizeWithImageOnly();
            btnShowOntogeny.Image         = ApplicationIcons.TimeProfileAnalysis.ToImage(IconSizes.Size16x16);
            btnShowOntogeny.ImageLocation = ImageLocation.MiddleCenter;
            btnShowOntogeny.SuperTip      = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ShowOntogeny, ApplicationIcons.TimeProfileAnalysis);

            layoutItemLoadOntogeny.AdjustButtonSizeWithImageOnly();
            btnLoadOntogenyFromFile.Image         = ApplicationIcons.Excel.ToImage(IconSizes.Size16x16);
            btnLoadOntogenyFromFile.ImageLocation = ImageLocation.MiddleCenter;
            btnLoadOntogenyFromFile.SuperTip      = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ImportOntogenyToolTip, PKSimConstants.UI.ImportOntogeny, ApplicationIcons.Excel);
        }
예제 #3
0
 public void BindTo(IsSmallMoleculeDTO isSmallMolecule)
 {
     _screenBinder.BindToSource(isSmallMolecule);
     chkIsSmallMolecule.Text     = isSmallMolecule.Display;
     chkIsSmallMolecule.SuperTip = _toolTipCreator.CreateToolTip(isSmallMolecule.Description, isSmallMolecule.Display);
     AdjustHeight();
 }
예제 #4
0
        private void onToolTipControllerGetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != gridControl)
            {
                return;
            }

            var hi = gridView.HitInfoAt(e.ControlMousePosition);

            if (hi == null)
            {
                return;
            }

            if (!Equals(hi.Column, _colName.XtraColumn))
            {
                return;
            }

            var curveDTO = _gridBinderCurves.ElementAt(e);

            if (curveDTO == null)
            {
                return;
            }

            var toolTip = _toolTipCreator.CreateToolTip(_presenter.ToolTipFor(curveDTO));

            e.Info = _toolTipCreator.ToolTipControlInfoFor(curveDTO, toolTip);
        }
예제 #5
0
        private void onObjectHotTracked(HotTrackEventArgs e)
        {
            var series = e.Series();
            var point  = e.HitInfo.SeriesPoint;

            if (series == null || point == null || !point.Values.Any())
            {
                hideToolTip(e);
                return;
            }

            var value     = point.Values[0];
            var intValue  = Math.Ceiling(point.Values[0]);
            var valueText = _doubleFormatter.Format(point.Values[0]);

            if (value == intValue)
            {
                valueText = _intFormatter.Format(Convert.ToInt32(intValue));
            }

            var superToolTip = _toolTipCreator.CreateToolTip($"{AxisY.Title.Text}: {valueText}", series.Name);
            var args         = new ToolTipControllerShowEventArgs {
                SuperTip = superToolTip
            };

            ToolTipController.ShowHint(args);
        }
예제 #6
0
 public override void InitializeResources()
 {
     base.InitializeResources();
     layoutItemDefaultChartYScale.Text  = PKSimConstants.UI.ChartYScale.FormatForLabel();
     layoutItemActiveSkin.Text          = PKSimConstants.UI.ActiveSkin.FormatForLabel();
     layoutItemDecimalPlace.Text        = PKSimConstants.UI.DecimalPlace.FormatForLabel();
     layoutItemIconSizeTreeView.Text    = PKSimConstants.UI.IconSizeTreeView.FormatForLabel();
     layoutItemIconSizeTab.Text         = PKSimConstants.UI.IconSizeTab.FormatForLabel();
     layoutItemIconSizeContextMenu.Text = PKSimConstants.UI.IconSizeContextMenu.FormatForLabel();
     layoutItemMRUListItemCount.Text    = PKSimConstants.UI.MRUListItemCount.FormatForLabel();
     layoutItemRelTol.Text       = PKSimConstants.UI.RelTol.FormatForLabel();
     layoutItemAbsTol.Text       = PKSimConstants.UI.AbsTol.FormatForLabel();
     layoutItemNumberOfBins.Text = PKSimConstants.UI.NumberOfBins.FormatForLabel();
     layoutItemNumberOfIndividualsPerBin.Text = PKSimConstants.UI.NumberOfIndividualsPerBin.FormatForLabel();
     layoutItemNumberOfProcessors.Text        = Captions.NumberOfProcessors.FormatForLabel();
     layoutGroupNumericalProperties.Text      = PKSimConstants.UI.NumericalProperties;
     layoutGroupUIProperties.Text             = PKSimConstants.UI.UIProperties;
     layoutGroupIconSizes.Text                = PKSimConstants.UI.IconSizes;
     layoutGroupTemplateDatabase.Text         = PKSimConstants.UI.TemplateDatabase;
     layoutGroupColors.Text                   = PKSimConstants.UI.Colors;
     layoutItemTemplateDatabase.Text          = PKSimConstants.UI.TemplateDatabasePath.FormatForLabel();
     layoutItemChartBackColor.Text            = PKSimConstants.UI.ChartBackColor.FormatForLabel();
     layoutItemFormulaColor.Text              = PKSimConstants.UI.FormulaColor.FormatForLabel();
     layoutItemChartDiagramBackColor.Text     = PKSimConstants.UI.ChartDiagramBackColor.FormatForLabel();
     layoutItemDisabledColor.Text             = PKSimConstants.UI.DisabledColor.FormatForLabel();
     layoutItemChangedColor.Text              = PKSimConstants.UI.ChangedColor.FormatForLabel();
     layoutItemDefaultSpecies.Text            = PKSimConstants.UI.DefaultSpecies.FormatForLabel();
     layoutItemDefaultPopulation.Text         = PKSimConstants.UI.DefaultPopulation.FormatForLabel();
     layoutItemParameterGroupingMode.Text     = PKSimConstants.UI.DefaultParameterGroupLayout.FormatForLabel();
     layoutItemDefaultLipoName.Text           = PKSimConstants.UI.DefaultLipophilicityName.FormatForLabel();
     layoutItemDefaultFuName.Text             = PKSimConstants.UI.DefaultFractionUnboundName.FormatForLabel();
     layoutItemDefaultSolName.Text            = PKSimConstants.UI.DefaultSolubilityName.FormatForLabel();
     layoutItemDefaultPopulationAnalysis.Text = PKSimConstants.UI.DefaultPopulationAnalysisType.FormatForLabel();
     layoutItemPreferredViewLayout.Text       = PKSimConstants.UI.PreferredViewLayout.FormatForLabel();
     layoutGroupDefaults.Text                 = PKSimConstants.UI.Defaults;
     Caption = PKSimConstants.UI.UserGeneral;
     tbTemplateDatabase.Properties.Buttons[0].SuperTip = _toolTipCreator.CreateToolTip(PKSimConstants.UI.SelectTemplateDatabasePath, PKSimConstants.UI.TemplateDatabasePath, ApplicationIcons.ProjectOpen);
     tbTemplateDatabase.Properties.Buttons[1].SuperTip = _toolTipCreator.CreateToolTip(PKSimConstants.UI.CreateTemplateDatabasePath, PKSimConstants.UI.TemplateDatabasePath, ApplicationIcons.Create);
     tbTemplateDatabase.Properties.Buttons[1].ToolTip  = PKSimConstants.UI.CreateTemplateDatabasePath;
     tbTemplateDatabase.Properties.Buttons[1].Kind     = ButtonPredefines.Glyph;
     tbTemplateDatabase.Properties.Buttons[1].Image    = ApplicationIcons.Create.ToImage(IconSizes.Size16x16);
     cbDefaultSolName.FillWith(PKSimConstants.UI.PredefinedSolubilityAlternatives());
     cbDefaultFuName.FillWith(PKSimConstants.UI.PredefinedFractionUnboundAlternatives());
     cbDefaultLipoName.FillWith(PKSimConstants.UI.PredefinedLipophilicityAlternatives());
     ApplicationIcon = ApplicationIcons.UserSettings;
 }
예제 #7
0
        private ToolTipControlInfo toolTipFor(PivotDrillDownDataSource ds, string nameField, string descriptionField, ApplicationIcon icon)
        {
            var name         = ds.StringValue(nameField);
            var description  = ds.StringValue(descriptionField);
            var superToolTip = _toolTipCreator.CreateToolTip(description, name, icon);

            return(_toolTipCreator.ToolTipControlInfoFor(name, superToolTip));
        }
        public static LayoutControlItem CreateTemplateButtonItem(this ICreatePopulationAnalysisPresenter presenter, IToolTipCreator toolTipCreator, LayoutControl layoutControl)
        {
            var toolTip        = toolTipCreator.CreateToolTip(PKSimConstants.UI.PopulationAnalysisSaveLoadToolTip, PKSimConstants.UI.PopulationAnalysisSaveLoad);
            var dropDownButton = new UxDropDownButton(PKSimConstants.UI.PopulationAnalysisSaveLoad, ApplicationIcons.Save, toolTip);

            dropDownButton.AddMenu(PKSimConstants.UI.SaveAsTemplate, presenter.SaveAnalysis, ApplicationIcons.SaveAsTemplate);
            dropDownButton.AddMenu(PKSimConstants.UI.LoadFromTemplate, presenter.LoadAnalysis, ApplicationIcons.LoadFromTemplate);
            return(layoutControl.AddButtonItemFor(dropDownButton));
        }
예제 #9
0
 public override void InitializeResources()
 {
     base.InitializeResources();
     ExtraVisible      = true;
     Icon              = ApplicationIcons.Settings;
     Caption           = PKSimConstants.UI.Options;
     btnExtra.Text     = PKSimConstants.UI.ResetLayout;
     btnExtra.SuperTip = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ResetLayoutSettingsToolTip);
     ActiveControl     = TabControl;
 }
        public static LayoutControlItem CreateSaveSettingsButtonItem <TSimulation>(this ISimulationOutputSelectionPresenter <TSimulation> presenter, IToolTipCreator toolTipCreator, LayoutControl layoutControl)
            where TSimulation : Simulation
        {
            var toolTip        = toolTipCreator.CreateToolTip(PKSimConstants.UI.SaveSimulationSettingsToolTip, PKSimConstants.UI.SaveSimulationSettings);
            var dropDownButton = new UxDropDownButton(PKSimConstants.UI.SaveSimulationSettings, ApplicationIcons.Save, toolTip);

            dropDownButton.AddMenu(PKSimConstants.UI.SaveSimulationSettingsToProject, presenter.SaveSettingsToProject, ApplicationIcons.PKSim);
            dropDownButton.AddMenu(PKSimConstants.UI.SaveSimulationSettingsToUserSettings, presenter.SaveSettingsToUserSettings, ApplicationIcons.UserSettings);
            return(layoutControl.AddButtonItemFor(dropDownButton));
        }
        private void onToolTipControllerGetActiveObjectInfo(ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != chkApplyGroupingToObservedData)
            {
                return;
            }

            var superToolTip = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ApplyGroupingToObservedDataToolTip, PKSimConstants.UI.ApplyGroupingToObservedData, ApplicationIcons.Info);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(chkApplyGroupingToObservedData, superToolTip);
        }
        private void getObjectToolTip(ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != tbNamingPattern)
            {
                return;
            }

            var superToolTip = _toolTipCreator.CreateToolTip(_presenter.NamingPatternDescriptionToolTip, PKSimConstants.UI.NamingPattern);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(tbNamingPattern, superToolTip);
        }
        public static void UpdateSaveSettingsButtonItem <TSimulation>(this ISimulationOutputSelectionPresenter <TSimulation> presenter, IToolTipCreator toolTipCreator, UxDropDownButton dropDownButton)
            where TSimulation : Simulation
        {
            var toolTip = toolTipCreator.CreateToolTip(PKSimConstants.UI.SaveSimulationSettingsToolTip, PKSimConstants.UI.SaveSimulationSettings);

            dropDownButton.Text     = PKSimConstants.UI.SaveSimulationSettings;
            dropDownButton.Image    = ApplicationIcons.Save.ToImage(IconSizes.Size16x16);
            dropDownButton.SuperTip = toolTip;
            dropDownButton.AddMenu(PKSimConstants.UI.SaveSimulationSettingsToProject, presenter.SaveSettingsToProject, ApplicationIcons.PKSim);
            dropDownButton.AddMenu(PKSimConstants.UI.SaveSimulationSettingsToUserSettings, presenter.SaveSettingsToUserSettings, ApplicationIcons.UserSettings);
        }
        public static LayoutControlItem CreateTemplateButtonItem(this ICreatePopulationAnalysisPresenter presenter, IToolTipCreator toolTipCreator, LayoutControl layoutControl)
        {
            var toolTip        = toolTipCreator.CreateToolTip(PKSimConstants.UI.PopulationAnalysisSaveLoadToolTip, PKSimConstants.UI.PopulationAnalysisSaveLoad);
            var dropDownButton = new UxDropDownButton();

            dropDownButton.Text     = PKSimConstants.UI.PopulationAnalysisSaveLoad;
            dropDownButton.Image    = ApplicationIcons.Save.ToImage(IconSizes.Size16x16);
            dropDownButton.SuperTip = toolTip;
            dropDownButton.AddMenu(PKSimConstants.UI.SaveAsTemplate, presenter.SaveAnalysis, ApplicationIcons.SaveAsTemplate);
            dropDownButton.AddMenu(PKSimConstants.UI.LoadFromTemplate, presenter.LoadAnalysisTask, ApplicationIcons.LoadFromTemplate);
            return(layoutControl.AddButtonItemFor(dropDownButton));
        }
        private void onToolTipControllerGetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var runResultDTO = _gridViewBinder.ElementAt(e);

            if (string.IsNullOrEmpty(runResultDTO?.Message))
            {
                return;
            }

            var superToolTip = _toolTipCreator.CreateToolTip(runResultDTO.Message, image: runResultDTO.StatusIcon);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(runResultDTO, superToolTip);
        }
예제 #16
0
        private void tooltipForRow(ToolTipControllerGetActiveObjectInfoEventArgs e, int rowHandle)
        {
            var observedDataRowIndex = gridView.GetDataSourceRowIndex(rowHandle);

            if (_presenter.AnyObservationInThisRowIsBelowLLOQ(observedDataRowIndex))
            {
                e.Info = new ToolTipControlInfo(rowHandle, string.Empty)
                {
                    SuperTip    = _tooltipCreator.CreateToolTip(_presenter.ToolTipTextForRow(observedDataRowIndex), Captions.LLOQ),
                    ToolTipType = ToolTipType.SuperTip
                };
            }
        }
예제 #17
0
        private void createToolTip(ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var property = _gridBinder.ElementAt(e.ControlMousePosition);

            if (string.IsNullOrEmpty(property?.Description))
            {
                return;
            }

            var superTooltip = _toolTipCreator.CreateToolTip(property.Description, property.DisplayName);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(property, superTooltip);
        }
예제 #18
0
        private void onToolTipControllerGetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var parameterDTO = _gridViewBinder.ElementAt(e);

            if (parameterDTO == null)
            {
                return;
            }

            var superToolTip = _toolTipCreator.CreateToolTip(parameterDTO.ParameterPath);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(parameterDTO, superToolTip);
        }
예제 #19
0
        public override void InitializeResources()
        {
            base.InitializeResources();
            axisTypeLayoutControlItem.Text             = Captions.AxisType.FormatForLabel();
            numberRepresentationLayoutControlItem.Text = Captions.NumberRepresentation.FormatForLabel();
            captionLayoutControlItem.Text          = Captions.Caption.FormatForLabel();
            dimensionLayoutControlItem.Text        = Captions.Dimension.FormatForLabel();
            unitLayoutControlItem.Text             = Captions.Unit.FormatForLabel();
            scalingLayoutControlItem.Text          = Captions.Scaling.FormatForLabel();
            minLayoutControlItem.Text              = Captions.AxisMinimum.FormatForLabel();
            maxLayoutControlItem.Text              = Captions.AxisMaximum.FormatForLabel();
            gridLinesLayoutControlItem.Text        = Captions.GridLines.FormatForLabel();
            defaultColorLayoutControlItem.Text     = Captions.DefaultColor.FormatForLabel();
            defaultLineStyleLayoutControlItem.Text = Captions.DefaultLineStyle.FormatForLabel();

            axisTypeTextBox.Enabled = false;

            defaultColorColorEdit.SuperTip    = _toolTipCreator.CreateToolTip(ToolTips.DefaultCurveColor, ToolTips.DefaultCurveColorTitle);
            defaultLineSytleComboBox.SuperTip = _toolTipCreator.CreateToolTip(ToolTips.DefaultLineStyle, ToolTips.DefaultLineStyleTitle);
            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            Caption         = Captions.AxisSettings;
        }
예제 #20
0
        public void InsertElement(IMenuBarItem menuBarItem)
        {
            var ml = new AppMenuFileLabel {
                ShowCheckButton = false
            };

            _container.Controls.Add(ml);
            ml.Appearance.TextOptions.HotkeyPrefix = HKeyPrefix.None;
            ml.Text        = menuBarItem.Caption;
            ml.Tag         = menuBarItem;
            ml.SuperTip    = _toolTipCreator.CreateToolTip(menuBarItem.Description, Captions.FilePath);
            ml.AutoHeight  = true;
            ml.Dock        = DockStyle.Top;
            ml.LabelClick += menuClicked;
            setElementsRange();
        }
예제 #21
0
        private void onToolTipControllerGetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var runResultDTO = _gridViewBinder.ElementAt(e);

            if (_optimizedParametersBinderCache.Any(x => x.ShowTooltip(e, runResultDTO?.LegendImage)))
            {
                return;
            }

            if (string.IsNullOrEmpty(runResultDTO?.Message))
            {
                return;
            }

            var superToolTip = _toolTipCreator.CreateToolTip(runResultDTO.Message, image: runResultDTO.StatusIcon);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(runResultDTO, superToolTip);
        }
예제 #22
0
        private void tooltipForRow(ToolTipControllerGetActiveObjectInfoEventArgs eventArgs, int rowHandle)
        {
            var table = gridControl.DataSource as ImportDataTable;

            if (table == null)
            {
                return;
            }

            var lowerLimitOfQuantificationToolTipText = _presenter.GetLowerLimitOfQuantificationToolTipTextForRow(gridView.GetDataSourceRowIndex(rowHandle));

            if (string.IsNullOrEmpty(lowerLimitOfQuantificationToolTipText))
            {
                return;
            }

            eventArgs.Info = new ToolTipControlInfo(rowHandle, lowerLimitOfQuantificationToolTipText)
            {
                SuperTip    = _toolTipCreator.CreateToolTip(lowerLimitOfQuantificationToolTipText, Captions.LLOQ),
                ToolTipType = ToolTipType.SuperTip
            };
        }
예제 #23
0
 public override void InitializeResources()
 {
     base.InitializeResources();
     layoutItemPanelNumericFields.TextVisible = false;
     chkShowOutliers.SuperTip = _toolTipCreator.CreateToolTip(PKSimConstants.UI.ShowOutliersToolTip, PKSimConstants.UI.ShowOutliers, ApplicationIcons.BoxWhiskerAnalysis);
 }
예제 #24
0
 private SuperToolTip toolTipFor(SensitivityParameterDTO sensitivityParameterDTO)
 {
     return(_toolTipCreator.CreateToolTip(sensitivityParameterDTO.DisplayPath, sensitivityParameterDTO.Name, ApplicationIcons.Parameter));
 }
예제 #25
0
 private void initButton(EditorButton button, ApplicationIcon icon, string toolTip)
 {
     button.SetImage(icon);
     button.SuperTip = _toolTipCreator.CreateToolTip(toolTip, image: icon);
 }
예제 #26
0
 private void initButton(EditorButton button, ApplicationIcon icon, string toolTip)
 {
     button.Image    = icon.ToImage(IconSizes.Size16x16);
     button.SuperTip = _toolTipCreator.CreateToolTip(toolTip, image: button.Image);
 }