papyrus logo

linejoincombobox.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the papyrus library.                             *
00006  *                                                                         *
00007  *   papyrus is free software; you can redistribute it and/or modify       *
00008  *   it under the terms of the GNU Lesser General Public License           *
00009  *   version 3.0 as published by the Free Software Foundation.             *
00010  *                                                                         *
00011  *   papyrus is distributed in the hope that it will be useful,            *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Lesser General Public License version 3.0 for more details.       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with the papyrus library. If not, see                   *
00018  *   <http://www.gnu.org/licenses/>.                                       *
00019  ***************************************************************************/
00020 #ifndef PAPYRUSGTKLINEJOINCOMBOBOX_H
00021 #define PAPYRUSGTKLINEJOINCOMBOBOX_H
00022 
00023 #include <gtkmm.h>
00024 
00025 namespace Papyrus
00026 {
00027   namespace Gtk
00028   {
00029 
00030     extern const char* line_join_string[];
00031 
00042     class LineJoinComboBox : public ::Gtk::ComboBox
00043     {
00044       public:
00045         LineJoinComboBox ( int active = 0 );
00046 
00047         ~LineJoinComboBox();
00048 
00049       protected:
00050 
00051       class ModelColumns: public ::Gtk::TreeModelColumnRecord
00052         {
00053           public:
00054             ModelColumns()
00055             {
00056               add ( picture );
00057               add ( name );
00058             }
00059 
00060             ::Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > picture;
00061             ::Gtk::TreeModelColumn<Glib::ustring> name;
00062         };
00063 
00064         Glib::RefPtr< ::Gtk::ListStore> m_store;
00065         ModelColumns m_columns;
00066         static std::vector<Glib::RefPtr<Gdk::Pixbuf> > m_pixbuf;
00067 
00068         void create_pixbufs();
00069 
00070     };
00071 
00072   }
00073 
00074 }
00075 
00076 #endif

Generated on Fri Apr 16 12:40:10 2010 for papyrus by doxygen 1.6.1