/* $Id$ */ /* * Cantus Tag Editor * Copyright © 2002-2004 by Samuel Abels * Copyright © 2007 by Tim Huetz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see **/ #ifdef HAVE_CONFIG_H # include #endif #ifndef HAVE_GUI_PREFTREE_H #define HAVE_GUI_PREFTREE_H #include #include #define _(String) gettext (String) #define gettext_noop(String) (String) #define N_(String) gettext_noop (String) class PreferencesTree : public Gtk::TreeView { public: PreferencesTree(); ~PreferencesTree(); /* Triggered whenever an item has been selected. */ SigC::Signal1 signal_selection_changed; /* Add a category with an icon. */ void add(std::string catname, std::string pixmapfile); private: void on_selection_changed(void); // List model columns. class ModelColumns : public Gtk::TreeModel::ColumnRecord { public: //Gtk::TreeModelColumn > pixbuf; Gtk::TreeModelColumn caption; ModelColumns() { //add(pixbuf); add(caption); } }; Glib::RefPtr store; Gtk::CellRendererText renderer_text; ModelColumns columns; }; #endif