00001 /* $Id: textwidget.h,v 1.1 2006/08/15 02:45:43 rvinyard Exp $ */ 00002 00003 /* textwidget.h 00004 * 00005 * Copyright (C) 2001-2002 The gtkmm Development Team 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free 00019 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #ifndef _TEXTWIDGET_H 00023 #define _TEXTWIDGET_H 00024 00025 #include "gtkmm/scrolledwindow.h" 00026 #include "gtkmm/textview.h" 00027 00028 00029 class TextWidget : public Gtk::ScrolledWindow 00030 { 00031 public: 00032 TextWidget(bool is_source); 00033 virtual ~TextWidget(); 00034 00035 Glib::RefPtr<Gtk::TextBuffer> get_buffer(); 00036 void wipe(); 00037 void fontify(); 00038 00039 protected: 00040 00041 //Signal handlers: 00042 00043 //Child widgets: 00044 Gtk::TextView m_TextView; 00045 Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer; 00046 00047 }; 00048 00049 #endif //_TEXTWIDGET_H