JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:

#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.

Inheritance diagram for jevois::GUIeditor:
Collaboration diagram for jevois::GUIeditor:

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. More...
 
virtual ~GUIeditor ()
 Destructor. More...
 
void draw ()
 Draw the editor into ImGui. More...
 
void loadFile (std::filesystem::path const &fn)
 Load a file and set it as the current file. More...
 
void refresh ()
 Refresh list of files. More...
 

Protected Member Functions

void saveFile ()
 Save a file. More...
 

Related Functions

(Note that these are not member functions.)

enum  EditorSaveAction
 Helper enum for actions to execute after saving a config file. More...
 

Constructor & Destructor Documentation

◆ GUIeditor()

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 saveFile().

◆ ~GUIeditor()

jevois::GUIeditor::~GUIeditor ( )
virtual

Destructor.

Definition at line 46 of file GUIeditor.C.

Member Function Documentation

◆ draw()

void jevois::GUIeditor::draw ( )

Draw the editor into ImGui.

Definition at line 113 of file GUIeditor.C.

◆ loadFile()

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.

◆ refresh()

void jevois::GUIeditor::refresh ( )

Refresh list of files.

Definition at line 50 of file GUIeditor.C.

◆ saveFile()

void jevois::GUIeditor::saveFile ( )
protected

Save a file.

Definition at line 496 of file GUIeditor.C.

References LINFO.

Referenced by GUIeditor().

Friends And Related Function Documentation

◆ EditorSaveAction

enum EditorSaveAction
related

Helper enum for actions to execute after saving a config file.

Definition at line 34 of file GUIeditor.H.


The documentation for this class was generated from the following files: