-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathUIConstants.cs
More file actions
2733 lines (2316 loc) · 162 KB
/
UIConstants.cs
File metadata and controls
2733 lines (2316 loc) · 162 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using OSPSuite.Assets.Extensions;
using OSPSuite.Utility.Extensions;
namespace OSPSuite.Assets
{
public static class SizeAndLocation
{
public static readonly Point ParameterIdentificationFeedbackEditorLocation = new Point(100, 100);
public static readonly Size ParameterIdentificationFeedbackEditorSize = new Size(880, 600);
public static Point SensitivityAnalysisFeedbackEditorLocation = new Point(100, 100);
public static Size SensitivityFeedbackEditorSize = new Size(350, 120);
}
public static class DefaultNames
{
public static readonly string MoleculeBuildingBlock = "Molecules";
public static readonly string Module = "Module";
public static readonly string ReactionBuildingBlock = "Reactions";
public static readonly string SpatialStructure = "Organism";
public static readonly string PassiveTransportBuildingBlock = "Passive Transports";
public static readonly string EventBuildingBlock = "Events";
public static readonly string ObserverBuildingBlock = "Observers";
public static readonly string SimulationSettings = "Simulation Settings";
public static readonly string ParameterValues = "Parameter Values";
public static readonly string InitialConditions = "Initial Conditions";
}
public static class Captions
{
public static readonly string Transporter = "Transporter";
public static readonly string Protein = "Protein";
public static readonly string MetabolizingEnzyme = "Metabolizing Enzyme";
public static readonly string Species = "Species";
public static readonly string Phenotype = "Phenotype";
public static readonly string ConfirmationDialog = "Confirmation";
public static readonly string Excel = "Excel®";
public static readonly string EmptyColumn = " ";
public static readonly string EmptyName = "Empty";
public static readonly string EmptyDescription = "<Empty>";
public static readonly string ActionAlreadyInProgress = "Action already in progress...Please be patient.";
public static readonly string AtLeastOneQuantityNeedsToBeSelected = "At least one quantity needs to be selected";
public static readonly string PleaseWait = "Please wait...";
public static readonly string ReallyCancel = "Do you really want to cancel?";
public static readonly string Filter = "Filter";
public static readonly string Organism = "Organism";
public static readonly string Organ = "Organ";
public static readonly string Compartment = "Compartment";
public static readonly string Simulation = "Simulation";
public static readonly string Molecule = "Molecule";
public static readonly string Formulation = "Molecule";
public static readonly string Application = "Application";
public static readonly string Name = "Name";
public static readonly string Value = "Value";
public static readonly string DeselectAll = "Deselect All";
public static readonly string Dimension = "Dimension";
public static readonly string MoleculeProperties = "Molecule Properties";
public static readonly string SaveChartLayoutToTemplateFile = "Save current layout to template file (Developer only)";
public static readonly string LinearScale = "Linear Scale";
public static readonly string LogScale = "Logarithmic Scale";
public static readonly string ExportChartToExcel = "Export selected curves...";
public static readonly string ExportChartToPng = "Export chart to Png...";
public static readonly string ExportComparisonToExcel = "Export comparison to Excel...";
public static readonly string CloseButton = "&Close";
public static readonly string Folder = "Folder";
public static readonly string Rename = "Rename";
public static readonly string Description = "Description";
public static readonly string EditDescription = "Edit Description";
public static string SimulationPath = "Simulation";
public static string TopContainerPath = "Top Container";
public static string ContainerPath = "Container";
public static string BottomCompartmentPath = "Compartment";
public static string MoleculePath = "Molecule";
public static string NamePath = "Name";
public static readonly string Color = "Color";
public static readonly string XData = "X Data";
public static readonly string YData = "Y Data";
public static readonly string YAxisType = "Y Axis Type";
public static readonly string LineStyle = "Line Style";
public static readonly string Symbol = "Symbol";
public static readonly string LineThickness = "Line Thickness";
public static readonly string Visible = "Visible";
public static readonly string CurveSettings = "Curve Settings";
public static readonly string AxisType = "Axis Type";
public static readonly string NumberRepresentation = "Number Representation";
public static readonly string Caption = "Caption";
public static readonly string Unit = "Unit";
public static readonly string Scaling = "Scaling";
public static readonly string AxisMinimum = "Axis Minimum";
public static readonly string AxisMaximum = "Axis Maximum";
public static readonly string GridLines = "Grid Lines";
public static readonly string DefaultColor = "Default Color";
public static readonly string DefaultLineStyle = "Default Line Style";
public static readonly string AxisSettings = "Axis Settings";
public static readonly string VisibleInLegend = "Visible In Legend";
public static readonly string DiagramBackground = "Diagram Background";
public static readonly string ChartColor = "Chart Color";
public static readonly string UseSelected = "Use selected";
public static readonly string LinkDataToSimulations = "Link Data to Simulations";
public static readonly string MetaData = "Meta Data";
public static readonly string AddDataPoint = "Add Data Point";
public static readonly string AddMetaData = "Add Meta Data";
public static readonly string EditMultipleObservedDataMetaData = "Edit Meta Data";
public static readonly string DeleteEntry = "Delete entry";
public static readonly string AddEntry = "Add entry";
public static readonly string Project = "Project";
public static readonly string User = "User";
public static readonly string SaveUnitsToFile = "Save Units";
public static readonly string SaveImage = "Save Image";
public static readonly string SaveFavoritesToFile = "Save Favorites";
public static readonly string LoadUnitsFromFile = "Load Units";
public static readonly string LoadFavoritesFromFile = "Load Favorites";
public static readonly string AddUnitMap = "Add Unit";
public static readonly string SaveUnits = "Save Units";
public static readonly string LoadUnits = "Load Units";
public static readonly string DisplayUnit = "Display Unit";
public static readonly string AutomaticallyAddChartDescription = "Automatically Add Chart Description";
public static readonly string SideMarginsEnabled = "Side Margins Enabled";
public static readonly string ShowInLegend = "Show In Legend";
public static readonly string Edit = "Edit";
public static readonly string LegendPosition = "Legend Position";
public static readonly string Title = "Title";
public static readonly string CurveAndAxisSettings = "Curve and Axis Settings";
public static readonly string ChartSettings = "Chart Options";
public static readonly string CurveName = "Curve Name";
public static readonly string XRepositoryName = "X-Repo";
public static readonly string XDataPath = "X-Path";
public static readonly string XQuantityType = "X-Type";
public static readonly string YDataPath = "Y-Path";
public static readonly string YRepositoryName = "Y-Repo";
public static readonly string YQuantityType = "Y-Type";
public static readonly string SaveChartTemplateToFile = "Save Chart Template...";
public static readonly string LoadChartTemplateFromFile = "Load Chart Template...";
public static readonly string OpenLayoutFromFile = "Open Layout Template...";
public static readonly string LoadTemplate = "Load Template";
public static readonly string ManageChartTemplates = "Manage Chart Templates";
public static readonly string OutputSelections = "Output Selections";
public static readonly string NewName = "New Name";
public static readonly string RenameTemplate = "Rename Template";
public static readonly string CloneTemplate = "Clone Template";
public static readonly string CreateNewTemplate = "Create New Template";
public static readonly string Default = "Default";
public static readonly string FilePath = "File Path";
public static readonly string None = "<None>";
public static readonly string Favorites = "Favorites";
public static readonly string Favorite = "Favorite";
public static readonly string OSPSuite = "Systems Pharmacology Suite";
public static readonly string InsertPKAnalysis = "Insert PK Analysis";
public static readonly string CopyTable = "Copy Table";
public static readonly string CopySelectedRows = "Copy Selected Rows";
public static readonly string TaggedWith = "Tagged With";
public static readonly string ChartExportSettings = "Chart Export Settings";
public static readonly string Word = "Word®";
public static readonly string ExportJournalToWord = $"Export journal to {Word}";
public static readonly string ExportSelection = "Export Selection";
public static readonly string ResetToDefault = "Reset to Default";
public static readonly string AmountInContainer = "Amount in container";
public static readonly string ConfirmJournalDiagramRestoreLayout = "Really reset diagram layout? This is irreversible.";
public static readonly string SimulationFolder = "Simulations";
public static readonly string ComparisonFolder = "Comparisons";
public static readonly string ObservedDataFolder = "Observed Data";
public static readonly string ParameterIdentificationFolder = "Parameter Identifications";
public static readonly string SensitivityAnalysisFolder = "Sensitivity Analyses";
public static readonly string QualificationPlanFolder = "Qualification Plans";
public static readonly string LLOQ = "LLOQ";
public static readonly string ErrorType = "Error type";
public static readonly string Delete = "Delete";
public static readonly string Clear = "Clear";
public static readonly string SelectSimulations = "Select Simulations";
public const string AddButtonText = "Add";
public const string RemoveButtonText = "Remove";
public static readonly string EnterAValue = "<enter a value>";
public static readonly string NaN = "<NaN>";
public static readonly string NA = "<NA>";
public static readonly string Analysis = "Analysis";
public static readonly string CopyAsImage = "Copy as image";
public static readonly string InvalidObject = "Invalid Object";
public static readonly string InvalidObjectToolTip = "Full path in hierarchy of invalid object";
public static readonly string GroupingModeHierarchical = "Hierarchy";
public static readonly string GroupingModeSimple = "Simple";
public static readonly string GroupingModeAdvanced = "Advanced";
public static readonly string Cancel = "Cancel";
public static readonly string CopySelection = "Copy Selection";
public static readonly string ApplicationMolecule = "Application Molecule";
public static readonly string NumberOfProcessors = "Max. number of processors to use";
public static readonly string Boundary = "Boundary";
public static readonly string OptimalValue = "Optimal Value";
public static readonly string StartValue = "Start Value";
public static readonly string Details = "Details";
public static readonly string ExportObservedDataToExcel = $"Export observed data to {Excel}";
public static readonly string ExportToExcel = $"Export to {Excel}";
public static readonly string ReadLicenseAgreement = "Read license agreement";
public static readonly string CancelButton = "&Cancel";
public static readonly string OKButton = "&OK";
public static readonly string NextButton = "&Next";
public static readonly string PreviousButton = "&Previous";
public static readonly string DataTable = "DataTable";
public static readonly string Label = "Label";
public static readonly string Comments = "Comments";
public static readonly string CopyToClipboard = "Copy to Clipboard";
public static readonly string Exception = "Exception";
public static readonly string StackTrace = "Stack Trace";
public static readonly string LogLevel = "Log Level";
public static readonly string ValueOriginDescription = "Value Description";
public static readonly string ValueOriginSource = "Source";
public static readonly string ValueOriginDeterminationMethod = "Method";
public static readonly string ValueOrigin = "Value Origin";
public static readonly string CalculationMethod = "Calculation Method";
public static readonly string MoleculeObserver = "Molecule Observer";
public static readonly string ContainerObserver = "Container Observer";
public static readonly string UnitsEditorCaption = "Unit Settings";
public static readonly string EditManually = "Edit manually";
public static readonly string ShouldColorGroupObservedData = "Color group observed data from same folder when dropping to chart";
public static readonly string EditAllCurvesProperties = "Edit Options for Selected";
public static readonly string CurvesAndAxisOptions = "Curves and Axis Options";
public static readonly string CurvesColorGrouping = "Curves Color Grouping";
public static readonly string ChartOptions = "Chart Options";
public static readonly string ChartExportOptions = "Chart Export Options";
public static readonly string No = "No";
public static readonly string Yes = "Yes";
public static readonly string ReallyRemoveObservedDataFromSimulation = $"Really remove {ObjectTypes.ObservedData} from the simulation?\nHint: {ObjectTypes.ObservedData} will not be deleted from the project";
public static readonly string SimulationWasCanceled = "Simulation was canceled";
public static readonly string SelectMappingToShowObservedData = "Select mapping to show observed data";
public static readonly string DoNotShowThisAgainUntilRestart = "Do not show this again until restart";
public static readonly string AddPoint = "Add Point";
public static readonly string UseDerivedValues = "Use derivative values";
public static readonly string NotDistributed = "Not Distributed";
public static readonly string DeleteSelected = "Delete Selected Records";
public static readonly string ModulesFolder = "Modules";
public static readonly string ApplyChangesToUpdateChart = "Apply changes to update chart";
public static readonly string Apply = "Apply";
public static readonly string AutoUpdateChart = "Auto-update chart";
public static readonly string LoadFromSnapshot = "Load Snapshot";
public static readonly string RunSimulations = "Run Simulations";
public static readonly string StartImport = "Start Import";
public static readonly string SnapshotFile = "Select snapshot file";
public static readonly string ExportProjectToSnapshotDescription = "Export project to snapshot...";
public static readonly string LoadProjectFromSnapshotDescription = "Load project from snapshot...";
public static readonly string RenalClearance = "Renal Clearance";
public static readonly string GlomerularFiltration = "Glomerular Filtration";
public static string EditTableParameter(string parameter, bool editable) => $"{(editable ? "Edit" : "Show")} table parameter '{parameter}'";
public static string ShouldWatermarkBeUsedForChartExportToClipboard(string applicationName, string optionLocation)
{
var sb = new StringBuilder();
sb.AppendLine("The watermark feature was introduced to clearly identify draft versions of plots.");
sb.AppendLine();
sb.AppendLine($"Do you want this installation of {applicationName} to use this feature? If yes, a watermark will be used when copying charts to clipboard.");
sb.AppendLine($"This setting, as well as the watermark text, can be changed anytime under '{optionLocation}'.");
return sb.ToString();
}
public static string IssueTrackerLinkFor(string application) => $"Go to {application} Issue Tracker";
public static string ReallyDeleteAllObservedData(IEnumerable<string> anythingNotDeleted)
{
var prompt = "Really delete observed data?";
var notDeleted = anythingNotDeleted.ToList();
if (notDeleted.Count == 0)
return prompt;
return $"{prompt}\n\nWarning: Following observed data are still in use and will not be deleted: \n\n{notDeleted.ToString("\n\n")}";
}
public static string CloneObjectBase(string entityType, string name)
{
return $"New name for the cloned {entityType} '{name}'";
}
public static string ContactSupport(string forumUrl)
{
return $"For more information or questions, please visit the Open Systems Pharmacology Forum ({forumUrl}).";
}
public static string CreatedOn(string creationDate)
{
return $"Created on {creationDate}";
}
public static string ClonedOn(string creationDate, string clonedFrom)
{
return $"Cloned from '{clonedFrom}' on {creationDate}";
}
public static string ConfiguredOn(string creationDate)
{
return $"Configured on {creationDate}";
}
public static string ChartFingerprintDataFrom(string projectName, string simulationName, string dateString)
{
return $"{projectName}\n{simulationName}\n{dateString}";
}
public static string ManageDisplayUnits(string type)
{
return $"Manage {type} Display Units";
}
public static string NumberOfSelectedCurveWouldGoOverThreshold(int numberOfCurves)
{
return $"The number of selected curves would exceed {numberOfCurves}. Do you want to continue?";
}
public static string PathElement(int index)
{
return $"Path Element {index}";
}
public static string DoYouWantToDeleteDirectory(string newDirectoryName)
{
return $"Do you want to delete the directory '{newDirectoryName}' and continue?";
}
public static void AppendOrderedListItem(StringBuilder sb, bool html, string listItem, int index)
{
if (html)
sb.Append($"<li>{listItem}</li>");
else
sb.AppendLine($" {index}: {listItem}");
}
public static void AppendLine(StringBuilder sb, bool html, string lineToAppend)
{
if (html)
sb.Append($"<p>{lineToAppend}</p>");
else
sb.AppendLine(lineToAppend);
}
public static void AddOrderedList(StringBuilder sb, bool html, params string[] list)
{
if (html)
sb.Append("<ol>");
list.Each((item, i) =>
{
//index in list item should start at 1
AppendOrderedListItem(sb, html, item, i + 1);
});
if (html)
sb.Append("</ol>");
}
public static string ExceptionViewDescription(string issueTrackerUrl, bool html = true)
{
var sb = new StringBuilder();
AppendLine(sb, html, "oops...something went terribly wrong.");
AppendLine(sb, html, string.Empty);
AppendLine(sb, html, "To best address the error, please enter an issue in our issue tracker:");
AddOrderedList(sb, html,
$"Visit <b>{issueTrackerUrl}</b> or click on the link below",
"Click on the <b>New Issue</b> button",
"Describe the steps you took prior to the problem emerging",
$"Copy the information below by using the <b>{CopyToClipboard}</b> button and paste it in the issue description",
"if possible, attach your project file to the issue (do not attach confidential information)"
);
AppendLine(sb, html, string.Empty);
AppendLine(sb, html, "Note: A GitHub account is required to create an issue");
return sb.ToString();
}
public static string EnterNameEntityCaption(string type)
{
return $"Enter name for {type}";
}
public static string RenameEntityCaption(string type, string name)
{
return $"New name for {type} '{name}'";
}
public static string ReallyDeleteObservedData(string observedDataName)
{
return $"Really delete observed data '{observedDataName}' from project";
}
public static string ReallyClearHistory = "Really clear command history? This action is irreversible even if the project is not saved afterwards.";
public static class SimulationUI
{
public static readonly string ObservedDataSelection = "Observed Data";
public static readonly string PredictedVsObservedSimulation = "Predicted vs Observed";
public static readonly string ResidualsVsTimeSimulation = "Residuals vs Time";
public static readonly string Outputs = "Simulation Outputs";
public static readonly string ObservedData = "Observed Data";
public static readonly string NoneEditorNullText = "<None>";
}
public static class Importer
{
public static readonly string ImportAll = "Import All";
public static readonly string Import = "Import";
public static readonly string NoPreview = "No Preview Available";
public static readonly string LogScale = "Log Scale";
public static readonly string LinearScale = "Linear Scale";
public static readonly string NamingPattern = "Naming Pattern";
public static readonly string ExcelFile = "Excel File";
public static readonly string OriginalDataPreviewView = "Preview of Original Data";
public static readonly string SetRange = "Set Range";
public static readonly string Close = "Close";
public static readonly string PreviewExcelData = "Preview Original Data";
public static readonly string MetaData = "Meta Data";
public static readonly string Data = "Data";
public static readonly string NoneEditorNullText = "<None>";
public static readonly string GroupByEditorNullText = "<Group By>";
public static readonly string NothingSelectableEditorNullText = "<Nothing Selectable>";
public static readonly string PleaseEnterMetaDataInformation = "Please enter meta data information.";
public static readonly string PleaseEnterData = "Please enter data";
public static readonly string ApplyToAll = "Apply to All";
public static readonly string PleaseEnterDimensionAndUnitInformation = "Please enter the dimension and unit information.";
public static readonly string PleaseSelectDataFile = "Please select a data file.";
public static readonly string UnitInformation = "Unit Information";
public static readonly string TheUnitInformationMustBeEnteredOrConfirmed = "The unit information must be entered or confirmed.";
public static readonly string TheMetaDataInformationMustBeEnteredOrConfirmed = "The meta data must be entered or confirmed.";
public static readonly string ResetMapping = "Reset Mapping";
public static readonly string ResetMappingToolTip = "Automatically recalculates the format based on the sheet currently selected and sets the mapping settings accordingly.";
public static readonly string ClearMappingToolTip = "Clears all the mappings. Same as clicking all the X buttons to the right of the grid.";
public static readonly string ClearMapping = "Clear All";
public static readonly string Format = "Format: ";
public static readonly string AddKeys = "Add Keys";
public static readonly string Columns = "Columns";
public static readonly string Mappings = "Mappings";
public static readonly string FormatPlain = "Format";
public static readonly string DataMapping = "Data Mapping";
public static readonly string ImportPreview = "Import preview";
public static readonly string ThreeDots = "...";
public static readonly string File = "File:";
public static readonly string ManualInput = "Manual input";
public static readonly string LloqColumnEditorTitle = "Please select the lloq column.";
public static readonly string ConfirmationImport = "Import";
public static readonly string NanAction = "Action";
public static readonly string NanActionThrowsError = "Prevent the import";
public static readonly string NanActionIgnoreRow = "Ignore the row";
public static readonly string NanActionHint =
"Defines what to do when an invalid measurement is found (invalid measurements are NaN or the number indicated in the NaN indicator). \"Ignore the row\" will import the data ignoring the currently invalid row. \"Prevent the import\" will throw an error and halt the import process";
public static readonly string NanIndicator = "NaN indicator";
public static readonly string NanIndicatorHint = "Type a number that will be interpreted as NaN(Not a Number). Text in numerical columns is interpreted as NaN anyway.";
public static readonly string OpenFileConfirmation = "Opening a new file will drop your currently imported data. Are you sure you want to open a new file?";
public static readonly string ExcelColumn = "Data Column/Value";
public static readonly string MappingName = "Mapping Name";
public static readonly string MappingSettings = "Mapping Settings";
public static readonly string UnitColumn = "Unit";
public static readonly string ExtraColumn = "Edit Extra Fields";
public static readonly string ErrorColumn = "Error";
public static readonly string ErrorType = "Error type";
public static readonly string LoadAllSheets = "Add All Sheets";
public static readonly string SourceTab = "Source";
public static readonly string ConfirmationTab = "Confirmation";
public static readonly string PreviewLayout = "Preview";
public static readonly string SourceLayout = "Source";
public static readonly string Separator = "Separator";
public static readonly string DataSets = "Data Sets";
public static readonly string NamingElement = "Naming Element";
public static readonly string CreateNamingPattern = "Create Naming Pattern";
public static readonly string Dimension = "Dimension";
public static readonly string Unit = "Unit";
public static readonly string ImportLLOQFromColumn = "Import LLOQ from a column";
public static readonly string ImportUnitFromColumn = "Import unit from a column";
public static readonly string Column = "Column";
public static readonly string LoadCurrentSheet = "Add Current Sheet";
public static readonly string AllSheetsAlreadyImported = "All imported";
public static readonly string SheetsAlreadyImported = "Imported";
public static readonly string CloseAllTabsButThis = "Close all tabs but this";
public static readonly string CloseAllTabsToTheRight = "Close all tabs to the right";
public static readonly string ResetAllTabs = "Reopen all sheets";
public static readonly string UseFilterForImport = "Use the filters selected not only for visualization but also for importing the data";
public static readonly string Title = "Import Observed Data";
public static readonly string LLOQ = "LLOQ";
public static readonly string LloqDescription = "LLOQ values will be imported from the measurement column if values are written in the form < xxx (eg <0.001)";
public static readonly string SaveConfiguration = "Save Configuration";
public static readonly string ApplyConfiguration = "Load Configuration";
public static readonly string ActionWillEraseLoadedData = "This action will result in dropping all the loaded sheets. Do you want to continue?";
public static readonly string OpenFile = "Select the file you would like to apply configuration on";
public static readonly string GroupByTitle = "Group By";
public static readonly string SelectToAdd = "Select to add";
public static readonly string MappingTitle = "Mapping";
public static readonly string ReloadWillCauseChangeOfDataSets =
"Reloading will cause the following changes in observed data. Do you really want to reload?";
public static readonly string UnexpectedExceptionWhenLoading =
"An unexpected error occurred while loading the file. The file format is probably not supported. Please check the <href =https://docs.open-systems-pharmacology.org/shared-tools-and-example-workflows/import-edit-observed-data#supported-formats >documentation</href> for more details";
public static readonly string DataSetsWillBeOverwritten = "Datasets that will be overwritten";
public static readonly string NewDataStetsWillBeImported = "New datasets that will be imported";
public static readonly string ReloadData = "Reload Data";
public static readonly string SeparatorSelection = "Separator Selection";
public static readonly string DecimalSeparator = "Decimal Separator";
public static readonly string ColumnSeparator = "Column Separator";
public static readonly string DimensionSelect = "Dimension Select";
public static readonly string SetDimensionsForAmbiguousUnits = "One or more column dimensions cannot be determined uniquely from the units.\n\nPlease set the dimension from the possible supporting dimensions";
public static string LLOQInconsistentValuesAt(string dataRepositoryName) => $"There were different LLOQ values detected for the data from a single source. Please check data under name {dataRepositoryName}. Are you sure you want to continue with import?";
public static string CsvSeparatorInstructions(string fileName) => $"Please select the separators for '{fileName}':";
public static readonly string SheetFormatNotSupported =
"The format of the sheet you are trying to use is not supported.You can find a documentation of the supported formats<href =https://docs.open-systems-pharmacology.org/shared-tools-and-example-workflows/import-edit-observed-data#supported-formats > here </href>";
public static string ConfirmDroppingExcelColumns(string listOfExcelColumns)
{
var sb = new StringBuilder();
sb.AppendLine($"The following excel columns do not exist in the current file. \n \n'{listOfExcelColumns}' ");
sb.AppendLine();
sb.AppendLine("The corresponding mappings from the configuration will be lost. Do you want to continue?");
return sb.ToString();
}
public static string SheetsNotFound(List<string> listOfSheetNames)
{
var sb = new StringBuilder();
sb.AppendLine("The following excel sheets were not found in the file and will not be imported ");
sb.AppendLine();
listOfSheetNames.ForEach(item => sb.AppendLine(item));
return sb.ToString();
}
public static readonly string UseFiltersForImport = "Use filters for importing data";
public static readonly string UseFiltersForImportTooltip =
"When selected, the filter will apply to the data during the import process. When deselected, the filter only affects this view. Check documentation for more information on defining filters: <href=https://docs.open-systems-pharmacology.org/shared-tools-and-example-workflows/features-of-tables#filtering>https://docs.open-systems-pharmacology.org/shared-tools-and-example-workflows/features-of-tables#filtering</href>";
public static readonly string AddGroupByTitle = "Add Group By";
public static readonly string MetaDataTitle = "Meta data";
public static readonly string IgnoredParameterTitle = "Ignored parameter";
public static readonly string NotConfiguredField = "Field not configured yet";
public static readonly string AddGroupBy = "Add a new grouping by";
public static readonly string MissingMandatoryMapping = "Field is mandatory and has not configured yet";
public static readonly string MissingUnit = "Field must contain a valid unit description";
public static string MappingHint(string parameter, string target, string unit)
{
return $"The column {parameter} will be mapped into {target} with units as {unit}";
}
public static string MappingHintUnitColumn(string parameter, string target, string unitColumn)
{
return $"The column {parameter} will be mapped into {target} and column {unitColumn} will be mapped into unit";
}
public static string MappingHintNoUnit(string parameter, string target)
{
return $"The column {parameter} will be mapped into {target}";
}
public static string GroupByHint(string parameter)
{
return $"The column {parameter} will be used for grouping by";
}
public static string MappingHintGeometricError = "Geometric standard deviation";
public static string AddGroupByHint = "Configure the parameters and click the add button to add a new grouping by field";
public static string NamingPatternDescription = "Automatically generates names replacing words surrounded by <b>{}</b> with like named meta data values.";
public static string NamingPatternPanelDescription = "Select one or more names from the list and the separator between them. " +
"By clicking the <b>Add keys</b> button, " +
"keys will be added to the naming pattern, separated by the selected separator";
public static string MetaDataHint(string parameter, string target)
{
return $"The column {parameter} will be used as meta data to extract the following data: {target}";
}
public static readonly string IgnoredParameterHint = "This parameter will be ignored";
public static readonly string GroupByDescription = "Group by";
public static string MetaDataDescription(string metaDataId)
{
return $"{metaDataId}";
}
public static string MappingDescription(string parameter, string unit)
{
return $"{parameter}({unit})";
}
public static readonly string UnitInformationCaption = "Unit Information";
public static readonly string UnitInformationDescription = "Here you can enter unit information which will be used for all created import data table columns";
public static readonly string AddInformationDescription = "Add a new grouping by field";
public static readonly string LloqInformationDescription = "Here you can enter lloq information which will be used for all created import data table columns";
public static readonly string ErrorTypeInformationDescription = "Here you can enter error type information which will be used for all created import data table columns";
public class ToolTips
{
public static readonly string NamingPattern = "Set a pattern for renaming imported data";
public static readonly string RangeSelect = "Override the default range by selecting a new range and pressing OK.\nTo revert to the default range click OK without a new range selected.";
}
public static readonly string ImportFileFilter = "Excel Files (*.xls, *.xlsx)|*.xls;*.xlsx|Comma Separated Value Files (*.csv)|*.csv|NonMem Files (*.NMdat)|*.NMdat|All Files (*.*)|*.*";
public static string UpdatedMappingsMessage(IEnumerable<(string ParameterName, string OutputPath)> updatedMappingsInfo)
{
var sb = new StringBuilder();
sb.AppendLine("The following parameter identifications and their output mappings were modified:");
sb.AppendLine();
var groupedMappings = updatedMappingsInfo
.GroupBy(mapping => mapping.ParameterName)
.OrderBy(group => group.Key);
foreach (var group in groupedMappings)
{
sb.AppendLine($"- {group.Key}");
foreach (var mapping in group)
{
sb.AppendLine($" - Output Path: {mapping.OutputPath}");
}
sb.AppendLine();
}
return sb.ToString();
}
}
public static class Diff
{
public static readonly string ReactionPartnerName = "Reaction Partner";
public static readonly string Tag = "Tag";
public static readonly string ObjectPath = "Path";
public static readonly string ExcludeMolecule = "Exclude Molecule";
public static readonly string IncludeMolecule = "Include Molecule";
public static readonly string Count = "Number of item";
public static readonly string Assignment = "Assignment";
public static readonly string OneObjectIsNull = "One object used in the comparison is null";
public static readonly string Connection = "Connection";
public static readonly string SourceAmount = "Source Amount";
public static readonly string TargetAmount = "Target Amount";
public static string PropertyDiffers(string propertyName, int value1, int value2) => PropertyDiffers(propertyName, $"{value1}", $"{value2}");
public static string PropertyDiffers(string propertyName, string value1, string value2) => $"{propertyName.Pluralize()} are not equal ({value1} ≠ {value2})";
public static string DifferentTypes(string type1, string type2)
{
return $"Different Types: ({type1} vs {type2})";
}
public static string ObjectMissing(string containerType, string containerName, string missingObjectType, string missingObjectName)
{
return $"{missingObjectType} '{missingObjectName}' is missing from {containerType} '{containerName}'";
}
public static string ConnectionBetween(string firstNeighborPath, string secondNeighborPath)
{
return $"Between '{firstNeighborPath}' and '{secondNeighborPath}'";
}
public static readonly string NoDifferenceFound = "No difference found.";
public static readonly string Stationary = "Stationary";
public static readonly string IsStateVariable = "Is state variable";
public static readonly string Criteria = "Criteria";
}
public static class Commands
{
public static readonly string LabelViewCaption = "Add Label...";
public static readonly string Comment = "Comment";
public static readonly string Undo = "Undo";
public static readonly string AddLabel = "Add Label";
public static readonly string EditComment = "Edit Comment";
public static readonly string Rollback = "Rollback";
public static readonly string ExtendedDescription = "Extended Description";
public static readonly string ClearHistory = "Clear History";
public static string CommentViewCaption(int historyItemState) => $"Edit comments for state '{historyItemState}' ...";
}
public static class Journal
{
public static readonly string CreatedBy = "Created By";
public static readonly string CreatedAt = "Created On";
public static readonly string UpdatedAt = "Updated On";
public static readonly string UpdatedBy = "Updated By";
public static readonly string Title = "Title";
public static readonly string Source = "Source";
public static readonly string Description = "Description";
public static readonly string Tags = "Tags";
public static readonly string RelatedItem = ObjectTypes.RelatedItem;
public static readonly string RelatedItems = RelatedItem.Pluralize();
public static readonly string Project = "Project";
public static readonly string SearchMatchAny = "Match any";
public static readonly string SearchMatchWholePhrase = "Match whole phrase";
public static readonly string SearchMatchCase = "Match case";
public static readonly string SearchPlaceholder = "Enter search to search...";
public static readonly string Find = "Find";
public static readonly string Clear = "Clear";
public static readonly string RelatedItemType = "Type";
public static readonly string Name = "Name";
public static readonly string Version = "Version";
public static readonly string Origin = "Origin";
public static readonly string DefaultDiagramName = "Overview";
public static readonly string JournalEditor = $"{ObjectTypes.Journal} Editor";
public static readonly string SelectJournal = $"Select {ObjectTypes.Journal}";
public static readonly string JournalDiagram = $"{ObjectTypes.Journal} Diagram";
public static readonly string SearchJournal = "Search";
public static readonly string JournalEditorView = JournalEditor;
public static readonly string JournalDiagramView = JournalDiagram;
public static readonly string JournalView = ObjectTypes.Journal;
public static readonly string AddToJournalMenu = $"Add to {ObjectTypes.Journal}";
public static readonly string AddToJournal = $"{AddToJournalMenu}...";
public static readonly string CreateJournalPage = $"Add {ObjectTypes.JournalPage}";
public static readonly string CreateJournalPageMenu = $"{CreateJournalPage}...";
public static readonly string JournalEditorViewDescription = $"Show or hide the {JournalEditor.ToLower()}";
public static readonly string JournalDiagramDescription = $"Show or hide the {JournalDiagram.ToLower()}";
public static readonly string JournalViewDescription = $"Show or hide the {ObjectTypes.Journal.ToLower()}";
public static readonly string SearchJournalDescription = "Search journal pages";
public static readonly string SelectJournalDescription = $"Select the {ObjectTypes.Journal} associated to the project...";
public static readonly string ExportRelatedItemToFile = $"Export the {ObjectTypes.RelatedItem} to file...";
public static readonly string SaveDiagram = "Save Diagram";
public static readonly string RestoreLayout = "Reset Layout to Default";
public static readonly string CreateJournal = "Create Journal";
public static readonly string OpenJournal = "Open Journal";
public static readonly string NoJournalAssociatedWithProject = "Do you want to open an existing journal or create a new one?";
public static readonly string CreateJournalButton = "Create";
public static readonly string OpenJournalButton = "Open";
public static readonly string CancelJournalButton = "Cancel";
public static readonly string RunComparison = "Compare";
public static readonly string AddRelatedItem = "Add New";
public static readonly string ImportAllRelatedItem = "Load All";
public static readonly string RelatedItemFile = $"{ObjectTypes.RelatedItem} file";
public static readonly string SelectedFileToLoadAsRelatedItem = "Select file to load as related item";
public static string ReallyLoadRelatedItemFileExceedingThreshold(string fileSizeInMegaBytes, string thresholdSizeInMegaBytes)
{
return $"The selected file size is '{fileSizeInMegaBytes} MB' and exceeds the recommended file size of '{thresholdSizeInMegaBytes} MB'. Do you want to continue?";
}
public static string JournalWillBeSharedBetweenProjectInfo(string journalName)
{
return $"The journal '{journalName}' will be used by both the old and new project files";
}
public static string CompareRelatedItem(string name)
{
return $"{RelatedItem} - {name}";
}
public static string CompareProjectItem(string name)
{
return $"{Project} - {name}";
}
public static string ReallyDeleteObjectOfType(string type, string name)
{
return $"Really delete {type} '{name}'?\nThis action is irreversible!";
}
public static string ExportRelatedItemToFileFilter(string defaultFileExtension)
{
return string.Format("Related Item (*{0})|*{0}|(All Files *.*)|**", defaultFileExtension);
}
public static string CreatedAtBy(string formattedDate, string by)
{
return $"Created on {formattedDate} by {by}";
}
public static string UpdatedAtBy(string formattedDate, string by)
{
return $"Last updated on {formattedDate} by {by}";
}
public static readonly string ReallyDeleteMultipleRelatedItems = "Really delete Related Items?";
public static readonly string ReallyDeleteMultipleJournalPages = "Really delete Journal Pages?";
public static string ReallyDeleteJournalPage(string workingJournalTitle)
{
return ReallyDeleteObjectOfType(ObjectTypes.JournalPage, workingJournalTitle);
}
public static string ReallyDeleteRelatedItem(string relatedItem)
{
return ReallyDeleteObjectOfType(ObjectTypes.RelatedItem, relatedItem);
}
public static string NoObjectAvailableForComparison(string itemType)
{
return $"No {itemType.ToLowerInvariant()} available for comparison";
}
public static string AvailbleItemsForComparison(string itemType)
{
return $"Available {itemType.Pluralize()}";
}
public static string ExportWorkingJournalFileName(string projectName)
{
return $"Journal_for_{projectName}.docx";
}
public static class ToolTip
{
public static string CreateJournalPage = $"Create a new {ObjectTypes.JournalPage.ToLower()}";
public static string CompareRelatedItemWithProjectItems(string relatedItemName, string relatedItemType)
{
var type = relatedItemType.ToLowerInvariant();
return $"Compare '{relatedItemName}' with {type.Pluralize()} defined in project";
}
public static string ReloadRelatedItem(string relatedItemName, string relatedItemType) => $"Reload {relatedItemType.ToLower()} '{relatedItemName}' into project";
public static string ExportRelatedItemToFile(string relatedItemName) => $"Export '{relatedItemName}' to file";
public static string DeleteRelatedItem = $"Delete {RelatedItem.ToLower()}";
}
public static string UsingOrigin(string originDisplayName)
{
return $"Using {originDisplayName}";
}
public static string WithParent(int uniqueIndex)
{
return $"With parent {uniqueIndex}";
}
}
public static class ValueOrigins
{
public static class Sources
{
public static string Database = "Database";
public static string Internet = "Internet";
public static string ParameterIdentification = "Parameter Identification";
public static string Publication = "Publication";
}
public static class Methods
{
public static string Assumption = "Assumption";
public static string ManualFit = "Manual Fit";
public static string ParameterIdentification = "Parameter Identification";
public static string InVitro = "In Vitro";
public static string InVivo = "In Vivo";
}
public static string Other = "Other";
public static string Unknown = "Unknown";
public static string Undefined = "";
}
public static class Reporting
{
public static readonly string DefaultTitle = "Report";
public static readonly string SelectFile = "Select report file...";
public static readonly string ObservedData = "Observed Data";
public static readonly string Font = "Font";
public static readonly string CreateReport = "Create";
public static readonly string Verbose = "Extended output (descriptions, images etc...)";
public static readonly string OpenReportAfterCreation = "Open the report once created";
public static readonly string Draft = "Draft watermark";
public static readonly string SaveArtifacts = "Save reporting artifacts (exported in folder <report_name>_Files)";
public static readonly string FirstPageSettings = "First page settings";
public static readonly string Options = "Options";
public static readonly string Output = "Output settings";
public static readonly string TemplateSelection = "Template selection";
public static readonly string Author = "Author";
public static readonly string Title = "Title";
public static readonly string Type = "Type";
public static readonly string Subtitle = "Subtitle";
public static readonly string Template = "Template";
public static readonly string OutputFile = "File";
public static readonly string Color = "Color";
public static readonly string GrayScale = "Gray scale";
public static readonly string BlackAndWhite = "Black & White";
public static readonly string ReportToPDFTitle = "Create PDF Report...";
public static readonly string DeleteWorkingFolder = "Delete working folder (Developer only)";
public static string ReportFor(string objectType)
{
return $"{objectType} Report";
}
}
public static class Comparisons
{
public static readonly string RelativeTolerance = "Comparison tolerance (relative) ";
public static readonly string RelativeToleranceDescription = "Limit where two values are considered equal";
public static readonly string FormulaComparisonMode = "Compare formulas by";
public static string FormulaComparisonModeDescription
{
get
{
var sb = new StringBuilder();
sb.AppendLine("<b>By values</b>: either the numerical values or the values produced by calculating the formulas are compared.");
sb.AppendLine();
sb.AppendLine("<b>By formulas</b>: the formulas are compared, not the values.");
return sb.ToString();
}
}
public static readonly string OnlyComputeModelRelevantProperties = "Only compare properties relevant to simulation results";
public static readonly string CompareHiddenEntities = "Compare hidden entities (e.g. parameters)";
public static readonly string ShowValueOriginForChangedValues = "Show value origin for changed values";
public static readonly string FormulaComparisonValue = "Values";
public static readonly string FormulaComparisonFormula = "Formulas";
public static readonly string RunComparison = "Start";
public static readonly string Left = "Left";
public static readonly string Right = "Right";
public static readonly string ComparisonResults = "Results";
public static readonly string ComparisonSettings = "Settings";
public static readonly string ExportToExcel = "Export to Excel";
public static readonly string ShowSettings = "Settings";
public static readonly string HideSettings = "Hide";
public static readonly string Absent = "Absent";
public static readonly string Present = "Present";
public static readonly string Description = "Description";
public static readonly string PathAsString = "Path";
public static readonly string ObjectName = "Object";
public static readonly string Property = "Property";
public static readonly string Comparison = "Comparison";
public static readonly string ValueDescription = "Value Description";
public static string ComparisonTitle(string objectType)
{
return $"{objectType} {Comparison}";
}
public static string ValuePointAt(string tableFormulaName, string formulaOwnerName, double xDisplayValue)
{
return $"{tableFormulaName} in {formulaOwnerName}: X={xDisplayValue}";
}
}
public static class ParameterIdentification
{
public static readonly string ParameterSelection = "Parameters";
public static readonly string OutputSelection = "Outputs";
public static readonly string DataSelection = "Data";
public static readonly string Configuration = "Configuration";
public static readonly string ParameterIdentificationDefaultName = "Parameter Identification";
public static readonly string AddSimulation = "Add Simulation";
public static readonly string AddOutput = "Add Output";
public static readonly string Outputs = "Outputs";
public static readonly string ObservedData = "Observed Data";
public static readonly string Weight = "Weight";
public static readonly string StartValue = "Start Value";
public static readonly string OptimalValue = "Optimal Value";
public static readonly string MinValue = "Min. Value";
public static readonly string MaxValue = "Max. Value";
public static readonly string InitialValue = "Initial Value";
public static readonly string IdentificationParameters = "Identification Parameters";
public static readonly string LinkedParameters = "Simulation Parameters";
public static readonly string NumberOfRuns = "Number of Runs";
public static readonly string AllTheSame = "All the same";
public static readonly string All = "All";
public static readonly string General = "General";
public static readonly string AlgorithmParameters = "Algorithm Parameters";
public static readonly string Algorithm = "Algorithm";
public static readonly string ResidualCalculation = "Residual Calculation";
public static readonly string Options = "Options";
public static readonly string Residuals = "Residuals";
public static readonly string ResidualCount = "# of Residuals";
public static readonly string Results = "Results";
public static readonly string NumberOfEvaluations = "Number of Evaluations";
public static readonly string CompletedDate = "Completed Date";
public static readonly string TotalError = "Total Error";
public static readonly string Status = "Status";
public static readonly string RunMessage = "Message";
public static readonly string RunIndex = "Run #";
public static readonly string UseAsFactor = "Use as Factor";
public static readonly string IsFixed = "Fixed";
public static readonly string LLOQMode = "Transform data below LLOQ";
public static readonly string RemoveLLOQMode = "Remove data below LLOQ";
public static readonly string TimeProfileAnalysis = "Time Profile";
public static readonly string PredictedVsObservedAnalysis = "Predicted vs. Observed";
public static readonly string SimulatedChartAxis = "Simulated";
public static readonly string ObservedChartAxis = "Observed";
public static readonly string MarkerDeviation = "Marker_Deviation";
public static readonly string Deviation = "Deviation";
public static readonly string ResidualsVsTimeAnalysis = "Residuals vs. Time";
public static readonly string ResidualHistogramAnalysis = "Histogram of Residuals";
public static readonly string RunResultsProperties = "Parameter Identification Run Properties";
public static readonly string TransferToSimulation = "Transfer to Simulation";
public static readonly string FeedbackView = "Parameter Identification Visual Feedback";
public static readonly string RefreshFeedback = "Refresh";
public static readonly string MultipleRunsAreBeingCreated = "Multiple parameter identification runs are being created. Runs status will be available shortly";
public static readonly string UpdateStartValuesFromSimulation = "Update start values from simulation";
public static readonly string SelectDirectoryForParameterIdentificationExport = "Select directory for parameter identification export";
public static readonly string SelectFileForParametersHistoryExport = "Export parameters history to file";
public static readonly string CorrelationMatrix = "Correlation Matrix";
public static readonly string CovarianceMatrix = "Covariance Matrix";
public static readonly string CalculateSensitivity = "Calculate Sensitivity";
public static readonly string Duration = "Elapsed Time";
public static readonly string ConfidenceInterval = "95% Confidence Interval";