blob: 36605cefaaf3b613fc0904d7c7b1b3bbfc06afd5 (
plain)
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
|
/***************************************************************************************************
Copyright (C) 2024 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
***************************************************************************************************/
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace QtVsTools.Editors
{
[Guid(GuidString)]
public class QtLinguist : Editor
{
public const string GuidString = "4A1333DC-5C94-4F14-A7BF-DC3D96092234";
public const string Title = "Qt Linguist";
private Guid? guid;
public override Guid Guid => guid ??= new Guid(GuidString);
public override string ExecutableName => "linguist.exe";
public override Func<string, bool> WindowFilter =>
caption => caption.EndsWith(Title);
protected override string GetTitle(Process editorProcess)
{
return Title;
}
protected override bool Detached => QtVsToolsPackage.Instance.Options.LinguistDetached;
}
}
|