Ardour  9.0-pre0-582-g084a23a80d
textviewer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2015 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #pragma once
21 
22 #include <string>
23 
24 #include <gtkmm/box.h>
25 #include <gtkmm/button.h>
26 #include <gtkmm/textview.h>
27 #include <gtkmm/scrolledwindow.h>
28 #include <gtkmm/window.h>
29 
30 #include "pbd/transmitter.h"
31 
32 #include "gtkmm2ext/visibility.h"
33 
34 namespace Gtkmm2ext {
35 
37 {
43  bool _editable;
44 
45  void toggle_edit ();
48 
49  public:
50  TextViewer (size_t width, size_t height);
51  Gtk::TextView& text() { return etext; }
52  Gtk::Button& dismiss_button() { return dismiss; }
53 
55 
56  void deliver ();
57 };
58 
59 } /* namespace */
60 
Gtk::TextView etext
Definition: textviewer.h:38
Gtk::Button & dismiss_button()
Definition: textviewer.h:52
Gtk::Button dismiss
Definition: textviewer.h:42
Gtk::ScrolledWindow scrollwin
Definition: textviewer.h:41
Gtk::TextView & text()
Definition: textviewer.h:51
TextViewer(size_t width, size_t height)
#define LIBGTKMM2EXT_API
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1