23 #ifndef __TOOLS_CONFIG_EDITOR_RETRIEVER_CONFIG_PLUGIN_H_ 24 #define __TOOLS_CONFIG_EDITOR_RETRIEVER_CONFIG_PLUGIN_H_ 26 #include "config_editor_plugin.h" 36 const Glib::RefPtr<Gtk::Builder> &builder);
40 std::string camera_string,
41 bool record_images =
false,
42 std::string save_path =
"" );
44 std::map< std::string, std::string >
get_cameras()
const;
47 class CameraRecord :
public Gtk::TreeModelColumnRecord
61 Gtk::TreeModelColumn< Glib::ustring > name;
62 Gtk::TreeModelColumn< Glib::ustring > type;
63 Gtk::TreeModelColumn< Glib::ustring > id;
64 Gtk::TreeModelColumn< Glib::ustring > params;
65 Gtk::TreeModelColumn< bool > record_images;
66 Gtk::TreeModelColumn< Glib::ustring > save_path;
71 void on_add_clicked();
72 void on_delete_clicked();
74 CameraRecord m_camera_record;
75 Glib::RefPtr< Gtk::ListStore > m_camera_list;
76 Gtk::TreeView* m_trv_cameras;
78 Gtk::Button* m_btn_add_camera;
79 Gtk::Button* m_btn_delete_camera;
89 virtual void pre_run();
90 virtual void post_run(
int response );
92 virtual Gtk::Dialog* load_dialog();
void add_camera(std::string camera_name, std::string camera_string, bool record_images=false, std::string save_path="")
Adds a camera to the list of cameras.
Config dialog of the config editor plugin for the fvretriever.
virtual ~RetrieverConfigDialog()
Destructor.
Config editor plugin for the fvretriever plugin.
RetrieverConfigDialog(BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
Constructor.
std::map< std::string, std::string > get_cameras() const
Obtain the list of cameras shown in the dialog.
Base class for plugins for the Fawkes config editor.