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
36
class
LIBGTKMM2EXT_API
TextViewer
:
public
Gtk::Window
,
public
Transmitter
37
{
38
Gtk::TextView
etext
;
39
Gtk::VBox
vbox1
;
40
Gtk::VBox
vbox2
;
41
Gtk::ScrolledWindow
scrollwin
;
42
Gtk::Button
dismiss
;
43
bool
_editable
;
44
45
void
toggle_edit
();
46
void
toggle_word_wrap
();
47
void
signal_released_handler
();
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
54
void
scroll_to_bottom
();
55
56
void
deliver
();
57
};
58
59
}
/* namespace */
60
Gtk::Button
Definition:
tk/ytkmm/ytkmm/gtkmm/button.h:60
Gtk::ScrolledWindow
Definition:
scrolledwindow.h:68
Gtk::TextView
Definition:
textview.h:105
Gtk::VBox
Definition:
tk/ytkmm/ytkmm/gtkmm/box.h:505
Gtk::Window
Definition:
ytkmm/ytkmm/gtkmm/window.h:159
Gtkmm2ext::TextViewer
Definition:
textviewer.h:37
Gtkmm2ext::TextViewer::_editable
bool _editable
Definition:
textviewer.h:43
Gtkmm2ext::TextViewer::toggle_edit
void toggle_edit()
Gtkmm2ext::TextViewer::etext
Gtk::TextView etext
Definition:
textviewer.h:38
Gtkmm2ext::TextViewer::vbox2
Gtk::VBox vbox2
Definition:
textviewer.h:40
Gtkmm2ext::TextViewer::dismiss_button
Gtk::Button & dismiss_button()
Definition:
textviewer.h:52
Gtkmm2ext::TextViewer::vbox1
Gtk::VBox vbox1
Definition:
textviewer.h:39
Gtkmm2ext::TextViewer::dismiss
Gtk::Button dismiss
Definition:
textviewer.h:42
Gtkmm2ext::TextViewer::deliver
void deliver()
Gtkmm2ext::TextViewer::scrollwin
Gtk::ScrolledWindow scrollwin
Definition:
textviewer.h:41
Gtkmm2ext::TextViewer::toggle_word_wrap
void toggle_word_wrap()
Gtkmm2ext::TextViewer::text
Gtk::TextView & text()
Definition:
textviewer.h:51
Gtkmm2ext::TextViewer::scroll_to_bottom
void scroll_to_bottom()
Gtkmm2ext::TextViewer::signal_released_handler
void signal_released_handler()
Gtkmm2ext::TextViewer::TextViewer
TextViewer(size_t width, size_t height)
Transmitter
Definition:
transmitter.h:30
visibility.h
LIBGTKMM2EXT_API
#define LIBGTKMM2EXT_API
Definition:
gtkmm2ext/gtkmm2ext/visibility.h:39
Gtkmm2ext
Definition:
editor.h:82
scrolledwindow.h
textview.h
box.h
button.h
transmitter.h
height
gint height
Definition:
xcursors.h:1
width
gint width
Definition:
xcursors.h:1
window.h
libs
gtkmm2ext
gtkmm2ext
textviewer.h
Generated on Wed Dec 25 2024 05:44:52 for Ardour by
1.9.1