Skip to content

Commit 31d4ad1

Browse files
authored
Dev (#2316)
* refine mindmap * update release * release v3.16.0
1 parent 5229be4 commit 31d4ad1

File tree

15 files changed

+516
-428
lines changed

15 files changed

+516
-428
lines changed

.github/workflows/ci-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
VNOTE_VER: 3.15.1
13+
VNOTE_VER: 3.16.0
1414

1515
jobs:
1616
build-linux:

.github/workflows/ci-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
VNOTE_VER: 3.15.1
13+
VNOTE_VER: 3.16.0
1414

1515
jobs:
1616
build:

.github/workflows/ci-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
VNOTE_VER: 3.15.1
13+
VNOTE_VER: 3.16.0
1414

1515
jobs:
1616
build:

changes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Changes
2+
## v3.16.0
3+
* Support reading PDF format
4+
* Support Ming Map editor in suffix `*.emind`
5+
* Support "View By" for notebooks selector
6+
* ViewWindow: add shortcut Ctrl+G,V to alternate among view modes
7+
* Bug fixes
8+
9+
## v3.15.1
10+
* Add two themes
11+
* Bug fixes
12+
213
## v3.15.0
314
* Editor supports Word Count
415
* Add Open Windows panel

src/core/buffer/filetypehelper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ void FileTypeHelper::setupBuiltInTypes()
8080
type.m_type = FileType::Pdf;
8181
type.m_typeName = QStringLiteral("PDF");
8282
type.m_displayName = Buffer::tr("Portable Document Format");
83+
type.m_isNewable = false;
8384

8485
auto suffixes = coreConfig.findFileTypeSuffix(type.m_typeName);
8586
if (suffixes && !suffixes->isEmpty()) {

src/core/buffer/filetypehelper.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ namespace vnotex
2020
Others
2121
};
2222

23+
QString preferredSuffix() const;
24+
25+
bool isMarkdown() const;
26+
2327
// Type.
2428
int m_type = -1;
2529

@@ -29,9 +33,8 @@ namespace vnotex
2933

3034
QStringList m_suffixes;
3135

32-
QString preferredSuffix() const;
33-
34-
bool isMarkdown() const;
36+
// Whether we can new this type of file.
37+
bool m_isNewable = true;
3538
};
3639

3740
// Only handle built-in editors.

src/core/htmltemplatehelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,8 @@ void HtmlTemplateHelper::updateMindMapEditorTemplate(const MindMapEditorConfig &
378378

379379
s_mindMapEditorTemplate.m_revision = p_config.revision();
380380

381-
const auto &themeMgr = VNoteX::getInst().getThemeMgr();
382381
generateMindMapEditorTemplate(p_config,
383-
themeMgr.getFile(Theme::File::WebStyleSheet),
382+
QString() /* Use empty theme style for now */,
384383
s_mindMapEditorTemplate);
385384
}
386385

src/data/core/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<key>CFBundleExecutable</key>
2222
<string>vnote</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>3.15.1</string>
24+
<string>3.16.0</string>
2525
<key>CFBundleVersion</key>
26-
<string>3.15.1.1</string>
26+
<string>3.16.0.1</string>
2727
<key>NSHumanReadableCopyright</key>
2828
<string>Created by VNoteX</string>
2929
<key>CFBundleIconFile</key>

0 commit comments

Comments
 (0)