OSDN Git Service

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