JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/GPU/GUIeditor.H>
Editor panel for JeVois-Pro GUI.
This panel allows one to select one of several files, and to edit it.
Definition at line 46 of file GUIeditor.H.
Public Member Functions | |
GUIeditor (GUIhelper *helper, std::string const &imguiid, std::vector< EditorItem > &&fixeditems, std::string const &scanpath, std::string const &prefix, std::set< std::string > &&extensions) | |
Constructor. | |
virtual | ~GUIeditor () |
Destructor. | |
void | draw () |
Draw the editor into ImGui. | |
void | loadFile (std::filesystem::path const &fn) |
Load a file and set it as the current file. | |
std::filesystem::path const & | getLoadedFilePath () const |
Get path of file last loaded with loadFile(), may be empty. | |
void | refresh () |
Refresh list of files. | |
Protected Member Functions | |
void | saveFile () |
Save a file. | |
Related Symbols | |
(Note that these are not member symbols.) | |
enum class | EditorSaveAction |
Helper enum for actions to execute after saving a config file. More... | |
jevois::GUIeditor::GUIeditor | ( | GUIhelper * | helper, |
std::string const & | imguiid, | ||
std::vector< EditorItem > && | fixeditems, | ||
std::string const & | scanpath, | ||
std::string const & | prefix, | ||
std::set< std::string > && | extensions | ||
) |
Constructor.
Definition at line 31 of file GUIeditor.C.
References JEVOIS_SHARE_PATH, and saveFile().
|
virtual |
Destructor.
Definition at line 46 of file GUIeditor.C.
void jevois::GUIeditor::draw | ( | ) |
Draw the editor into ImGui.
Definition at line 113 of file GUIeditor.C.
std::filesystem::path const & jevois::GUIeditor::getLoadedFilePath | ( | ) | const |
Get path of file last loaded with loadFile(), may be empty.
Definition at line 496 of file GUIeditor.C.
void jevois::GUIeditor::loadFile | ( | std::filesystem::path const & | fn | ) |
Load a file and set it as the current file.
Definition at line 362 of file GUIeditor.C.
void jevois::GUIeditor::refresh | ( | ) |
Refresh list of files.
Definition at line 50 of file GUIeditor.C.
References jevois::VideoMapping::cmakepath(), and jevois::VideoMapping::path().
|
protected |
Save a file.
Definition at line 500 of file GUIeditor.C.
References LINFO.
Referenced by GUIeditor().
|
related |
Helper enum for actions to execute after saving a config file.
Definition at line 34 of file GUIeditor.H.