summaryrefslogtreecommitdiff
path: root/Applications/Help/ManualPageNode.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-09-21 00:47:31 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-09-28 18:29:42 +0200
commit02ee8cbbe2f16d7da15c9b6454e5217fc2e7438a (patch)
tree75bb65ed9c8cdb86af346ef23a037e50df31d57d /Applications/Help/ManualPageNode.cpp
parent6ec625d6f38d93751be44afc79ab713b1cec8f1b (diff)
downloadserenity-02ee8cbbe2f16d7da15c9b6454e5217fc2e7438a.zip
Applications: Add a new Help app
This is a neat simple app that can display the Serenity manual ^)
Diffstat (limited to 'Applications/Help/ManualPageNode.cpp')
-rw-r--r--Applications/Help/ManualPageNode.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Applications/Help/ManualPageNode.cpp b/Applications/Help/ManualPageNode.cpp
new file mode 100644
index 0000000000..7aec825586
--- /dev/null
+++ b/Applications/Help/ManualPageNode.cpp
@@ -0,0 +1,18 @@
+#include "ManualPageNode.h"
+#include "ManualSectionNode.h"
+
+const ManualNode* ManualPageNode::parent() const
+{
+ return &m_section;
+}
+
+NonnullOwnPtrVector<ManualNode>& ManualPageNode::children() const
+{
+ static NonnullOwnPtrVector<ManualNode> empty_vector;
+ return empty_vector;
+}
+
+String ManualPageNode::path() const
+{
+ return String::format("%s/%s.md", m_section.path().characters(), m_page.characters());
+}