SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
trash_handler.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "../handler.h"
8
9namespace satdump
10{
11 namespace handlers
12 {
19 class TrashHandler : public Handler
20 {
21 public:
22 TrashHandler();
23 ~TrashHandler();
24
25 // The Rest
26 void drawMenu();
27 void drawContents(ImVec2 win_size);
28 void drawMenuBar();
29
30 void setConfig(nlohmann::json p);
31 nlohmann::json getConfig();
32
33 void addSubHandler(std::shared_ptr<Handler> handler, bool ontop = false)
34 {
35 // Do nothing!
36 }
37
38 std::string getName() { return "Trash"; }
39
40 std::string getID() { return "trash_handler"; }
41 };
42 } // namespace handlers
43} // namespace satdump
SatDump's handler base class.
Definition handler.h:32
void addSubHandler(std::shared_ptr< Handler > handler, bool ontop=false)
Add a new subhandler.
Definition trash_handler.h:33
void drawMenuBar()
Render explorer menu bar (in the left sidebar)
Definition trash_handler.cpp:17
void drawMenu()
Render explorer menu left sidebar.
Definition trash_handler.cpp:15
std::string getName()
Get this handler's readable name.
Definition trash_handler.h:38
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition trash_handler.cpp:19
void setConfig(nlohmann::json p)
Optional, allows setting a configuration/state from JSON.
Definition trash_handler.cpp:21
nlohmann::json getConfig()
Optional, allows getting a configuration/state as JSON.
Definition trash_handler.cpp:23