bump version number...
[mtalk.git] / gtk / channelview.h
blob7ae07f23bd1deb1b1608b85778460d5ef8d1e897
1 //
2 // C++ Interface: channelview
3 //
4 // Description:
5 //
6 //
7 // Author: James Spahlinger <eagle@nixeagle.org>, (C) 2008
8 //
9 // Copyright: See COPYING file that comes with this distribution
12 #ifndef GUICHANNELVIEW_H
13 #define GUICHANNELVIEW_H
14 #include <gtkmm.h>
16 namespace Gui {
18 /**
19 @author James Spahlinger <eagle@nixeagle.org>
21 class ChannelView : public Gtk::VBox {
22 public:
23 ChannelView();
25 ~ChannelView();
27 void set_buffer(const Glib::RefPtr<Gtk::TextBuffer>& buffer);
28 void adjust_view(int value);
29 protected:
30 Gtk::ScrolledWindow scroll_window;///text view goes here.
31 /**
32 * We store the text view, but do not store the buffer in this object.
33 * The reason for this is that views can show multiple buffers, depending
34 * on what channel the user wishes to display in any particular view.
36 Gtk::TextView text_view;
37 public:
38 /**
39 * Each channel view is going to have to have its own input box. Not doing
40 * so would probably be confusing to users.
41 * @todo Possibly make this configurable, either one text entry for the
42 * whole application, or one per view. Default to one per view.
44 Gtk::Entry user_input;
46 //non-gui related items, these may eventually be associated with the
47 //text *buffers*
48 Glib::ustring channel;
49 Glib::ustring domain;
55 #endif