-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathglobal.h
69 lines (57 loc) · 2.51 KB
/
global.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/****************************************************************************
* EZ Viewer
* Copyright (C) 2012 huangezhao. CHINA.
* Contact: huangezhao ([email protected])
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
#ifndef GLOBAL_H
#define GLOBAL_H
#include <QString>
#include <QObject>
namespace Global {
const QString Version = "3.4";
const QString CopyRightYear = "2012/2-2013/6";
const QString BuildTime = __TIME__ ", " __DATE__;
const QString WeiboSite = "www.weibo.com/huangezhao";
const QString ProjectSite = "github.com/yuezhao/ezviewer";
const QString AuthorBlog = "yuezhaoblog.blogspot.com";
const QString AuthorEmail = "[email protected]";
static inline QString ProjectName()
{ return QObject::tr("EzViewer"); }
static inline QString ProjectAuthor()
{ return QObject::tr("huangezhao"); }
static inline QString AboutInfo()
{
return QObject::tr("<p align='center'>%1 - A Simple Image Viewer</p>" \
"<p>Version: v%2"
"<br>Build Time: %3" \
"<br>CopyRight © %4 by %5</p>" \
"<p>Contact Author: <a href='http://%6'>%6</a>" \
"<br>Project Home: <a href='http://%7'>%7</a>" \
"<br>Author's Blog: <a href='http://%8'>%8</a>" \
"<br>Send Email: <a href='mailto:%9'>%9</a></p>" )
.arg(ProjectName()).arg(Version).arg(BuildTime).arg(CopyRightYear)
.arg(ProjectAuthor()).arg(WeiboSite).arg(ProjectSite)
.arg(AuthorBlog).arg(AuthorEmail);
}
static inline QString LoadFileErrorInfo()
{
return QObject::tr("Cannot load picture:'%3'" \
"\nYou can help to improve %1 by email the picture to %2")
.arg(ProjectName()).arg(AuthorEmail);
}
}
#endif // GLOBAL_H