26 #if ! defined (octave_gtk_manager_h)
27 #define octave_gtk_manager_h 1
29 #include "octave-config.h"
52 unload_all_toolkits ();
57 void register_toolkit (
const std::string& name);
59 void unregister_toolkit (
const std::string& name);
63 m_loaded_toolkits[tk.
get_name ()] = tk;
68 m_loaded_toolkits.erase (name);
73 auto p = m_loaded_toolkits.find (name);
75 if (p != m_loaded_toolkits.end ())
83 Cell m (1, m_available_toolkits.size ());
86 for (
const auto& tkit : m_available_toolkits)
94 Cell m (1, m_loaded_toolkits.size ());
97 for (
const auto& nm_tkit_p : m_loaded_toolkits)
98 m(i++) = nm_tkit_p.first;
105 while (! m_loaded_toolkits.empty ())
107 auto p = m_loaded_toolkits.begin ();
109 std::string name = p->first;
114 if (m_loaded_toolkits.find (name) != m_loaded_toolkits.end ())
115 unload_toolkit (name);
129 std::set<std::string> m_available_toolkits;
132 std::map<std::string, graphics_toolkit> m_loaded_toolkits;
135 OCTAVE_END_NAMESPACE(
octave)
void load_toolkit(const graphics_toolkit &tk)
gtk_manager(interpreter &interp)
void unload_all_toolkits()
std::string default_toolkit() const
void unload_toolkit(const std::string &name)
Cell loaded_toolkits_list() const
graphics_toolkit find_toolkit(const std::string &name) const
Cell available_toolkits_list() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn