1#include "gui_creator.h"
8std::vector<gui_creator*>& ref_gui_creators()
10 static std::vector<gui_creator*> creators;
17 ref_gui_creators().push_back(gc);
22 void* value_ptr,
const std::string& value_type,
23 const std::string& gui_type,
const std::string& options,
bool* toggles)
25 for (
unsigned i=0; i<ref_gui_creators().size(); ++i)
26 if (ref_gui_creators()[i]->create(p,label,value_ptr,value_type,gui_type,options,toggles))
derive from this class to provide a gui to the current viewer
void register_gui_creator(gui_creator *gc, const char *creator_name)
register a gui creator
bool create_gui(provider *p, const std::string &label, void *value_ptr, const std::string &value_type, const std::string &gui_type, const std::string &options, bool *toggles)
create the gui for a composed structure
interface for gui creators