aboutsummaryrefslogtreecommitdiff
path: root/src/lineview.cpp
blob: d4671d62ec3d86df96161080a1b5a29c85a40b44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "lineview.h"

namespace newsboat {

LineView::LineView(Stfl::Form& form, const std::string& name)
	: f(form)
	, name(name)
{
}

void LineView::set_text(const std::string& text)
{
	f.set(name, text);
}

std::string LineView::get_text()
{
	return f.get(name);
}

void LineView::show()
{
	f.set("show_" + name, "1");
}

void LineView::hide()
{
	f.set("show_" + name, "0");
}


} // namespace newsboat