cheshirekow  v0.1.0
mpblocks::gtk::WidgetMapBase< Widget_t > Class Template Reference

base class for a map of string names -> widget pointers More...

#include <mpblocks/gtk/LayoutMap.h>

Public Types

typedef std::map< std::string,
Widget_t * > 
Map_t
 the map type stored by this base class More...
 

Public Member Functions

void init (std::string key)
 adds the key to the map with an empty pointer More...
 
void load (const Glib::RefPtr< Gtk::Builder > &builder)
 get widget pointers for all widgets whose names have been read in More...
 
void read (YAML::Node &)
 read in any values for our widgets which are stored in the node More...
 
void write (YAML::Emitter &)
 write out the values of our widgets into the yaml file More...
 

Protected Attributes

Map_t m_map
 the actual map More...
 

Detailed Description

template<class Widget_t>
class mpblocks::gtk::WidgetMapBase< Widget_t >

base class for a map of string names -> widget pointers

Definition at line 39 of file LayoutMap.h.

Member Typedef Documentation

template<class Widget_t>
typedef std::map<std::string, Widget_t*> mpblocks::gtk::WidgetMapBase< Widget_t >::Map_t

the map type stored by this base class

Definition at line 42 of file LayoutMap.h.

Member Function Documentation

template<class Widget_t>
void mpblocks::gtk::WidgetMapBase< Widget_t >::init ( std::string  key)

adds the key to the map with an empty pointer

template<class Widget_t>
void mpblocks::gtk::WidgetMapBase< Widget_t >::load ( const Glib::RefPtr< Gtk::Builder > &  builder)

get widget pointers for all widgets whose names have been read in

template<class Widget_t>
void mpblocks::gtk::WidgetMapBase< Widget_t >::read ( YAML::Node &  )

read in any values for our widgets which are stored in the node

template<class Widget_t>
void mpblocks::gtk::WidgetMapBase< Widget_t >::write ( YAML::Emitter &  )

write out the values of our widgets into the yaml file

Member Data Documentation

template<class Widget_t>
Map_t mpblocks::gtk::WidgetMapBase< Widget_t >::m_map
protected

the actual map

Definition at line 46 of file LayoutMap.h.


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