OSDN Git Service

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