1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| #ifndef _TESTING_H_
#define _TESTING_H_
#include <string>
#include <gtkmm.h>
class Testing
{
public:
Testing (Gtk::ComboBox* pComboBox);
~Testing ();
void add_item (Glib::RefPtr<Gdk::Pixbuf>);
//void add_item (std::string);
private:
struct ModelColumns : public Gtk::TreeModel::ColumnRecord
{
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > pixbuf;
//Gtk::TreeModelColumn<std::string> text;
ModelColumns ()
{
add (pixbuf);
//add (text);
}
};
Gtk::ComboBox* m_pComboBox;
const ModelColumns m_columns;
Glib::RefPtr<Gtk::ListStore> m_refListStore;
};
#endif /*_TESTING_H_*/ |