release v1.1

This commit is contained in:
Le Tan 2017-03-22 21:58:08 +08:00
parent bed6a0d234
commit 7c7db3fbb8
9 changed files with 138 additions and 78 deletions

View File

@ -16,10 +16,10 @@
},
"version": {
"name": "1.0",
"desc": "VNote v1.0",
"released": "2017-01-25",
"vcs_tag": "1.0",
"name": "1.1",
"desc": "VNote v1.1",
"released": "2017-03-22",
"vcs_tag": "1.1",
"gpgSign": false
},

View File

@ -16,10 +16,10 @@
},
"version": {
"name": "1.0",
"desc": "VNote v1.0",
"released": "2017-01-25",
"vcs_tag": "1.0",
"name": "1.1",
"desc": "VNote v1.1",
"released": "2017-03-22",
"vcs_tag": "1.1",
"gpgSign": false
},

View File

@ -19,7 +19,7 @@ branches:
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo apt-get -qq update ; fi
- export version="1.0"
- export version="1.1"
install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install p7zip-full ; fi

View File

@ -1,6 +1,6 @@
image: Visual Studio 2015
version: 1.0.{build}
version: 1.1.{build}
branches:
only:
@ -60,6 +60,6 @@ deploy:
subject: tamlok
repo: vnote
package: vnote
version: 1.0
version: 1.1
publish: true
override: true

Binary file not shown.

View File

@ -661,7 +661,7 @@
</message>
<message>
<location filename="../vmainwindow.cpp" line="202"/>
<location filename="../vmainwindow.cpp" line="339"/>
<location filename="../vmainwindow.cpp" line="366"/>
<source>&amp;Edit</source>
<translation> (&amp;E)</translation>
</message>
@ -741,168 +741,188 @@
<translation>使Hoedown对Markdown进行HTML渲染 ()</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="310"/>
<location filename="../vmainwindow.cpp" line="294"/>
<source>Markdown-it</source>
<translation>Markdown-it</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="295"/>
<source>Use Markdown-it to convert Markdown to HTML (re-open current tabs to make it work)</source>
<translation>使Markdown-it对Markdown进行HTML渲染 ()</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="325"/>
<source>&amp;Mermaid Diagram</source>
<translation>Mermaid图表 (&amp;M)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="326"/>
<source>Enable Mermaid for graph and diagram</source>
<translation>Mermaid渲染图像图表</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="337"/>
<source>&amp;View</source>
<translation> (&amp;V)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="315"/>
<location filename="../vmainwindow.cpp" line="342"/>
<source>&amp;File</source>
<translation> (&amp;F)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="319"/>
<location filename="../vmainwindow.cpp" line="346"/>
<source>&amp;Import Notes From Files</source>
<translation> (&amp;I)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="320"/>
<location filename="../vmainwindow.cpp" line="347"/>
<source>Import notes from files into current directory</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="327"/>
<location filename="../vmainwindow.cpp" line="354"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="328"/>
<location filename="../vmainwindow.cpp" line="355"/>
<source>View and change settings for VNote</source>
<translation>VNote的配置</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="343"/>
<location filename="../vmainwindow.cpp" line="370"/>
<source>Insert &amp;Image</source>
<translation> (&amp;I)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="350"/>
<location filename="../vmainwindow.cpp" line="432"/>
<location filename="../vmainwindow.cpp" line="377"/>
<location filename="../vmainwindow.cpp" line="459"/>
<source>Find/Replace</source>
<translation>/</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="351"/>
<location filename="../vmainwindow.cpp" line="378"/>
<source>Open Find/Replace dialog to search in current note</source>
<translation>/</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="356"/>
<location filename="../vmainwindow.cpp" line="383"/>
<source>Find Next</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="357"/>
<location filename="../vmainwindow.cpp" line="384"/>
<source>Find next occurence</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="362"/>
<location filename="../vmainwindow.cpp" line="389"/>
<source>Find Previous</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="363"/>
<location filename="../vmainwindow.cpp" line="390"/>
<source>Find previous occurence</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="368"/>
<location filename="../vmainwindow.cpp" line="395"/>
<source>Replace</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="369"/>
<location filename="../vmainwindow.cpp" line="396"/>
<source>Replace current occurence</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="374"/>
<location filename="../vmainwindow.cpp" line="401"/>
<source>Replace &amp;&amp; Find</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="375"/>
<location filename="../vmainwindow.cpp" line="402"/>
<source>Replace current occurence and find the next one</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="379"/>
<location filename="../vmainwindow.cpp" line="406"/>
<source>Replace All</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="380"/>
<location filename="../vmainwindow.cpp" line="407"/>
<source>Replace all occurences in current note</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="384"/>
<location filename="../vmainwindow.cpp" line="411"/>
<source>Highlight Searched Pattern</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="385"/>
<location filename="../vmainwindow.cpp" line="412"/>
<source>Highlight all occurences of searched pattern</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="391"/>
<location filename="../vmainwindow.cpp" line="418"/>
<source>&amp;Expand Tab</source>
<translation>Tab (&amp;E)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="392"/>
<location filename="../vmainwindow.cpp" line="419"/>
<source>Expand entered Tab to spaces</source>
<translation>Tab扩展为空格</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="400"/>
<location filename="../vmainwindow.cpp" line="427"/>
<source>Expand Tab to 2 spaces</source>
<translation>Tab为2个空格</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="404"/>
<location filename="../vmainwindow.cpp" line="431"/>
<source>Expand Tab to 4 spaces</source>
<translation>Tab为4个空格</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="408"/>
<location filename="../vmainwindow.cpp" line="435"/>
<source>Expand Tab to 8 spaces</source>
<translation>Tab为8个空格</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="422"/>
<location filename="../vmainwindow.cpp" line="449"/>
<source>Highlight Selected Words</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="423"/>
<location filename="../vmainwindow.cpp" line="450"/>
<source>Highlight all occurences of selected words</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="543"/>
<location filename="../vmainwindow.cpp" line="570"/>
<source>Import Notes From File</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="544"/>
<location filename="../vmainwindow.cpp" line="571"/>
<source>Imported notes: %1 succeed, %2 failed.</source>
<translation>: %1 %2 </translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="630"/>
<location filename="../vmainwindow.cpp" line="665"/>
<source>Use system&apos;s background color configuration for Markdown rendering</source>
<translation>使Markdown进行渲染</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="641"/>
<location filename="../vmainwindow.cpp" line="676"/>
<source>Set as the background color for Markdown rendering</source>
<translation>使Markdown进行渲染</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="399"/>
<location filename="../vmainwindow.cpp" line="426"/>
<source>2 Spaces</source>
<translation>2</translation>
</message>
@ -932,114 +952,141 @@
<translation>Qt的信息</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="344"/>
<location filename="../vmainwindow.cpp" line="371"/>
<source>Insert an image from file into current note</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="403"/>
<location filename="../vmainwindow.cpp" line="430"/>
<source>4 Spaces</source>
<translation>4</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="407"/>
<location filename="../vmainwindow.cpp" line="434"/>
<source>8 Spaces</source>
<translation>8</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="415"/>
<location filename="../vmainwindow.cpp" line="442"/>
<source>Highlight Cursor Line</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="416"/>
<location filename="../vmainwindow.cpp" line="443"/>
<source>Highlight current cursor line</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="461"/>
<location filename="../vmainwindow.cpp" line="488"/>
<source>Tab Stop Width</source>
<translation>Tab Stop宽度</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="498"/>
<location filename="../vmainwindow.cpp" line="525"/>
<source>Tools</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="509"/>
<location filename="../vmainwindow.cpp" line="536"/>
<source>Outline</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="528"/>
<location filename="../vmainwindow.cpp" line="555"/>
<source>Select Files(HTML or Markdown) To Import</source>
<translation> (HTML或Markdown)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="548"/>
<location filename="../vmainwindow.cpp" line="575"/>
<source>Fail to import files maybe due to name conflicts.</source>
<translation> ()</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="565"/>
<location filename="../vmainwindow.cpp" line="592"/>
<source>v%1</source>
<translation>v %1</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="594"/>
<source>VNote is a Vim-inspired note-taking application for Markdown.</source>
<translation>VNote是一个受Vim启发而开发的专注于Markdown的笔记软件</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="596"/>
<source>Visit https://github.com/tamlok/vnote.git for more information.</source>
<translation>访 https://github.com/tamlok/vnote.git。</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="597"/>
<source>About VNote</source>
<translation>VNote</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="566"/>
<source>VNote is a Vim-inspired note taking application for Markdown.
Visit https://github.com/tamlok/vnote.git for more information.</source>
<translation>VNote是一个受Vim启发而开发的一个Markdown笔记软件访 https://github.com/tamlok/vnote.git。</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="627"/>
<location filename="../vmainwindow.cpp" line="662"/>
<source>&amp;Rendering Background</source>
<translation> (&amp;R)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="629"/>
<location filename="../vmainwindow.cpp" line="663"/>
<location filename="../vmainwindow.cpp" line="664"/>
<location filename="../vmainwindow.cpp" line="698"/>
<source>System</source>
<translation></translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="655"/>
<location filename="../vmainwindow.cpp" line="690"/>
<source>&amp;Background Color</source>
<translation> (&amp;B)</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="664"/>
<location filename="../vmainwindow.cpp" line="699"/>
<source>Use system&apos;s background color configuration for editor</source>
<translation>使</translation>
</message>
<message>
<location filename="../vmainwindow.cpp" line="674"/>
<location filename="../vmainwindow.cpp" line="709"/>
<source>Set as the background color for editor</source>
<translation>使</translation>
</message>
</context>
<context>
<name>VMdEdit</name>
<message>
<location filename="../vmdedit.cpp" line="110"/>
<source>Insert From Clipboard</source>
<translation></translation>
</message>
<message>
<location filename="../vmdedit.cpp" line="111"/>
<source>Insert As Image</source>
<translation></translation>
</message>
<message>
<location filename="../vmdedit.cpp" line="112"/>
<source>Insert As Text</source>
<translation></translation>
</message>
</context>
<context>
<name>VMdEditOperations</name>
<message>
<location filename="../vmdeditoperations.cpp" line="40"/>
<location filename="../vmdeditoperations.cpp" line="41"/>
<source>Insert Image From Clipboard</source>
<translation></translation>
</message>
<message>
<location filename="../vmdeditoperations.cpp" line="60"/>
<location filename="../vmdeditoperations.cpp" line="85"/>
<location filename="../vmdeditoperations.cpp" line="61"/>
<location filename="../vmdeditoperations.cpp" line="86"/>
<source>Warning</source>
<translation></translation>
</message>
<message>
<location filename="../vmdeditoperations.cpp" line="60"/>
<location filename="../vmdeditoperations.cpp" line="85"/>
<location filename="../vmdeditoperations.cpp" line="61"/>
<location filename="../vmdeditoperations.cpp" line="86"/>
<source>Fail to save image %1.</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../vmdeditoperations.cpp" line="171"/>
<location filename="../vmdeditoperations.cpp" line="149"/>
<source>Insert Image From File</source>
<translation></translation>
</message>
@ -1139,6 +1186,14 @@ Visit https://github.com/tamlok/vnote.git for more information.</source>
<translation></translation>
</message>
</context>
<context>
<name>VSelectDialog</name>
<message>
<location filename="../dialog/vselectdialog.cpp" line="14"/>
<source>Cancel</source>
<translation></translation>
</message>
</context>
<context>
<name>VSettingsDialog</name>
<message>

View File

@ -12,6 +12,7 @@
const QString VConfigManager::orgName = QString("tamlok");
const QString VConfigManager::appName = QString("vnote");
const QString VConfigManager::c_version = QString("1.1");
const QString VConfigManager::dirConfigFileName = QString(".vnote.json");
const QString VConfigManager::defaultConfigFilePath = QString(":/resources/vnote.ini");

View File

@ -43,6 +43,7 @@ public:
// Constants
static const QString orgName;
static const QString appName;
static const QString c_version;
inline QFont getMdEditFont() const;

View File

@ -589,9 +589,12 @@ void VMainWindow::changeMarkdownConverter(QAction *action)
void VMainWindow::aboutMessage()
{
QMessageBox::about(this, tr("About VNote"),
tr("VNote is a Vim-inspired note taking application for Markdown.\n"
"Visit https://github.com/tamlok/vnote.git for more information."));
QString info = tr("v%1").arg(VConfigManager::c_version);
info += "\n\n";
info += tr("VNote is a Vim-inspired note-taking application for Markdown.");
info += "\n";
info += tr("Visit https://github.com/tamlok/vnote.git for more information.");
QMessageBox::about(this, tr("About VNote"), info);
}
void VMainWindow::changeExpandTab(bool checked)