Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cox-sciex authored Jan 8, 2025
2 parents 964bcb3 + 78335e2 commit c26f9d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public bool IsCurrent(ScreenshotFile screenshot, ImageSource currentSource)

internal class ScreenshotFile
{
private static readonly Regex PATTERN = new Regex(@"\\([a-zA-Z\-]+)\\(\w\w-?[A-Z]*)\\s-(\d\d)\.png");
private static readonly Regex PATTERN = new Regex(@"\\([a-zA-Z0-9\-]+)\\(\w\w-?[A-Z]*)\\s-(\d\d)\.png");

public static bool IsMatch(string filePath)
{
Expand Down
18 changes: 14 additions & 4 deletions pwiz_tools/Skyline/TestTutorial/GroupedStudies1TutorialTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,20 @@ private void OpenImportArrange()
if (IsPauseForScreenShots)
RunUI(() =>
{
// Essentially maximize the window for a 1920x1080 monitor at 100%
savedBounds = SkylineWindow.Bounds;
SkylineWindow.Size = new Size(1934, 1047);
SkylineWindow.Location = new Point(-7, 0);

// Essentially maximize the window at 1920 x 1080 screen resolution at 100% zoom
// Ideally this should be the maximum size that will fit on all screens or the minima
// of the WorkingArea width and height.

// SkylineWindow.Size = Screen.FromControl(SkylineWindow).WorkingArea.Size;

// Size on Windows 10 = 1920 x 1040 (leaves 7 pixels below and 7 pixels on left and right for shadow)
// Size on Windows 11 = 1920 x 1032 (same borders with a taller task bar)
// A laptop at 1920 x 1200 would allow 120 pixels more in width

SkylineWindow.Size = new Size(1920, 1032);
SkylineWindow.Location = new Point(0, 0);
});

SelectNode(SrmDocument.Level.Molecules, 0);
Expand Down Expand Up @@ -1098,7 +1108,7 @@ private void PrepareForStatistics()
var documentSettingsDlg = ShowDialog<DocumentSettingsDlg>(SkylineWindow.ShowDocumentSettingsDialog);

AddAnnotation(documentSettingsDlg, "MissingData", AnnotationDef.AnnotationType.true_false, null,
AnnotationDef.AnnotationTargetSet.Singleton(AnnotationDef.AnnotationTarget.peptide));
AnnotationDef.AnnotationTargetSet.Singleton(AnnotationDef.AnnotationTarget.peptide), true);

RunUI(() => documentSettingsDlg.AnnotationsCheckedListBox.SetItemChecked(3, true));

Expand Down

0 comments on commit c26f9d3

Please sign in to comment.