forked from hoffstadt/DearPyGui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmvDocWindow.h
39 lines (23 loc) · 812 Bytes
/
mvDocWindow.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
#pragma once
#include <unordered_map>
#include <vector>
#include "mvToolWindow.h"
class mvDocWindow final : public mvToolWindow
{
public:
mvDocWindow();
[[nodiscard]] mvUUID getUUID() const override { return MV_TOOL_DOC_UUID; }
[[nodiscard]] const char* getTitle() const override { return "Internal Documentation"; }
protected:
void drawWidgets() override;
private:
void setup();
int categorySelection = 0;
const char* m_doc = "None";
std::vector<const char*> m_categories;
std::unordered_map<std::string, std::vector<const char*>> m_commandCategories;
std::unordered_map<std::string, std::vector<const char*>> m_docCategories;
std::vector<const char*> m_cconstants;
std::vector<std::pair<std::string, std::string>> m_commands;
std::vector<std::string> m_constantsValues;
};