mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Applications: Add a new Help app
This is a neat simple app that can display the Serenity manual ^)
This commit is contained in:
parent
6ec625d6f3
commit
02ee8cbbe2
Notes:
sideshowbarker
2024-07-19 11:55:04 +09:00
Author: https://github.com/bugaevc
Commit: 02ee8cbbe2
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
12 changed files with 349 additions and 1 deletions
27
Applications/Help/ManualPageNode.h
Normal file
27
Applications/Help/ManualPageNode.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include "ManualNode.h"
|
||||
|
||||
class ManualSectionNode;
|
||||
|
||||
class ManualPageNode : public ManualNode {
|
||||
public:
|
||||
virtual ~ManualPageNode() override {}
|
||||
|
||||
ManualPageNode(const ManualSectionNode& section, const StringView& page)
|
||||
: m_section(section)
|
||||
, m_page(page)
|
||||
{
|
||||
}
|
||||
|
||||
virtual NonnullOwnPtrVector<ManualNode>& children() const override;
|
||||
virtual const ManualNode* parent() const override;
|
||||
virtual String name() const override { return m_page; };
|
||||
virtual bool is_page() const override { return true; }
|
||||
|
||||
String path() const;
|
||||
|
||||
private:
|
||||
const ManualSectionNode& m_section;
|
||||
String m_page;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue