OSDN Git Service

Fix build errors
[winmerge-jp/winmerge-jp.git] / Src / Constants.h
1 /** 
2  * @file Constants.h
3  *
4  * @brief WinMerge constants, URLs, paths etc.
5  *
6  */
7 #pragma once
8
9 #include "UnicodeString.h"
10
11 /** @brief URL for hyperlink in About-dialog. */
12 const TCHAR WinMergeURL[] = _T("https://winmerge.org/");
13
14 /**
15  * @brief URL to help index in internet.
16  * We use internet help when local help file is not found (not installed).
17  */
18 const TCHAR DocsURL[] = _T("https://manual.winmerge.org/index.html");
19
20 /** @brief URL to translations page in internet. */
21 const TCHAR TranslationsUrl[] = _T("https://winmerge.org/translations/");
22
23 /** @brief URL of the GPL license. */
24 const TCHAR LicenceUrl[] = _T("http://www.gnu.org/licenses/gpl-2.0.html");
25
26 /** @brief Relative (to WinMerge executable ) path to local help file. */
27 const TCHAR DocsPath[] = _T("Docs/WinMerge%s.chm");
28
29 /** @brief Contributors list. */
30 const TCHAR ContributorsPath[] = _T("contributors.txt");
31
32 /** @brief Release notes in HTML format. */
33 const TCHAR RelNotes[] = _T("\\Docs\\ReleaseNotes.html");
34
35 /** @brief GPL Licence local file name. */
36 const TCHAR LicenseFile[] = _T("Copying");
37
38 /** @brief WinMerge folder in My Folders-folder. */
39 const TCHAR WinMergeDocumentsFolder[] = _T("WinMerge");
40
41 /**
42  * @brief Default relative path to "My Documents" for private filters.
43  * We want to use WinMerge folder as general user-file folder in future.
44  * So it makes sense to have own subfolder for filters.
45  */
46 const TCHAR DefaultRelativeFilterPath[] = _T("WinMerge/Filters");
47
48 /** @brief Executable Filename for ANSI build. */
49 const TCHAR ExecutableFilename[] = _T("WinMerge.exe");
50 /** @brief Executable Filename for Unicode build. */
51 const TCHAR ExecutableFilenameU[] = _T("WinMergeU.exe");
52
53 /** @brief Temp folder name prefix for WinMerge temp folders. */
54 const TCHAR TempFolderPrefix[] = _T("WinMerge_TEMP_");
55
56 /** @brief registry dir to WinMerge */
57 const TCHAR RegDir[] = _T("Software\\Thingamahoochie\\WinMerge");
58
59 /**
60  * @brief Flags used when opening files
61  */
62 enum
63 {
64         FFILEOPEN_NONE          = 0x0000,
65         FFILEOPEN_NOMRU         = 0x0001, /**< Do not add this path to MRU list */
66         FFILEOPEN_READONLY      = 0x0002, /**< Open this path as read-only */
67         FFILEOPEN_MODIFIED  = 0x0004, /**< Mark file modified after opening. */
68         FFILEOPEN_CMDLINE       = 0x0010, /**< Path is read from commandline */
69         FFILEOPEN_PROJECT       = 0x0020, /**< Path is read from project-file */
70         FFILEOPEN_SETFOCUS  = 0x0040, /**< Set focus to this pane */
71         FFILEOPEN_AUTOMERGE = 0x0080, /**< auto-merge at this pane */
72 };